/favicon.ico is the only “default” URL. /favicon.ico is usually not an actual “icon” type anymore but PNG or JPG (but with the same URL). Other than that you need to load the HTML and check for Link headers or <link rel=icon> elements. While URLs like /favicon.png may be popular they aren’t part of any actual protocol.
- 2 Posts
- 225 Comments
Sort of…
You can just hope that
/favicon.icoworks. But 1. it often doesn’t and 2. it is often of low quality.To find a favicon on a modern site you need to load the HTML and check
Linkheaders and<link rel=icon>elements. However you likely can’t do this client-side for most sites because of CORS. So you need some server (at the very least to strip CORS). That lets you get the URL but 1. you probably don’t want to have connections to external domains for user privacy and 2. some domains will have hot-link protection so you need to fetch the image via your server. You will also want to consider different image formats and sizes to serve the right image to the right client. On top of all of this the site may be using some sort of bot protection which you will have to fight. Google is almost always whitelisted. The site may also have temporary outages so having a cache would be nice, especially if that is almost always populated before you even know the domain exists.At the end of the day you do want some sort of API. And while it isn’t complex it isn’t trivial. So it is nice to just let Google handle it. (Other than tracking risks, but you could proxy Google’s API.)
kevincox@lemmy.mlto
Mildly Infuriating@lemmy.world•Public transit in Toronto, Canada 🇨🇦 vs Chengdu, China 🇨🇳 English
2·11 months agoOnly rail. Toronto has an excellent bus network that is not pictured here.
kevincox@lemmy.mlto
Mildly Infuriating@lemmy.world•Public transit in Toronto, Canada 🇨🇦 vs Chengdu, China 🇨🇳 English
2·11 months agoThere is not even enough money for proper maintenance let alone new construction! Of course new construction looks good politically so it will get separate budgets while the existing infrastructure slowly crumbles. Look at the “reduced speed zones” that have lasted for years because the rails can’t properly be maintained.
kevincox@lemmy.mlto
Mildly Infuriating@lemmy.world•Public transit in Toronto, Canada 🇨🇦 vs Chengdu, China 🇨🇳 English
2·11 months agoBut the 1 line did get longer. So total capacity is probably higher overall. That being said the 1 line is already insufficient for the capacity needed downtown so I’m not sure making it longer helps that much. Maybe in a decade when the Ontario Line opens it will get the long needed relief.
kevincox@lemmy.mlto
Mildly Infuriating@lemmy.world•Public transit in Toronto, Canada 🇨🇦 vs Chengdu, China 🇨🇳 English
4·11 months agoIt’s a disaster until you compare it to most other North American cities. Like what is better? NYC and Montreal? I’m sure there are a few other cities that I can’t think of.
But its true that it has been neglected for decades. Thankfully that has changed a bit recently with 2 new lines being in construction. However the maintenance budget is continually insufficient to keep everything in good repair. Only new projects make your government look good I guess. (But we need both new projects and maintenance)
kevincox@lemmy.mlto
Mildly Infuriating@lemmy.world•Public transit in Toronto, Canada 🇨🇦 vs Chengdu, China 🇨🇳 English
151·11 months agoI live in Toronto and was in the Chengdu metro a month ago. I didn’t do a close inspection but it was fine. Honestly probably better than Toronto. The trains had AC and the terminals that I went to were not crumbling.
I think this meme is pretty reasonable. Toronto had a great start with subways, and still has huge ridership. They also have an excellent bus network. But the funding is very tight and the city has long prioritized inefficient personal vehicles. But it is a good point that you are comparing cities that an order of magnitude apart in population. Toronto also has 2 train lines (one light rail that should be opening within a year, and one subway that is probably 10 years away from opening) which are great to see, finally showing some investment in public transit. But the rate is nowhere near what the political will in China allows and also has a huge focus on new projects rather than keeping maintenance of existing infrastructure.
In many ways this is a wakeup call. If we wanted this level of infrastructure we could have it. But we need to actually commit rather than continuously slashing budgets so that we can let the rich pay less taxes and continue to subsidize car ownership.
Its a problem but it isn’t a major problem. I am using rspamd without any sort of exotic configuration (basically just enabling things that are provided, not my own rules) and I only get a few spam messages leaking through a week. Maybe slightly worse than GMail but not considerably slow.
IMHO the only real missing thing out of the box is contacts checking. Which is a huge thing because it is great to have reliable delivery from contacts. But my false-positive ratio is so low anyways that it isn’t a big issue and things like the
known_sendersmodule mostly mitigates it.
Yes, blocking port 25 outbound is incredibly common by default. Even on some server connections. It is probably better overall for exactly the reasons that you mentioned.
Or just don’t self-host email
IMHO this is a bit overblown. Hosting inbound is fairly easy. Mail senders (probably for the worst) are very forgiving even if your TLS cert is expired you will probably get mail. Plus senders are supposed to retry for days if you have downtime.
However it is unfortunately true that due to spam sending is a huge pain because IPv4 reputation is a huge component. Sure you can get GMail to trust your domain after a month or so of sending if you have decent volume. But other providers who you may mail once a year are just going to go off of IP reputation. However email was basically designed for forwarding and you can use a service like AWS SES to forward your email from a trusted IP pretty easily. If you are low volume (like personal mail) there are tons of services that will do this for free.
kevincox@lemmy.mlto
Mildly Infuriating@lemmy.world•What is this shit? I have to be signed in to watch any video now?English
56·11 months agoThis helps protect our community.
I hate when companies lie to my face. Watching a video anonymously is not harming anyone except maybe a fraction of a cent of cost to Google. If I was posting a comment or something maybe, but oh, you already need to be logged in for that.
kevincox@lemmy.mlto
Selfhosted@lemmy.world•What are the ramifications of letting an old domain that was used for email go back into the market?English
24·11 months agoThe owner of the domain owns DKIM. It offers no protection against that.
The only actual protection would be PGP because it provides your key as an identity rather than the domain itself.
kevincox@lemmy.mlto
Selfhosted@lemmy.world•What are the ramifications of letting an old domain that was used for email go back into the market?English
20·11 months agoThe purchaser of that domain will be able to send and receive email from your addresses.
The biggest concerns here are probably:
- The new owner taking over accounts that use the old email (either via password reset or email or by contacting support).
- Sensitive personal information intended for you being sent to the new owner.
- Someone spearphishing people you know from your old email address.
kevincox@lemmy.mlto
Mildly Infuriating@lemmy.world•Belkin is killing off parts of the Wemo LineEnglish
1·11 months agoEV is negative. Difficult decision.
kevincox@lemmy.mlto
Mildly Infuriating@lemmy.world•Belkin is killing off parts of the Wemo LineEnglish
7·11 months agoYeah, if you can reflash it you are completely in control. This is the optimal state.
kevincox@lemmy.mlto
Selfhosted@lemmy.world•"Recommended System Requirements" for buying a used PC for selfhostingEnglish
1·1 year agoYeah mp4s with h264 will play basically anywhere if the audio format is a common one. Must be the most supported setup.
kevincox@lemmy.mlto
Selfhosted@lemmy.world•"Recommended System Requirements" for buying a used PC for selfhostingEnglish
2·1 year agoI’m pretty surprised that all of the audio formats work. I’m not so surprised that the TV has h265, although maybe a bit surprised that it is exposed to the browser. The container support is also pretty surprising. Unless your MKVs are so simple that they are effectively WEBM.
Or maybe it pops the link out of the browser into a dedicated media player which has decent codec support.
iDevices do expose h265 in the browser, but the container support is still a bit surprising. But then again WEBM is basically MKV, so maybe that is why it tends to work.
kevincox@lemmy.mlto
Selfhosted@lemmy.world•"Recommended System Requirements" for buying a used PC for selfhostingEnglish
3·1 year agoThere are a handful of common reasons.
- The client doesn’t support the formats. Browser clients are notoriously picky not supporting some common video (for example few browsers support h265 and it isn’t generally considered web-safe) and audio formats. But embedded devices may also cause trouble if they don’t have enough CPU to do non-accelerated playback and don’t have hardware support for the codec used.
- Playing at a lower bitrate. In that case you can transcode at the fly.
- Remuxing. This is things like the moov atom where the actual codecs are supported but not the container or exact packaging of the file.
But yeah, especially if you are using a player with wide format support you may not need it.
kevincox@lemmy.mlto
Selfhosted@lemmy.world•"Recommended System Requirements" for buying a used PC for selfhostingEnglish
3·1 year agoIMHO for 2 drives you don’t want redundancy. (I assume that is what you want RAID for, mirroring?). The per-drive failure rate is so low that you are unlikely to encounter it and nothing you are running seems particularly availability sensitive. Having a bit of downtime to rebuild in the very rare case of a drive failure is fine. The extra storage space is way more valuable.
kevincox@lemmy.mlto
Selfhosted@lemmy.world•"Recommended System Requirements" for buying a used PC for selfhostingEnglish
61·1 year agolol, I assume he means 1000 Mbps aka 1 Gbps which is reasonable. Maybe even a little low as transferring files around fast is nice.




Reverse DNS is different than static IP.
But yes for outbound email, if you can’t control reverse DNS you will have pain. (Inbound is totally fine) You can in theory just use whatever hostname the ISP’s reverse DNS resolves to however you will get some spam score (or be rejected) as it doesn’t match your “from” domain.
Outbound email is a huge pain really no matter what. Unless you have a long-term lease on the IP and it isn’t in a bad network you really have to pay someone else if you want reliable delivery.