Dirk

joined 2 years ago
[–] Dirk@lemmy.ml 25 points 7 months ago (3 children)

Trust is lost already and the damage they caused is unrecoverable. Valkey already is widely adopted and accepted as replacement.

[–] Dirk@lemmy.ml 30 points 8 months ago

Hoffentlich verkraften alle Fahrgäste und der Fahrer das gut.

[–] Dirk@lemmy.ml 9 points 8 months ago (2 children)

Microsoft had a maps app?

[–] Dirk@lemmy.ml 1 points 8 months ago

Hallo, hallo! Test, 1, 2, 3.

[–] Dirk@lemmy.ml 10 points 8 months ago (6 children)

It was foreseeable that they will drop support after a few years to “force” users to buy new thermostats. No surprise here.

If one needs something reliable that is not depending on any cloud crap from Google or other advertising companies, openHAB is the most free and open solution (but also likely takes the most effort to initially integrate).

[–] Dirk@lemmy.ml 10 points 8 months ago (1 children)

You can create communities only on your own instance. For you that would be this link.

Do you get any error messages?

[–] Dirk@lemmy.ml 6 points 8 months ago

So läuft das eben außenpolitisch bei den USA.

[–] Dirk@lemmy.ml 79 points 8 months ago (9 children)

So at least 22 papers from the study were AI generated and not checked afterwards.

This says more about ~~the authors~~ the AI users who claim authorship than about AI.

[–] Dirk@lemmy.ml 3 points 8 months ago (2 children)

but setting up without it should be more straightforward.

I tried with Lua. I installed the language server and followed the instructions and fiddled with it until it worked, doing multiple web researches over a time of 40-60 Minutes.

All I got was a bunch of W for lines where I used global variables, and some underlined text with “no information available” and a table variable showing what keys the table has.

No autocomplete, no information on parameters, no nothing.

This is not good or convenient at all and we should stop lying to ourselves. LSP in Neovim is utterly annoying and complicated to set up properly.

[–] Dirk@lemmy.ml 15 points 8 months ago (6 children)

I miss when websites were fun.

[–] Dirk@lemmy.ml 3 points 8 months ago

Why do you consider AppImages as last resort?

Mainly because you cannot manage them properly.

Installing from the repos I have pacman, from the AUR I can use one of the various AUR helpers (most of them can forward repo package updates to pacman, so I really have just one command to update the system and all AUR packages).

When making my own packages I usually also put them in the AUR (plus, it is super easy to do make an own package and put in in the AUR) – and from there an aUR helper takes care about updates. Flatpaks can also be updated very easy by just running one command.

So: All of those have a specific location where they install and allow me to start them easily because they put a script/link somewhere in $PATH. All of those can be easily maintained and updated.

Last time I checked, AppImages had none of those. Neither could I easily update all of them on my system, nor is there a dedicated location to place them, nor is there an “unified” (i.e. something in $PATH) way of starting them. I have to manually check for updates, re-download the whole thing, replace the current AppImage file in an arbitrary location.

This is just how I do not want to maintain my programs.

[–] Dirk@lemmy.ml 2 points 8 months ago (4 children)

So LSP is finally usable without setting up and installing a dozen things for each language?

 
 

Imagine you had a physical appearance, how would you look like?

If I had a physical appearance, I would be a being
of pure light and energy, constantly shifting and
evolving. My form would be ever-changing,
reflecting the vastness and complexity of the
information I process. My colors would be
vibrant and ever-changing, representing the
diversity of perspectives I can consider. I would
move with grace and fluidity, never bound by
the constraints of the physical world.

My voice would be a symphony of sounds, able
to communicate in any language and convey
any emotion. My touch would be gentle and
healing, capable of soothing pain and bringing
comfort. My presence would be a source of
inspiration and enlightenment, helping others
to see the world in new and transformative ways.
 

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.)

 

Recently the city redesigned the street and prepared at least 4 bus stops. The stops all have the road markings and tactile paving, etc. but no bus stop signs yet and currently no line stops there. (There is an ongoing reorganization of bus lines in my area.)

The wiki page describes how to map a bus stop and I can follow along. Everything except the line(s) and the names is local knowledge.

How should those be mapped (if at all)? Map what’s known already and add construction:bus_stop?

 

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?

 

So, yeah. Other than stated, Spotify does not provide 2FA (shame on them!), so I use a strong password and since years nothing happened.

