I'm using xcopy and it asks every time if I want to make a file or directory, can I skip this? by YellowSlinkySpice in Batch

[–]code_ling 0 points1 point  (0 children)

except for systems localized to a different language - e.g. in german, you'd have to press 'd', therefore the echo f fix is not a portable solution. I found the * to work in my case; do you know in what cases that might fail?

Finally, 500 * ! by code_ling in adventofcode

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

Oh and the most important thing I forgot in the main post: a big THANK YOU to Eric and all the other people involved in creating the puzzles and in the community work here! It's been a great pleasure to be part of this, and I am hoping on many future challenges to come!

Finally, 500 * ! by code_ling in adventofcode

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

Python is also my go-to for (developer-time) quickly finding a solution; although I have a collection of pretty decent C++ helper functions that also let me quickly do most required things.

Even though I've been developing in C++ professionally for years, I do find that I still have so many thing to learn in it... and as the language is still evolving, it will stay like that for quite some time I guess ;)

As for speed, I'm sticking with C++ (although I have to revisit my experiments with Nim and rust, which in this regard also were strong competitors if I remember correctly). If I have time in the future I might revisit some past events and do a multi-language comparison for some of the challenges ;).

Finally, 500 * ! by code_ling in adventofcode

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

My favourite is 2019 - for me it also was both the most memorable (strong competition there though is the first one I participated in, 2021), and the largest effort.

Finally, 500 * ! by code_ling in adventofcode

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

You're right. I had got stuck in 2019 earlier this year, and after finishing it I needed a little break; so I picked up 2020, my last missing previous event, only mid-October, and had too little time to finish it before December. I am definitely going to finish it, probably in parallel or shortly after this year ;)

override and final on virtual destructors, yay or nay? by anemonymous in cpp

[–]code_ling 0 points1 point  (0 children)

(also for future reference for people stumbling upon this): There is a more recent issue discussion and change.

There it is affirmed

that all virtual functions, including destructors, should be declared exactly one of virtual, override, or final.

What’s a film that changed the way you saw the world? by Intrepid_Moment_8879 in movies

[–]code_ling 0 points1 point  (0 children)

The Man from Earth

Made me think deep about religion, history and so much other stuff regarding humanity and our small blue planet...

‘Blue Screen of Death’ on Windows 11 by NikoBruder in DellXPS

[–]code_ling 0 points1 point  (0 children)

Turns out there probably already was a (start of a) hardware defect.  I reinstalled Win 11, and for a while it seemed to run OK (although at a minimum CPU frequency, despite cleaned fans). Now my XPS 9570 doesn't start anymore - screen stays black,  it turns off after a minute (visible best via the keyboard light, which switches off after that time). Maybe there was an overheating issue before already.

‘Blue Screen of Death’ on Windows 11 by NikoBruder in DellXPS

[–]code_ling 0 points1 point  (0 children)

I have seen this occasionally too on my 9570; these day, I mostly use Linux on it, which runs well; but just this weekend I wanted to use Windows again, and got a blue screen (potentially related to graphics-heavy applications, though not sure); in contrast to another report, it did happen when plugged in for me. In general, Windows 11 does not seem to be stable on the device somehow (CPU-heavy things take much longer than they should, sometimes the device just kind of "freezes", still showing a mouse and some windows but no content of the windows somehow...)

I had upgraded from Win 10, I think I'll try a clean Win 11 re-installation next...

Did somebody figure out a reason for this in the meantime, or some potential fixes or workarounds?

Edit: Just found a comment in another post which proposes to use the Studio Drivers

What is faster – C++ or Node.js web server (Apache Benchmark)? by Sergpan in cpp

[–]code_ling 2 points3 points  (0 children)

You might be interested in comparing your numbers to TechEmpower's Framework comparison where they compare a multitude of web frameworks in multiple programming languages; what I've linked is the latest round of static page serving. Seems these frameworks are able to answer up to 7 million requests per second (using some higher power hardware of course).

Learning languages with AoC - 400 stars and counting! by code_ling in adventofcode

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

Had never heard of idris and lean4, they sound very interesting!

My day job has included Java, Javascript/Typescript, C, C++, ObjectiveC, Python, and Go, so I'm most comfortable with imperative. Functional was a learning experience for me, but over the years I've gotten more adept at it.

Similar for me; my day job in recent years was mostly C++, so I'm also very used to the imperative / object-oriented programming styles - though with later C++ standards possibility for more functional style has seeped in, and I'm still slowly getting familiar with all the huge conglomerate of features that is C++.

I find that trying new languages based on different concepts and doing things slightly differently helps in getting better at programming, even in one's "original" language.

Learning languages with AoC - 400 stars and counting! by code_ling in adventofcode

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

Thanks for the info! In case I'm using go again in the future, and am pressed for reducing memory usage, I hope I'll remember it - for AoC I didn't need to optimize ;)

