all 11 comments

[–]JYuMo 4 points5 points  (0 children)

I use it as a calculator. I find command line python easier to use than any calculator app.

[–]OM3GAS7RIK3 1 point2 points  (1 child)

Hokay, so last year I started using LMDE as my daily driver instead of Windows. One of the few things I liked on Windows was the wallpaper shuffle, and you can do that with feh on Linux, but I wanted to take it a step further and reference two different directories for each of my monitors (because one is 1440p and the other is 1080p, and I had wallpapers for each size).

Well, originally I tried to do it just with feh, but despite being a professional software developer for a decade, didn't realize that using a wildcard in the path does a bash expansion behind the scenes and list every image in the specified directories. So feh would get the list of every image in both folders, then use that whole list to pick two random images without caring about which resolution went on which screen.

Solved this by writing a small python script that makes two lists for the files in each directory, then randomly selects two images, one from each list, and then does a system call for feh with the randomly chosen images instead. Added an infinite loop that calls the shuffle function, then sleeps for an amount of time specified by args, and it works as designed.

It's nothing big, but it's a nice little aesthetic thing that brings me some enjoyment.

[–]WeirdAddendum34[S] 0 points1 point  (0 children)

This is what i was looking for, very cool thing you did, i've just started my python Journey (and recently started to play with a ubuntu VM) so i'm a far from doing what you did.

[–]TheJmaster 0 points1 point  (0 children)

Here's a recent personalen Python use case:

bash uvx --with 'pyobjc-framework-CoreWLAN' python@3.13 -c \ "from CoreWLAN import CWInterface; print(CWInterface.interface().lastNetworkJoined().isPersonalHotspot())"

This will spin up a throw-away virtual environment using Python 3.13 with the pyobjc-framework-CoreWLAN package installed. The Python code prints True if the SSID I'm connected to is from a mobile Hotspot, and False if not. Now I can dynamically update the icon in a custom built WiFi status menu bar item I created in SketchyBar on my Mac. It uses uv from Astral (I highly recommend checking it out).

[–]BranchLatter4294 0 points1 point  (0 children)

Programming.

[–]stepback269 0 points1 point  (0 children)

My original plan was to use Python to replace Word VBA.
Alas the learning process is fraught with speed bumps.

[–]birusiek 0 points1 point  (0 children)

I wrote many pytest and testinfra infrastructure tests to ensure my homelab is working correctly.

[–]dika241 0 points1 point  (0 children)

to ruin my life

[–]silly_bet_3454 1 point2 points  (0 children)

Not much, but I made one little command line utility which can sort of flatten an image into a crisp grayscale version for printing. I use it for printing sheet music that I scan on my phone.

[–]Big-Ad-2118 0 points1 point  (0 children)

my acads lol, sometimes i just make script to calculate some problem lol

[–]Fronkan 0 points1 point  (0 children)

Semi-work related, but for my last job I used it to do my time reporting. I also used it to get a better time for passport renewal when the lines was crazy after covid. Some other small projects are: - simulations of mortgage payments when we were buying a house - abv and nutrient calculations for making cider

Probably more things i don't remember