lurch

joined 2 years ago
MODERATOR OF
[–] lurch@sh.itjust.works -2 points 8 hours ago (1 children)

that went well /s

[–] lurch@sh.itjust.works 6 points 8 hours ago (1 children)

Why would he smite the pennies tho?

[–] lurch@sh.itjust.works 11 points 9 hours ago

it's not that simple, is it?

[–] lurch@sh.itjust.works 5 points 9 hours ago

also, that light switch box space sawed out of the door frame must be some kind of crime idk 😆

[–] lurch@sh.itjust.works 4 points 9 hours ago

you could make it a dumbwaiter for cans, kegs, beer/wine crates or a laundry lift, but then the fridge can't be directly in front.

[–] lurch@sh.itjust.works 2 points 9 hours ago

I'm saddened that it's not powered by a PlayStation 2 GPU 😉

[–] lurch@sh.itjust.works 2 points 12 hours ago

Wählen nur noch nach Rechtschreibtest? /s

[–] lurch@sh.itjust.works 3 points 12 hours ago (1 children)

Sind noch andere Parteien dabei, aber Fakt ist: 3 Verräter gurken da rum.

[–] lurch@sh.itjust.works 1 points 12 hours ago

the saudies are still trying to be welcoming for many foreigners. they just shouldn't look behind the curtains where the human rights are abused. but the US officials actively boast with their human rights violations now. you can't make this shit up.

[–] lurch@sh.itjust.works 1 points 12 hours ago

the US kinda lowered the bar enough for the saudies to hop over 😆

[–] lurch@sh.itjust.works 2 points 13 hours ago

Women are also the first to move to other regions, if shit hits the fan. They dgaf and leave lots of angry incels behind. I've seen this happen from afar a few times. The regions left behind start to suffer from low birth rate and xenophobic/territorial behavior of frustrated men and eventually become no-go zones.

[–] lurch@sh.itjust.works 3 points 18 hours ago

Where are those settlers settling btw?

 

Photo of flower pot with red houseleek and some grass coming out between the remnants of the Edelweiss that died a few months ago and a fresh hole with a single acorn in it.

6
submitted 2 months ago* (last edited 1 month ago) by lurch@sh.itjust.works to c/einfachposten@feddit.org
 

ELECOM Trackball EX-G Modelle haben ein neues Chipset, das (mal wieder) die Anzahl Buttons falsch meldet. Für einige Chipsets gibt es dafür schon Workaround-Code im Linux Kernel. Wenn dein extra Button nicht geht, kannst Du seine Clicks mit diesem Beispiel C-Programm (kompilieren mit gcc) detektieren und vllt. irgendwas machen:

#define _GNU_SOURCE
#include <fcntl.h>
#include <unistd.h>
#include <linux/hiddev.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <spawn.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include <errno.h>
#include <string.h>

void sigio_handler(int signo) {
    // Dummy handler to "nudge" the process
    //write(STDERR_FILENO, "SIGIO received\n", 15);
}

