130
submitted 1 month ago* (last edited 1 month ago) by sajran@lemmy.ml to c/unixporn@lemmy.ml

This setup is a result of months of learning about NixOS and tinkering. There is always something more to polish but I'm at a point where I'm actually satisfied.

Screenshot of desktop with floating terminal window and sway notification center

Screenshot of desktop with tiled firefox and terminal emulator running btop windows

[-] sajran@lemmy.ml 1 points 2 months ago

Ah, I didn't think about this. Thanks for the explanation!

[-] sajran@lemmy.ml 2 points 2 months ago* (last edited 2 months ago)

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?

[-] sajran@lemmy.ml 4 points 4 months ago

Since 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.

[-] sajran@lemmy.ml 5 points 4 months ago

This is great news but I just have to say it: we need Proton Drive on Linux. Still very happy though.

[-] sajran@lemmy.ml 7 points 4 months ago

Software 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.

[-] sajran@lemmy.ml 6 points 4 months ago

Very interesting experiment. Thanks for sharing! Maybe I'll find some time to run the benchmarks on my Pixel 7 in the upcoming days.

[-] sajran@lemmy.ml 4 points 5 months ago

But... How do you even know you can smell ants? Why did you try it? Or can you smell them from meters away?

[-] sajran@lemmy.ml 2 points 5 months ago* (last edited 5 months ago)

But... How do you even know you can smell ants? Why did you try it? Or can you smell them from meters away?

[-] sajran@lemmy.ml 1 points 5 months ago

I 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?

[-] sajran@lemmy.ml 13 points 5 months ago

I might be wrong but I assumed it's perfectly obvious to OP and it's the kind of joke where something is funny because you stretch the meaning to read it literally. I chuckled actually, despite it making perfect sense.

[-] sajran@lemmy.ml 1 points 5 months ago

Setting up proxy is not engineering.

[-] sajran@lemmy.ml 3 points 5 months ago

Man, I didn't get what I'm looking at at first. But after reading the description and watching the video - pretty amazing!

63
submitted 10 months ago* (last edited 10 months ago) by sajran@lemmy.ml to c/mechanicalkeyboards@lemmy.ml

cross-posted from: https://lemmy.ml/post/9581183

My first ever bulid and I'm so excited! It's not trivial to build a perfect keyboard just from parts you can order in Europe. This is one doesn't look exactly how I imagined it but I love it anyway. If anyone is interested - it's a Sofle Choc V3 kit from 42. Keebs.

The first few days were a bit hard but after just a week of using it I was able to beat my monkeytype high score. I'm still not really fluid in using it for programming and vim in general though.

77
submitted 10 months ago* (last edited 10 months ago) by sajran@lemmy.ml to c/ergomechkeyboards@lemmy.world

My first ever bulid and I'm so excited! It's not trivial to build a perfect keyboard just from parts you can order in Europe. This is one doesn't look exactly how I imagined it but I love it anyway. If anyone is interested - it's a Sofle Choc V3 kit from 42. Keebs.

The first few days were a bit hard but after just a week of using it I was able to beat my monkeytype high score. I'm still not really fluid in using it for programming and vim in general though.

5
submitted 1 year ago by sajran@lemmy.ml to c/apple@lemmy.ml

Hi guys,

I'm currently building a mobile application using Flutter. Until now my target platform was Android but I'd like to build and publish it for iOS as well. For this I need access to macOS environment, both to build the application and to test it in iOS Simulator. Please note that I don't intend to actually develop on this machine.

I'm considering a few options like running macOS VM on my machine (no luck so far) or using some kind of cloud VM. The most obvious option is to just buy a Mac of course. However, I really don't want to spend a lot on this and Apple computers aren't exactly known for being affordable. Here's my question: which MacBook would you recommend to buy used just for the purposes I listed above?

I tried googling this of course but it's really hard for me to find any useful advice. Please note that I have no knowledge about Apple devices and ecosystem whatsoever, I never used any of them.

135
submitted 1 year ago by sajran@lemmy.ml to c/unixporn@lemmy.ml

Current daily driver. So comfy!

view more: next ›

sajran

joined 1 year ago