[-] [email protected] 6 points 11 months ago

Should be posting these daily for awhile

[-] [email protected] 6 points 11 months ago* (last edited 11 months ago)

To get it actually running you need to do more than set up just the env but ive got what I needed to do here

https://share.ategon.dev/u/IzcMWM.md

If you want to allow logging in so you can test the features that get unlocked from that heres some code changes to get it working so you can bypass setting up openid

http://share.ategon.dev/u/W7IODE.md

Client will be up at localhost:5173

[-] [email protected] 6 points 1 year ago* (last edited 1 year ago)

They show up above the posts, below the navbar

A random one is chosen to show up every time someone visits the page. You can check out https://programming.dev for some examples of them (usually itll be an http status code or a quote)

Instances either put announcements there (e.g. future downtime), core info (e.g. links to frontends, donate link) or random sentences. Can only be one of the options out of those three though unless you want to delete and remake things a bunch of times to swap between them if you want everyone to see the downtime message

[-] [email protected] 5 points 1 year ago* (last edited 1 year ago)

Yeah theyre still by far #1 in terms of MAU even when not taking into account votes while everyone else is so might bump it up by another 10k

[-] [email protected] 6 points 2 years ago* (last edited 2 years ago)

the 2 million here includes the account bots that mass target open signup instances. (if an instance has no restrictions on signing up then they tend to make 8k accounts or something on it). fedidb detects that and excludes it

[-] [email protected] 5 points 2 years ago* (last edited 2 years ago)

[JavaScript] Well that was by far the hardest out of all of the days, part 1 was relatively fine but part 2 took me awhile of trying different things

Ended up solving it by working backwards by trying different location values and seeing if that can become a valid seed. Takes around 3 secs to compute the answer.

Link to code

Part 1 Code Block

// Part 1
// ======

function part1(input) {
  const split = input.split("\r\n\r\n");

  let pastValues = split[0].match(/\d+/g).map((x) => parseInt(x));
  let currentValues = [];

  for (const section of split.slice(1)) {
    for (const line of section.split("\r\n")) {
      const values = line.match(/\d+/g)?.map((x) => parseInt(x));

      if (!values) {
        continue;
      }

      const sourceStart = values[1];
      const destinationStart = values[0];
      const length = values[2];

      for (let i = 0; i < pastValues.length; i++) {
        if (
          pastValues[i] >= sourceStart &&
          pastValues[i] < sourceStart + length
        ) {
          currentValues.push(destinationStart + pastValues[i] - sourceStart);
          pastValues.splice(i, 1);
          i--;
        }
      }
    }

    for (let i = 0; i < pastValues.length; i++) {
      currentValues.push(pastValues[i]);
    }

    pastValues = [...currentValues];
    currentValues = [];
  }

  return Math.min(...pastValues);
}

Part 2 Code Block

// Part 2
// ======

function part2(input) {
  const split = input.split("\r\n\r\n");

  let seeds = split[0].match(/\d+/g).map((x) => parseInt(x));
  seeds = seeds
    .filter((x, i) => i % 2 == 0)
    .map((x, i) => [x, seeds[i * 2 + 1]]);

  const maps = split
    .slice(1)
    .map((x) => {
      const lines = x.split("\r\n");
      return lines
        .map((x) => x.match(/\d+/g)?.map((x) => parseInt(x)))
        .filter((x) => x);
    })
    .reverse();

  for (let i = 0; true; i++) {
    let curValue = i;

    for (const map of maps) {
      for (const line of map) {
        const sourceStart = line[1];
        const destinationStart = line[0];
        const length = line[2];

        if (
          curValue >= destinationStart &&
          curValue < destinationStart + length
        ) {
          curValue = sourceStart + curValue - destinationStart;
          break;
        }
      }
    }

    for (const [seedRangeStart, seedRangeLength] of seeds) {
      if (
        curValue >= seedRangeStart &&
        curValue < seedRangeStart + seedRangeLength
      ) {
        return i;
      }
    }
  }
}

[-] [email protected] 6 points 2 years ago* (last edited 2 years ago)

Top artist: Toby Fox as is usual every year for me lol (Undertale/Deltarune developer)
Top song: Nichibotsu by EX-LYD

Top 5 of eachArtists

  1. Toby Fox
  2. 2 Mello
  3. Waterflame
  4. EX-LYD
  5. Danny Baranowsky

Songs

  1. Nichibotsu by EX-LYD
  2. Ba-Da-Ba by 2 Mello
  3. RE:RUN (Original Soundtrack) by Neo Nomen
  4. Bring the madness - Noisestorm Remix by Pegboard Nerds, Excision, Mayor Apeshit, Noisestorm
  5. Apocalypse by Thomas Happ (Axiom Verge)
1
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

In the past there was some dicussion about setting up a community and putting some effort into starting to transcribe content but the effort died down a bit

I'm reviving the push to transcribe content now that we have some other image based communities popping up such as [email protected]

How this will work is if you see an image post with no transcriptions yet, feel free to transcribe it and describe what is in the image. If you are posting images you can also add transcriptions of the image in your post body.

The majority of transcriptions will follow this sort of format

Image Transcription: [Insert what category it is here (e.g. meme, discord, reddit, code)]

***

[*A description of anything that might be worth describing about the image aside from what the text says. e.g. an unusual font, background images, etc.]

