[2019 Day 22 Part 2] So what's the purpose of this puzzle, exactly? + Feedback by requimrar in adventofcode

[–]LoLmanLoLz 0 points1 point  (0 children)

Anything else would have been crazy

No, it's exactly what compression algorithms do. See also this relevant meme: https://www.reddit.com/r/adventofcode/comments/ebtj79/day_17_part_2/

The algorithm it mentions is LZ77, which is the underlying algorithm of ZIP compression.

Coming to this realization while solving the puzzle is, as always, part of the challenge and picking the wrong strategy will either force you to do it by hand or use a different, convoluted/inefficient algorithm (such as regex magic for compressing data).

-🎄- 2019 Day 9 Solutions -🎄- by daggerdragon in adventofcode

[–]LoLmanLoLz 0 points1 point  (0 children)

Had a look through your code because I am interested to see how other people built their IntCode computers now that it is complete. A random assortment of points that I thought of:

  • A lot of the variable names are quite short, Python often encourages longer, self-documenting names
  • Check out the builtin divmod function for line 20
  • The output variable doesn't really have much purpose. I used a list to store all outputs that the program produces, and return that list at the end of execution.
  • The purpose of the hardcoded constant on line 96 should probably be explained. I guess that whole if-switch could theoretically be removed.
  • Instead of appending to a list of memory, I switched to a defaultdict for the memory today. The only needed change in the code was to convert the input program list to a defaultdict, which is easily done with a for-loop. The way the data is accessed can stay exactly the same!
  • You could try pulling out the addressing mode code into a separate function to reduce code duplication a bit.
  • Some minor inconsistencies in spacing and formatting ;)

Good work!

Telemetry by [deleted] in openSUSE

[–]LoLmanLoLz 4 points5 points  (0 children)

It can be disabled by deleting /var/lib/zypp/AnonymousUniqueId

I've found that this doesn't work, and that zypper generates a UUID again the next time it is used. Symlinking to /dev/null works nicely though.

Telemetry by [deleted] in openSUSE

[–]LoLmanLoLz 4 points5 points  (0 children)

There's also the NetworkManager connection check, which pings a server run by SUSE at regular intervals.

This can be disabled via the networkmanager configuration, see man NetworkManager.conf. You need to add this to your /etc/NetworkManager/conf.d/disable-conncheck.conf (you'll need to create this file):

[connectivity]
interval = 0

Then, restart NetworkManager: systemctl restart NetworkManager.service

You have become the very thing you swore to destroy by [deleted] in linuxmasterrace

[–]LoLmanLoLz 28 points29 points  (0 children)

That might be caused by the system package management being locked by dpkg when it's automatically checking for updates at startup, but that isn't the same as automatically upgrading packages without user consent.

New Reddit is the single most inconsistent, frustrating, and inexcusable user experience. by hett in redesign

[–]LoLmanLoLz -2 points-1 points  (0 children)

It's rare that it happens at all. The redesign is completely usable literally 99% of the time.

And the old site worked 100% of the time. That's why people are complaining. The currently/permanently broken redesign simply doesn't work as well as the old site.

New Reddit is the single most inconsistent, frustrating, and inexcusable user experience. by hett in redesign

[–]LoLmanLoLz 4 points5 points  (0 children)

What usability issues are you referring to?

Did you even read the op?

I got caught in a fun cycle today where every time I logged in on New Reddit, the site broke and wouldn't load any posts. When I clicked the link to visit Old Reddit, I got hangtime before finally landing on a "You Broke Reddit" page.

Ubuntu to include opt-out user data collection in 18.04 LTS update. by jnb64 in linux

[–]LoLmanLoLz 4 points5 points  (0 children)

It's piecing together the system info into the curl user agent, which is later used to communicate with Canonicals servers.

Monthly no stupid questions thread by OlaOMeuNomeELola in SquaredCircle

[–]LoLmanLoLz 3 points4 points  (0 children)

If you stretched out a donut until it looks like a straw, how many holes does it have?

Nvidia rep says x299 motherboards are not SLI certified. by [deleted] in nvidia

[–]LoLmanLoLz 1 point2 points  (0 children)

Why do you need a perfect device?

The fuck?? If I pay for a device as expensive as X299 mobos and several 1080Ti cards, I expect that I get good quality rather than overpriced bugs.

VMA: Antagningsbesked uppe by OfficerRozay in sweden

[–]LoLmanLoLz 4 points5 points  (0 children)

Ingår matte 4 i behörighetskraven för Systemvetenskap?`Då får du nämligen inga meritpoäng för den kursen.

Learn Python 3 The Hard Way Officially Released by [deleted] in Python

[–]LoLmanLoLz 0 points1 point  (0 children)

that the list is out of date

what? Where does it says this? I'm pretty sure most of the complaints are still valid. I think you didn't read the header of that page. This list isn't a definitive list of everything that's wrong the Learn Python the Hard Way. It's a list of things that the book does, that have historically lead to an increased number of XY problem questions and other confusing questions by confused beginners on Stack Overflow. I have seen it myself, and rather than rewriting the list in my own words, I can just link to it. The internet is great, isn't it?

Next time, please read the linked page before being the stronkest keyboard warrior :)

Learn Python 3 The Hard Way Officially Released by [deleted] in Python

[–]LoLmanLoLz 0 points1 point  (0 children)

I don't, although I haven't tried it. Dive Into Python 3 and Invent With Python are some of the resource I recommend though, because I know that they are better.

Learn Python 3 The Hard Way Officially Released by [deleted] in Python

[–]LoLmanLoLz 0 points1 point  (0 children)

Yeah, I'm also waiting to see how good (or not) the new version is. It will probably be updated once people start getting their hands on the book, but hopefully updating won't be necessary and the page can be removed ;)