thismachine's recent activity
-
Comment on What programming/technical projects have you been working on? in ~comp
-
Comment on What programming/technical projects have you been working on? in ~comp
thismachine I'm slowly porting changes from Python 3.10's pathlib to aiopath, an async pathlib replacement for Python. pathlib was stable for several Python 3.x releases, but some changes were introduced in...I'm slowly porting changes from Python 3.10's
pathlib
toaiopath
, an asyncpathlib
replacement for Python.pathlib
was stable for several Python 3.x releases, but some changes were introduced in 3.10a7 that affects codeaiopath
relies on. -
Comment on What are you doing in your garden? in ~hobbies
thismachine They're mostly for decoration, but I plan to make pumpkin curry with them. I live in an area with a humid continental climate, and there are native prickly pear cacti that are able to survive the...They're mostly for decoration, but I plan to make pumpkin curry with them. I live in an area with a humid continental climate, and there are native prickly pear cacti that are able to survive the relatively harsh winters here.
-
Comment on What are you doing in your garden? in ~hobbies
thismachine I'm growing vegetables this year, and peonies. I want pumpkins for the end of the summer or beginning of fall, so I'm planting some seedlings soon. There are some native cacti that are able to...I'm growing vegetables this year, and peonies. I want pumpkins for the end of the summer or beginning of fall, so I'm planting some seedlings soon.
There are some native cacti that are able to survive the winter here (I'm thousands of miles away from the desert), so I want to get a cutting and trying cultivate it. I've been meaning to do this for years, but I never get around to it.
-
Comment on Looking for recommendations for half-hour shows in ~tv
thismachine I just finished Servant, and the episodes are generally a half hour long, but some are longer. It was pretty good.I just finished Servant, and the episodes are generally a half hour long, but some are longer. It was pretty good.
-
Comment on The former Netflix DVD library is a lost treasure we’ll never see again in ~movies
thismachine A drive that reads a DVD at 1x takes about two hours to read a ~4GB DVD. A 24x drive can take about 5 minutes. That's only if you're creating an image of the DVD you're copying, though....A drive that reads a DVD at 1x takes about two hours to read a ~4GB DVD. A 24x drive can take about 5 minutes. That's only if you're creating an image of the DVD you're copying, though. Re-encoding the DVD into a video file depends on your quality settings, the codecs you're using, and whether or not you have hardware acceleration for video encoding.
-
Comment on What programming/technical projects have you been working on? in ~comp
thismachine Awesome. I love the new Firefox for Android, by the way. Seems to get a lot of undeserved hate, but it works great for me, and I've been using Firefox on Android for several years now.Awesome. I love the new Firefox for Android, by the way. Seems to get a lot of undeserved hate, but it works great for me, and I've been using Firefox on Android for several years now.
-
Comment on What programming/technical projects have you been working on? in ~comp
thismachine chromecast_mpris is a daemon for controlling Chromecasts from Linux that I've added a few new features to, including a new dark mode icon and support for displaying more metadata. Having trouble...chromecast_mpris
is a daemon for controlling Chromecasts from Linux that I've added a few new features to, including a new dark mode icon and support for displaying more metadata. Having trouble replicating this issue, though. Also, I found out that Linux Uprising took the time to write aboutchromecast_mpris
, which is pretty cool.I added an async API to
play_sounds
and better support for making sure that spawned player processes are killed when the parent process doesn't shut down cleanly.play_sounds
provides a simple API over the cross-platform idiosyncrasies that Python's sound playing ecosystem presents.I'm writing documentation and fixing bugs on
aiopath
, an asyncpathlib
replacement for Python. -
Comment on How do you choose a desktop wallpaper? in ~talk
thismachine (edited )LinkI just use one of the sunsets that came with desktop Ubuntu several years ago. I customized my Plasma color theme around it, so that's the reason I haven't changed it. I used to use hi-res NASA...I just use one of the sunsets that came with desktop Ubuntu several years ago. I customized my Plasma color theme around it, so that's the reason I haven't changed it.
I used to use hi-res NASA photos. The most recent Jupiter flyby pics are pretty and look really great on high DPI screens: https://www.nasa.gov/mission_pages/juno/images/index.html
-
Comment on What programming/technical projects have you been working on? in ~comp
thismachine I just released aiopath, which is a reimplementation of Python's pathlib, but is compatible with asyncio and the async/await syntax. -
Comment on What programming/technical projects have you been working on? in ~comp
thismachine play_sounds relies on two backends, playsound and boombox. playsound works on Windows, however it requires GStreamer and its PyGObject bindings on Linux, the latter of which can be a pain to...play_sounds
relies on two backends,playsound
andboombox
.playsound
works on Windows, however it requires GStreamer and its PyGObject bindings on Linux, the latter of which can be a pain to build, whileboombox
can take advantage of several sound playback options on Linux.boombox
will only play WAV files on Windows, though, soplay_sounds
provides a cross-platform API overboombox
andplaysound
.It also provides an API for asynchronous playback, which neither of the two base libraries provide.
If you're targeting multiple desktop platforms and don't want to get mired down in the details of when and where to use
playsound
orboombox
, or if your project usesasync/await
, you can just reach forplay_sounds
and call it a day. -
Comment on What is a class in Python? in ~comp
thismachine Everything is an object in Python, including classes and types, and their types, too. In [1]: isinstance(type(type), object) Out[1]: TrueEverything is an object in Python, including classes and types, and their types, too.
In [1]: isinstance(type(type), object) Out[1]: True
-
Comment on Anyone using a lightweight browser with Linux? in ~comp
thismachine I've got Firefox running on a 32-bit Intel Mac with 2GB RAM from 2006, and it works very well.I've got Firefox running on a 32-bit Intel Mac with 2GB RAM from 2006, and it works very well.
-
Comment on What programming/technical projects have you been working on? in ~comp
thismachine Working on onhold's Windows support. Turns out that playing sounds in a cross-platform manner via Python is tricky. Check out onhold if you think shell tools like pv are cool. I'm also packaging...Working on
onhold
's Windows support. Turns out that playing sounds in a cross-platform manner via Python is tricky. Check outonhold
if you think shell tools likepv
are cool.I'm also packaging
chromecast_mpris
for distribution beyond Arch. -
Comment on Biblically accurate angels and the first sphere of the angelic hierarchy explained in ~humanities
thismachine You're not alone, I'm seeing it everywhere, too.You're not alone, I'm seeing it everywhere, too.
-
Comment on What programming/technical projects have you been working on? in ~comp
thismachine I'm working on packaging chromecast_mpris for Linux distributions. The app lets you control Chromecast and Android TV devices from Linux. Right now, it's packaged for the AUR, but I want to...I'm working on packaging chromecast_mpris for Linux distributions. The app lets you control Chromecast and Android TV devices from Linux.
Right now, it's packaged for the AUR, but I want to release it for Debian and Ubuntu distros, too.
-
Comment on WTF happened in 1971? in ~finance
thismachine I remember seeing a r/BadHistory post about this site. A Google search bring up this thread, but it might be a different one than I'm thinking of.I remember seeing a r/BadHistory post about this site. A Google search bring up this thread, but it might be a different one than I'm thinking of.
-
Comment on If you could rewrite 1 element of modern computing, what would it be and why? in ~comp
thismachine I'd breathe life back into Palm or HP and webOS, along with Nokia's Maemo, and even Windows Phone. Apple and Google both abuse their monopolies on both mobile OSes and mobile app distribution, and...I'd breathe life back into Palm or HP and webOS, along with Nokia's Maemo, and even Windows Phone.
Apple and Google both abuse their monopolies on both mobile OSes and mobile app distribution, and they could use some real competition.
-
Comment on What programming/technical projects have you been working on? in ~comp
thismachine Not silly at all, I ended up using something very much like this.Not silly at all, I ended up using something very much like this.
-
Comment on What programming/technical projects have you been working on? in ~comp
thismachine I made a few changes to onhold that makes it faster and more efficient on Unix-like operating systems. onhold is a tool that plays sounds while and after shell jobs complete, and can be used to...I made a few changes to onhold that makes it faster and more efficient on Unix-like operating systems.
onhold is a tool that plays sounds while and after shell jobs complete, and can be used to construct shell pipelines.
For example, the following will play music while an ISO downloads:
$ export URL="https://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-desktop-amd64.iso" $ http "$URL" | onhold > /dev/null
onhold used to use Python for-loops to iterate over data that was piped into it and pipe it out again. For-loops in Python are slow and I only achieved a max speed of 150MB/s.
On Unix systems, onhold will open a subshell and use
cat
to iterate over stdin and then output it. I get speeds of over 3GB/s using this method.It's a little convoluted, so I'm hoping I can find a method that's faster and doesn't rely on having a Unix shell available on the system.
Is the PSP hacking and homebrew scene still alive?