The with open
statement is a particularly convenient feature in Python, allowing for automatic closure of objects when operations are completed. For custom objects, it’s also possible to support the with
syntax.
The with open
statement is a particularly convenient feature in Python, allowing for automatic closure of objects when operations are completed. For custom objects, it’s also possible to support the with
syntax.
The romance of a hunter is not just about explosions… but also about damage output!
Obsessed with hunting… neglecting my career…
As expected, just like I bought a tablet and spent two days reading books before starting to play PSP emulators… this time after buying a computer, I didn’t use it for software testing for long either… I immediately started playing Monster Hunter. I even fiddled with how to record video from the client machine on the host… After struggling all day, I finally chose dual-streaming of video and audio… separately through the Looking-Glass and Scream projects to stream video and audio back to the host, and then recorded using OBS on the host. As for why I didn’t record directly on the client machine… that wouldn’t reflect the essence of being a masochist, right!
Here’s a test video of me playing Cherry Fire Dragon without any technical skill:
I have cleared the case in “The Great Ace Attorney”. Personally, I feel that this game is even better than the Phoenix Wright trilogy. Compared to them, this game does not have any supernatural elements, and the part about evidence in the story seems more reasonable (not just moving an item/person out can be used as evidence). Of course, in a game centered on reasoning… I might be overthinking something~
From past experiences… I have gained many skills as a byproduct… Today, this is also the case. My original intention was to use the source code provided by NetEase to compile an improved version of VirtualBox, but in the end… I learned several Docker-related skills…
When using a Linux system, it’s often necessary to set up things that start automatically at boot. For distributions that use systemd, writing your own service files and enabling them is a great choice.
After putting in a lot of effort to get the hardware sorted out, it’s time for the software.
At the beginning of the year, I saved 2000 yuan to buy a second-hand server for testing software and playing games. However, after looking around, I found that servers were too troublesome… they consume a lot of electricity and make noise. If you want to add a graphics card, you need to modify the case… since I have no experience with hardware… so I decided to buy a desktop computer that is both affordable and sufficient for my needs. Originally, I was going to buy something on 618… but due to work changes, I didn’t have time or energy to mess around, so I gave up… recently, I saw a motherboard on JD at a discount, so I couldn’t resist buying it… but when I checked, I found that the CPU I wanted was hard to find new… (probably sold out during 618)… after several weeks of effort, I finally got everything and assembled my first self-built desktop computer!
As long as you use multiple devices for work, you will inevitably encounter the problem of mutual synchronization between different devices. Now that it’s not the era when cloud services just started to rise and were cheap and generous, there probably isn’t a reliable and user-friendly service provider that won’t suddenly run away or change its terms of service. So, we still have to rely on ourselves to set up our own…
Although I also use Git for some project code management, I actually don’t know many of Git’s features and haven’t used them. Today, I tried using Git hooks.