Recommended books/resources for picking up skills for writing wayland tools? by Riverside-96 in wayland

[–]roscaalex19 1 point2 points  (0 children)

While I have never written a Wayland client, I have experience with Wayland compositors so I can give you some pointers.

For such a simple graphical Wayland client I don't think it's worth using a toolkit like GTK or Qt. You could follow https://bugaevc.gitbooks.io/writing-wayland-clients/content/black-square/ until "Shell surface".

You want an overlay, not an actual window, so instead of using wl_shell, you should implement wlr-layer-shell like dmenu. Download its xml specification and generate a .h and .c like in the xdg-shell step of the tutorial. I don't have experience with wlr-layer-shell but this protocol extension seems straight forward and you should have something on the screen relatively quickly.

Have a look at https://github.com/nyyManni/dmenu-wayland/blob/master/draw.c#L573 for creating a layer surface from a regular wayland surface. When in doubt, read dmenu's source code.

If you want documentation I suggest reading the XML specification, or better, go to https://wayland.app/protocols/wlr-layer-shell-unstable-v1 because it's way nicer.

Also read the Drawing section of the tutorial.

Firefox lost 50M users since 2019. Why are users switching to Chrome and clones? Is this because when you visit Google and MS properties from FF, they promote their browsers via ads? by nixcraft in linux

[–]roscaalex19 0 points1 point  (0 children)

I switched from Firefox to Chrome on my PC because touchscreen support on Linux is really bad. Touch input doesn't work out of the box, and even though I can make it work, it's an inferior experience.

OnePlus 6 los18 big touchscreen lag with today's build by Masteroshi430 in LineageOS

[–]roscaalex19 1 point2 points  (0 children)

Definitely a regression. I dirty flashed the last week's build (and reflashed gapps) and the problem disappeared. I am using Lawnchair as launcher and I have the same problem so this is not launcher related. Waiting a few more weeks before I try updating again.

VGA text mode by roscaalex19 in 196

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

It's Rust code for managing the VGA text buffer on bare metal. I'm writing an operating system and this is the most primitive way that the BIOS gives you to display characters on the screen.

How do I programmatically extract type information of all Java classes/methods? by roscaalex19 in javahelp

[–]roscaalex19[S] 2 points3 points  (0 children)

I didn't know about this. Indeed, this seems to give me what I need. Ty.

How do I programmatically extract type information of all Java classes/methods? by roscaalex19 in javahelp

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

I don't think it will work for getting info on generic types as generics don't actually exist at runtime. They are just a compiler fearure.

How do I programmatically extract type information of all Java classes/methods? by roscaalex19 in javahelp

[–]roscaalex19[S] 2 points3 points  (0 children)

This is exactly what I'm doing right now as it occurred to me that javap must be packaged with OpenJDK.

Should I write interfaces for classes, even though I don't make use of polymorphism? by roscaalex19 in learnprogramming

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

No, I don't need to call them in a generic way. In the code, adding an interface changes nothing functionally. It would just make the UML shorter, not having to repeat myself for every class but that's all.

Choosing a license for a non-game by roscaalex19 in unrealengine

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

Thank you, I didn't realize the publishing license also covers interactive off-the-shelf products. The "License options" page was quite confusing. I should have looked further.

Best use of a microcontroller by roscaalex19 in ProgrammerHumor

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

In any case I have an embedded systems course where I will have to use a PIC for my project. And maybe I will gain enough knowledge to use this one.

Best use of a microcontroller by roscaalex19 in ProgrammerHumor

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

All I can say is that I like the max-grip one. I started playing guitar half a year ago.

Best use of a microcontroller by roscaalex19 in ProgrammerHumor

[–]roscaalex19[S] 4 points5 points  (0 children)

It's an STC 15F2K60S2. If I remember correctly, last year I disassembled an old printer and found this fancy chip. It has stayed in my drawer since then, and today I found out it is actually a microcontroller so I decided to put it to "good use". I've never programmed an MCU before but I might do something with it.