Ategon

joined 2 years ago
MODERATOR OF
[–] Ategon@programming.dev 2 points 6 months ago (1 children)

Ah yeah I need to refresh the data, ill do that later

[–] Ategon@programming.dev 3 points 6 months ago* (last edited 6 months ago) (6 children)

Nobody reported it as down to me, I can bring it back up

Been working on some other projects recently so havent really looked at that site much

[–] Ategon@programming.dev 3 points 6 months ago* (last edited 6 months ago) (1 children)

We just added a couple more people to have server access and ideally that situation wont happen again

That problem specifially could only be reproduced on the main server so fixes couldnt be tested without taking the entire site down and at some point after the 0.19.5 upgrade (when the issue happened) it became too late to roll the server back since there was too many activities that came in but if it happens again after an upgrade we would roll back pretty much instantly)

dbzer0 does seem like a better option for general privacy discussion though

[–] Ategon@programming.dev 2 points 6 months ago* (last edited 6 months ago) (1 children)

lemmygrad isnt defederated from but many of their communities are hidden from the feeds by default (so you dont see them unless you subscribe to them)

same thing for some other instances like lemmynsfw

ones that are more recent wont be hidden since I havent been able to due to the issues but I should be doing another hiding round soon

[–] Ategon@programming.dev 5 points 6 months ago* (last edited 6 months ago) (1 children)

Sites back. I reindexed every table although the only one that seemed to be affected by the issues was the comment table (it had duplicates I had to remove similar to what I did for the post and community tables before)

Site will slowly catch up in activities over the next couple hours so youll see posts, etc. that were made in the few hours it was down slowly come in

[–] Ategon@programming.dev 1 points 6 months ago* (last edited 6 months ago)

No votes or comments were connected to the duplicates but yeah if there was some you would move it over to the other one

The posts that had comments were the posts that were uniquely on the other community and those moved over with the post when I updated the community of the post

[–] Ategon@programming.dev 4 points 6 months ago* (last edited 6 months ago) (3 children)

Sites back, communities that previously had their community page not vieweable are now viewable

An example of this is https://programming.dev/c/a11y

Basically what I did was before the maintenance exported every single post in the post table and use a js script to check for duplicate ap_ids (checking using sql itself didnt work due to broken indices so it was always missing some). Then I generated sql statements to remove duplicate posts that had higher ids than the other posts theyre a duplicate of. Ran all those during maintenance and since all duplicate ap_ids were removed I could now reindex the table to fix the broken indices

Did the same for communities after the posts (but also did some statements to move posts from one version of the community to the other)

Site might be slow for a tiny bit as it processes the 2 hour of activities that were generated while it was down

[–] Ategon@programming.dev 2 points 6 months ago

select them all, then ctrl+/

[–] Ategon@programming.dev 2 points 6 months ago* (last edited 6 months ago) (1 children)

what frontend are you using, default lemmy one or one of the alt frontends .world has? Default frontend should handle it fine but havent checked the alts

[–] Ategon@programming.dev 7 points 6 months ago* (last edited 6 months ago) (8 children)

versions that support (lower rectangle / higher number is more recent):

usage per version:

last major browser that didnt support which was safari updated to support it 4 years ago. update your browser

[–] Ategon@programming.dev 7 points 6 months ago* (last edited 6 months ago) (1 children)

Sites back up

Got a lot of information about what it actually causing the issues which should help me automate some fixes for tomorrow + the weekend

There likely will be some more downtime tomorrow if I have time (if not itll be on saturday)

The issue is essentially a chain of issues with one needing to be fixed before I can fix the others. Some tables have duplicates entries which is preventing reindexing (since the indexes are broken). First one im going to try to fix is the post table.

I did some changes to remove a duplicate community to test which is https://programming.dev/c/photography@lemmy.world and ive managed to make it merged and now comments will show if you sort by comments in the community. Posts however still aren't showing up due to the posts table having the issue with duplicates as well. (fixing posts first so I can set all of the posts to the correct community in an automated way later for the communities)

[–] Ategon@programming.dev 2 points 7 months ago (1 children)

around half the instances I checked were affected, no idea why only them were affected. world is also currently behind in inbound federation due to the pure amount of activities its generating atm (only instance that is atm). We fixed the issues so it shouldnt be happening anymore (and I can see this post on world)

world, lemm.ee dont have them, beehaw does for example

no problem, been using it as an excuse to learn about godot as well

 

This makes it so that its disconnected from the main editor and you can drag it onto other screens

Alt text: A tooltip appearing over the godot edit saying Make the Script editor floating. Appearing near the top right of the script window due to hovering over the top right button there.

 

Alt text: Godot editor looking at the Action on Play setting opened and showing the options Do Nothing, Open Output, Open Debugger

This is yesterdays tip but ended up falling asleep before It was posted so there will be another tip today

 

Day 2: Red-Nosed Reports

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://blocks.programming.dev/ if you prefer sending it through a URL

FAQ

 

Programming.Dev is going to be going down starting at around 00:01 UTC Monday Dec 2 to attempt to fix the database corruption that happened relating to communities.

This has been affecting attempting to look at the pages for certain communities (it would end up loading forever instead of actually showing the posts for the community) and was affecting federation in some cases.

This is the second attempt to fix the issues with the first one needing to be rollbacked from due to the fix not working.

This fix could take several hours, so the outage window is going to be from 00:01 - 06:00 Dec 2.

 

Day 1: Historian Hysteria

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://blocks.programming.dev/ if you prefer sending it through a URL

FAQ

 

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

 

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

 

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.

 

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

 

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

 

Hey everyone! Recently made yet another jam game with this one being made for the 12th brackeys jam

Theme of the jam was Calm before the Storm so instantly thought of a system similar to Frostpunk where you have a city and then conditions end up getting worse as time goes on. This was then adapted to be a city that is getting more flooded over time after brainstorming with my jam team.

If youve got any feedback feel free to throw it below or on the game page. I should be eventually pushing out a post jam update based on the feedback gotten

Game link: https://team-auboreal.itch.io/floodworks

view more: ‹ prev next ›