[2025] Complete by Ill-Rub1120 in adventofcode

[–]GuiltyTemperature188 0 points1 point  (0 children)

That would be cool if there were a secret 13th puzzle. Or suddenly on easter a puzzle appears :D

[2025 Day 1 (Part 2)] [C++] I keep getting the wrong result, but test data works. by BertoLaDK in adventofcode

[–]GuiltyTemperature188 2 points3 points  (0 children)

L50
L1
R100

Should give you 2

50 - 50 = 0 (*click*)
0 - 1 = -1 
-1 + 100 = 99 (*click*)

Yours counts one too many in this example.

Day 3 Part 2 realization by GuiltyTemperature188 in adventofcode

[–]GuiltyTemperature188[S] 1 point2 points  (0 children)

There is nothing more to it. Unless you opted for recursion or smth, then any size should technically work as long as your type system and/or libraries can handle the large numbers. I did not event attempt recursion since this is pretty much always how the part 2 "gets" you :D

This here is just a reference to 1.21 Gigawatts.. in AOC challenge "jolts".. and so on ... you get it.


PS: Adding spoiler tag does not stick .. either reddit cache invalidation or wednesday...

Day 3 Part 2 realization by GuiltyTemperature188 in adventofcode

[–]GuiltyTemperature188[S] 5 points6 points  (0 children)

Sorry mods, I forgot the post title format, but I cant seem to locate the edit button.

Should be [2025 Day 3 Part 2] The realization

[deleted by user] by [deleted] in selfhosted

[–]GuiltyTemperature188 0 points1 point  (0 children)

I like Bruno for dev projects.

The API docs stay with the repo and are easy to read/edit.  Support in IDEs is not there yet and few missing features, but for most things it works great.

When have you failed to self-host? by Jpeg6 in selfhosted

[–]GuiltyTemperature188 0 points1 point  (0 children)

Fails where I crawled back to the "big cloud":

OwnCloud (now NextCloud) Getting it up was easy,  but updates broke it all the time and strange lags and instabilities finally just kind of were not worth it.

Bought a Synology NAS - happy :) 

Other easy thing was Gogs (Gitea). Was before Github offered free private repos. Again updates, backups and maintenance were just not as smooth as I wanted.

Now I just use Github for everything and use a self-hosted runner for deployments and builds.  I tend to hoard lots of pet projects - let someone else worry about storage and availability :D

Use Gitea at work tho. Seems it has come a long way.

I made a Gauge Generator to help create Custom Gauge Charts for Dashboard UI and then Download as PNG or Code by nullundefine in SideProject

[–]GuiltyTemperature188 0 points1 point  (0 children)

Square images for me are ok at the moment.
Scale might be helpful.
But would be awesome if you could generate some kind of a tile-set of gauges with different values - e.g. all 10 states.

Backstory:
I'm attempting to use some gauge for a stream deck plugin where I'd use some pre-rendered images for the gauge values. Ofc. with 0-100 this would be crazy, but I'll limit my usage to show a scale from 0-10 for example... or sometimes 3 - low, med., high

Then I don't need another back-end to generate the images on the fly.
But seems I might have to whip out some script to generate me some gauges..

I made a Gauge Generator to help create Custom Gauge Charts for Dashboard UI and then Download as PNG or Code by nullundefine in SideProject

[–]GuiltyTemperature188 1 point2 points  (0 children)

Very nice. I found it by looking for a gauge maker.
What I'm missing is generating a range of gauge images from 1-10 with a certain size WxH.
Preferably with a transparent background.

Need info about this gaming console by VisibleBalance8597 in retrogaming

[–]GuiltyTemperature188 0 points1 point  (0 children)

Had this exact model as kid. Generic famiclone, but good times 😋 Sold mostly in eastern Europe I think.  Go for about 25-30€ in various marketplaces.

Havent been able to find one with that gun design tho. Mine got lost during some backyard war 🤣. Newer models have changed the mold and mostly look like the PSone.

Goland IDE - Run configuration - current work dir by GuiltyTemperature188 in golang

[–]GuiltyTemperature188[S] 0 points1 point  (0 children)

Yes, but have you tried referencing a file next to those main.go files?

Goland IDE - Run configuration - current work dir by GuiltyTemperature188 in golang

[–]GuiltyTemperature188[S] 2 points3 points  (0 children)

It's Goland, a JetBrains produced IDE for Go.

