• 1 Post
  • 18 Comments
Joined 1 year ago
cake
Cake day: June 28th, 2023

help-circle

  • Since people keep bringing up tauri, here’s the comparison made in the README:

    Dioxus vs Tauri

    Tauri is a framework for building desktop (and soon, mobile) apps where your frontend is written in a web-based framework like React, Vue, Svelte, etc. Whenever you need to do native work, you can write Rust functions and call them from your frontend.

    • Natively Rust: Tauri’s architecture limits your UI to either JavaScript or WebAssembly. With Dioxus, your Rust code is running natively on the user’s machine, letting you do things like spawning threads, accessing the filesystem, without any IPC bridge. This drastically simplifies your app’s architecture and makes it easier to build. You can build a Tauri app with Dioxus-Web as a frontend if you’d like.

    • Different scopes: Tauri needs to support JavaScript and its complex build tooling, limiting the scope of what you can do with it. Since Dioxus is exclusively focused on Rust, we’re able to provide extra utilities like Server Functions, advanced bundling, and a native renderer.

    • Shared DNA: While Tauri and Dioxus are separate projects, they do share libraries like Tao and Wry: windowing and webview libraries maintained by the Tauri team.




  • It’s when you open a publicly facing port and map (forward) it to a local port your machine. In this case, it’s opened at the vpn provider’s public gateway. Otherwise, it would typically be opened in your router instead.

    You can then configure your torrent client to listen on that local port that the public port is forwarded to. I think generally the public and the local port are the same number when using VPN.

    If you do that, then others have the ability to initiate a connection to you instead of only you being able to initiate the connection to somebody else.

    When seeding/leeching to/from someone else, at least one of you needs a port open. So, if you always have one open, you allow yourself to connect to anyone on the network regardless if they have one open or not.

    Sorry if I confused you more, I’m not that great at explaining.










  • I use debian 12 on my work laptop. I agree with your points but I still use it because I want the fundamental system to be stable, and then any software I want to be more up-to-date I build from source (tmux, alacritty, neovim) or download separately (vscode/slack/joplin).

    I used to use ubuntu because it worked so well with my hardware ootb, but I got tired of snap.


  • I will sound really nit-picky buy the biggest thing keeping me away from using KDE is that accent-colored bar on each window in the taskbar, and the different coloring of open/focused/minimized windows. I want it sleek but not cluttery.

    I’ve tried about a dozen themes but I couldn’t find any that got rid of that and looked good. I tried fixing it myself but editing svg files was too difficult for me.

    I hope plasma 6 adds more options for this but I’m not holding my breath.


  • Oscar@programming.devtoLinux@lemmy.mlUsed Windows today since months
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    11 months ago

    Something i especially appreciate about winget us that it will “index” (or whatever you want to call it) software that was installed outside of it. For example if I install app XYZ through an .msi setup file, I can update it using winget.

    So it seems I can also use scoop or chocolatey to install new software and then keep managing them through winget.


  • I haven’t gone though it in detail but something that stood out to me is the complexity of process_content().

    If you at some point end up with a large function, or if you have deeply nested blocks, it can help readability to split it up into smaller functions with more clear goals, even if they are only called once. In your case you could keep process_content() as a sort of parent function for calling smaller ones.

    I’m guilty of large functions too because it’s easier to just add stuff to a single function while developing and debugging, but before I submit stuff I tend to go through and clean up by doing this.

    Though I guess this is sort of opinionated too!