int main(int argc, char *argv[] /*, char *envp[]*/) {
    if (argc != 2 ) {
        printf("Usage: %s /dev/usb/hiddev?\nWhere \"?\" is a number.\n", argv[0]);
        return 1;
    }
    int fd = open(argv[1], O_RDONLY);
    if (fd < 0) { perror("open"); return 1; }
    char *xdotoolargs[] = { "pxdotool", "key", "p", NULL };
    extern char **environ;
    struct hiddev_event ev;
    int buttonNr=0;
    bool pressed=false;
    int status=-1;
    pid_t pid;

    // Set up dummy SIGIO handler
    struct sigaction sa;
    sa.sa_handler = sigio_handler;
    sigemptyset(&sa.sa_mask);
    sa.sa_flags = 0;
    if (sigaction(SIGIO, &sa, NULL) < 0) {
        perror("sigaction");
        close(fd);
        return 1;
    }

    // Set ownership and signal
    if (fcntl(fd, F_SETOWN, getpid()) < 0) {
        perror("fcntl F_SETOWN");
        close(fd);
        return 1;
    }

    if (fcntl(fd, F_SETSIG, SIGIO) < 0) {
        perror("fcntl F_SETSIG");
        close(fd);
        return 1;
    }

    // Enable asynchronous I/O
    int flags = fcntl(fd, F_GETFL);
    if (fcntl(fd, F_SETFL, flags | O_ASYNC) < 0) {
        perror("fcntl F_SETFL O_ASYNC");
        close(fd);
        return 1;
    }

    int ev_size = sizeof(ev);
    while (1) {
        ssize_t n = read(fd, &ev, ev_size);
        if (n < 0 || n < ev_size) {
            if (errno == EINTR) continue; // Interrupted by signal
            perror("read");
            break;
        }
        if ( ev.hid == 589829) {
            if ( buttonNr == 1) {
                if ( ev.value == 1 ) {
                    if (!pressed) {
                        // extra button mouse down
                        printf(">>> HID event: button=%d, type=%d, value=%d\n",
                                            buttonNr,  ev.hid, ev.value);
                        fflush(stdout);
                        if(status==0){
                                waitpid(pid, &status, 0);
                        }
                        status = posix_spawn(&pid, "/usr/bin/xdotool", NULL, NULL, xdotoolargs, environ);
                        pressed=true;
                    }
                } else if(pressed) {
                    // extra button mouse up
                    //printf("<<< HID event: button=%d, type=%d, value=%d\n",
                    //                        buttonNr,  ev.hid, ev.value);
                    //fflush(stdout);
                    pressed=false;
                }
            //} else {
            //   // some other button with same event ID the kernel/X/wayland can handle (up or down)
            //   printf("--- HID event: button=%d, type=%d, value=%d\n",
            //                           buttonNr,  ev.hid, ev.value);
            //   fflush(stdout);
            }
            buttonNr++;
        } else {
            // more buttons or mouse events, but with different IDs
            //printf("    HID event: button=%d, type=%d, value=%d\n",
            //                        buttonNr,  ev.hid, ev.value);
            //fflush(stdout);
            buttonNr=0;
        }
    }
    if(status==0){
        waitpid(pid, &status, 0);
    }
    printf("Read all. Closing.");
    close(fd);
    return 0;
}

//edit: fixed read stalling after a while; launching xdotool as an example directly

249
submitted 4 months ago* (last edited 4 months ago) by lurch@sh.itjust.works to c/memes@lemmy.world
 

"is for me?" meme with devil horns and stinger added, captioned:

Me: *opens window to let moisture out after shower*

The wasp: (is for me?)

 

France will participate in a capital increase by satellite operator Eutelsat to the tune of €717 million (US$826 million) to help the company finance the expansion of its constellation of low-orbit communication satellites and create a sovereign European alternative to Starlink.

 

In den Osterferien ist eine aus Afghanistan stammende Familie nach Indien abgeschoben worden. Die früheren Mitschüler der beiden Söhne sind geschockt - und gingen in Frankfurt auf die Straße.

 

"Kotzt ihnen ins Gesicht": Auch die Generalstaatsanwaltschaft Köln sieht nach Peter Fischers deftiger AfD-Schelte keinen Anfangsverdacht für eine Straftat. Die Beschwerden gegen Eintracht Frankfurts Ex-Präsidenten hatten keinen Erfolg.

5
submitted 7 months ago* (last edited 7 months ago) by lurch@sh.itjust.works to c/dreams@redlemmy.com
 

