Salamander

  • 399 Posts
  • 689 Comments
Joined 4 years ago
cake
Cake day: December 19th, 2021

help-circle







  • It always surprises me when ppl don’t know about torrents. They were the only way to get things before streaming services privatized all this content, and still remain better, by using the latest encodings and quality formats for media.

    I did know enough about torrents to do practically use them to download things since the Limewire/Ares times. But what I meant is that I never actually knew how they work at a technical level - I never opened a torrent file and looked inside, or knew what a magnet link was. So, then, the topic as a whole is still opaque to me. But I did some reading today and I’m getting into it.

    So new content would be no different than the thousands of people seeding existing content.

    I see it, but I also see why this concept might be intimidating to some. I (and probably many others) make use of torrents in rare occasion when I cannot find a movie, a series, or want an album. I associate torrenting with acquiring a large file for long term storage. Streaming feels different - videos exist in my computer only while I need them, and then they leave no trace. As I understand it, a torrent-based system would actually download all (or some) videos to disk to be able to seed them.

    Still, I do think that a youtube-like torrent-based client would be successful - especially if implemented in a way that is simple for the user. An interface to find content, transparent and adjustable torrent settings with control over disk space allocation, and the torrents/magnet link management mostly hidden from the user.



  • Thanks. I don’t know much about torrenting other, and I never looked into the concept of what Magnet links are.

    It is actually very interesting! Such an elegant and simple solution.

    And I think it is even simpler than what the instructions imply… I can write the following into the terminal:

    transmission-cli "magnet:?xt=urn:btih:563cf8f2a0bdd5564ae9ef3d3302eecef639328b"
    

    And that’s enough to pull the first episode of alien earth that you shared. That unique hash is all it takes to search for seeders. Very cool.

    It is still not obvious to me who would seed when implementing the torrent-based YouTube alternative. Would it make sense that users set some torrenting ratio, a file lifetime, and a size limit, and ‘collect’ videos as they watch them so that they can seed for other users?

    All that’s needed is for people to learn how to seed their own videos, and post magnet links around.

    I’m in! Looking into it. Now I need to go make something worth sharing.


  • It seems like as of right now meshtastic devices don’t have the ability to finely control LEDs/button actions to work for my use case. Which is a shame since I was hoping I could just buy a meshtastic device that has some programmable buttons inside a pre-built enclosure.

    Maybe they do have that ability already. I am not sure. I have mostly used Meshtastic devices for communication and I have played a little bit with LoRa modules for more basic sensors and logging. Perhaps someone else knows more about the Meshtastic-specific features when it comes to telemetry and triggering devices.



  • Some of these ‘games’ do trigger real physiological mechanisms. A well-documented example is the Valsalva maneuver, where forcefully exhaling against a closed mouth and nose affects heart rate and blood pressure.

    In some games, this maneuver (or similar) is combined with a second action that normally increases blood flow demand to the brain. The mismatch between reduced blood pressure and sudden demand can cause dizziness or brief loss of consciousness due to insufficient oxygen reaching the brain.

    Actually, there is a similar effect sometimes seen during heavy deadlifts, suddenly releasing can sometimes make people pass out. There are many “deadlift passing out” videos online.

    So, those ‘games’ can work. I have known of kids breaking their teeth after face-planting against the floor while playing those games. Not a very smart thing to do.


  • If you catch a frog in between your hands and quickly flip it around, you can get the frog into a kind of paralyzed state called ‘tonic immobility’.

    Here is a photo from Wikipedia:

    Frog stuck in tonic immobility

    OK, well, many years ago I was very interested in this phenomenon and decided to look into the literature.

    I found a paper from 1928 titled “On The Mechanism of Tonic Immobility in Vertebrates” written by Hudson Hoagland (PDF link).

    In this paper, the author describes contraptions he used to analyze the small movement (or lack of movement) in animals while in this state. They look kind of like torture devices:

    OK, but, that’s still not it… The obscure fact is found in the first footnote of that paper, on page #2:

    Tonic immobility or a state akin to it has been described in children by Pieron
