technology Technology Lebanon’s health minister says 8 killed, 2,750 wounded by exploding pagers
Jump
til Today I Learned TIL: males have 25% more neurons in the visual cortex than females
Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    1 week ago 100%

    9 upvotes and 18 downvote? yall are actually crazy if yall thought women were hunting even as much as men did.

    1
  • til Today I Learned TIL: males have 25% more neurons in the visual cortex than females
    Jump
    nostupidquestions No Stupid Questions Is it me or is everyone in hexbear insane?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    2 weeks ago 57%

    I blocked hex just days after finding out about lemmy and registering. Some super crazy shit going on there.

    4
  • opensource Open Source Yt-dlp is the best way to download videos and audio
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    3 weeks ago 100%

    Absolutely. Bar none. Here's my config for downloading best quality YT videos (but works for other sites too) if anyone wants to base theirs on it: https://pastebin.com/ba9sFURT

    35
  • technology Technology No one’s ready for this: Our basic assumptions about photos capturing reality are about to go up in smoke.
    Jump
    linux_gaming Linux Gaming Linux Scores A Surprising Gaming Victory Against Windows 11
    Jump
    showerthoughts Showerthoughts If "Master/Slave" terminology in computing sounds bad now, why not change it to "Dom/Sub"?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    4 weeks ago 100%

    Whatever you say. I hate it when people get offended by the most irrelevant things, and the word "soyflake" seems perfect for those kinds of people. My invention btw - it's a combo of soy and snowflake that just came to me as I was writing the above comment. Also, I don't really like Trump. But I also don't like Harris even more. Trump is also friendlier to crypto. Harris leans way too much into Marxist ideas for my taste and also I hate wars and the deep state (which is more related to the left than the right). But don't get me wrong, I also hate hyper-religious MAGA low-IQ hillbillys. I REALLY, REALLY like Elon tho. And I like how he is fighting the obvious left-wing bias we have in cyberspace. I'm a neurospicy guy with spicy multidimensional beliefs. Hate me, but that's how I am, at least for the moment. I'm fairly fluid when it comes to my beliefs. I'm for example pretty deep into a conspiracy arc atm, but that might change.

    1
  • showerthoughts Showerthoughts If "Master/Slave" terminology in computing sounds bad now, why not change it to "Dom/Sub"?
    Jump
    technology Technology Google pulls the plug on uBlock Origin, leaving over 30 million Chrome users susceptible to intrusive ads
    Jump
    discordapp Discord Discord consistently using 8-10% of CPU while it's "NOT running"
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    2 months ago 100%

    I've done a full reinstall (even deleted every single discord-related file I could find in multiple locations) and it's still happening.

    2
  • technology Technology Forget security – Google's reCAPTCHA v2 is exploiting users for profit | Web puzzles don't protect against bots, but humans have spent 819 million unpaid hours solving them
    Jump
    games Games [WDYP] MINECRAFT
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    3 months ago 100%

    I've actually had plans to try RLCraft for years now, but never got around to it. This makes me wanna give it a shot.

    2
  • games
    Games TypicalHog 3 months ago 50%
    [WDYP] MINECRAFT

    I just made up a new post format I believe could be useful. [WDYP] X A post where people ask others why they still play a certain game X. This could help people gain ideas and new perspectives on the game they used to play but stopped because they got bored/lost interest in it or got dragged into another game that offered a more exciting reason to play it instead. OP can add reasons why they may still play the game or they could ask what makes others still come back to it. I'll start. Why do you still play MINECRAFT? What are your goals within the game? What drives you to spend your time in this game's world? How do you play it? What makes me return to Minecraft every once in a while is a small server that is very close to vanilla Minecraft (semi-anarchy) and if you die you get banned for 24h (semi-hardcore). You can play here similar to how you would play in your own single-player world but with the added threat of someone stumbling upon your base, as well as you potentially finding someone else's base. The server has a small player-run economy. I can log into this server and just mindlessly mine for diamonds when I'm tired and need some brain time off or fly around the map hunting for bases or player-left artifacts, building automatic farms, or simply cutting trees to sell to others. I don't play it every day, but this server always makes me boot Minecraft and stop by every couple of weeks or so. If you play Minecraft, what makes you keep coming back to it?

    0
    2
    discordapp Discord Discord consistently using 8-10% of CPU while it's "NOT running"
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    3 months ago 100%

    Yeah, that's def sus, but could also be normal. I'm on Win10 spyware OS tho since I play a lot of games that just don't work on Linux atm and maybe never will (AC). I'd def be an Arch full timer if I wasn't addicted to games with malwareish anti-cheats.

    1
  • discordapp Discord Discord consistently using 8-10% of CPU while it's "NOT running"
    Jump
    discordapp Discord Discord consistently using 8-10% of CPU while it's "NOT running"
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    3 months ago 100%

    Yeah, it didn't detect anything. When I click "Open file location" it takes me to the legit Discord.exe it's also not detected on VirusTotal and it's signed by Discord the company. After multiple clean reinstalls (uninstalling + deleting all Discord files from %appdata% local and roaming) it still seems to be happening. Like... there is no way this isn't some rare Discord bug or malware. And I would really like to know which one it is, haha. After talking with some friends and family - NONE of them have this thing happening on their machines.

    2
  • discordapp Discord Discord consistently using 8-10% of CPU while it's "NOT running"
    Jump
    discordapp
    Discord TypicalHog 3 months ago 100%
    Discord consistently using 8-10% of CPU while it's "NOT running"

    A while ago I've noticed Discord using 8-10% of my CPU every time I open Task Manager. This doesn't really sound weird... Until you realize this is when my Discord client is NOT running (AKA after I fully exit out of it so it's not even present in the tray area on the right side of the taskbar). From what I can tell, it's using about 400MB of memory, no disk or network and about 8% of CPU (I have 6 cores/12 threads and that 8-10% seems to be distributed among all of them). It's possible it uses disk and network in short bursts after a long period of inactivity, but I havent spotted it doing that so far). If I were to kill Discord.exe in the task manager - it would go away and not come back until I restarted my computer. At first, I didn't think much of it - I thought maybe it's doing some background update or something, but it is constant, it doesn't go away unless I kill it. When I run Discord - another Discord entry appears in the task manager - the suspicious one seems unaffected. Both entries take me to the same file when I click "Open file location". The file seems normal and signed by Discord. What is going on here? Do you guys also have this going on or is it just me? I'm getting some really sus vibes ngl. I suspect a discord bug/unoptimized code, 3rd party malware or Discord itself secretly doing some malicious thing. UPDATE: Multiple clean reinstalls haven't helped.

    23
    17
    adhd ADHD Do you ever feel like that sometimes ?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    4 months ago 100%

    It makes that motivation that evaporated return. And it returns even stronger (like way stronger) than when I initially had it sober.

    5
  • adhd ADHD Do you ever feel like that sometimes ?
    Jump
    asklemmy Ask Lemmy How do you recover from seeing something awful on the Internet?
    Jump
    technology Technology The Internet Archive has been fending off DDoS attacks for 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/dicebearTY
    TypicalHog
    4 months ago 100%

    They should release an app where people can donate a portion of their storage to be used for redundancy in case anything happens to the archive.

    23
  • code_review Code Review [Rust] Implementation of an algorithm I invented - RANDEVU
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTY
    TypicalHog
    4 months ago 100%

    It's because I suck at explaining stuff.

    Imagine if you and a bunch of other people were huge fans or something, let's say some videogame, but there are never enough people playing that game at the same time for it to function (imagine it's a multiplayer game). Now, instead of a single person from the group remembering the game and playing it alone at random times when no one else is - imagine there was a "thing" where you put in the name of the object (in this example a game) and the "thing" spits out a number for that object each day. And every single person who has put in the same exact object (yes, kinda like a password) will get the same numbers out as everyone else. This thing outputs numbers randomly each day (but once again the random number is the same for everyone who put in the same object). There is a 50% chance the system will output 0, 25% chance it will output 1, 12.5% for 2, 6.25% for 3 and so on. Each number is twice as rare as the previous. This means we can expect a 0 about every other day on average, 1 every 4 days, 2 every 8 days, 3 -> 16, 4 -> 32, 5 -> 64, and so on. Ok, so now that we have multiple people getting the same numbers for that game each day - we can decide we'll all come online and play the game when the system gives us a number higher than a certain threshold. For someone would would like to play that game about once a month, they might set the threshold to 5 (2^5 = 32), because we can expect the system to give us a number 5 or more about every 32 days. Another person who is a more hardcore fan might set it at 3 (2^3 = 8) and another user might have it set to like 8 (2^8 = 256). So, when the number hits 5 first 2 users would be notified and might decide to come play the game. When it hits 8 (every 256 days on average), a whole bunch of people would be notified (everyone who has the threshold set to 8 or less). Instead of random people playing the game on completely random and uncoordinated days and there never being a decent amount of people online at the same time. If everyone used this system - even though the game will be dead for most of the time, on certain days, when people get notified to play it they could all come online and play it at the same time. There might be no people playing it for months, but every once in a while (let's say every 64 (2^6) days - when the system outputs 6) everyone interested could come play it together with everyone else who is using the system and the previously dead game could come back alive, if only once every 64ish days.

    This spreadsheet I made for a Minecraft server could maybe help with understanding the thing: https://bit.ly/CJRDV

    UPDATE: I have an analogy. Imagine you're tossing a coin each day for a certain object until you get tails. Now, imagine if everyone else did the same, but the coin was magical and landed on the same side for all people who tossed it. People could toss the coin each day and decide to come do something, like play an obscure game or watch their favorite movie or YT video on a day where the coins lands head a certain number of time in a row (we stop tosses when we get tails). One day we may get 0 heads (aka we got tails on first throw), tomorrow we may get 2 heads before we get tails. In a week there may come a day where we got 6 heads in a row and assuming out threshold was 6 or less - we decide to come play the game. We can do this for any amount of objects, each object can be thought of as a different password which gives completely different and independent coins tosses. So, everyone who had it set to XONOTIC (a game), would see the coin land the same way.

    1
  • code_review
    Code Review TypicalHog 5 months ago 100%
    [Rust] Implementation of an algorithm I invented - RANDEVU

    I came up with an algorithm and implemented it in Rust. I want to ensure the code is of sufficient quality before releasing it on [Crates.io](https://crates.io/crates/randevu) and [GitHub](https://github.com/TypicalHog/randevu). You can also find more info about the algorithm and its purpose there. **I'm eager to hear your feedback and thoughts and am open to ANY suggestions that may help me improve the code further. The code should be performant, clean, easy to use, idiomatic, etc. I'm also looking for potentially better names for certain variables and stuff.** Note that some things have changed a bit since the last release (for example - the hash calculation has been changed from blake3(blake3(OBJECT) || blake3(DATE)) to blake3::keyed_hash(DATE, OBJECT) to improve performance by eliminating 2 out of 3 hash calculations), but the README is still valid (and hopefully at least somewhat decent source of info about the algorithm - I did my best trying to explain stuff, but I'm still looking to improve it further in the future). The functions can panic if they are given a date where the year is outside of the 0000 to 9999 range. I'm not sure if I should make the function return the result/option instead of panicking since I'd like to avoid having to unwrap() the output and would prefer if the function returned just a simple u32/chrono::NaiveTime (but I'm open to changing my mind on this one). I'm also curious if there is a cleaner way to create a key from a date. Previously, I've been using format("%Y-%m-%d") to convert it into a string slice and copy it into the key array, but I've found that approach to be very slow (over 50% of the CPU time was being spent just for that alone), so I opted out for an approach you can see below. The newest function rdvt() is not yet documented anywhere, but I'll do my best to explain it here:   In addition to an object and a date (same as rdv()), it also takes a rank (which is a positive integer - u32). The function calculates the keyed blake3 hash of an object, using the date and a rank as key, and uses the resulting (pseudorandom) bits to generate and return a random uniform time (chrono::NaiveTime) between 0h and 24h (down to nanosecond precision). Time is calculated by taking the first bit of the hash and in case it's a binary one - 12h is added to the time, then we add 6h if the 2nd bit of the hash is a one, 3h for the 3rd bit, 1.5h for 4th and so on until the increment reaches the small enough value where it doesn't contribute anything to the time (when it becomes less than 1ns, essentially).   This means if all of the bits in the hash were zeros - time would be zero, and if they were all ones - time would be 23:59:59:999:999:999h (the very last and highest possible value). The code short-circuits and stops earlier than going through all 256 bits since we usually only need around 46 bits before the increment becomes smaller than 1ns (the code stops only in case the sum of tiny sub 1ns increments can't contribute enough to change the last digit in the total time (even if all of the rest of the bits in the hash were to be ones))):   Feel free to ask ANY questions regarding the code, the algorithm, its function, use cases, or anything else you'd like explained or clarified.   Here's the code (I haven't written any tests yet, so they are not included for review):   ```rust //! The official Rust implementation of the [RANDEVU](https://github.com/TypicalHog/randevu) algorithm //! //! # Example //! ```rust //! use chrono::Utc; //! use randevu::{rdv, rdvt}; //! //! fn main() { //! let object = "THE_SIMPSONS"; //! let date = Utc::now(); //! let rdv = rdv(object, &date); //! let rdvt = rdvt(0, object, &date); //! //! println!("Object {} has RDV{} today with RDVT0 at {:?}", object, rdv, rdvt); //! } //! ``` use blake3; use chrono::{DateTime, Datelike, NaiveTime, TimeDelta, Utc}; use itoa; /// Returns the 32-byte KEY `[u8; 32]` created from a given DATE `&DateTime<Utc>` and an optional RANK `Option<u32>` fn create_key(date: &DateTime<Utc>, rank: Option<u32>) -> [u8; 32] { let mut key = [0u8; 32]; let mut year = Datelike::year(date); let mut month = Datelike::month(date); let mut day = Datelike::day(date); let mut year_len = 4; let mut prefix_len = 0; // Add a prefix (-/+) if the year is not between 0 and 9999 (-YYYY-MM-DD / +YYYY-MM-DD) if year < 0 { key[0] = b'-'; prefix_len = 1; year = year.abs(); // Make year positive } else if year > 9999 { key[0] = b'+'; prefix_len = 1; } // Adjust year_len for very large years (both positive and negative) if year > 9999 { year_len += 1; if year > 99999 { year_len += 1; } } let full_year_len = prefix_len + year_len; // If a rank is provided, write it into the key after the date, separated by an '_' if rank != None { let mut buffer = itoa::Buffer::new(); let rank_str = buffer.format(rank.unwrap()); key[7 + full_year_len..7 + full_year_len + rank_str.len()] .copy_from_slice(&rank_str.as_bytes()[..rank_str.len()]); key[6 + full_year_len] = b'_'; } // Write the day into the key key[5 + full_year_len] = b'0' + (day % 10) as u8; day /= 10; key[4 + full_year_len] = b'0' + day as u8; key[3 + full_year_len] = b'-'; // Write the month into the key key[2 + full_year_len] = b'0' + (month % 10) as u8; month /= 10; key[1 + full_year_len] = b'0' + month as u8; key[full_year_len] = b'-'; // Write the year into the key for i in (prefix_len..full_year_len).rev() { key[i] = b'0' + (year % 10) as u8; year /= 10; } key } /// Returns the RDV value `u32` for an OBJECT `&str` on a specific DATE `&DateTime<Utc>` /// /// **RDV = number of leading zero bits in blake3::keyed_hash(key: DATE, data: OBJECT)** pub fn rdv(object: &str, date: &DateTime<Utc>) -> u32 { let hash = blake3::keyed_hash(&create_key(date, None), object.as_bytes()); // Count the number of leading zero bits in the hash let mut rdv = 0; for &byte in hash.as_bytes() { rdv += byte.leading_zeros(); if byte != 0 { break; } } rdv } /// Returns the RDVT time `DateTime<Utc>` of a given RANK `u32` for an OBJECT `&str` on a specific DATE `&DateTime<Utc>` pub fn rdvt(rank: u32, object: &str, date: &DateTime<Utc>) -> DateTime<Utc> { let hash = blake3::keyed_hash(&create_key(date, Some(rank)), object.as_bytes()); // Calculate the time using bits from the hash let mut total: f64 = 0.0; let mut increment = 12.0 * 60.0 * 60.0 * 1_000_000_000.0; // 12h in nanoseconds for (i, byte) in hash.as_bytes().iter().enumerate() { for j in (0..8).rev() { let bit = (byte >> j) & 1; if bit == 1 { total += increment; } increment /= 2.0; } // Stop once increments become too small to affect the total if i > 4 && (2.0 * increment) < (1.0 - total.fract()) { break; } } // Construct the RDVT time from total let rdvt = date.with_time(NaiveTime::MIN).unwrap() + TimeDelta::nanoseconds(total as i64); rdvt } ```

    11
    10
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFE
    FediLore + Fedidrama TypicalHog 8 months ago 44%
    My post got removed from Documentaries@lemmy.world (Confused)

    cross-posted from: https://lemm.ee/post/22957810 >Ok, so, I crossposted the documentary “Four Horsemen 2012” to !documentaries@slrpnk.net and it got removed for not being “a solarpunk themed documentary” - all good, it was my mistake I didn’t check it’s a community for documentaries with a specific there/topic. >**Then**, I wake up to the message from the SAME PERSON (Five@slrpnk.net) removing the same documentary from !Documentaries@lemmy.world which I assume is a GENERAL PURPOSE instance for documentaries about all topics. Their reason was: “I’m going to remove this documentary out of solidarity for Ukraine” even tho the documentary had NOTHING to do with Ukraine and doesn’t even mention it ONCE! I’m super confused. The rules for this community don’t even say anything about certain documentaries being allowed or not. What is happening? Ideological censorship?

    -1
    4
    lemmydrama
    Drama in the Fediverse TypicalHog 8 months ago 50%
    My post got removed from Documentaries@lemmy.world (Confused)

    cross-posted from: https://lemm.ee/post/22957810 >Ok, so, I crossposted the documentary “Four Horsemen 2012” to !documentaries@slrpnk.net and it got removed for not being “a solarpunk themed documentary” - all good, it was my mistake I didn’t check it’s a community for documentaries with a specific there/topic. >**Then**, I wake up to the message from the SAME PERSON (Five@slrpnk.net) removing the same documentary from !Documentaries@lemmy.world which I assume is a GENERAL PURPOSE instance for documentaries about all topics. Their reason was: “I’m going to remove this documentary out of solidarity for Ukraine” even tho the documentary had NOTHING to do with Ukraine and doesn’t even mention it ONCE! I’m super confused. The rules for this community don’t even say anything about certain documentaries being allowed or not. What is happening? Ideological censorship?

    0
    2
    simulationtheory
    SimulationTheory TypicalHog 8 months ago 100%
    Simulated universe, special relativity and framerate

    What if the universe is simulated and special relativity is caused by the drop/lower FPS/TPS in regions with high amounts of mass/energy (perhaps to save on computation)? You know how the time passes more slowly near a block hole? What if that's because the universe is updating/processing stuff slower in such regions compared to the emptier areas? Let's imagine a universe has a framerate. What if that framerate drops significantly near the event horizon? For example, for each update/tick/frame there, many thousands or millions of frames happen in the rest of the universe. If you were near a black hole, you would still feel like the framerate is normal and it would seem like the rest of the universe is running at a much much faster framerate and stuff there would be happening super fast from your perspective. Maybe the framerate drops so so so much near the singularity/event horizon that stuff that falls in stays still essentially from the perspective of the rest of the universe since framerate there asymptotically approaches zero and the whole thing grinds to a halt AKA the stuff never really reaches the singularity since it not getting updated/processed anymore (I mean, it is, but so rarely it would take a like an infinite amount of time for it to reach it). This is obviously just my fun lil speculation that's probably wrong, but what do you guys think? Does it make sense and if it doesn't, why not?

    6
    1
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearDO
    documentaryfilms TypicalHog 8 months ago 50%
    Four Horsemen (2012) [01:38:53] youtu.be

    cross-posted from: https://lemm.ee/post/22826213 One of (if not the best) documentary I've ever watched. If I could make everyone watch something - it would be this. >The modern day Four Horsemen continue to ride roughshod over the people who can least afford it. Crises are converging when governments, religion and mainstream economists have stalled. 23 international thinkers come together and break their silence about how the world really works and why there is still hope in re-establishing a moral and just society. Four Horsemen is free from mainstream media propaganda, doesn't bash bankers, criticize politicians or get involved in conspiracy theories. The film ignites the debate about how we usher a new economic paradigm into the world which, globally, would dramatically improve the quality of life for billions. - Anonymous

    0
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearDO
    Documentaries TypicalHog 8 months ago 83%
    Four Horsemen (2012) [01:38:53] https://youtu.be/5fbvquHSPJU

    cross-posted from: https://lemm.ee/post/22826213 One of (if not the best) documentary I've ever watched. If I could make everyone watch something - it would be this. >The modern day Four Horsemen continue to ride roughshod over the people who can least afford it. Crises are converging when governments, religion and mainstream economists have stalled. 23 international thinkers come together and break their silence about how the world really works and why there is still hope in re-establishing a moral and just society. Four Horsemen is free from mainstream media propaganda, doesn't bash bankers, criticize politicians or get involved in conspiracy theories. The film ignites the debate about how we usher a new economic paradigm into the world which, globally, would dramatically improve the quality of life for billions. - Anonymous

    4
    4