I dreamt that I was loading the dishwasher. I had the top compartment full. My brother was making all sorts of food and was in the living room now. There was an unpacked frozen pizza with tomatos and cheese on the stovetop ready to be put in the oven. But then, for some reason, I had a tiny stainless steel grate that I needed to mount to the bottom to the dishwasher instead of the normal basket that goes there. I had some sort of plug for it, but it wouldn't fit. I asked my brother in the living room and also mentioned the pizza not yet in the oven. He gave me a weird kitchen scissors that might work as a plug and said it wasn't time to put the pizza in the oven yet. I found 2 holes for plugs at the bottom of the dishwasher, but the scissors wouldn't fit. My brother was standing beside me. Then I noticed and mentiomed the scissors aren't even dishwasher safe. Before I woke up, I was thinking, we need asbestos arsenide plugs, beacause those would withstand the environment in the dishwasher, but were they safe to put with dishes? (I don't think asbestos arsenide is a thing IRL.)

 

I dreamt that humans, dragons in humanoid form and atrifial liforms called seekers also in humanoid form lived together in harmony, but it wasn't always that way. Seekers were historically designed to kill dragons. An ancient device had caused a virus to revert a seekers programming to kill dragons again.

The white haired but youthful, human looking dragon queen lives in the water of some sort of open air temple with water cascades and bonsai trees. A seeker girl in abody suit of rough synthetic material wants to warn the dragon queen about the reprogrammed seeker, but the dragon queen swims around in some sort of ritual with chants and whenever the girl is about to talk, the queen jumps down a water cascade and dives into the next pond. There are dragons on the sides of the ponds and standig atop the small waterfalls. They laugh about the seeker girl being confused. The girl carries a chunky device that has a flat base and some sort of saucer shaped thing above it and contains some sort of proof. With that thing she has trouble following the queen. She still jumps after her into the next pond.

There is a scene cut like in a movie. A human guy and a tall seeker guy with a grey fedora stand in a room in a high rise building. The window behind them shows cityscape. They are detective partners at a crime scene that is mostly out of view. Suddenly the seekees face becomes some sort of flat blue display and shows a circle of text in ancient glyphs slowly rotating and changing in bright colors. The human looks at it and jokes it's just like the old times. The seeker replies he recieved an old signal from a compromised seeker.

The scene switches back to the water temple. The seeker girl stands at the bottom of a big cascade finally delivering the news to the queen. On the other side in the background is a cityscape.

Then I woke up.

 

Beim Scrollen werden ähnliche Ereignisse in der Geschichte der NSDAP durch welche der AfD ersetzt.

Screenshot NSSAP

Screenshot nach scrollen ersetzt durch AfD

 

I dreamt there was a hard cover comic book for children and also for abuse victims, called Is It My Fault. It shows various situations in which something bad happened, with speech bubbles. The reader had to guess whether it's the main characters fault and it had a little built in feature whete you had to fold a lens and a tiny piece of film out and peek through it to see if you guessed correctly.

 

I dreamt I waa a youth at a sunny ancient port town (but in modern day) with stone docks made from white matte stone with grey and yellow lines. It wasn't busy only few crates stood around. No ships in sight. We had the super funny idea to let a goat loose with a GPS tracker. We did it. Then I woke up worrying the goat might eat farmers crops and precious garden flowers on it's way to the mountains and realized it was just a dream and there is no goat on the lose 😅

3
submitted 8 months ago* (last edited 8 months ago) by lurch@sh.itjust.works to c/dreams@redlemmy.com
 

I dreamt I temporarily lived by choice in a shed in warm country. The floor was dusty dry earth. I was trying to lay low. I open the double shed door. Someone put a bike against one, which I liked, because it makes it less suspicious, so I use only one door side to get out. It's a small path next to a sugar cane field in the afternoon. I have the feeling I forgot something. Like a ninja I run up walls to get on roofs jump from roof to roof and drop into an alley. I'm on a personal mission. Something is wrong. I feel manipulated. This mission should help find out more. I find a shady guy in that alley and question him. His intel is good and leads me to a shop full of rare colorful liquids. Before I can question the shopkeep, a well known guy shows up. It turns out, in this dream I'm a legendary professional assassin. One of the four best in the region and the other guy is too. We have worked together occasionally, but there is a bit of a rivalry going on. We're talking like "I should've known you're in this too." Both trying to find out more without actually saying anything. A little bell by the door rings as it opens. A young woman with a sombrero size grey fedora enters. She's also one of the legendary four best assassins, but her noisy entrance meant, she was trying to blend in as a regular harmless person. As she sees us, she says "You! I should've known it's you! You did this to me!" Confused we reply "What?" "You erased my memory!" I reply "Oh! That's why nothing makes sense." The other guy says "Mine has been erased too." The shopkeep heard the bell and yells and enters through a door. He remembers us. We question him. His intel leads to an oriental cloister on a nearby hill. We legendary assassins go together. It's a short trip with nice views. Few busy monks in white and yellow togas work surrounding and inside the cloister. We make it to a white painted hall with a few pillars and five imporrant monks sitting cross legged on linen pillows. We ask them about our missing memory. Turns out we asked the monks to erase one day of our memory ourselves. They say something real bad happened to us and they could revert it, but advise against it, seeing how well we are doing. We all decide that we trust our past selves, thank the monks and leave happily. The last thought I had before waking up was "wait... what about the fourth legendary assassin?"

view more: next ›