Python Global Variable – How to reach them?

In python there is no scope for variables, however function definitions create their local versions as default and to edit global variable you need to declare it with a specific prefix. Here are some examples Non global variable case Global variable case Or with two different functions In the last example we can see that … Read more

Automate screenshots from WEB with Python

I was preparing to make a video about code blocks in motion canvas and I reached the stage where I make screenshots of slides from advanced slides plugin in Obsidian. To create a video I make a screenshot of each slide and then record voice and add clip on top of it. There were 35 … Read more

Mounting network share under WSL

I moved my repos from internal SSD to external NAS storage and was working on them in VS Code until I neeed to run it from WSL console… It appears that WSL is not mounting removable and network shares/devices by default. As said in old microsoft post in comment section: We only “mount” fixed drives … Read more

Update | XPS Liquid Metal Graphs

I totally forgot to attach before and after comparison in any useful form. Here you are! Link to raw data – https://getcurve.io/dashboard/snapshot/K51QdSlbIfukb2HQLhSn2Bp508QPSeJt TimeSpy 1080p CPU Temps – lower all the way and not hitting 100 once! CPU Clock – does not fall off! 4,8GHz in the CPU test GPU Core Clock – higher in the … Read more

Treating my Dell XPS 15 9510 with liquid metal

Link to pretty comparison grapghs Summary Table Title Before @ 22-24c ambient Graph After @ 23c ambient Graph Idle 71°C CPU 53°C CPU Baldurs Gate 3 1080p 80,4°C CPU67,2°C GPU 67°C CPU64°C GPU Baldus Gate 3 4k 80,2°C CPU66,7°C GPU 71°C CPU65°C GPU Google Chrome 1080p 73°C CPU 51°C CPU46°C GPU Google Chrome 4k 60°C … Read more

How to check temperature from bash console

Just install apt install lm-sensors and then sensors and done. You can now monitor it in a window with for example watch -n 1 sensors and it will refresh each second. Depending on system, output can be different but all supported temps and devices will be mapped and showed. Example from RPI 4 Example from … Read more

Network Configuration using netplan

I came back after 2 years – literally 2 years, look! And some things changed… This time I’m facing new ways of network configuration but it’s simpler now! With netplan you have a nice file with good documentation and example config files that probably have what you need after changing some IPs. In my case … Read more

Installing Ubuntu Server on Synology NAS

Polski I recently bought an Synylogy NAS DS1821+ (covered here) and upgraded it to 32GB ram from default 4GBs so I wanted to test out it’s virtualization capabilities. First I started with PiHole from their docker containter list and it worked perfectly. Basically click through experience with no configuration required. Having something turned on 24/7 … Read more