• 3 Posts
  • 5 Comments
Joined 8M ago
cake
Cake day: Jan 25, 2024

help-circle
rss
GitHub - Atreyagaurav/numrng: Terminal Command to generate list of numbers from human-readable representation
cross-posted from: https://lemmy.world/post/18129059 > This feels like it should already be a feature in a terminal. But I didn't find anything that let me do this efficiently. > > I had a rust library for converting list like `1-4,8-10` into vectors, but thought I'd expand it into a command line command as well, as it is really useful when I want to run batch commands in parallel using templates. > > I wanted to share it since it might be a useful simple command for many people.
fedilink

Hi all, mpv communities seem to be tiny in lemmy, so I'm sharing it here. This is a program I made for music control from local network. You can run it in a computer with some local media files, or youtube links or any other links yt-dlp supports. And then with the server, you can control the media player and the playlist from any devices in your local network. So that you can just show a QR code or something to house guests for parties, or have it bookmarked within family to control the music. I wanted to make something similar to how youtube app let's you play in TV and such, but my skills were not enough to do that. So I tried a simple alternative that works with computers. In an ideal world, I could make "Play with local mpv server" option come while on other android apps, but I have zero experience in android app development and it looks complicated. I know some other programs also give option to control media, but I wanted to give it a go with a simple implementation. Making the web-server was a tricky part. Only tutorial from the rust book was useful here as every other web server developement in rust seems to be async ones using libraries so I would have to make a complicated system to communicate with the mpv. Using the simple Tcp connection let me make a thread with mpv instance in the scope. I do need to support https and file uploads and other things, but I haven't had any luck finding a solution that works with simple Tcp connection like in the tutorial. Let me know if you know anything. Github: https://github.com/Atreyagaurav/local-mpv
fedilink

Thank you. I’ve been using grk4-rs so I went over their examples and the book. Looking at the c examples might be good as well. And I’ll learn about the GObjects. So far I’ve been winging it based on examples I see and the properties of different classes.


Thank you, I’ll go over them. I think I got a little bit of the basics now. But I need a little advanced knowledge. And most tutorials seems to be for gtk3 and many widgets are now deprecated.

Originally my plan was to make each slide edited separately when you right click and do edit. And be able to drag them up and down and everything, but my skills were not enough. After trying to make that for a week I gave up and made this simpler version. So listview and treeview models from that tutorial could give me more info.


Yeah, the bindings were a great help. I also tried tauri, iced, beavy, and a lot of libraries. At the end just using gtk4 seemed to be the best for my use case. I went through the grk4-rs book, and then started experimenting. I don’t like GUI at all, but for simple cases it works well


Glade doesn’t work for gtk4. There’s cambanche, but it didn’t work as smoothly as glade. Originally I tried just using glade and converting to gtk4 for a bit, didn’t work great as some classes were different.

So at the end I went with just looking at gtk4 docs and writing xml on the editor. It’d be problematic once in a while if I miss closing some tags, other than that it went well.


If anyone here is familiar with making GUIs with rust using gtk4-rs, I’d appreciate some guidance. It’s been a challenging road as I’m trying to learn GUI developement.


cross-posted from: https://lemmy.world/post/11271385 > Basically, you can choose some slides from an opened .tex file to copy. It also has the function to see which graphics files are included in the selected files, so you know which ones to copy. > > Here is the Github link: https://github.com/Atreyagaurav/beamer-quickie > > The PDF pages are shown using the SyncTeX (if available) so that you can visually choose the slides as long as there is a single .tex source file, (might still work without synctex for simple cases). > > I've made it on Linux, so it hasn't been tested in windows. You probably will need to compile gtk on Windows if you want to make it work. So if someone is really interested let me know, I can give instructions. Even in linux you'll need to install dependencies.
fedilink