/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.
- 8 Posts
- 726 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
Linux@programming.dev•Steam’s June Client Update Brings Proton Default on Linux
14·4 个月前While I agree, I think that getting more games on Linux is far more useful. When Linux is almost 3% very few studios will care much. If they can do a small bit of testing on Proton and maybe work around a bug or two they are far more likely to do that then make and test a native build. If this then gets Linux usage to 5, 10 or 20% that will drive more native builds.
So I agree that it somewhat reduces the incentive to release a native build. But I think that is outweighed by the benefits of making the Linux gaming experience better today which will have a greater impact on availability of native builds in the future.
powerofforshutdownwill work on almost every distro. Even systemd ones (they are usually symlinks but doesn’t really matter because they work).
Huh?
I’ve used Vim for a decade and I would be offended if it made any noise.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Is Firefox still the recommended browser of choice here?English
201·8 个月前I still recommend it. I’m not fully happy with the situation but for now I consider it my best option.
- I consider Chromium-based browsers out of the question as they give too much power to Google. This is already showing to be a problem with new APIs and “features” that Google is pushing into the web platform and the bigger the market share gets the more control they have.
- Web browsers are the biggest attack surface that most people have. Displaying untrusted webpages and running untrusted code is incredibly difficult and vulnerabilities are regularly discovered. I don’t yet know a Firefox fork that I trust enough to reliably respond to security vulnerabilities quickly and correctly.
So for now I am staying with raw Firefox. Not to mention that as a disto-built Firefox I have some insulation from Mozilla’s ToS. But I am very much considering some of the forks, especially the ones that are very light with patches and are mostly configuration tweaks.
kevincox@lemmy.mlto
Technology@beehaw.org•Apple unveils new Mac Studio, the most powerful Mac ever
2·8 个月前Is the limit 2 VMs or two macOS VMs? I thought it was technically a “licensing” restriction.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•PSA/HOWTO: Avoid fake mkv torrents. Avoid getting hackedEnglish
1·8 个月前Wine will mount your root folder as a Windows drive by default. So if the malware is scanning all connected drives and encrypting/uploading them you still have a problem.
kevincox@lemmy.mlto
Linux@programming.dev•Firefox 137 To Support HEVC/H.265 Video Playback On Linux With VA-API
31·9 个月前This was intentional. The goal was to discourage the adoption of non-free codecs. They were partially successful, now AV1 is very widely supported (basically only older iThings that don’t have hardware decoding support don’t support it) which is a huge win because anyone can now deliver video on the web without needing a license to a proprietary codec. I would consider this fact alone a huge benefit and worth them holding other browsers asses to the flame.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Finally got a copyright warning from ISP - ReminderEnglish
2·9 个月前Oops, I linked the wrong one and got fooled because the most recent post is actually open again.
[email protected] is more active. (Although not bustling either)
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Finally got a copyright warning from ISP - ReminderEnglish
1·9 个月前[email protected] is active enough.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Finally got a copyright warning from ISP - ReminderEnglish
3·9 个月前Yeah, public trackers definitely raise your chance of a notice by at least an order of magnitude. New content also tends to be more noisy than old content. I also found a drop by selecting “require encryption” although I can’t imagine why it would help (IIUC most of these scanners just connect to everyone in the swarm, not sniff random internet traffic.
The most likely situation is that the torrent isn’t good. I would also force a recheck of the torrent to double-check that the files on your disk haven’t been corrupted. But if that file is still saying “0 B” remaining (don’t just look at 100% as it may be rounded) after the recheck then I would bet pretty good money on a broken torrent. If this is a public tracker it is fairly common.
However even if it is broken you may be able to play by using a different players. Different apps can skip over different forms of corruption, so you may get lucky.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•Why is the IPTV scene such a toxic shit hole?English
18·9 个月前If you don’t need to watch Jeopardy live it is pretty readily available via torrents. Probably in better quality and without ads.
Sports are much harder to find. There are trackers but they are much harder to get into and I can’t attest to the completeness (I’m not really into sports) and watching it live is probably more relevant.
The main issue is accepting incoming connections. When you are behind a NAT (as most VPNs are for IPv4) you need some solution (such as port-forwarding) to make your torrent client connectable. This causes a number of issues when torrenting.
- When someone starts a download they will try to connect to the seeders. If the seeders are not connectable this will fail.
- As a fallback when the seeders notice the leachers they will try to connect to them. If the leacher also isn’t connectable this will also fail.
If neither party is connectable the download can’t happen, so you may fail to get content that you want.
This is extra relevant if you are on private trackers where seeding is tracked, has direct value and is competitive. If you are not connectable every new downloader will immediately connect to the connectable seeders and finish the download before your client even knows that they exist. (reannounces for seeders can be very infrequent, such as hourly, so it will take an average of 30min for you to notice a new seeder and try to connect to them). This makes it very difficult to acquire much upload unless there are very few other seeders.
NAT is evil, all hail IPv6.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•One of the only legal streaming sites for anime was hacked (again), and companies wonder why people resort to piracy?English
2·10 个月前Yeah, the music industry gets it and nearly everyone happily pays for Spotify as a result. Spotify is slowly enshitifying but it is still fairly convenient and has most things you would want to listen to.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•One of the only legal streaming sites for anime was hacked (again), and companies wonder why people resort to piracy?English
2·10 个月前I was on this train. I paid for Netflix for a handful of years. Really my only complaint is that I couldn’t share screenshots because of the DRM (you don’t want free advertising?). But then the selection went downhill, new seasons of shows I was watching started appearing on other services. The UI got worse and slow. I eventually started getting pissed off and was wondering why I was paying for a frustrating service.
I had a very similar arc for YouTube Premium a few years after that one, I must have been a subscriber for 5 years at least. But then it got worse and worse.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•One of the only legal streaming sites for anime was hacked (again), and companies wonder why people resort to piracy?English
652·10 个月前I don’t think this is a major “this is why people pirate”. Pirate sites also regularly get cracked (possibly more often the the average streaming service). It isn’t like bank details were leaked here so the only real difference is that in some pirate sites you don’t need a login at all.
kevincox@lemmy.mlto
Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•This is super basic but I need to find a better email optionEnglish
7·10 个月前Ah great, so a messenger run by a data hoarding giant that resists usage of anything but the proprietary non-free client.










I use https://difftastic.wilfred.me.uk/ which is well, fantastic. I have it set up as the default diff for Git and it is really nice.