821 points · by ashitlerferad · 6y ago · 363 comments
I do now have a hyphen in my last name which is not accepted everywhere. Some companies accept the hyphen but replace it with a space (some credit cards), some reject the hyphen so I either make it all one word or add my own space.
I have in the past normalized email addresses per the rules I know specific providers have to help people login. Did I sign up with mike+hn@ or mike+hackernews@?
For example: ycombinator.com@example.com.
Nobody blocks dots in email addresses, although I have had some sites in the past email me using the first part of my email address as my name; it's amusing to open an email from example.com saying "Hi, example.com!"
https://haacked.com/archive/2007/08/21/i-knew-how-to-validat...
For any programmer that's ever tried to validate email addresses it's an eye opener.
Other hosts (e.g. Mailbox.org, the host I'm with now) can support the feature as well, with some configuration.
- The History of the URL, https://blog.cloudflare.com/the-history-of-the-url/
The root has children like "com", "net", "uk", etc.
There are DNS records at the root level. Try this command:
host -t ANY .
Also, just as Linux searches PATH (in order) when you run a command, the DNS resolver searches a path when you look up a host. (Usually the resolver path is specified by directives in /etc/resolv.conf.) Just as Linux will skip this process if you specify a leading "/", the DNS resolver will skip that process if you specify a trailing ".".It used to be pretty common to put your organization's domain in /etc/resolv.conf so that you can use the short version of a hostname. If your company is example.com and you have example.com in the DNS search path, you can type a command like "ping www", and it will do the same thing as "ping www.example.com". Most software still supports this, but it isn't used by that many people. (Some organizations don't put their domain in /etc/resolv.conf, and many users don't know they can abbreviate hostnames in this way.)
You would typically use the trailing dot if you want to be sure the DNS lookup doesn't use the search path and checks only against the root of the DNS namespace. You also use the trailing dot in some data files for DNS servers.
In many cases the trailing dot is not necessary, practically speaking, because the DNS resolver has special logic where if you give it a string that contains any dots (not just trailing), the search order is rearranged to try the root first instead of last. (In /etc/resolv.conf, this is controlled by the "ndots" option.)
So if you look up "www.example.com", it will check for the existence of "www.example.com." before it checks for "www.example.com.example.com." instead of the other way around. Which is good because only the first is likely to exist. If you look up "www", it will check for "www.example.com." before it checks for "www.", which again is a good heuristic because again the first is the one that likely exists.
> The presence of a host subcomponent within a URI does not imply that the scheme requires access to the given host on the Internet. In many cases, the host syntax is used only for the sake of reusing the existing registration process created and deployed for DNS, thus obtaining a globally unique name without the cost of deploying another registry. However, such use comes with its own costs: domain name ownership may change over time for reasons not anticipated by the URI producer. In other cases, the data within the host component identifies a registered name that has nothing to do with an Internet host. We use the name "host" for the ABNF rule because that is its most common purpose, not its only purpose.
So, the fact that the host part of http(s) URLs are resolved using DNS is not a limitation of the URL spec. Instead that's an implementation restriction.
The thing that really annoys me though isn't email address handling. It's credit card number and social security number entry fields.
For credit cards, the number of times you should have to specify which type of card you're entering is literally zero. All credit cards of the same type (e.g. Visa) begin with the same number sequence. Visa always starts with 4, so, if I type 4 as the first digit, just call it a Visa card. Do the Luhn checksum validation to make sure it's a valid number and that I probably entered it correctly, and try to run the charge. If it fails, then provide an appropriate error message.
For SSN fields, the thing that annoys me is that there are basically 2 common ways of entering the number: XXX-XX-XXXX and XXXXXXXXX. So many sites and apps only accept one of the two and will complain about the other. It's ridiculous, because the presence or absence of the dashes literally has no bearing on the validity of the number. Just let me enter it the way I want.
Dear everyone: Denmark does NOT have states. Literally dozens of times have I encountered a form that absolutely requires that I input something in the state field before they will ship my stuff. A sufficiently motivated individual could traverse the major landmasses of Denmark by bicycle in about a day[0], we don't need no damn states.
I usually put in "NULL" for state, and hope something breaks.
The worst are the companies who (somewhat strictly, to varying degrees) verify the address of credit cards. I've barely managed to always verify by shortening into a grotesque form of the address that logistically makes no sense, but is apparently just close enough to match whatever fuzzy formula is used (eg. Levenshtein distance).
From what I can recall, the number of times I've had to specific what type of card I have when filling out an online form is zero, because every form I can remember using did autodetect it. I admit I'm fairly young (only have had a card for 10-12 years), but from the amount of frustration you seem to have about this, I feel like you must have run into it much more recently than that.
In the same way, if a website does not do www->nowww / nowww->www redirect (example.com / www.example.com), you might have www version be logged in and nowww version be logged out or vice versa (depending how exactly it creates its cookies).
div[data-pagelet^="FeedUnit"]:has([role^=button]:has(> span:has-text(S)):not(:has-text(1)):not(:has-text(2)):not(:has-text(3)):not(:has-text(4)):not(:has-text(5)):not(:has-text(6)):not(:has-text(7)):not(:has-text(8)):not(span:has-text(9)):not(span:has-text(w)))
EDIT: I don't think UBlock Origin has acceptable ads anymore :)
uBlock Origin has _never_ had "acceptable" (or any other kind) of ads.
I've experimented with them here and there, and tend to find that the unintended consequences are as much of a hassle as the ads.
I keep meaning to try a PiHole but I'm not sure I'll have much better luck.
That is a rare thing for me these days with uBlock Origin. I assume you're referring to broken websites when using ad blocking.
IOW I've found it easier to tolerate ads and slow sites "functioning as intended" than the much-less-frequent but far-more-maddening broken functionality that takes me "longer than it should" to troublehsoot.
I'm not sure I've used uBlock though, mostly ABP over the years.
I mean, I hope all adblock users are aware that if everyone did as they do, the content they enjoy would not exist.
I block trackers, which blocks most ads on the web, but Youtube’s ads are not affected by this, and I’m perfectly fine with that.
Step 1 - open your site. Can't see it? I try to allow JS in NoScript
Step 2 - Still can't see your site due to shitty various techniques? Then I re-enable NoScript and add it to blacklist to never land on it ever.
Step 3 - You're not unique, your info is duplicated by several other dozens as well.
Implementing a network feature, I had to poke a service server. But the OS DNS resolver returned broken results and sometimes hanged or crashed the system.
After a lot of head scratching and exchanges with the first party support, we found the issue to be a misread of the cache line of the CPU, delivering broken data to the OS and causing havok.
The problem was that as the cache line was 32 bytes, if the url being resolved was exactly 32 bytes long, it would trigger this edge case (probably the OS missing the ending null character).
The first party support said there was nothing they would do to solve this and suggested creating an DNS alias, but the domain was a third party address specific per project which in our case with our project codename was 32 bytes, they also were unwilling to modify or create aliases.
My solution was to add a dot in the address and this fixed it, as now the address was 33 bytes and the CPU fetched two cache lines. The first party technical support was surprised by the fix and called it "sneaky ;)"
Fun times.
It's a commonly forgotten edge case, websites forget to normalize the hostname, the content is still served, but there's no hostname match on the browser so no cookies and broken CORS - and lots of bigger sites use a different domain to serve ads/media with a whitelist that doesn't contain the extra dot
So a machine with a search domain of 'foo.com' looking up 'www.google.com' should ideally seek the record for 'www.google.com.foo.com' first. Conversely, looking up 'www.google.com.' is more specific and returns google's ip even if 'www.google.com.foo.com' were to exist.
The reason it's not common is because all DNS client behaviors have been modified for convenience to avoid this; in basically every resolver any query containing at least one dot is automatically treated as if it were a fully qualified name. So behind the scenes, the DNS resolver is caring very much about the trailing dot and adding it to nearly every query; it's just typically hidden from users.
Like most nice things, it gets ruined once everybody starts using it.
(I find it ironic that their "polymer" redesigned site is also ridiculously slow and bloated, yet my computer, which is many years old now, has zero problems playing the videos themselves; somehow it takes more resources to render a UI --- which I could probably make easily in static HTML --- than to play an HD video...?)
Comments are essentially a tiny subset of the features of an Internet forum, which is definitely possible with static HTML. (Some things come naturally with that too, such as pagination so you can continue reading from exactly where you left off without the cursed O(n^2) of "infinite" scrolling.)
liking, subscribing
HTML forms.
video annotations
I thought annotations disappeared long ago?
livestream chat
That's one which could do with some AJAX, but...
http://blog.johnkrauss.com/html-only-live-chat-No-JS/
I remember using a few in the early 2000s which didn't require JS either, and probably worked on a similar principle.
What exactly is that?
For a link like this (this one is not actually age restricted or NSFW):
https://www.youtube.com/watch?v=ScVi_L817ec
Just visit this instead:
https://www.youtube.com/embed/ScVi_L817ec
This one is a lot more interesting, though. I guess I assumed that sites wouldn't even respect the FQDN like that, but it's definitely interesting to see a changed site returned instead.
"YouTube Red" sounded like some adult service. Whereas YouTube Premium leaves most people knowing what it is before you tell them.
I'm also a Youtube Premium subscriber, but a creator told me that Google pays less after my views than views from non-premium youtube viewers.
What? It feels like a deterrent to me.
Citation needed, please?
But even then, if they're stalking you already, why would you pay them money for this "privilege"?
The added benefit of listening to audiobooks on YouTube while doing other things on your phone make it worth it.
YouTube premium = no ads, Spotify + audible + supporting creators + more productivity on mobile (pip mode). Also you can download videos for a flight/later.
I prefer supporting creator directly.
I for the most part don't watch Netflix or Hulu anymore. When a big show comes along I'll watch it, but I really enjoy watching other people talk about things they love.s
edit: add "origin" qualifier
Telling someone non-technical "go install extension ABC" is pretty risky. They might find and install "uBlock Original BETTER AND FASTER" that comes with a bitcoin miner or something worse. Even as someone "tech literate", I sometimes find it quite hard to verify the authenticity of downloads like this.
Also relevant in this case, when there is a reasonable option to pay to remove ads from something I use frequently, I do it. YT is $10/mo, it's worth it to me.
1) it doesn't come installed by default (too difficult)
2) technology should be secure by default (naivete)
3) nothing to hide and do want to support the sites (don't steal)
I've worked for two companies that made most of their money from (online) advertising. While working for those companies it was important for me to experience the web as our users would --- mostly without an adblocker, and trying to avoid overpowered hardware; my users were running mostly low end android phones, so it I've got a GalaxyS or a Pixel, what I experience is nothing like what they experience.
I'm not working there anymore, so maybe I'll do an adblocker eventually, but I'm IT support for my family, and it helps if I can se what they see, and I don't want to manage adblockers for them, so....
I don't watch much YouTube. Before the pandemic, maybe 60 minutes a week. (Now zero.) I saw maybe one 15 second commercial each week, which didn't seem so horrible that I'd need to block it.
I don’t use an adblocker at all these days, but even when I did I made sure to specifically whitelist YouTube ads. People deserve to get paid for their work and running 30 seconds of ads before a 20 minute video is a fair trade.
There are plenty of other content blockers available in the App Store too though
There's also no reason to give out 10 bucks to Google where only peanuts of that will go to the creators when you can split it across creators directly through Patreon or even a bulk donation once a year.
I "actually support" the creators by donating directly to them instead.
PS: I'm not against paying, I am a paying customer of both Spotify and Google Drive.
I use F-Droid whenever I can but only for NewPipe I started to actively avoid it. YouTube occasionally changes it's HTML and breaks NewPipe, the app starts crashing and while it usually gets fixed quickly and the apk gets uploaded to GitHub, F-Droid still takes weeks to update it. Last update was about 2 weeks late, that's when I uninstalled the F-Droid version and started installing it directly from the GitHub releases page. Unfortunately for time critical bug fixes F-Droid still has a lot to improve.
A useful feature you forgot is the AMOLED theme. Also subscribing to channels without having to use a YouTube account.
Upside is one less native app on my devices.
There is a hosted instance at https://invidio.us if you want to check it out, but for continuous usage I highly recommend deploying your own as it's much faster.
It doesn't really affect whether you can trust it or not, but it's probably unreasonable to expect them to deliver something they don't have.
> The rightmost domain label of a fully qualified domain name in DNS may be followed by a single "." and should be if it is necessary to distinguish between the complete domain name and some local domain.
Use it like outline.com, so just put layluh.com in front of any YouTube video (layluh.com/URL)
It worked as explained when I tried it in a private window.
There were also Ethernet jacks in the walls of each classroom by the teacher’s desk. I had a free period in a classroom where the teacher didn’t use the Ethernet, so I would plug in my laptop and torrent at high speed. High school sucked, but moments like that were satisfying.
For example if you use erlang you will get a TLS error like:
'TLS client: In state certify at ssl_handshake.erl:1774 generated CLIENT ALERT: Fatal - Handshake Failure\n {bad_cert,hostname_check_failed}'
I don't think it is clear from the rfc6125 what TLS clients should be doing. However, if foo.com. resolves the same as foo.com then it makes sense that a certificate for foo.com can be used for foo.com. and vice versa.
(1) why does this get created
(2) why it's not deleteable.
I just set it up with my favourite: https://einaregilsson.com/redirector/
* Include pattern: ^https://www.youtube.com/watch\?v=(.)
Redirect to: https://www.youtube.com./watch?v=$1* (check "regular expression)
you can check it's working by adding, e.g.
* Example URL: https://www.youtube.com/watch?v=dfdsfasd
(I see the code is not rendered well here, see https://pastebin.com/LVqWMgAM )
Ads on web pages are like stains on a surface.
Browsing with ublock origin is like cleaning a surface with alcohol-based product. It worked for a while.
Cat-and-mouse game tends to yield ads that bypass these. Like sticky dirt that won't go away with alcohol.
Enters uMatrix. Browsing with uMatrix is like cleaning the surface with a mix of stronger solvents, like acetone. It's much more effective, but it will more or less ruin the surface/web page in many cases.
Tuning uMatrix allows to find a mix that works. For geeks that are okay with contributing, or just clicking on colored cells in a grid, uMatrix is best. Like wolves, ads bite the laziest part of the flock, leaving the strongest clear.
I actually find the workaround quite interesting. But for me, for now, it is just simpler click skip than to type a dot on the URL.
I can live with that in exchange for otherwise free content.
The youtube page just starts with a whitened stationary placeholder where the video should play. It has a "skip" button and I don't have to wait 4-5 seconds (watching an ad video).
This is probably Youtube simultaneously testing different stuff to different people. The version I am seeing is not as bad.
Previous ads where I have to wait 4-5 seconds are already dealt with by my installed ad blocker.
Free of paywall: https://www.bloomberg.com./news/articles/2020-06-10/second-u...
paywall: https://www.bloomberg.com/news/articles/2020-06-10/second-u-...
I'd MUCH rather just have a system where I can just choose to either get ads, or to debit the amount the advertisers spent to show me an add to get an ad-free experience on a per-article or per-video basis where the provider (or host) isn't trying to bend me over compared to the deal they offer advertisers.
The problem is that would "disincentivize engagement" and no one would ever offer such a thing. Well, ok then, screw you, I'll use adblock and you get no benefit.
It's actually a slightly different problem.
Advertisers want the people who are willing to pay for stuff.
If the advertiser pays $0.03 to show you the ad and you could get out of watching it by paying the same amount, the only people watching the ad would be the most aggressive of cheapskates who never buy anything. Nobody wants to advertise to them, so there would be no point in even trying to sell advertising. But that's not even the problem.
The problem is in order to collect $0.03 you would need a functioning micropayments system that both doesn't charge prohibitively high transaction costs and doesn't invade everybody's privacy by de facto giving the bank your browsing history.
Do you not value your time? If you watch content on there on a fairly regular basis it'll easily save you 1 hr+ of your time/sanity over the course of the month.
Also some of the money goes to help support the creators of content you consume (apparently even demonetized channels).
[1] https://addons.mozilla.org/en-US/firefox/addon/sponsorblock/
Edit: Chrome Version: https://chrome.google.com/webstore/detail/sponsorblock-for-y...
As it is, it youtube-dl everything to my Pi and play it through Kodi on my TV, so the regular ads never reach me anyway.
Creators need to be paid for their creations too.
You also help support channels and content creators (apparently even if they're demonetized if you have premium).
None of the channels I care for gate their content like that. If I want to support a content creator, I can do that by letting patreon or a merchandise tshirt company take a cut, rather than giving that cut to google.