• 3 Posts
  • 25 Comments
Joined 1 month ago
cake
Cake day: May 28th, 2024

help-circle
  • I’ve been forced to do react for years and I still don’t like or understand it. Most times plain JavaScript is easier and quicker to write and quite maintainable if people can resist the urge to take the piss with nested anonymous functions.

    I honestly can’t get my head around the idea that people can hit the ground running with react, but can’t write unabstracted JavaScript. It’s like a MotoGP rider not being able to ride a push bike.






  • it’s pretty good for things that I can eye scan and verify that’s what I would have typed anyway. But I’ve found it suggesting things I wouldn’t remotely permit to things that are “sort of” correct.

    Yeah. I haven’t bothered with it much but the best use I can see of it is just rubber ducking.

    Last time I used it was to asked how to change contrast in a numpy image. It said to multiply each channel by contrast. (I don’t even think this is right and it should be ((original value-128) * contrast) + 128) not original value * contrast as it suggested), but it did remind me I can just run operations on colour channels.

    Wait what’s my point again? Oh yeah, don’t trust anyone that can’t tell you what the output is supposed to do.


  • There are sections of both the right and the left that have anti-authoritarian tendancies.

    The libertarian right tends to view things purely in terms of government over reach, whilst the left tends to view things in terms of the power of capital.

    Leftists saw Facebook pushing propaganda for the highest bidder, Reddit trying to be safe to sell to investors and twitter basically becoming a project to reflect Elon Musk’s personal opinions.

    Out of that came a bunch of attempts at creating new social networks. The right wing attempts were not cognisant that the aforementioned were the natural result of trying to get rich off it, while the left attempted to make it impossible to get into that position.





  • Almost went to Stonehenge after visiting family down south. They wanted £60 and wouldn’t let us take the dog in.

    You can apparently get in cheaper if you’re a member of English Heritage. So we looked online to see if it was a fair deal and what other sites membership grants you.

    Turns out that English Heritage are a bunch of robbing bastards (they literally stole seahenge!) that enclose our historic sites in order to charge money for access to them.

    I won’t be visiting if I have to pay them.









  • I don’t know what that post is about. It’s not possible to change the contents of a torrent. The torrent file itself is a list of checksums which validate byte ranges within the files being downloaded. If a client downloads a poisoned piece, it discards it and deprioritises the seed it got it from. Perhaps they’re transcoding a file, whilst still seeding the original.

    Torrents can work as a CDN for static files, because the downloader has to validate that the file is the same one as on the server using the checksums in the torrent file.