[-] Dirk@lemmy.ml 11 points 2 days ago

You can also replace individual components. It's basically a bunch of binaries using an API.

[-] Dirk@lemmy.ml 1 points 6 days ago

It’s sad but it is what it is. I wish the author all the best and that they get well soon. But I want to focus on the technical side.

Some tree-sitter functionality and highlighting is already in Neovim. For Lua, even the highlighting groups (@...) are available. So this is mostly fine.

What’s missing for me is a way to get the highlighting groups to other file types, like HTML or JSON, etc. There is some highlighting, so I guess the general parsing from the built-in treesitter is done.

I wonder how we can do this manually either by configuration or using a minimalist plugin.

5
submitted 1 month ago* (last edited 1 month ago) by Dirk@lemmy.ml to c/selfhosted@lemmy.world

Hey!

I basically want to replace the Google Authenticator app in style and functionality:

  1. List all TOTP tokens and their validity time (with a name and order I decide).
  2. Allow me to periodically or on change back up the whole thing to some off-site storage, keeping the last N backups.
  3. Have a native app for Android or an actually good PWA.
  4. Don’t do magic bullshit like fetching icons, hide tokens, etc.
  5. Be actually secure (i.e. don’t roll your own auth)
  6. Just be a TOTP manager, and nothing more! No, I’m not interested in a password manager, thank you. I also don’t want any other OTP methods I don’t use.
  7. Don’t be a one-man projects where the availability is not clear in >1 year.

Any experience is welcomed. Thank you!

Edit: Thanks for all the great ideas, I just set up 2FAuth which seems to be the most minimalist and single-feature thing to self-host. I’ll evaluate how it performs but keep a backup in Google Authenticator. It does not match #7 but it seems to be actively used by the author and gets constant updates and fixes, so it’s most likely fine, I guess.

There is a 3rd-party app for it, but this app seems to be pretty much dead (last release in July 2025 and not in any app store) – or at least not released anymore but still worked on but only in the repository.

15
submitted 2 months ago by Dirk@lemmy.ml to c/firefox@lemmy.ml

When using the built-in translation functionality I get horribly bad results for my use case (translate to German). So bad in fact that some texts become nearly unreadable gibberish. It feels like how machine translations were 20 years ago.

I know that Firefox’s translation system works with offline data only and locally on my machine, and thus is very, very, very limited compared to specialized systems like DeepL – and even the common LLMs.

But I wonder: Is there a way to improve the system? Can I feed it more data to make it better? Can I do more than just download the translations in the settings?

I know I can always use extensions for sending pages or text to the common online translation services, but since Firefox has that built-in I’d love to use it – but it needs to return better results.

Any ideas are welcome!

Thank you and vielen Dank :)

20
submitted 2 months ago by Dirk@lemmy.ml to c/linux@lemmy.ml

So, yeah, basically the title …

I am in search for a good and simple and modern font viewing application. But there seems to be nothing that matches my criteria.

  • The software needs to be independent from any desktop environment, because I don’;t use one and i am not willing to install what feels like hundreds of specific dependencies

  • The software also should not be a font manager, I can manage my fonts absolutely fine by my own.

  • The software also does not need any features to view “installed and uninstalled” fonts (a term I come across – whatever that means), just give it a file name as parameter and view that font in the GUI.

  • The software should not be dead (i.e. last upstream change over a decade ago, using a dead graphics toolkit, not working on Wayland, etc.).

But either I forgot how to search the web or there seems to be no such application. All I wound was either decades old, dead software, or overly complicated and complex font managers or modules for the two common desktop environments.

Any help would be appreciated!

Thanks in advance :)

[-] Dirk@lemmy.ml 162 points 5 months ago

How generous of them that we’re allowed to install software on our mobile computers that we own.

15
submitted 2 years ago* (last edited 2 years ago) by Dirk@lemmy.ml to c/neovim@programming.dev

Update: Based on the discussion here and in other places I added the following (well, technically I did something different in my colorscheme, but in the end it translates to that)

vim.api.nvim_set_hl(0, 'Normal', {})

This reverts the weird text and background colors to the previous behavior of ... not setting them.


With update 0.10 Neovim behavior changed regarding text color and background color.

I use a color theme that does not set those and previously this worked perfectly fine. Neovim simply used the font color defined in the terminal and had a transparent background.

Now the background is #14161b and the font color is #e0e2ea. Neither of the colors is configured ANYWHERE in my whole setup. Neither in the colorscheme, nor in my terminal configuration, nor in my Neovim configuration.

Is there a sane way to revert this to the old behavior? (i.e. use the font color configured in the terminal’s configuration and use transparent background.)

