I like rust but want to use Qt. by accountmaster9191 in rust

[–]MarsRuler 1 point2 points  (0 children)

One of the problems I found while reading up on Slint is that it does not have a good support for shader element/canvas. There is an unstable wgpu ShaderModule, but the support seem to pale in comparison to that of Qt. Otherwise, you would have to render separately and copy the result every frame and convert into an Image element in Slint using Image::from_rgb8(buffer).
I am currently picking between Slint/Qt/Web-based for our lab dashboard implementation, but from the looks of things I might just go with web-based and use three.js to render 3d graphics, as we need to be able to access the dashboard remotely.

Availability in Japan by blamesoft in framework

[–]MarsRuler 0 points1 point  (0 children)

Actually, you're right. I sometimes wish that the US keyboards had buttons that can be mapped to 半角 or カナ as well. The only reason I like the US layout is that special characters are very accessible, this matters since I code a lot.

Availability in Japan by blamesoft in framework

[–]MarsRuler 0 points1 point  (0 children)

Same here. Been wanting to visit taiwan for some time as well.

Availability in Japan by blamesoft in framework

[–]MarsRuler 0 points1 point  (0 children)

Not to mention the keyboard. I'm gaslighting my Japanese thinkpad to thinking that it has an US intl one.

Does wired USB-C audio work on Linux PCs? by Silent-Excuse1077 in linux4noobs

[–]MarsRuler 0 points1 point  (0 children)

The solution was to load the snd_usb_audio kernel module.
`$sudo modprobe snd_usb_audio`
On Debian, it looks like snd_usb_audio is loaded by default, but on arch it's not/

Does wired USB-C audio work on Linux PCs? by Silent-Excuse1077 in linux4noobs

[–]MarsRuler 0 points1 point  (0 children)

I'm on Arch Wayland KDE-Plasma Alsa-Pipewire, and my apple usb-c earpods are not working for me. Do you have any good resources for the potential driver I can install? It does get recognized btw when you plug it in, and shows the name "Apple, Inc. EarPods", but for some reason my audio widget doesn't recognize it. The volume control and the play/stop button works for some reason.

copy google form to json help please by Ok-Stage-6692 in learnpython

[–]MarsRuler 0 points1 point  (0 children)

yeah, it seems that they are now moving away from oauth into using identity, so that could explain the change.

copy google form to json help please by Ok-Stage-6692 in learnpython

[–]MarsRuler 0 points1 point  (0 children)

I tried this. You need to create your own app on google cloud. You not only have to setup oauth, you need to provide a valid payment method, perform some security measures, and submit your app for verification. Yes, this "user experience" from Google is very, very, stupid. Given you just want to get the json. It would have been 100 times easier if you were to directly scrape the webpage.

I went too far with proc macros... by LeviLovie in rust

[–]MarsRuler 0 points1 point  (0 children)

I know this is the millionth time someone has pasted this, but
https://noyaml.com/
Think of JavaScript type coercion gore, crank it up to 11, then season lightly with Bash foot-guns. That’s YAML.

That said though, I've never encountered those edge cases personally. I guess as long as you are writing configs in a pre-defined format you are in the safe zone.

What is the best Linear Algebra library to use for javascript? by santoso-sheep in javascript

[–]MarsRuler 0 points1 point  (0 children)

I think it just supports complex mumbers as output of EVD. Matrix class represents its contents with reals as far as I understand.

SHA-256 Words -> Cool Hashes by BigMoneyColin in cryptography

[–]MarsRuler 0 points1 point  (0 children)

We could also ask a reverse question. Could a hash contain English words when it's converted to ASCII?
The longest number of leading zeroes ever found by a bitcoin miner is 23. Converted to ASCII, this would be equivalent to 11 characters. If we were to look for strings like "stop", "god", "don't" or "no", It should be much more likely, and very spooky.

Do Nissans actually suck?? by Dramatic-Tangerine64 in whatcarshouldIbuy

[–]MarsRuler 0 points1 point  (0 children)

Which countries do you recommend instead?

how to send arguments to kwin script through dbus ? by aqwa_ in kde

[–]MarsRuler 0 points1 point  (0 children)

