Deep & Minimal Drum and Bass Mix #1
6mon 18d ago in drumandbass from youtu.beDeep & Minimal Drum and Bass Mix #1
6mon 19d ago in music from youtu.beDeep & Minimal Drum and Bass Mix #1
6mon 19d ago in edm@reddthat.com from youtu.beThanks!
Crossposted to the DnB community.
[Hyprland] Tokyo Night themed NixOS setup
1y 9mon ago in unixporn@lemmy.ml from lemmy.mlChecking if a hash is collision free on a limited domain
1y 10mon ago in cpp@programming.dev from lexp.ltAh, I didn't think about this. Thanks for the explanation!
I like the problem solving description, I actually went through a similar learning process leading to bitset recently. It was very satisfying!
However, I just have to ask a question: What is the reason you didn't just use UUID?
How should I deal with multiple imports having the same name?
1y 11mon ago in python@programming.dev from stackoverflow.comSince you have all your shutil.copytrees and sys.path manipulation at the top level of the test modules, they are executed the moment those modules are imported. unittest likely imports all discovered test modules before actually executing the tests so the set up of both modules is executed in random order before the tests are run. The correct way to perform test setup is using setUp and setUpClass methods of unittest.TestCase. Their counterparts tearDown and tearDownClass are used to clean up after tests. You probably will be able to get this to work somehow using those methods.
However, I'm fairly certain that this entire question is an example of the XY problem and you should be approaching this whole thing differently. Copying the modules and their mock dependencies into a temporary directory and manipulating sys.path seems like an absolute nightmare and it will be a massive PITA even if you get it to a working state. I don't know what problem exactly you're trying to solve but I think you should really read up on unittest.mock and even more importantly on dependency injection.
Introducing Docs in Proton Drive
1y 11mon ago in protonprivacy from proton.meThis is great news but I just have to say it: we need Proton Drive on Linux. Still very happy though.
I made a tool to measure the battery impact of different Android web browsers - here's what I learned!
2y 15d ago in android@lemdro.idVery interesting experiment. Thanks for sharing! Maybe I'll find some time to run the benchmarks on my Pixel 7 in the upcoming days.
If you didn't have to work, how would you spend your time?
2y 16d ago in asklemmy@lemmy.mlSoftware development and computer stuff in general is my passion. I enjoy doing it as a hobby even after doing it at work. If I didn't have to work for money, I would probably work on some open source software. In fact that's kinda my dream / goal - achieve financial independence and work on open source as I please.
Permanently Deleted
2y 6h ago in autismBut... How do you even know you can smell ants? Why did you try it? Or can you smell them from meters away?
Ant smell
2y 17h ago in science_memes@mander.xyz from mander.xyzBut... How do you even know you can smell ants? Why did you try it? Or can you smell them from meters away?
Study Finds That 52 Percent of ChatGPT Answers to Programming Questions Are Wrong
2y 4d ago in technology@lemmy.ml from futurism.comI don't see how this supports your point then. If "setting up proxy" means "packaging it to run on thousands user machines" then isn't there obvious and huge potential for a disastrous fuckup?
Pixel Launcher now lets you switch search providers in EU
2y 2mon ago in googlepixel from 9to5google.comMy first ergo and custom keyboard - Sofle Choc V3
2y 5mon ago in mechanicalkeyboards@lemmy.ml from lemmy.mlMy first ergo and custom keyboard - Sofle Choc V3
2y 5mon ago in ergomechkeyboards from lemmy.mlAffordable MacBook for building a Flutter application
2y 7mon ago in apple@lemmy.ml[Hyprland] Tropical summer setup
2y 9mon ago in unixporn@lemmy.ml from lemmy.mlCozy station where I code for fun and profit
2y 10mon ago in battlestations@lemmy.ml from lemmy.ml