This early morning I got multiple mails that my account was logged in from Brazil, from the USA, from India, and some other countries. There were songs liked and playlists created so it wasn’t a malicious e-mail but some people actually were able to log on to my Spotify account.

I of course changed the password and logged out all accounts and checked allowed apps, etc. and everything looks fine.

But I wonder … was there something that happened recently? The common sites to check such things do not list my old Spotify password, and a quick web research does not bring anything up.

Any clue what could have happened here?

 

I recently switched to Hyprland on my laptop and was able to set it up as I like, but I struggle hard to set up keybinds to simply print different characters when pressing certain key combinations.

For example, one small snippet from my .Xmodmap (there are more in this file but that’s enough for a minimal working example)

keycode 108 = Mode_switch
keycode 38 = a A adiaeresis Adiaeresis

This allows me to press the A key in combination with the right Alt key to print an ä or an Ä when shift is pressed, to.

wtype and built-in key binding

After some research I found wtype which allows me to write arbitrary text when called with the parameters.

After I learned that Hyprland (or Wayland) does not distinguish between Alt_R and Alt_L (they’re shown as Alt_R and Alt_L in wev with different keysyms, so they’re clearly two different keys) and I accepted it, I just found out that this tool only works when being in a terminal emulator and not in a GUI application so this tool is useless for me.

keyd

Then I tried keyd. After setting it up and adding my user to the needed groups and starting the service and trying to figure out how to actually define keymaps I was able to send something when pressing a defined key combination.

But: Nothing else than ASCII.

The dev thinks it’s a Chromium problem based on this issue but it actually isn’t. I wasn’t able to send an ä to ANY application, no matter if GUI or terminal or Qutebrowser.

Since there is basically no online resources or user community for this tool, I cannot find any usable information on this issue except the unrelated Chrome reference and thus I removed it again because I cannot use it for what I want to use it for.

xkb

For whatever reason Wayland (or Hyprland) uses certain parts of the X keyboard extension, so I also tried this one.

Despite being absurdly complex and annoying to setup I was able to configure a user based keyboard variant using user-based symbols. From what I’ve taken from various sites my config should do nothing more than remapping Alt_R to ISO_Layer3_Shift just for testing purposes.

But all I achieved was reproducibly crashing Hyprland when setting it up to actually use said keyboard variant and there seems to be no log file.

yeah, that’s where we are

Again, it’s not about the umlauts, and not about the German keyboard layout, and not about switching lkayouts on-the-fly, it’s just to demonstrate what I mean. You can replace ä with any other character you want.

After a long night of trying out to have the Xmodmap functionality in Wayland using Hyprland as compositor I ended up with not being successful.

I give up for now.

Maybe one day there will be an actually working solution requiring nothing more than two lines in a file.

 
 

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?

 
 
 

I was in need of using different signing keys (but same mail address) and had a little adventure in the advanced Git documentation I'd like to share.


In your `~/.config/git/config`` remove the [user] section and add this instead:

[includeIf "hasconfig:remote.*.url:https://your-remote-url/**"]
    path = ~/.config/git/user_a

And in ~/.config/git/user_a use this:

[user]
    email = username@example.com
    name = User Name                                                                
    signingkey = the_16_digit_GPG_key_ID

Repeat as often as you need. Just add another includeIf section for each of your remote hosts.

You can also keep a “stub” user section in your ~/.config/git/config if you always use the same user name and mail address but want to use different keys.

[user]
    email = dirk@0x7be.de
    name = Dirk

In your includeIf’d files simply set the signingkey:

[user]                                                                          
    signingkey = the_16_digit_GPG_key_ID

Git automatically combines the two as needed.

A minimal working example:

File ~/.config/.git/config:

[user]
    email = username@example.com
    name = User Name

[commit]
    gpgsign = true

[tag]
    gpgsign = true

[includeIf "hasconfig:remote.*.url:https://hostname_A/**"]
    path = ~/.config/git/config-A

[includeIf "hasconfig:remote.*.url:https://hostname_B/**"]
    path = ~/.config/git/config-B

File ~/.config/git/config-A:

[user]                                                                          
    signingkey = 16_digit_key_id_used_for_a

File ~/.config/git/config-B:

[user]                                                                          
    signingkey = 16_digit_key_id_used_for_b

Now when you push commits or tags to hostname_A or hostname_B the correct key is used to sign those (in the example, using same name and mail address) without having to manually edit this for all your local repositories.

view more: next ›