Ategon

joined 2 years ago
MODERATOR OF
[–] [email protected] 12 points 1 year ago (1 children)

The 118k is half year aka 6 months

The one around 35k is month

[–] [email protected] 3 points 1 year ago (2 children)

Dont have access to those stats in the database so adding on voting is the best I can do

Theres a post read table but its only people who have explicitly marked something as read and is way less than the post likes

[–] [email protected] 58 points 1 year ago* (last edited 1 year ago) (6 children)

For anybody interested, the monthly active users including voters is 131,150 (131k)

The one in the graph only takes into account people who have made a post or comment

Edit: The halfyear active users including voters is 253,166 (253k)

[–] [email protected] 11 points 1 year ago* (last edited 1 year ago) (8 children)

I changed the algorithms in programming.dev to take into account voters in the activity. Since stats are all calculated locally you can view any community from programming.dev to get the monthly active users including that change

e.g. https://programming.dev/c/[email protected] shows 27.8k users/month on p.d which is almost as much as the value here for all of lemmy excluding voters

[–] [email protected] 2 points 1 year ago (1 children)

Note you can put this on a separate post and should get some responses from that

(this is supposed to be for solutions only so people arent browsing it to solve help requests)

[–] [email protected] 1 points 1 year ago

Yeah tried to golf it a bit so its not very readable

Seems like the site doesn't track characters though so won't do that for future days

It basically just loops through every character on a line, if it's a number it sets last to that and if its not a number it checks if theres a substring starting on that point that equals one of the 10 strings that are numbers

[–] [email protected] 2 points 1 year ago

Started a bit late due to setting up the thread and monitoring the leaderboard to open it up but still got it decently quick for having barely touched rust

Probably able to get it down shorter so might revisit it

[–] [email protected] 3 points 1 year ago (6 children)

[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

[–] [email protected] 19 points 1 year ago* (last edited 1 year ago) (1 children)

they start out easy and get harder as time goes on. Theyre intended for all levels due to that and theres two different difficulties per day (the harder one being unlocked when you do the easy one). Basically anyone can do day 1

Heres stats for how many people completed each day last year https://adventofcode.com/2022/stats

[–] [email protected] 8 points 1 year ago* (last edited 1 year ago) (1 children)

Update: Ive make a new leaderboard with code 3316962-6587d422 that has a name that isnt just my username (for some reason AoC only lets the leaderboard be an account name) since theres not many people on it currently and so its easy to find when the events going on

If you joined the last one rejoin this new one

[–] [email protected] 11 points 1 year ago* (last edited 1 year ago)

yep, you can do them anytime after theyre unlocked and you dont have to do all of them

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

mostly different forms of edm for the 5 tracks there

  • nichibotsu - edm, chiptune
  • ba-da-ba - electronic, hip-hop
  • re:run - speedrun (drum and bass)
  • bring the madness noisestorm remix - breakbeat, edm
  • apocalypse - edm, chiptune

the majority of things I listen to are indie game soundtracks

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

Server is going to go down for an upgrade to increase capacity at 6 UTC. This could take up to 30 minutes

 

cross-posted from: https://programming.dev/post/371748

If you're familiar with the topic of awesome lists on GitHub, then you should know that there is a community driven list just for Lemmy, including a convenient aggregation of links to instances, alternative front-ends, mobile apps, libraries, tools, guides, etc.

 

Welcome to Showcase Sunday!

Are you making anything in Godot? Feel free to discuss it below or show off your progress!

 

Welcome to Screenshot Saturday! This is a day where you can show off your game in this thread with things like gifs or images of it!

30
Icon Poll Results (programming.dev)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

Hey everyone! Its been a week since I opened the icon poll so here are the results of what people voted for

As a reminder voting is handled by single transferable vote so every round the lowest voted entry is eliminated and the next choices of the people who chose that option is given points. If a person didnt rank all of the entries and doesnt have a next choice no other option gets their points

Icon Style

The icon style vote had 58 votes submitted total

Heres the final graph:

Round one is all of the first choice votes for the people who voted. For round two no unified style was eliminated and the votes were spread to other options. For round three general unified same col was eliminated and for round four all unified same color was eliminated

The overall winning option was All unified diff colors, winning with 36 final votes compared to general unified diff colors' 16 (and having by far the most first choice votes)

Ill be switching some of the communities (ones I made the icon for) over to the new style and new communities in the instance will be created with an icon in the style. Community mods though have the final say in what their community icon looks like and can choose not to follow this result if they want

Make sure to follow the branding guidelines of your programming language, engine, etc. Some require attribution if you edit the logo, some dont allow logo modifications, some dont have a default logo, etc.

If your language, etc. doesnt allow icon modifications you can do the same icon style but instead of a gradient logo you just have the logo itself, you can make a new logo for your community, or you can just have that logo

Icon Shape

The default icon shape poll had 37 total votes and was handled in the same format as the icon style

Pentagon was eliminated first and then squircle was eliminated

The final result was circle winning with 23 final votes compared to hexagon's 14

Community icons will have a circle shape in the instance by default but I will be pushing out a change eventually to allow toggling between different shapes for yourself for the communities on web

Thanks everyone for voting! You should see icons start to change in the instance soon

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

Landnama, Voidspike, Lingo, Memortal, Chillquarium, Crawlscape, Too Many Sheep, Blank Relish, SpaceshipWrecked, Somnipathy

14
Using Aseprite with Godot (gamefromscratch.com)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
view more: ‹ prev next ›