(1913). I have recently been able to produce the condition in adult human beings.
The technique was brought to my attention by a student in physiology, Mr. W. I.
Gregg, who after hearing a lecture on tonic immobility suggested that a state
produced by the following form of manhandling which he had seen exhibited as a
sort of trick might be essentially the same thing. If one bends forward from the
waist through an angle of 90°, places the hands on the abdomen, and after taking a
deep breath is violently thrown backwards through 180° by a man on either side,
the skeletal muscles contract vigorously and a state of pronounced immobility
lasting for some seconds may result. The condition is striking and of especial
interest since this type of manipulation (sudden turning into a dorsal position) is
the most common one used for producing tonic immobility in vertebrates.

    Apparently this or a similar effect can be observed in humans too?! In this paper, the author himself claims to have done this and that it works! I tried to locate more recent resources describing this phenomenon in humans but I could not find them… Is this actually possible? If so, why is this not better documented? Or, maybe it is better documented but understood as a different type of reflex today? Not sure.


  • Hmm this is what I think about this:

    On the device by the gate:

    Continuous loop:

    • Switch to transmit mode

    • Check if the gate is open or closed

    • Transmit the result

    • Switch back to receive mode and wait 15 seconds

    When a message is received:

    • Run a security check

    • If the message is the Open or Close command, forward it to MQTT


    On the device in the car:

    Continuous loop:

    • Decrease the timer value

    When a message is received:

    • Set connection state to connected

    • Enable the Open/Close display and set it to the received state

    • Reset the timer to 45 seconds

    If the timer ends:

    • Set connection state to disconnected

    • Disable the Open/Close display

    On button press:

    • Stop receiving

    • Generate a secure message (Open or Close)

    • Transmit the message

    • Resume receiving


    Option 1: Use an ESP32 with WiFi and a LoRa module near the gate. This device can handle both the LoRa interface and the MQTT push with relatively simple firmware. For the device in the car, WiFi is not needed, so you can choose any microcontroller and a LoRa module.

    For the interface, LEDs are the simplest. Map the GPIOs to four LEDs (Red, Green | Red, Green). For example:

    • Red and Off = Disconnected

    • Green and Red = Connected and Closed

    • Green and Green = Connected and Open

    Two more GPIOs in input mode can handle the two physical buttons for Open and Close.

    If you want a screen, there are many options. You can use a small OLED, touch screen, or colored E-Ink. The choice depends on whether the car device is battery powered or has constant power, and how much complexity you want in the code.

    Option 2: Use Meshtastic. The device by the gate can be connected to something like a Raspberry Pi, and a Python script can process incoming messages and handle the heartbeat transmissions. Meshtastic gives you some built-in security, but you still need to be careful. The difficulty is keeping track of the connected state and the Open/Close state from the heartbeat, and then mapping that to a display or LEDs. That would probably require customizing Meshtastic firmware.

    Because of that, I think writing custom firmware is easier than trying to adapt Meshtastic for this use case. BUT - I have not been keeping up to date with the newest Meshtastic versions, and I don’t know all of the sensor-related features. So it is possible that there is already some built-in method that replicates this and I just don’t know about it.


  • Salamander@mander.xyztoPrivacy@lemmy.mlSIM card VS e-SIM
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    3 days ago

    That’s a very interesting resource!

    Actually, the countries where I have been able to purchase anonymous SIM cards are in the list “As of 2021, the following countries do not have mandatory SIM card registration laws”. So, it appears like I just happen to have been lucky and I should not make this as such a general recommendation…

    Funny, about Mexico it says:

    Countries expected to implement mandatory SIM registration in 2022: Philippines, Mexico.

    I can at least confirm that I was not asked for ID when buying SIM cards last year in Mexico.

    I just looked it up and found the proposed law for Mexico on Wikipedia. It was struck down in 2022 as unconstitutional.

    So, then, I really have no anecdotes to say that it is easy in places where it is formally illegal.


  • I am not sure about France. When I search online, I often find resources stating “Yes, ID is required”, even for the countries where I know that I have bought SIM cards with cash. Well, the SIM is usually free and what I pay for is the top-up code.

    I would imagine (but I’m not sure) that if you try to buy a SIM card at an airport or at an official store from a large telephony provider you are more likely to get asked for an ID. I find them in shops that have signs with the names of smaller MVNOs. Something like what is shown in this image that I found online, where you can see signs of ‘Lyca Mobile’ and ‘Lebara’:

    But, your mileage may vary. Probably some locations are more strict than others.


  • I like it.

    I find the feature of pulling comments from cross-posts even more desirable now that I see how it interfaces with PeerTube videos, pulling the comment history as well. I still think that improvements can be made. With regular cross-posts, you have different people sharing the same link, often to a resource outside of the Fediverse. But, in the case of a federated piece of content such as a PeerTube video, the original does live within the fediverse. There is a master post, which is the video itself. I feel like there is some way to design a special kind of fedi-cross post that allows to share with a community without breaking the interaction… At least for upvotes.


  • It does get a little complicated and confusing. And for some reason it only works for some PeerTube instances, not for all…

    But, for example, let’s say I like this video: https://tilvids.com/videos/watch/c8c6a9df-121e-4a00-95c1-b7af4beb73a1

    By pasting that URL into the search box, the video is brought into the instance as a post. The channel is also pulled as a “locked” community. If anyone in the instance subscribes to that community, then future uploads to the PeerTube channel will be brought into the community.

    Look, here is the channel pulled into your instance: https://sh.itjust.works/c/bpt11_channel@tilvids.com

    If a user upvotes post, then the original video will get a “like”. If one comments, the comment will appear under the original video.

    But let’s be honest, Peertubés problem is discoverability of content.

    I’ve discovered lately that there is a Firefox extension which lets you use Youtube and signals you when a video is already on Peertube. This could be great.

    Yeah… I have been going through the effort of pulling channels and subscribing to them from within the instance so that future videos also populate the instance. It is some effort to discover these channels, but hopefully over time we can have a nice library of channels interacting with Lemmy.


  • Thanks. Yeah, I was thinking of writing this as an “enhancement” issue, but figured it might be worth to refine this before bringing it up there.

    Id love to get peertube spread throughout my feeds. My biggest reason for not using it was the fact I’d have to use a different platform and my device is already maxed out on storage. Here’s hoping it would be a quick fix!

    I’ve been looking for channels, pulling them into the instance, and subscribing to try to increase the number of channels in my feed.


  • I agree. I think that a firmware update taking several minutes to complete would be alright. If loss of service is a concern, they can keep more than one device at the tower and one acts as a backup while the other updates.

    One problem is that the data rate I quoted is the maximum capacity for a continuous stream. In practice, that is often illegal due to duty cycle rules. So, you might get 40 kbps while transmitting, but local laws may let you transmit only 1% of the time. If you choose to be obedient it will take a lot longer to get the firmware across.

    Even then, let’s say it takes a few hours to get the full firmware, I think this can be alright for sporadic firmware updates.