[-] Ategon@programming.dev 13 points 1 month ago* (last edited 1 month ago)

In addition to what grant said. Cursors dont show and arent sent when logged out or when on mobile and are anonymous so people can't tell whos cursor is who. Just a fun thing to add some activity to the canvas and make it feel more like a community instead of you placing pixels into a void

20

Advent of Code is an annual Advent calendar of small programming puzzles that can be solved in any programming language you like.

Puzzles have a backstory and then a collection of different inputs with people getting a random input and needing to submit the corresponding output for the puzzle and their input to successfully complete it.

Puzzles start easy and get harder as the days go on. Every day has two different puzzles in increase in difficulty with you getting access to the second puzzle after solving the first.

Puzzles are released every day at midnight ET and can be completed anytime after they are released (but people who solve them quicker after they're been released get more points for the site leaderboard).

https://adventofcode.com/


What can I post here?

Anything relating to the event! Whether that be a meme, asking for help, sharing solutions, etc.

Every day a megathread will be posted that solutions to that day should go into. In the megathread you can post code using code blocks or by linking to repositories or pastebins.

To make a code block make three backticks, make a new line and put the code on lines, then put a newline and do three backticks on that

e.g.

```
console.log('Hello World')
```

becomes

console.log('Hello World')  

If you want a spot to post code externally (e.g. if it is too large or you want to have a spot to store it) we have a forgejo instance and an opengist instance

you can find them at https://git.programming.dev/ and https://blocks.programming.dev/


How should I format my post titles?

Try to keep titles in this general format:

[help, etc. category if applicable] [YEAR Day # (Part X)] [programming language if applicable] Post Title

For example:

[2023 Day #5 (Part 3)] [Rust] My attempt at a solution

Another example:

[Help] [2023 Day #2] What does this sentence mean

This helps people avoid spoilers and lets people use it as an archive by searching if they find out about the event in the middle and are starting from the beginning

54

This makes it so you can see details about things in the scene without needing to manually swap

113

This makes it easier to print out multiple things at the same time without needing to do a bunch of string concatenation

Easy way you can remember it is thinking s for space and t for tab. When you want to print normally just call print. Otherwise add s for space or t for tab on the end of the function for the separators.

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

Changing this to the lowest value (0.01) makes suggestions always appear instantly for really quick coding

I'm continuing my tip series with some more tips (ended up stopping it before since I got busy with some projects). Will have a goal of having tips at least until the new year

20
20

We recently did an update to 0.19.5

Along with this came a bug that makes hidden communities not function properly so that they will still appear in the all feed

I have reported this on the lemmy repo and once the devs fix that bug our all feeds should go back to normal (but for now content such as politics and bot communities may appear for a bit)

Heres the bug report if anyones interested in that https://github.com/LemmyNet/lemmy/issues/5074

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

.ml and hexbear have been around much longer than the other instances so have built up more subscribers

100
Praise my GitHub profile (praise-me.fly.dev)
submitted 2 years ago* (last edited 2 years ago) by Ategon@programming.dev to c/programming@programming.dev

There was a roast my github profile site going around recently so as a counter to that someone made a praise my github profile. Enter your profile and get an AI complimenting you

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

Since mods and admins can't control what gets hashtagged it can hashtag the completely wrong things

For example we have a community called c/loud. This is a cloud community but will be hashtagged with #loud

We also have a community called c/meta and similar other communities but the hashtag should be something similar to programming.dev meta since meta itself doesn't make sense. Currently its assuming you know what scope of meta you're in due to it being attached to the instance but hashtags are free for alls so the hashtag is going to be impossible to follow (other communities that fall within this are comics, events, books as they are programming or programming.dev specific which is currently assumed due to the url)

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

edit: Site is back up, pictrs is still upgrading so uploads may fail or be slow until the upgrade is done.

(all the alt frontends are also currently down so that pictrs can be upgraded faster)

Edit 2: seems to be done

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

Sorry for the small delay on this, was competing in a gamedev competition which took up most of my weekend

The way I instantly make the variables is using tip #1 I posted https://programming.dev/post/17169923

1

Made a small arcade-like game for a recent gamedev competition

Every time you hit an edge of the screen you get smaller and you need to collect balloons to increase your size so you can survive longer

Entire thing was made in 12 hours and people voted on 10 different things I was forced to include into the game in some way (balloon, pigeon, sword, fish, cloud, trilobite, dolphin sfx, music I used for the title screen, trumpet fanfare sfx, pigeon sounds)

Enjoy, if youve got any feedback feel free to let me know and I can take that into account if I do some post jam work or for future games like this I make

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

Programming.Dev

Im going to be trying to set up a tech corner similar to what Programming.Dev did last year with the dark theme zone. Any groups who want to join on around the area feel free to reach out and we can do stuff like merge templates

One to one: https://canvas.fediverse.events/#x=378&y=423&zoom=27&tu=https%3A%2F%2Fbytes.programming.dev%2Ffiles%2F1b2ba85c-98c7-4f5c-bb5e-47840aa24f1f&tw=66&tx=320&ty=420&ts=ONE_TO_ONE

Dotted: https://canvas.fediverse.events/#x=378&y=423&zoom=27&tu=https%3A%2F%2Fbytes.programming.dev%2Ffiles%2F1b2ba85c-98c7-4f5c-bb5e-47840aa24f1f&tw=66&tx=320&ty=420&ts=DOTTED_BIG

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

I mainly use linkstack https://linkstack.org/, git repo: https://github.com/LinkStackOrg/LinkStack

Theres an instance for the programming.dev instance if you want an example of how it looks https://me.programming.dev (weve got a space-like theme on it)

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

Its happening once a year so likely in the summer

Im working on another event that may happen next month though depending on if I finish the rest of the things to do in my queue of projects !safe_crackers@programming.dev

(so this and canvas will be 6 months apart from each other)

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

There is technically a roundabout way you can do it although it involves a bit of actions

I havent fully tested it so may need some variation of the actions to work but:

  1. Post gets created as normal in the instance
  2. Post get removed through the lemmy ui so that it sends a removal federation action and removes the post everywhere it was federated to
  3. Post get unremoved in the database by changing the removed value to false. As this is changing the value itself rather than sending an action this does not federate and only unremoves it for the instance itself
[-] Ategon@programming.dev 13 points 2 years ago

Looks like a camelCase variable to me so its likely just a temporary word they replace with the actual bot name but something went wrong and it didn't replace it properly leading to the temporary text showing instead

There could be some other reasons but the actual cause cant really be determined without looking at the source code

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

Starting off banner submissions with a quick banner generated from midjourney

Example view of it in lemmy explorer

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

Theres nothing coded in lemmy to do that, just something someone probably said as a joke.

I found the comment you were referring to and it was due to the article not being visible outside certain countries (I assume its just visible in the US and Canada since I can see it here in Canada)

For another country:

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

They defederated from both programming.dev and sh.itjust.works recently since they held a vote and they had enough upvotes to do so. Reasoning for programming.dev was due to people in our instance coming in there with supposedly bad takes but I feel like thats a major overreaction to block an entire instance of people with different views (with the different views appearing due to it not being political at all inside the instance) due to a couple people going in there instead of just moderating the individual users. The message to defederate from us also only has 13 upvotes and was both programming.dev and sh.itjust.works which I feel isnt really a majority opinion of their instance if they want one since it confounds the upvotes of two different instances and is a relatively low amount for their monthly active users

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

The print call there is from python 2. I can do some editing to add in the brackets in a bit

view more: ‹ prev next ›

Ategon

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