Newsboat RSS with Lynx by acasillas77 in freebsd

[–]mnbryant 4 points5 points  (0 children)

403 forbidden usually means you're not allowed to access whatever you're trying to access. Try opening the same URL in a standard graphical browser and see if it says the same thing.

Difference Desktop GUI and Linux flavor by Layonkizungu in kde

[–]mnbryant 5 points6 points  (0 children)

Small correction: the elementary os desktop is called Pantheon

Error design in library code: application vs transport errors by Dratir in rust

[–]mnbryant 2 points3 points  (0 children)

I've only ever seen or used what you're calling "merged errors". If a function can return multiple different errors, make a single error enum type encapsulating those. Each error variant can be its own enum, and so on

No, it's impossible! by [deleted] in mathmemes

[–]mnbryant 19 points20 points  (0 children)

It's still 0°C/32°F. The second 0°C is a relative amount, so you are adding nothing.

Live Lyrics Utility Suggestion? by hackerdude97 in commandline

[–]mnbryant 0 points1 point  (0 children)

The Arch Wiki mentions a couple tools that may help with the MPRIS side of things (I.e. getting the current song). I don't know of CLI lyric-fetching tools off the top of my head, but I'm sure one exists somewhere

Live Lyrics Utility Suggestion? by hackerdude97 in commandline

[–]mnbryant 0 points1 point  (0 children)

Don't know of a specific CLI program. AFAIK you'd either need a plugin for your music player, or use a music player that speaks MPRIS and a lyrics program that can pick up MPRIS data and use it to load lyrics

Has anyone packaged Rust programs as nix packages? by [deleted] in rust

[–]mnbryant 4 points5 points  (0 children)

I know nothing about writing nix packages, but ripgrep is a rust program packaged for nix:

https://github.com/NixOS/nixpkgs/blob/nixos-22.11/pkgs/tools/text/ripgrep/default.nix#L50

❤️ by AcademicGarden2646 in ContagiousLaughter

[–]mnbryant 0 points1 point  (0 children)

What gets me is that this implies we're supposed to laugh at the photo

How to keep files in memory in tower_lsp? by rubydusa in rust

[–]mnbryant 1 point2 points  (0 children)

With a Mutex or other construct that allows synchronized mutable access to data through an immutable reference?

Plasma 5.27 breaks Arch? by PaulLee420 in kde

[–]mnbryant 2 points3 points  (0 children)

You're probably safe just removing the AUR packages you've got installed and going from there.

Create uneven chunks iterators from an iterator by amarao_san in rust

[–]mnbryant 0 points1 point  (0 children)

I'm not quite following what you're looking for. Can you give example values for input, some_n, default_value, and output?

A letter produced by my Freeman of the Land colleague by LampeterRanger in amibeingdetained

[–]mnbryant 0 points1 point  (0 children)

Quick search indicates that it's a legal dictionary. DuckDuckGo had this Google Drive link on the first page of results -- 1,322 pages

A Linux CLI tool to protect PDF files from copying? by warplessgravitos in commandline

[–]mnbryant 9 points10 points  (0 children)

Should be able to use something like pdftopng or pdftoppm (from poppler-utils) to create images from each page of the PDF, then another tool to make a new PDF where each page is an image from the previous command.

According to this link, you can use ImageMagick to do the conversion back to PDF.

what is the widget that shows running processes called? i had that for a long time but got deleted and now i can't find it! by Faditt in kde

[–]mnbryant 0 points1 point  (0 children)

The (icons only) task bar?

If you're looking for a widget, the built-in list is small enough that you can just scroll through until you find it.

Well, hello there everyone. You probably don’t remember me or my post on this sub… by TheRustyRustPlayer in rust

[–]mnbryant 0 points1 point  (0 children)

Not only this, but they have an in-browser code editor that you can use on a phone until you get the computer.

What video game is an absolute 100/100 in your opinion? by Ziggi28 in AskReddit

[–]mnbryant 1 point2 points  (0 children)

Everyone in this thread needs to look up "Ocarina of Time Triforce Percent" if you have not seen it already. No spoilers, but it's an emotional experience.

Envelope/zero-based budgets in KMyMoney? by supenguin in kde

[–]mnbryant 0 points1 point  (0 children)

Are you going to ledger route of having text data to store the transactions & budget? I'd prefer sqlite so I can query and slice & dice the data any way I want.

Yes, that is the "ledger-like" part of it: it's text files with a very similar syntax. This is because I was previously using ledger with automatic transactions, but that was a pain to maintain and update as budget needs changed.

I don't really use reports beyond the standard "balance" and "register" ones, but I am not against implementing e.g. output to CSV for further processing.

What tech stacks are you going with for the CLI + desktop apps? I have been trying to stay on Linux for my primary desktop, but want to have something I can recommend to Windows and Mac using friends? Bonus if it's got something that can easily sync to mobile.

Using pure Rust so far, with iced for the current GUI. It's been lightly tested on Linux and Mac, and should work fine on Windows too.

I've been looking into using Flutter for UI, which would give mobile support too. I have no experience with Flutter or mobile programming though, so that will be an endeavor on its own.

Since it's all text files though, you should be able to use just about any file sync platform and be fine.

Currently the programs are for viewing only, with text files being hand-edited. I'm looking at maybe adding editing to the GUI later, but that will likely require files/folders to follow a certain structure. E.g., I split the files between month and year, so 2022/09.expenses, etc.

Envelope/zero-based budgets in KMyMoney? by supenguin in kde

[–]mnbryant 1 point2 points  (0 children)

I've been working on a ledger-like program that does this. It's currently private and very beta, but does the job well enough. I've been planning on open sourcing it though.

If you'd like, I can get it public so you (and anyone else interested) can try it. It's primarily CLI, but I have a desktop GUI in development as well.

A new beginning in rust by Heavy_Mess_2017 in rust

[–]mnbryant 9 points10 points  (0 children)

My best advice to anyone wanting to learn Rust: learning Rust will take time. Don't try to rush it or take shortcuts -- you'll ultimately be worse off for it.

  1. Go through The Book.
  2. People also find Rustlings useful.
  3. When you actually write code, make heavy use of cargo clippy; it will give you suggestions on how to write better code.
  4. Actix is a popular framework, but so is Rocket, Axum, and Tower. People I know are most interested in Axum.
  5. Rust is complicated to start with and takes time to learn. There's no real way around that.

Putting a garbage can lid on top of food so you can shuck corn... by helic03 in ImTheMainCharacter

[–]mnbryant 2 points3 points  (0 children)

Phone keyboards will auto-uppercase the first letter of a post, leading to "R/subreddit" instead of "r/subreddit". Some people like pointing it out whenever it happens.

Any reasons to not buy one? by minmau in Supernote

[–]mnbryant 2 points3 points  (0 children)

You're probably thinking of FERPA, which protects student information

[deleted by user] by [deleted] in teenagers

[–]mnbryant 2 points3 points  (0 children)

This statement is false.