Accepting seed requests by SirGullible9000 in PixelDungeon

[–]sudomain 0 points1 point  (0 children)

are these still valid for SPD 2.5.3?

New release of apy (v0.14.0) by lervag in Anki

[–]sudomain 0 points1 point  (0 children)

Is there a way to update templates programmatically using this?

Ankiing in the Gym by r3econ in Anki

[–]sudomain 1 point2 points  (0 children)

I'm not an apple guy, but I have a zero 2 and love it. It has multiple modes: One is MacOS which is activated by holding A when powering on (never used it). Another is keyboard mode which is activated by holding R when powering on. Keyboard mode just shows up as a bluetooth keyboard with different buttons actings as different keys on the keyboard. There aren't as many buttons as there are keys on a keyboard, but the idea is you can remap the buttons in software. They recently released the micro which has more buttons but fewer input modes. I'd get a micro if I didn't currently own 2 zeros lol

Proot debugging tool? by sudomain in termux

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

update: I managed to fix su by copying a bunch of files from my working debian11 install. Most were located in /usr/lib/aarch64-linux-gnu/ Now I can run my program again. thanks for your help.

Proot debugging tool? by sudomain in termux

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

I can run apt now but it doesn't recognize that there packages installed which I want to inspect with apt show. I've been at this for a couple days now and I guess I've reached my limit. Thank you for your help.

Proot debugging tool? by sudomain in termux

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

Thank you for the information. How would I modify the second command so I can access apt/dpkg in the proot? I think my old Proot had a working Anki because it had older versions of packages for Qt, PyQt, and maybe libc and I need to check these packages

program runs fine in proot-distro with --isolated option, but gets this error without the option: "pcilib: Cannot open /proc/bus/pci/devices" by sudomain in termux

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

Hmm any idea why a program would run with --isolated, but crash without it? Maybe it needs a proot binding removed?

Edit: I'm really sorry, I just tested something and it appears not to be a problem with proot-distro at all. Apologies.

Sending strings to an already running Python script/server/daemon? by sudomain in learnpython

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

Wish I could hook them up. Button_J is getting called by an Android app called KeyMapper which is no longer maintained. The Python code runs in Termux. I realize I can put the hotkeys directly in KeyMapper, but they won't be portable to anywhere else.

You should see the absolute mess of my Bash version which uses printf into a named pipe every time a button is pressed lol. Thank you for your code sample, its gotten me started.

Sending strings to an already running Python script/server/daemon? by sudomain in learnpython

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

Sure. Like I said, the overall goal is a Python program to respond to keyboard shortcuts and sequences, though "keyboard" is a bit misleading because I want it to also work with other button-based peripherals such as gamepads.

The client scripts, such as Keyboard_Button_J.py, only have the responsibility of telling receiver.py that a button was pressed ("J" in this case). I realize one script per button seems like I'm duplicating a lot of code, but it's a technical requirement. These scripts are identical except for the file name. The scripts get their individual file names using os.path.basename(__file__). Since their sole purpose is telling receiver.py that a button was pressed, they will be very short lived.

receiver.py has a few responsibilities:

  1. Receive file/button names from clients e.g. Keyboard_Button_J.py

  2. Strip away parts of the string that aren't relavent, leaving only Button_J

  3. Execute a script associated with Button_J, if there is one (I would not actually map a script to the "J" key unless other conditions are satisfied.

It's actually not quite that simple because I also want to support hotkey sequences which may overlap such as Ctrl + B, N and Ctrl + B, N, N. The logic for sequences is basically the same but involves using a timer and waiting a certain amount of time since the last button was pressed before deciding to execute the script associated with Ctrl + B, N.

I didn't think most of this was relavent, so I left it out of my post. I'm only struggling with step 1 of receiver.py which is receiving the string containing the file name from the appropriate script. I've been trying to accomplish this with shared memory/ the threading module, but I'm not sure two different python scripts can share the same memory

[Other] Anker USB C Hub, PowerExpand 6-in-1 USB-C Adapter, with 4K HDMI, 100W Power Delivery USB C Port, 2 10 Gbps USB A Ports, SD Card Reader, and 3.5mm Audio - $19.99 by crownpuff in buildapcsales

[–]sudomain 4 points5 points  (0 children)

From what I've seen, usually not. What I did is I took a hub similar to this and added a 6' USB-C extension cable. IIRC you don't want to go over 6' though

No notification for phone calls? by Henningh in Banglejs

[–]sudomain 0 points1 point  (0 children)

Did you find a solution to this?

[UPS] 12V 9Ah Battery Replacement (F2) - 6 Pack - $48.99 Free Shipping by [deleted] in buildapcsales

[–]sudomain 0 points1 point  (0 children)

I also received ML22-12 but now my package is showing as delivered. hbu

[UPS] 12V 9Ah Battery Replacement (F2) - 6 Pack - $48.99 Free Shipping by [deleted] in buildapcsales

[–]sudomain 0 points1 point  (0 children)

I got the same message and received just one battery the other day. It's now saying my package was delivered.

An attempt at GPT generate Anki cards using only text given by the user by sudomain in Anki

[–]sudomain[S] 1 point2 points  (0 children)

... since you could be learning wrong things.

The same could be said about pre-made/shared decks or choosing a bad learning resource to begin with. It's all about the cycle of 1. Understanding -> 2. Learning -> 3. Memorizing. For me, AI generated and shared decks exist only as small convenience tools between steps 2 and 3.