[The text]

***

I am a human volunteer who transcribes posts to improve accessibility on programming.dev and you could be one too! [[email protected]](/c/[email protected])

the description and text might be repeated if theres multiple images in one and each different image description should be separated with a horizontal line using three dashes


For example for the image:

Image Transcription: Twitter


Annie, @soychotic

Every time I have a programming question and I rly need help, I post it on Reddit and then log into another account and reply to it with an obscenely incorrect answer. Ppl don't care about helping other but they LOVE correcting others. Works 100% of the time


I am a human volunteer who transcribes posts to improve accessibility on programming.dev and you could be one too! [email protected]

26
submitted 2 years ago by [email protected] to c/[email protected]

This is a spot where you can ask anything that you feel doesn't deserve its own post, no matter how small or simple it is!

7
submitted 2 years ago by [email protected] to c/[email protected]

This is a spot where you can ask anything that you feel doesn't deserve its own post, no matter how small or simple it is!

16
submitted 2 years ago by [email protected] to c/[email protected]

A community for posting memes and humor relating to linux

Yes this community already exists on lemmy.world but not all of our federated instances are federated with world (e.g. beehaw) so this provides an alternative community

Links:

49
submitted 2 years ago by [email protected] to c/[email protected]

A community for posting memes and humor relating to linux

Yes this community already exists on lemmy.world but not all of our federated instances are federated with world (e.g. beehaw) so this provides an alternative community

Links:

42
submitted 2 years ago by [email protected] to c/[email protected]

Community for posting any moments where software unpredictably malfunctions to do something it was not intended to do

Links:

118
submitted 2 years ago by [email protected] to c/[email protected]

Community for posting any moments where software unpredictably malfunctions to do something it was not intended to do

Links:

1
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Hey everyone! Ive been working on an event called safe crackers for instances to compete in

Im planning to hopefully run it around february so that its run 6 months apart from [email protected]

Essentially how it will work is each instance has a safe with a 20 digit password. Users of the instance have 100 points, and must set a 4 digit password and attempt to guess the passwords of users in other instances. If a password is guessed then they steal all of the points of the user they guessed.

To help guess passwords clues will be given which when solved will give one character of the users password. Clues will need to be solved using things like community names, post titles, etc. relating to the person

Each user only gets a certain amount of clues every so often so you would have to pool your clues with other members of your instance

If you guess a password you have a chance to get a clue for that instances 20 digit safe. If the 20 digit safe is broken into all of that instances points are stolen and that instance is eliminated


Details might differ a bit in the actual event since im still fleshing it out a bit but it should be similar

Currently thinking the top 20 instances in terms of MAU will be competing and the rest will be under a joint group for a total of 21 groups.

Ill be posting progress updates here on me constructing it and will be running a beta ahead of the actual event to test it out

52
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Less than a month until advent of code begins https://adventofcode.com/

Ill be attempting to make this community active leading up to it and during it

33
submitted 2 years ago by [email protected] to c/[email protected]

Hey everyone, I just finished up a new bot for the instance called Link

This bot aims to give suggestions for other communities in the instance to post to to start populating the more specific topic communities. It currently is triggered just off of keywords it finds in post titles.

This should help people find other communities after they post to [email protected] and encourage cross-posting in the instance since thats recommended (and standard lemmy behaviour is to show crossposts as one post in the post feed)

I added some of the communities in the instance and will go through and add in the rest of them shortly

1
Test (test)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Should be deleted, if not let me know

13
New instance taglines (programming.dev)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Hey everyone! I added some new taglines to the instance to more than double the amount of them we have. You should see the new ones popping up at the top of the home feed

New taglines were taken from the [email protected] community and https://http.cat and were currently up to 96 of them

[-] [email protected] 6 points 2 years ago* (last edited 2 years ago)

regex101 is great for building up regex expressions

weve also got a regex community in the instance at [email protected] with some stuff in it

[-] [email protected] 5 points 2 years ago* (last edited 2 years ago)

PMs would be ideal but it doesnt work across platforms. I can try to put in a check to see if someones on lemmy and switch to messaging if so but would be a bit since I have a lot of other things to finish up in my backlog of tasks for things like pangora (someone else can feel free to make a pull request though)

[-] [email protected] 6 points 2 years ago* (last edited 2 years ago)

Community created at [email protected], if you make a post in it ill mod you (the option only shows up on post options)

[-] [email protected] 6 points 2 years ago* (last edited 2 years ago)

Yeah, the goal is mainly to get everyone in the fediverse able to participate in the coding chats as long as they're respectful about it rather than being a free speech absolutism instance. An ideal scenario would be allowing users to participate in here while limiting the posts in their communities to not show up in things like the all feed if their instance is problematic

Decision should be pushed out soon, just making sure we get everything sorted out before we push anything and been a bit slower due to vacations

[-] [email protected] 6 points 2 years ago* (last edited 2 years ago)

The error its giving is an issue thats been going on with the lemmy client currently where errors are given as a string instead of json. Due to that don't know for sure which error you're running into with the image you're trying to upload

If you send me the image (I have matrix in my profile or you can link it here) I can do some testing with it to see. Worst case though you can upload to a third party service like imgur and then direct link to the image there

view more: โ€น prev next โ€บ

Ategon

0 post score
0 comment score
joined 2 years ago
MODERATOR OF