manicdave

@manicdave@feddit.uk
1 Post – 18 Comments
Joined 1 months ago

I know a joke about UDP.

I know a joke about TCP too.

Did you get it?

2 more...

In the UK, weed is measured in authentic receding British imperial units where an ounce weighs one less gram every year.

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.

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.

This is a good answer.

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

1 more...

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.

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.

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.

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.

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.

I don't know if this something you're deliberately trying to avoid. Apologies if you are, and I've missed the point, but

I gave up on doing anything in TK years ago. For all the effort to make stuff work in it, you might as well just use flask and have a HTML frontend. That way, you know it's going to work on everything and includes remote access as a bonus.

Edit: for a lot more power with a little bit more learning curve, look at fastapi.

Same. I still have RIF on my phone hijacking Reddit links. It's a nice little interruption as if to say "can you really be arsed with Reddit?" and unless it's a discussion about an obscure technical problem or something my wife sent me, I always click the back button.

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.

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.

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.

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.

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

1 more...

I think something like peertube would be a good solution for media, but there's obstacles to getting it deployed in terms of adoption.

The player is quite mature and does everything you could want. For servers it saves resources by being peer to peer using webRTC. For clients it handles graceful degradation and redundancy.

A way it could be implemented for other drivers servers could go like this...

I upload a video to Lemmy. My Lemmy instance forwards that video to peertube. Peertube processes the video and releases it as unlisted. Peertube sends the URL back to my Lemmy instance. Lemmy publishes my post with the peertube player iframe as a video.

The issues with this are getting app developers and instance owners to adopt the changes and getting users to understand the implications of the P2P aspect.