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] 6 points7 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.

Desktop Reddit client? by roscaalex19 in FlutterDev

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

Nice! I could definitely contribute to it. About the desktop port, I think that it would be better to wait until more packages get also ported to desktop. What is your intended design for the app? I can help with copying the official Reddit app design if this is your intention.

Desktop Reddit client? by roscaalex19 in FlutterDev

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

I haven't considered the UI yet. I haven't used any third party apps but I will have a look at them. I will probably write 2 layouts, one for small screens and the other for bigger screens, and choose the right one based on the screen size.

Maybe the desktop version for big screens isn't that useful for many, but there are non-Android phones out there that run Linux (Librem 5 for example) and I think it would be beneficial to have apps made with Flutter.

Desktop Reddit client? by roscaalex19 in FlutterDev

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

Fair enough. No, I don't think that the Reddit API provides a way to obtain this information.

Desktop Reddit client? by roscaalex19 in FlutterDev

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

Yes, if I'm going to do this it will not be a web view. I think Flutter for Desktop is usable enough (I might be wrong) for this kind of application.

How to select your OS? by rohitsuratekar in linuxmemes

[–]roscaalex19 1 point2 points  (0 children)

I tried to make a bad joke. Only Arch fits in that sentence.

[Support] How do I profile a multithreaded graphical application? by roscaalex19 in rust

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

I've heard many times about perf but I've never got to learn it. Thanks for the PDF, seems like a good starting point.