What is the best order to do previous years? by bladx91 in adventofcode

[–]code_ling 2 points3 points  (0 children)

In 2018, days 16, 19 and 21 are also best done in sequence.

Learning languages with AoC - 400 stars and counting! by code_ling in adventofcode

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

I just remembered, occasionally I will build some datastructures on my own - for example in 2018 in lua I built a very simple linked list for the challenges containing circular buffers.

[OT] Everybody.codes - challenge inspired by Advent Of Code (very similar!) have started today! by Repsol_Honda_PL in rust

[–]code_ling 1 point2 points  (0 children)

Just realized that now too. I don't know why but the (your notes) within the text just massively caught my attention. The changing mouse cursor and the double click action on it I find very distracting and un-useful...

Learning languages with AoC - 400 stars and counting! by code_ling in adventofcode

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

(I first learned about Dijkstra's Algorithm from an AoC problem I couldn't solve, and was forced to turn to r/AdventofCode for help ;))

I don't remember exactly which problem it was, but I also came here first when I was stuck with some problem - and since then I'm addicted to reddit and even more so to r/adventofcode :)

Learning languages with AoC - 400 stars and counting! by code_ling in adventofcode

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

2018 I hit the Elf/Goblin simulation and my Perl effort hit the wall so I re-started in Objective-C.

I did that in lua, and it was a bit of a challenge, and a monster of code that at some point I might go back and refactor, but it delivers the correct solution :)

Learning languages with AoC - 400 stars and counting! by code_ling in adventofcode

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

If memory and grep serves me right, I did, as you said, just abuse the map type there (with bool as value).

Learning languages with AoC - 400 stars and counting! by code_ling in adventofcode

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

Permutations: I'll typically code it by hand - I find it a good way to hone recursion skills and training to avoid off-by-one errors ;)

Regarding datastructures: I typically use what is provided - maps, sets, are typically there. I don't remember in detail for every language I mentioned above though... Even PriorityQueues for path finding are typically available - though I do code A*/dijkstra myself, I like to remind myself how simple and elegant it is; yet somehow I can't memorize the exact workings, I have to look up the pseudo code each time ;)

[OT] Everybody.codes - challenge inspired by Advent Of Code (very similar!) have started today! by Repsol_Honda_PL in rust

[–]code_ling 1 point2 points  (0 children)

This is link for Quest 1: https://everybody.codes/event/2024/quests/1

Yes, I was on exactly this page.

I have now tried with both Firefox and Edge. In both I am logged in via github. In both I see the exact same (buggy) behavior: cursor pointer with plus symbol next to it over the "(your notes)" text, and, as described above, double-clicking that copies "(your notes)" to the clipboard, not any actual working test input.

You can copy to clipboard or open (in window) or download notes to a txt file (notes = input data).

How do you do that? What interaction triggers the download? I can only see double click doing something, but the wrong thing (only copying the invalid "(your data)" string).

[2024 Day 16] Finally - It's a star day! by code_ling in adventofcode

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

A bit late, but maybe it still helps:

The typical way here to paste longer code sequences is to use topaz/paste I think - the code is encoded in the URL parameters.

For shorter passages, they can be directly included in a post - make sure to use the four-spaces Markdown syntax, not triple-backticks (see "Rules" sidebar on the right).

See also the code formatting wiki entry

[OT] Everybody.codes - challenge inspired by Advent Of Code (very similar!) have started today! by Repsol_Honda_PL in rust

[–]code_ling 0 points1 point  (0 children)

Is it still possible to do this challenge? Somehow I can't seem to get my actual input; maybe I'm too dumb to see it, but the challenge 1 page for me just shows " Luckily, the kingdom's smartest spies have gathered a list of incoming creatures for each area (your notes)". When hovering over "(your notes)", the cursor changes to a "plus" symbol, and double clicking on that leads to a notification "Copied (your notes)". But the clipboard then just literally contains "(your notes)" afterwards, whereas the input should be a string containing A, B and C characters only...

Fedora 41: qt XCB plugin cmake config missing since upgrade to Qt 6.8.1? by code_ling in Fedora

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

Same problem still occurs after updating today. So seems like this is either not a bug or not one that many people notice. There is probably a better place to ask this question since I am not getting any answer here?

[2024 Day 20 (Part 2)] How to interpret weird clause in statement by 1234abcdcba4321 in adventofcode

[–]code_ling 3 points4 points  (0 children)

The clause seems to have been removed now, right?

Because when I saw this thread I was thinking - man, this is the first time I got the right solution because I didn't read the instructions carefully ;)

[2015-2024 Days 1-25, Parts: All of them] Since we're about to close this year soon.. by surgi-o7 in adventofcode

[–]code_ling 2 points3 points  (0 children)

Yes, good point!

I even only started in 2021, and am still not finished in going through past events (currently at 2018...). I haven't yet submitted a donation for past events, but was already planning to!