okmatewanker okmatewanker 'Baby of the House' has 'experience older MPs won't have'
Jump
techtakes TechTakes A Rant about Front-end Development
Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    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.

    8
  • casualuk Casual UK I made a website that lets you use ranked choice voting in a mock UK General Election to explain how it works.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    Sorry about that. Only way I could think to stop spam was to use IP as unique id. Try disconnecting from WiFi.

    Edit: if you've already voted, it overwrites that vote with the new one. This is just the quickest laziest way of stopping someone using a bot to skew the results.

    3
  • casualuk Casual UK I made a website that lets you use ranked choice voting in a mock UK General Election to explain how it works.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    Good point. I kinda rushed it and didn't really think to check. Just bought it cause .uk is a better tld

    2
  • casualuk Casual UK I made a website that lets you use ranked choice voting in a mock UK General Election to explain how it works.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    The first step in my mental roadmap for making this more than a toy is going to be user accounts and magic links, so small orgs can manually vet people for local party branches and meetings. I'll have to look into TLSNotary.

    4
  • casualuk
    Casual UK manicdave 3 months ago 98%
    I made a website that lets you use ranked choice voting in a mock UK General Election to explain how it works. https://publicslate.co.uk/

    I don't know if this is too self-promotey to put in the more serious subs so I'm putting it here. I need to blag being able to do the django framework so I spent a week fannying about with it to make this. Feel free to mess about with it, give feedback or repost it on reddit or any other lemmy knock-offs.

    61
    19
    technology Technology I Will Fucking Piledrive You If You Mention AI Again — Ludicity
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    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.

    4
  • technology technology What's the best torrent client these days?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    It depends what you want to do with it. Webtorrent-desktop has been my go-to for a while now. It's great for videos as it'll stream mp4 in the client or open mkv in VLC within a few seconds of starting a download.

    1
  • antiwork Antiwork Wells Fargo fires employees for utilising down time.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 90%

    I'm not even mad at the employers to be fair. The problem is that so many jobs are just busy-work that exists because as a society we can't imagine decoupling labour from subjugation.

    9
  • antiwork Antiwork Wells Fargo fires employees for utilising down time.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    Yeah. That's the problem. It doesn't seem to be that they didn't do the work, it's that they did other stuff too.

    8
  • antiwork Antiwork Wells Fargo fires employees for utilising down time.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 83%

    The article doesn't say anything about productivity or targets. They got as much done as someone who manually wiggles the mouse while thinking instead of going for a walk while thinking.

    16
  • antiwork Antiwork Wells Fargo fires employees for utilising down time.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 96%

    Notice how this doesn't even have anything to do with productivity. These people were fired purely for having the gall to not respect office hours regardless of the completion of tasks.

    80
  • nostupidquestions No Stupid Questions Is it just me or do Lemmy communities tend to skew left wing? Why might this be?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 96%

    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.

    26
  • uk_politics UK Politics Rishi Sunak aide placed bet on election date days before announcement
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    How do you decide it's a good idea to risk getting a criminal record for fraud in the hopes of winning just one day's salary!?

    19
  • casualuk Casual UK Going to the pub for the first time, I have some questions [wrong answers only]
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    Never approach an empty section of the bar. Make sure to form an orderly queue that blocks the front door and the route to the toilets.

    9
  • nostupidquestions No Stupid Questions Why don't electric car manufacurers put solar panels on the car roofs?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 92%

    Solar panels on cars are thought of the wrong way. The responses in this thread really demonstrate that.

    It's true that they're kind of pointless on EVs, because they're never going to supply enough power to not need a proper charge, which makes the panels redundant.

    Where they could be useful is hybrids, sold as something that makes the engine 10-20% more efficient.

    21
  • feddituk Feddit UK Happy birthday, feddit.uk!
    Jump
    casualconversation Casual Conversation Where have you never been, but is close to you?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 94%

    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.

    15
  • feddituk Feddit UK Happy birthday, feddit.uk!
    Jump
    asklemmy Asklemmy what's your best method to remove glue from a shoe outsole?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    Search for "Hexamethyldisiloxane adhesive remover". It's designed for removing ostomy bags but it will remove pretty much any gummy sticky glue from anything with very little effort.

    8
  • memes Memes agile is far left too. I will die on this hill
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 69%

    My point isn't actually about the software.

    Agile is a limited form of workplace democracy that succeeded because the usual forms of disciplining workers couldn't be enforced to stop it. It's taken off in software because the outlay for software is so low that people can just quit their jobs and start a rival project with preferable working conditions. It's stuck around because it's significantly more effective than dictat.

    I have problems with agile too. A lot of the "ceremonies" seem more like cult rituals and bad practices are often assumed to be self justifying when they should be interrogated. (I once had a bust up in the office because I insisted in creating a future proof test framework instead of writing just what's needed at the time. I was overruled and I'm still mad about it).

    So I guess my point isn't even about the specific agile practices either.

    The point is that workers are able to self manage when they're allowed to, and agile has accidentally proven this to be the case. Other work places should adopt some of these ideas. And these ideas should be pushed further, into business decisions and HR and management. And physical communities etc. all the way up to actual government.

    5
  • memes Memes agile is far left too. I will die on this hill
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 81%

    To be honest I'd say it's more similar to anarchism than socialism. Anarchism is voluntarist whilst socialism demands state power first. Both are ideally paths to communism* though so I'm going to say "communism" 'cause it annoys the most people.

    communism as in post capitalist, post state utopia, not Stalinism*

    10
  • memes Memes agile is far left too. I will die on this hill
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 85%

    What is impact engineering though? If it's it's just agile while being cognisant of technical debt over MVPs, I don't know if it's necessarily that different.

    It seems the study was designed to sell a book and I can't find anything about what that book says. I should probably read it but the bait way it's being sold makes me resistant to paying to find out.

    10
  • memes Memes agile is far left too. I will die on this hill
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 81%

    There's some weird witch hunt going on against Dessalines on there. I don't agree with him on everything, but them trying to hound him out for being a communist, whilst using software he made because he's a communist is kinda funny.

    39
  • memes Memes agile is far left too. I will die on this hill
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 84%

    It's half way to self management.

    Software exists in a world that kind of exists outside of property. Cynics like to think that Agile got big because as some kind of fad because the kids love it, but the reality is that fully hierarchical models just cannot keep up with self organising teams.

    The old model - the model that most of the rest of the world of work still uses - simply cannot compete on a level playing field where the means of production (a cheap computer) are available to all. A landowner can stop you building your own house, but Microsoft can't really stop you building your own software, so they still have to put in work to collect rent.

    Imagine what we could accomplish as a species if the goals and distribution of resources were also decided democratically.

    22
  • youshouldknow You Should Know YSK: lemmy.ml is managed by tankies, and lead lemmy developer is a tankie
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    3 months ago 100%

    Right wing free software users love from each according to his ability, to each according to his needs until you point out what it is.

    Then you get whatever this lemmy-wide tantrum is.

    I disagree with Dessalines about some stuff but the guy is a don.

    12
  • programming Programming Is there any reason the fediverse doesn't use torrents to not ddos itself?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    The point would be that it's a failover. It takes about two seconds for the video here to start streaming from the webseed and that's probably just the wait for enough video to load in order to render. The standard peers don't really become load bearing until the server is struggling.

    3
  • programming Programming Is there any reason the fediverse doesn't use torrents to not ddos itself?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    This is a good answer.

    I'm not sure if I'd agree that instance to client is infeasible though. Peertube does it OK.

    11
  • programming Programming Is there any reason the fediverse doesn't use torrents to not ddos itself?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    I wish IPFS was a solution but it's just broken. I've got goto social running on a raspberry pi on a residential connection. If I try to run IPFS, my router crashes as it seems to try and connect to every peer on the network.

    3
  • programming Programming Is there any reason the fediverse doesn't use torrents to not ddos itself?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 75%

    I'm thinking in terms of what happens when someone on a $5 VPS hosting plan uploads a large image or small video and a thousand other instances want to grab it. The latency of a torrent isn't as much of a problem as the server falling over. This is for propogation between servers rather than when a user requests a file.

    4
  • programming Programming Is there any reason the fediverse doesn't use torrents to not ddos itself?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    You could just have a standard peertube instance hidden away on the backend and use the peertube embed code to insert videos into your microblog and pretend the Peertube instance doesn't exist.

    I've played with peertube a lot, and as long as your cross site permissions are set up correctly, you can access the player API from your host site.

    6
  • programming Programming Is there any reason the fediverse doesn't use torrents to not ddos itself?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    A torrent file and a webseed is enough. The client uses the torrent file to validate the download from a standard http source.

    The webseed can be the same source as the file your browser would normally download.

    So yeah the site needs to seed the file, but not necessarily using a torrent client.

    3
  • programming Programming Is there any reason the fediverse doesn't use torrents to not ddos itself?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    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.

    10
  • programming Programming Is there any reason the fediverse doesn't use torrents to not ddos itself?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    I've just been reading up on that. Apparently a magnet link won't work without at least one proper seed, as it still needs to download the torrent file from somewhere. https://github.com/webtorrent/webtorrent/issues/1393#issuecomment-389805621

    2
  • programming
    Programming manicdave 4 months ago 94%
    Is there any reason the fediverse doesn't use torrents to not ddos itself?

    *This is a question that comes to mind every time I spend a few days focusing on the fediverse. Normally I'm on the microblogging side, but now I have a Lemmy account it might start a proper discussion.* So, to the point, pretty much every fedi platform has similar problems with small servers taking a beating whenever a post goes viral. This ends up costing the server owner a bunch of money trying to keep their server alive while thousands of instances attempt to pull large static files from the original host's post. This recently instigated [this call to action ](https://shlee.fedipress.au/2024/call-to-action-fediverse-media-server/) on this forum. I've never seen the question of torrents answered and it feels like a lot of effort and a bit self entitled to get the ear of fedi software devs to implement torrents as a solution, so I'm putting this here. If media files were made into torrents when a post was being created, an extra object could be added to post objects like ```{... 'torrentcdn': { 'https://imagePathAsKey.jpg': { 'infohash': 'ba618eab...', 'torrentLocation': 'https://directlinkto.torrent', 'webseed': 'https://imagePathAsKey.jpg', ... } } ``` This would not break compatibility as it would just be ignored by anything not looking for a 'torrentcdn' object, yet up to date instances could use this instead of directly pulling the static files. This would benefit instances as when a post goes viral, the load would be distributed amongst all instances attempting to download the file. This could also benefit clients and instances as larger files like short videos could be distributed using webtorrent, massively reducing the load on server when many people are watching the same video. Thoughts?

    84
    20
    whitepeopletwitter People Twitter Surf Dracula®
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    I hope you like sad acoustic covers of beach boys songs, cause you're getting sad acoustic covers of beach boys songs.

    17
  • linuxmemes linuxmemes I'm writing this from a crappy laptop with 2GB of RAM and a dull screen.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    I don't mind if indie devs try something experimental that melts your computer. Like beamNG needs a decent computer but the target audience kinda knows about that sort of stuff.

    The problem is with games like cities skylines 2. Most people buying that game probably don't even know how much RAM they have, it shouldn't be unplayable on a mid range PC.

    29
  • linuxmemes linuxmemes I'm writing this from a crappy laptop with 2GB of RAM and a dull screen.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    4 months ago 100%

    I can think of a few games franchises that wouldn't have trashed their reputation if they'd have had an internal rule like "if it doesn't play on 50% of the machines on Steam's hardware survey, it's not going out"

    46