“Oh hi! Here’s some code. I didn’t write it and don’t understand it, but you should totally run it on your machine.”
Daniel Quinn
Canadian software engineer living in Europe.
- 0 Posts
- 42 Comments
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Yet another note taking recommendation neededEnglish
1·1 year agoPlus the FF extension is really full-featured. I can clip in different formats or even take a screenshot if the webpage makes clipping hard.
I didn’t even know there was a Firefox extension! I might give it a look.
What exactly is an external drive case? Are you just talking about a USB enclosure for a single drive or something that can somehow hold multiple drives and interface over something more stable than USB?
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Yet another note taking recommendation neededEnglish
21·1 year agoJoplin will do this for you. It comes ready to sync with all sorts of cloud options, as well as “local folder” which works well with Syncthing. It’s offline-first, cross-platform, and FOSS.
That’s exactly the reasoning Google has followed with its development and promotion of webp. Unfortunately, whether the website cares or not, CO₂ emissions are markedly higher due to increased client energy consumption, and that does directly affect you, so it’s worth considering the implications of using webp in a popular site.
Webp is pretty great actually. Supporting a 32bit alpha channel means I’ve actually managed to reduce file sizes of what were formerly PNGs by something like 80%, which drastically improved performance (and the size of my project). I don’t get where the complaint of image quality came from either, as it seems to perform better than JPEG at the same file size.
The worst part is that you missed the real problem with the format: the CPU overhead (and therefore the energy cost) of handling the file. A high-traffic site can dramatically increase the energy required for the images processed by the thousands/millions of clients in a single day, which places a drain on the grid and emits more CO₂ (yes, this is really a thing that people measure now).
Basically Google invented the format to externalise their costs. Now, rather than footing the bill for bigger datacentres and greater bandwidth, they made everyone else pay for decompression.
Daniel Quinn@lemmy.cato
Programmer Humor@lemmy.ml•I'm new to using Ruby and this tickled me pinkEnglish
12·1 year agofrom datetime import datetime from dateutil.relativedelta import relativedelta print(datetime.now() + relativedelta(years=10)) # 2035-08-24 12:02:49.795177
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Anubis is awesome! Stopping (AI)crawlbotsEnglish
6·1 year agoThis all appears to be based on the user agent, so wouldn’t that mean that bad-faith scrapers could just declare themselves to be typical search engine user agent?
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Anubis is awesome! Stopping (AI)crawlbotsEnglish
7·1 year agoI’ve been thinking about setting up Anubis to protect my blog from AI scrapers, but I’m not clear on whether this would also block search engines. It would, wouldn’t it?
Daniel Quinn@lemmy.cato
Programmer Humor@lemmy.ml•Production breaking driven developerEnglish
43·1 year agoI had a job interview a few weeks ago where the lead developer straight-up said that he doesn’t have any tests in the codebase because “it’s just writing your code twice”. I thought he was joking. Unfortunately he was not.
I didn’t end up getting the job, perhaps because I made it clear that I thought he was very wrong. I think I dodged a bullet.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Anyone else going basic with their NAS?English
6·1 year agoI have much the same:
- Files on the network with NFS
- Kodi on an old laptop under the TV so we can watch said files.
- Syncthing on our phones and laptops to pull films from there onto that file server.
The only difference is that I’m using a Synology 'cause I have 15TB and don’t know how to do RAID myself, let alone how to do it with an old laptop. I can’t really recommend a Synology though. It’s got too many useless add-ons and simple tools like rsync never work properly with it.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Friendly reminder that Tailscale is VC-funded and driving towards IPOEnglish
21·1 year agoYeah this was a deal-breaker for me too.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•how to set up a remote managed node for momEnglish
11·1 year agoYes. Tailscale is surprisingly simple.
# systemctl start tailscale # tailscale up
I had the same reaction until I read this.
TL;DR: it’s 10-50x more efficient at cleaning the air and actually generates both electricity and fertiliser.
Yes, it would be better to just get rid of all the cars generating the pollution in the first place and putting in some more trees, but there are clear advantages to this.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Which non-US domain registrar to use?English
2·2 years agoI’m quite happy with EuroDNS. They even include free email housing if you want it.
Daniel Quinn@lemmy.cato
Selfhosted@lemmy.world•Anubis - Weighs the soul of incoming HTTP requests using proof-of-work to stop AI crawlersEnglish
195·2 years agoIt’s a rather brilliant idea really, but when you consider the environmental implications of forcing web requests to ensure proof of work to function, this effectively burns a more coal for every site that implements it.
Daniel Quinn@lemmy.cato
Programmer Humor@lemmy.ml•Edge case? Corner case? Basket case.English
2·2 years ago
This is pretty slick, but doesn’t this just mean the bots hammer your server looping forever? How much processing do you do of those forms for example?
If you build for a containerised environment, standing up your service in Kubernetes with HPA gives you all the scalability (and potentially cost) benefits of serverless without all the drawbacks.