[-] Dirk@lemmy.ml 161 points 2 years ago

I cannot see anything bad here. Blocking an actively malicious actor should be the norm.

[-] Dirk@lemmy.ml 179 points 2 years ago

My friend works for a company which requires her to use Microsoft specific application

So the company needs to provide said friend with all the needed software.

51
submitted 2 years ago by Dirk@lemmy.ml to c/selfhosted@lemmy.world

I'm currently researching the best method for running a static website from Docker.

The site consists of one single HTML file, a bunch of CSS files, and a few JS files. On server-side nothing needs to be preprocessed. The website uses JS to request some JSON files, though. Handling of the files is doing via client-side JS, the server only need to - serve the files.

The website is intended to be used as selfhosted web application and is quite niche so there won't be much load and not many concurrent users.

I boiled it down to the following options:

  1. BusyBox in a selfmade Docker container, manually running httpd or The smallest Docker image ...
  2. php:latest (ignoring the fact, that the built-in webserver is meant for development and not for production)
  3. Nginx serving the files (but this)

For all of the variants I found information online. From the options I found I actually prefer the BusyBox route because it seems the cleanest with the least amount of overhead (I just need to serve the files, the rest is done on the client).

Do you have any other ideas? How do you host static content?

[-] Dirk@lemmy.ml 260 points 2 years ago

Incognito is only good for one reason: Not having those sites in the browsing history.

9
submitted 2 years ago by Dirk@lemmy.ml to c/lemmy_support@lemmy.ml

Basically the title.

When I open lemmy.ml it says “posts, subscribed, oredered by new” on top:

But almost none of the posts shown are from my subscribed communities and they’re not ordered by new.

There are even posts from communities shown that I have on my block list.

Any idea how to fix that?

5
submitted 2 years ago by Dirk@lemmy.ml to c/lemmy_support@lemmy.ml

Since the new version was deployed to lemmy.ml which allows blocking instances I tried to block an instance.

When opening the drop down and enter the name/url of the instance (or even a part of its name) the list is then filled with a seemingly random list of instances but not the instace I searched for.

I tried in a desktop browser (Chrome on Windows) and in a mobile browser (Vivaldi Mobile, which uses Chromium as base), same behavior.

Since I don't use GitHub I report it here.

[-] Dirk@lemmy.ml 162 points 2 years ago

I just sit in the hut and enjoy my food while the dinosaur is starving outside.

Sounds okay to me.

836
submitted 2 years ago by Dirk@lemmy.ml to c/programmerhumor@lemmy.ml
72
submitted 2 years ago by Dirk@lemmy.ml to c/linux_gaming@lemmy.ml

Let's leave Steam and other launchers and distribution platforms alone a bit. Also lets stop discussing game engines for moment ...

  • What are your favorite games that run natively on Linux and what genre are they?

Would be cool if you could write a few words about the game and why it's your favorite game.

43
submitted 2 years ago by Dirk@lemmy.ml to c/selfhosted@lemmy.world

Currently I’m planning to dockerize some web applications but I didn’t find a reasonably easy way do create the images to be hosted in my repository so I can pull them on my server.

What I currently have is:

  1. A local computer with a directory where the application that I want to dockerize is located
  2. A “docker server” running Portainer without shell/ssh access
  3. A place where I can upload/host the Docker images and where I can pull the images from on the “Docker server”
  4. Basic knowledge on how to write the needed Dockerfile

What I now need is a sane way to build the images WITHOUT setting up a fully featured Docker environment on the local computer.

Ideally something where I can build the images and upload them but without that something “littering Docker-related files all over my system”.

Something like a VM that resets on every start maybe? So … build the image, upload to repository, close the terminal window, and forget that anything ever happened.

What is YOUR solution to create and upload Docker images in a clean and sane way?

27
submitted 2 years ago by Dirk@lemmy.ml to c/steam@lemmy.ml

Since some time now the Steam Flatpak cannot start up and I have no idea why this happens.

Web research leads to basically nothing that is related to what I experience so I assume it has something to do with my system. Other Flatpaks start up normally and I can use them.

When resetting everything related to the Steam Flatpak and reinstalling it from Flathub it loads and installs the Flatpak and then installs all necessary stuff

