manicdave

joined 3 months ago
[–] [email protected] 0 points 2 months ago (2 children)

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.

[–] [email protected] 0 points 2 months ago* (last edited 2 months ago) (1 children)

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.

[–] [email protected] 0 points 2 months ago (1 children)

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

[–] [email protected] 0 points 2 months ago (1 children)

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.

 

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.

[–] [email protected] 5 points 2 months ago

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.

[–] [email protected] 9 points 2 months ago (1 children)

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.

[–] [email protected] 7 points 2 months ago

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.

[–] [email protected] 16 points 2 months ago (1 children)

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.

[–] [email protected] 79 points 2 months ago (8 children)

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.

[–] [email protected] 27 points 2 months ago

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.

[–] [email protected] 0 points 2 months ago (3 children)

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!?

[–] [email protected] 0 points 2 months ago* (last edited 2 months ago)

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.

 
 

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 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?

view more: next ›