[-] Ategon@programming.dev 4 points 2 years ago* (last edited 2 years ago)

Ill be submitting some logos and another banner that im making in gimp later in the week

Edit: exams are pain, will do that before the end of the month

[-] Ategon@programming.dev 4 points 2 years ago* (last edited 2 years ago)

I dug through the code and turns out the post read table does store when its read (with number of comments when it was read stored in a person post aggregates table), it just only stores it for people from your instance so I cant get accurate numbers from all of lemmy (and why it seemed like there was a low amount)

[-] Ategon@programming.dev 4 points 2 years ago

[Rust] 11157/6740

use std::fs;

const m: [(&str, u32); 10] = [
    ("zero", 0),
    ("one", 1),
    ("two", 2),
    ("three", 3),
    ("four", 4),
    ("five", 5),
    ("six", 6),
    ("seven", 7),
    ("eight", 8),
    ("nine", 9)
];

fn main() {
    let s = fs::read_to_string("data/input.txt").unwrap();

    let mut u = 0;

    for l in s.lines() {
        let mut h = l.chars();
        let mut f = 0;
        let mut a = 0;

        for n in 0..l.len() {
            let u = h.next().unwrap();

            match u.is_numeric() {
                true => {
                    let v = u.to_digit(10).unwrap();
                    if f == 0 {
                        f = v;
                    }
                    a = v;
                },
                _ => {
                    for (t, v) in m {
                        if l[n..].starts_with(t) {
                            if f == 0 {
                                f = v;
                            }
                            a = v;
                        }
                    }
                },
            }
        }

        u += f * 10 + a;
    }

    println!("Sum: {}", u);
}

Link

[-] Ategon@programming.dev 4 points 2 years ago

added functionality for the two rules

  • getting all communities with a certain slug
  • exclude instance with domain X from above rule

was running into rate limits when trying to check every single linked instance so ive manually put in the larger ones for now

[-] Ategon@programming.dev 4 points 2 years ago

that only works for certain file types afaik. I know in 4.1 there was one time I messed with a files location and had to update manually, forget which file type it was though

[-] Ategon@programming.dev 4 points 2 years ago

Update: made !test@programming.dev and hid it from the feeds for an in-instance testing area

[-] Ategon@programming.dev 4 points 2 years ago

I've been working on a new frontend (pangora-ui) thats a similar style in terms of design. Theres some progress over in !pangora@programming.dev. These features can't be put into that though since the frontend is instance specific (lemmy-ui equivalent) and this is for all instances (join-lemmy equivalent)

[-] Ategon@programming.dev 4 points 2 years ago* (last edited 2 years ago)

Instance is chosen when theres no subcategories for what the user selected

As an example of that when someone first goes to the site they get shown the 10 main categories (technology, gaming, sports, etc.). If they select technology they are then shown the technology subcategories (programming, android, radio, general). if they select general technology that has no subcategories so they are randomly sent to one of the three general technology instances (discuss.tchncs.de, lemmy.sdf.org, or infosec.pub)

A lot of the categories only have one site it sends to but thats fine for now since it still is distributing people to the different sites based on categories

Im not looking at location data at all but in the everything/other category theres countries that can be selected to send the user to country instances

[-] Ategon@programming.dev 4 points 2 years ago* (last edited 2 years ago)

We do have a soft fork for the instance getting built up to add features on top of lemmy

Pangora is soft forked so we get changes pulled from lemmy and add new features we need for the site onto their changes (that can then push to go upstream or have for ourselves if they don't want that feature)

Pangora-UI is built from scratch to replace lemmy-ui as a frontend for the site

!pangora@programming.dev

[-] Ategon@programming.dev 4 points 2 years ago* (last edited 2 years ago)

Should be good now, accidentally ticked the box

[-] Ategon@programming.dev 4 points 2 years ago

Its already deleted, may take a bit to federate to your instance

1
27
21
1
Guess the Language: #7 (programming.dev)
submitted 2 years ago* (last edited 2 years ago) by Ategon@programming.dev to c/trivia@programming.dev

Upvote a comment to vote. Answer revealed in ~ 12 hours

12
1
submitted 2 years ago* (last edited 2 years ago) by Ategon@programming.dev to c/polls@programming.dev
1
1

Answer revealed in ~ 12 hours, Upvote a comment below to vote

1

Answer revealed in ~12 hours. Upvote a comment below to vote

1
Guess the Language: #6 (programming.dev)

Answer revealed in ~12 hours. Upvote a comment below to vote

26
submitted 2 years ago* (last edited 2 years ago) by Ategon@programming.dev to c/godot@programming.dev

Hey everyone! Just wanted to let you know that we have a matrix room now for the p.d godot community.

Matrix is a decentralized chatting app a bit similar to discord. This space will just be used for quicker chat between members of the community and to discuss things happening in it. Majority of communication and announcements will still be happening in the lemmy community but figured having a chat to go along with it would be nice

Feel free to join here: https://matrix.to/#/#p.d-godot:matrix.org

Will update the sidebar with a link to it shortly

1
submitted 2 years ago* (last edited 2 years ago) by Ategon@programming.dev to c/polls@programming.dev

And final poll of the day, will be doing 3 of these every day to start the community up. Feel free to run your own polls as well in the community as long as they relate to the instance

Upvote the option in the comments you want to vote for

[-] Ategon@programming.dev 4 points 3 years ago

Community has been created at https://programming.dev/c/books

Waited a bit until I finished up a bot for it. The bot should delete any posts or comments that contain a link

view more: โ€น prev next โ€บ

Ategon

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