[various update-related stuff]
setup.sh[4598]: Forced use of runtime version for 32-bit libcurl.so.4
setup.sh[4598]: Found newer runtime version for 32-bit libSDL2-2.0.so.0. Host: 0.2400.0 Runtime: 0.2600.5
setup.sh[4598]: Forced use of runtime version for 32-bit libgtk-x11-2.0.so.0
setup.sh[4598]: Found newer runtime version for 32-bit libvulkan.so.1. Host: 1.3.224 Runtime: 1.3.239
setup.sh[4598]: Forced use of runtime version for 32-bit libdbusmenu-glib.so.4
setup.sh[4598]: Forced use of runtime version for 32-bit libcurl-gnutls.so.4
setup.sh[4598]: Forced use of runtime version for 32-bit libdbusmenu-gtk.so.4
setup.sh[4598]: Forced use of runtime version for 64-bit libcurl.so.4
setup.sh[4598]: Found newer runtime version for 64-bit libSDL2-2.0.so.0. Host: 0.2400.0 Runtime: 0.2600.5
setup.sh[4598]: Found newer runtime version for 64-bit libvulkan.so.1. Host: 1.3.224 Runtime: 1.3.239
setup.sh[4598]: Forced use of runtime version for 64-bit libcurl-gnutls.so.4
steam.sh[2]: Steam client's requirements are satisfied

So everything looks good up to this point. The small Steam update windows poppend up several times indicating the running installation/update. The output then continues:

[2023-08-17 22:47:50] Startup - updater built Jul 28 2023 18:44:09
[2023-08-17 22:47:50] Startup - Steam Client launched with: '/home/dirk/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam' '-no-cef-sandbox'
08/17 22:47:50 Init: Installing breakpad exception handler for appid(steam)/version(1690583737)/tid(5467)
[2023-08-17 22:47:50] Loading cached metrics from disk (/home/dirk/.var/app/com.valvesoftware.Steam/.local/share/Steam/package/steam_client_metrics.bin)
[2023-08-17 22:47:50] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2023-08-17 22:47:50] Using the following download hosts for Public, Realm steamglobal
[2023-08-17 22:47:50] 1. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-08-17 22:47:50] Verifying installation...
[2023-08-17 22:47:50] Verification complete
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf0d328f0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf0d311c0
GetWin32Stats: display was not open yet, good
GetWin32Stats: display was not open yet, good

(The last line gets printed twice, yes.)

The first startup process then hangs there for a few seconds and continues with this.

steamwebhelper.sh[5473]: Running under Flatpak, disabling sandbox
steamwebhelper.sh[5473]: CEF sandbox already disabled
CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
src/steamUI/steamuisharedjscontroller.cpp (540) : Failed creating offscreen shared JS context
src/steamUI/steamuisharedjscontroller.cpp (540) : Fatal assert; application exiting
08/17 22:48:39 Init: Installing breakpad exception handler for appid(steam)/version(1690583737)/tid(5467)
assert_20230817224839_27.dmp[5771]: Uploading dump (out-of-process)
/tmp/dumps/assert_20230817224839_27.dmp
dirk ~ $ 

After the command prompt is shown agein, this gets printed:

assert_20230817224839_27.dmp[5771]: Finished uploading minidump (out-of-process): success = yes
assert_20230817224839_27.dmp[5771]: response: CrashID=bp-f62fb7e8-d024-452e-a937-9c6672230817
assert_20230817224839_27.dmp[5771]: file ''/tmp/dumps/assert_20230817224839_27.dmp'', upload yes: ''CrashID=bp-f62fb7e8-d024-452e-a937-9c6672230817''

At the given location there is no dump file.

Do you guys have any Idea why this happens and how I can fix it?

Involved software:

$ flatpak --version
Flatpak 1.15.4

$ flatpak remotes
Name    Optionen
flathub system

$ flatpak info com.valvesoftware.Steam | grep Version | awk '{print $2}'
1.0.0.78

$ uname -rms
Linux 6.4.10-arch1-1 x86_64

$ openbox --version | head -n1
Openbox 3.6.1

$ pacman -Qi xorg-server | grep Version | awk '{print $3}'
21.1.8-2
[-] Dirk@lemmy.ml 169 points 2 years ago

Web 2.0 or: “Instead of loading all code from the same URL the website now needs a dozen of different scripts from a dozen of different URLs, gives a shit about CSP and only shows a blank page when JS and/or cookies are disabled.”

41
submitted 2 years ago by Dirk@lemmy.ml to c/asklemmy@lemmy.ml

In opposition to this post ... Name your most favorite upsides of software being federated.

[-] Dirk@lemmy.ml 122 points 2 years ago

Firefox it is again?

[-] Dirk@lemmy.ml 212 points 2 years ago

Easy to learn, hard to master, used for things it wasn’t created for.

Yep.

[-] Dirk@lemmy.ml 147 points 2 years ago

"Your code has an issue here's a fix for that".

Corporate: no.

view more: next ›

Dirk

joined 2 years ago