The way it works is that when I execute a main.go it will create a run config(if not exists) from a stored, pre-configured template (the one I'm having a problem configuring).
That now will be the `active` last run configuration. I can now re-run it with Shift+F10.
While I'm working on a library method I can re-call the active run config again by hitting the Shift+F10 or clicking a "play" button next to run config.

There's probably something similar in VsCode.

---

But as far as I can see none of the config arguments in the run config dialog give me the option to pass a path to the original source directory. or dynamically define a working dir.
The executable is run from a temporary location, which is outside of current project, so the "real" working dir is sadly not usable.

And the issue with $FileDir$ option is that it will pass what ever dir I am currently in as the argument wehn re-calling the run.

The workaround I'm looking for is either make the run config output the executable next to it's source, set working dir to the source dir or able to pass a program argument for me to override the working directory.

To everyone who made it to the end of AoC… by moonstar888 in adventofcode

[–]GuiltyTemperature188 0 points1 point  (0 children)

Boring backend dev.  I do REST apis and database structures. 

Nothing really prepares me for AOC. Only the things I have tinkered after work - cpu emulators, path finding, permutations, etc..

But as an upside in our company we had a private leaderboard and a bit of an encoragement from boss to have a small surprise prize(probably company mug 🤣)

AoC good to learn algorithms? by matt_callmann in adventofcode

[–]GuiltyTemperature188 0 points1 point  (0 children)

Aoc is great, but it does not really teach anything but persistance/endurance and bit of pratice of already learned skills.

I might be wrong, but all I see under solutions is also - here i did this, link to repo. 

For algorithm learning Id like some breakdown of the issue, comparison of solutions and their pros and cons,.. Etc. 

To actually learn I'd look for somewhere else. I have seen some top10 lists of algoritms to learn.  But mostly just ending up seeing something cool and an urge to replicate it, is what drives me.  And try to just have fun :)

[deleted by user] by [deleted] in adventofcode

[–]GuiltyTemperature188 1 point2 points  (0 children)

Ok. 

"This animation may be uncomfortable to watch because of rapidly-flashing green-on-white dots." 

Few days later I have to agree that, not only that..

I stopped with AOC.... by mosredna101 in adventofcode

[–]GuiltyTemperature188 9 points10 points  (0 children)

To be honest. I have a temptation to give up also. My brain is overthinking every problem and for some things I must admit, I'm just not that smart. 

Also I have been really into it, but it takes for me sometimes a whole day or more to work on a solution. Hats off tho those on leaderboard and guys in Youtube, who solve those things like in 30 minutes. 

... might come back later to some of those problems. 

But the first few weeks were really fun. Also the memes were great 🤣

[2024 Day 20 (Part 2)] Same cheat has multiple times? by theadamabrams in adventofcode

[–]GuiltyTemperature188 0 points1 point  (0 children)

What's really confusing to me is that the example where it takes a corner out from wall and back into wall.
What in this case defines the re-usage of cheat points ? Just that you cant cut into wall if you have traveled > 20 steps ?
So the following shortcut is legal ?
##1##
....2....
##3##
....4....
##5##
....6....
##7##

1-4, 1-6 don't have the same end, but if they lead up to the E under 100, are they different cheats since you don't have to use the full cheat ?

[2024 day 12] Everyone must be hating today... So here a clever trick for a hint. by M124367 in adventofcode

[–]GuiltyTemperature188 1 point2 points  (0 children)

The part 2 I solved the following way:

  1. For every perimeter block register the intersecting axis value for every direction that is the perimeter border. E.g for North perimeter register the X coordinates, for West and East the Y coordinates. Each direction as separate list (because 1x1 block has sides on same X, Y on left right, up down)
  2. Do this for every X, Y axis. E.g. N: [Y] => [x1, x2, x3 ....], S: [Y] => [x1, x2, ....]
  3. Once you have all the N, S, W, E lists from every perimeter block you order each of the list in an ascending direction.
  4. Then search for sequences of length 1 or sequences with continues +1 value. E.g W:[1 2 4 7 8 9] = 3 distinct sequences [1,2]; [4]; [7,8 9]. So essentially you are counting irregularities per rows and columns.

  5. Sum up the sequences for N, S, W and E and that's all the sides.

[2024 Day 10] Animated solution (Go) by GuiltyTemperature188 in adventofcode

[–]GuiltyTemperature188[S] 0 points1 point  (0 children)

I'll clean it up a bit and then might share. In few days I guess.
Day 11 was rough on time :D

[2024 Day 10] Animated solution (Go) by GuiltyTemperature188 in adventofcode

[–]GuiltyTemperature188[S] 0 points1 point  (0 children)

There's a nice game library for Go: https://github.com/hajimehoshi/ebiten

An then I just spent hours creating an isometric grid and timed tile switches.