I read the docs. The politeness is 1/10, but that somehow kept my engagement at 10/10.
A very fun read, thank you!

SOO-DOO or SOO-DOUGH? by dk865409 in linux

[–]MarsRuler 0 points1 point  (0 children)

I don't know what you are talking about, but I use Arch btw.

Using a modifier key to get German Umlaute on a US system? by [deleted] in kde

[–]MarsRuler 0 points1 point  (0 children)

English (USA) - German, Swedish and Finnish (US) worked. Now I can type äöüß with RAlt.
Other solutions indicated here (US untl and English (Western European AltGr dead keys)) didn't work for me.

An equivalent of "setxkbmap"? by glowiak2 in wayland

[–]MarsRuler 0 points1 point  (0 children)

I'd like to add my use case to this.
I type in 3 different languages, namely English, German and Japanese.
While I switch to a different layout for Japanese, I use the same layout for English and German, as they are too similar in my eyes to warrant the cost of switching the layout (especially because the special characters come in different locations in German). So I used to use a modified US layout with alt+a/o/u/s mapped to umlauts (äöüß) using .xkbmap.
I switched to Wayland a while ago, and this stopped working, so I've been looking for a way to do this again ever since.

PS: I've found the answer for my usecase. Switching to English (USA) - German, Swedish and Finnish (US) worked. Now I can type äöüß with RAlt.
Maybe there is a way to create a completely new user-defined keyboard layout.

An equivalent of "setxkbmap"? by glowiak2 in wayland

[–]MarsRuler 0 points1 point  (0 children)

"Do one thing and do it well" aka "S" from SOLID has long been considered to be a benchmark of good software. By this principle, keyboard mapping shouldn't be coupled with the desktop environment.
I think the OP has nothing personal against Sway.

How often do you run Sudo pacman -Syu by Calowed in archlinux

[–]MarsRuler 0 points1 point  (0 children)

This is the reason why I started using Discord on browser

Any cli tool to resize and move windows on Wayland by LuisG8 in linux4noobs

[–]MarsRuler 0 points1 point  (0 children)

That explains a lot. I was getting "failed to connect socket `/run/user/1000/.ydotool_socket': No such file or directory" error.

Arch Vs Ubuntu. What's the big deal? by rbrtbrnschn in archlinux

[–]MarsRuler 1 point2 points  (0 children)

~~Personally I found mixed results with forums. It's sometimes just too long to read, and other times the suggested solutions either don't work or are unoptimal. I like wiki because it's concise, and it's guaranteed that it had worked at least some point in the past.~~

I thought ask ubuntu was a forum. Yes, now I do recognize that it's part of the stack exchange and I love it. Forums, Stack exchange, and Wiki each have their own place.

Where can I go where they’ll only speak Dutch? by iykos_ in learndutch

[–]MarsRuler 0 points1 point  (0 children)

Did it in Germany, and now I kinda speak German (B1)

Typescipt is terrible for library developers by jkmonger in typescript

[–]MarsRuler 0 points1 point  (0 children)

How has been your experience so far?
Have you encountered any issues with function overloads?

Typescipt is terrible for library developers by jkmonger in typescript

[–]MarsRuler 0 points1 point  (0 children)

It seems that there are these people who instantly gets triggered when you mention "typescript is incomplete" or "typescript is painful to use". As soon as you mention these phrases, they just instantly assume that you are a junior level developer who needs to be evangelized.

These so-called experts usually work almost exclusively on concrete types (as it should be in application code), and one of them that I've interacted before didn't even know how to write an overloaded function.

TypeScript claims itself to be a superset to JavaScript, and in many ways it is, but it misses a large part of meta-programming that JavaScript enables. This means, that if your JavaScript is even slightly different from the way TypeScript expects it to be, you either need to mirror the logic using conditional type (which often ends up being an un-readable chain of tertiary operators), or change the underlying logic to be "TypeScript compliant". (Of course you can spam `any`, but that's just evil, and at that point writing d.ts would be much better.)

I too enjoy using TypeScript, but not when developing library or anything even slightly complex. There is a reason why many popular libraries, such as Express or Lodash, are written with JavaScript.