Skip Navigation

User banner
Posts
15
Comments
438
Joined
6 mo. ago

  • If you want a bit more detail, look at my edit. The functions to calculate the hot and scaled for content is now there.

  • No, it is not weird. Scaled, according to the docs, is like Hot, but less active communities' posts get a boost.

    Edit: here's a bit more detail

    The exact function to calculate the scaled rank is this one:

     sql
        
    CREATE OR REPLACE FUNCTION scaled_rank (score numeric, published timestamp with time zone, users_active_month numeric)
        RETURNS float
        AS $$
    BEGIN
        -- Add 2 to avoid divide by zero errors
        -- Default for score = 1, active users = 1, and now, is (0.1728 / log(2 + 1)) = 0.3621
        -- There may need to be a scale factor multiplied to users_active_month, to make
        -- the log curve less pronounced. This can be tuned in the future.
        RETURN (hot_rank (score, published) / log(2 + users_active_month));
    END;
    
      

    The hot rank is calculated like this:

     sql
        
    CREATE OR REPLACE FUNCTION hot_rank (score numeric, published timestamp without time zone)
        RETURNS integer
        AS $$
    BEGIN
        -- hours_diff:=EXTRACT(EPOCH FROM (timezone('utc',now()) - published))/3600
        RETURN floor(10000 * log(greatest (1, score + 3)) / power(((EXTRACT(EPOCH FROM (timezone('utc', now()) - published)) / 3600) + 2), 1.8))::integer;
    END;
    
      
  • Permanently Deleted

    Jump
  • Is it me or does Soyjak use Windows?

  • Frankly, I don't like dansup and his cocky behaviour. But if Sup ever does become reality, then it will be a real alternative. And no, Loops is not federated.

  • Rust can be a pain in the ass when you are writing the code, but once you wrap your head around its concepts, the pain will ease and you'll appreciate them.

  • Sup is one. It's fom the dev of Pixelfed. Unlike the other non-fediverse platforms the others mentioned here (XMPP and Matrix), it will use the ActivityPub protocol and will be E2EE.

  • Interstellar exists. Afaik it's the only one.

  • Mbin. It can read both Lemmy and Mastodon (and other similar ones') posts.

    It just needs some polish.

  • Do it

    Jump
  • The path in my ass (or A new beginning in my ass)

  • She has been banned from the LW instance for being a "Nazi Apologist". This is visible in the modlogs.

  • ok thanks for the info

  • Is that so with new phones? Last I tried with a Samsung S5, it did work.

  • Just take out the battery and keep it plugged in?

  • For a split second, I thought the first image with the cats was real.

  • Really. I switched over a year ago. They're much easier to manage.

  • Why would the video vectors be stored and calculated on the server though, let alone be federated? Let alone stored on the instance? These things can be calculated instantly on the device.

  • Looks cool. It's pretty similar to how I thought of doing this as well. Do you have a prototype? You might be able to adjust the algorithm if you receive feedback from some PeerTube veterans.