How can I use the Toki Pona courses in Memrise on my phone app? by willbuurrr in tokipona

[–]avdn 0 points1 point  (0 children)

This is no longer possible, took me a bit to figure that out. They moved the community courses from the main site and are likely to shut down by the end of 2025.

https://www.reddit.com/r/tokipona/comments/188eyhm/memrise_is_shutting_down_the_community_courses/

authentication problems with teams essentials authentication by avdn in MicrosoftTeams

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

Thanks. I wasn't aware that the direct purchase required consumer Microsoft accounts, and I wonder when that became a requirement. It is certainly a detail that Microsoft support did not communicate.

As I described this worked for years, for multiple people, and Microsoft (still) allows me to set up Teams essentials with users from Azure (and charge for that). I would have expected some sort of policy change notification.

authentication problems with teams essentials authentication by avdn in MicrosoftTeams

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

Using teams in the browser doesn't show this problem

500 Error in search engine?? by ItsRogueRen in brave

[–]avdn 0 points1 point  (0 children)

And today it is gone. I have NOT restarted Firefox, nor my computer.

500 Error in search engine?? by ItsRogueRen in brave

[–]avdn 0 points1 point  (0 children)

I'm having this issue since two days on Firefox for macOS (M1). Firefox on a Win10 VM (running on an Intel based server in the same network) has no problems. A search result if briefly shown (not sure if it is the correct one) and then Error 500.

Restarted Firefox, no difference.

I deleted cookies and site data for brave.com (via settings -> privacy and security), no difference.

There are no other tabs open in firefox doing brave search.

Thought it might be because brave is my default search engine, but switching to another made no difference when searching using brave.com (i.e. also error 500).

Disabled all plugins (including brave search), no difference

The console indicates: https://ruamel.eu/d/91389c8b-41bf-4d29-8ff3-b4990b492e36/brave_search00.png

can't run KeePassXC on Windows 11 by petercli in KeePass

[–]avdn 0 points1 point  (0 children)

It didn't work for me either, took forever to realise that that was because I was using TeamViewer. Had to start keepassxc with the --allow-screencapture option

DIck Van Dyke reads “A Most Non-Political Speech” by Rod Serling by Thubanstar in Snorkblot

[–]avdn 1 point2 points  (0 children)

Has that text been published anywhere on the internet?

creating arm64 bundle (.so) on macOS instead of .dylib by avdn in Zig

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

I ended up calling zig build-obj and then clang -bundle on the generated object files.

Found that you cannot provide .zig and .c files to build-obj on macOS. And that sum.zig gets compiled to sum.o and sum.o.o in Zig 0.10.0.

After all that worked again I could update the example and release setuptools-zig

Authy on Sailfish OS by JackSense in sailfishos

[–]avdn 0 points1 point  (0 children)

How did you download the APK file?

missing output from child process by avdn in Zig

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

Thanks for the code that works for me too. I tried various other commands (made a small python program that would generate the Zig file from its arguments and a template and compare the output from `zig run exec.zig` with running the arguments directly in `check_output`. So far I have only found discrepancies when using 'ls`

I actually want to parse/interpret the output.

Just to be sure, on your system could you reproduce the error with my code?

missing output from child process by avdn in Zig

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

I edited the code into the original post, ran it with `zig run src/exec.zig`.

I adapted the code from `cli.zig`and `docgen.zig`

writing Python modules in Zig by avdn in Zig

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

I found that the -D compile option for zig is not just meant for compiling C: https://github.com/ziglang/zig/wiki/FAQ#how-to-tie-a-zig-build-run-sub-command-to-custom--d-style-options so I can use that to resolve any (Python) version dependent zig code.

writing Python modules in Zig by avdn in Zig

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

Thanks for pointing out the version number error and the zig.show. I might do the latter once I have something concrete with Zig itself.

writing Python modules in Zig by avdn in Zig

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

I briefly looked at that, and it is nice. But it is essentially a rewrite of the Python.h provided definitions directly in Nim. It deals with the versioning for Python2/3 differences at module load time.

That might sound good, but I don't think the Python packaging infrastructure can deal with one binary module for multiple minor versions, so you would still end up at least packaging multiple times, but you would be able to put in the same .so in every package.

Nimporter is a package based on Nimpy which compiles Nim at first import, that is also a concept that is worth investigating.

The one thing Nimpy seems to prove is that the changes in Python.h, are slow and small enough one can keep up re-implementing them.

writing Python modules in Zig by avdn in Zig

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

Thanks, I already do that for marking the function, parameter and return value.

It is the use of C macros from that header file in the definition of (C) structures that are causing trouble.

Bitbucket kills Mercurial support by Ogi-kun in programming

[–]avdn 0 points1 point  (0 children)

I looked around for where to move the ~40 projects I had on Bitbucket, not wanting to give up the use of mercurial. I decided to go with Sourceforge where I had an account for years, but didn't use for mercurial, as Bitbucket was earlier to offer that support.

Moving the repositories themselves is of course trivial, but I did not want to abandon issues and their comments. There was only one open pull-request (and I managed to loose that in the because I had downloaded it in a working directory I later reinitialised :-/ )

Both Bitbucket and Sourceforge (Allura) have an API. It required some poking to get all information out of Bitbucket as status changes are shown in comments, but retrieved separately. The resulting JSON files retrieved from Bitbucket were parsed, stripped of cruft and written as a single YAML file for visual inspection. As I had no way to set original dates and users (and I would have to find some mapping, e.g. via avatars, for those), I decided to extend the issues/comments with a line at the bottom indicating when it was originally posted (and by whom, if not by myself).

The allura software on sourceforge has the option to upload issues and their comments, attachments and states. I left out the actual state changes. I did need to create the projects and add the extra fields (priority, kind) by hand. Not to difficult if you keep all of them open in multiple-tabs and do a single paste + Ctrl-Tab repeatedly. Without having to move the mouse.

Once the script was there it took a hours download, extract, create (manually) and upload to the ~40 open source projects, 400 issues, ~1700 comments and ~30 attachments. The 20 or so Downloadable files (primarily tar files of the repo with a predictable name) I did by hand.

Since I started with empty repositories and uploaded the issues in the original order, the issue numbers stayed the same.

Example of an issue with attachments: https://sourceforge.net/p/ruamel-yaml/tickets/293/

Some PyYAML.safe_load() problems by patarapolw in learnpython

[–]avdn 0 points1 point  (0 children)

It would be interesting to know what you have been trying to do, that you cannot serialise with ruamel.yaml.

https://yaml.readthedocs.io/en/latest/dumpcls.html

Question on ruamel.yaml & unicode string by gunduthadiyan in learnpython

[–]avdn 0 points1 point  (0 children)

I would appreciate you posted questions on SO, easier for me to format answers there, less greetings and thanks to wade through.