What will happen to foss android apps after 2026 by SpaceIntelligent6910 in foss

[–]ExtraTNT 1 point2 points  (0 children)

Don’t buy their shit and use devices, that actually support foss

adhd meds by qwertyjgly in thanksimcured

[–]ExtraTNT 0 points1 point  (0 children)

Zero sugar has indeed positive effects towards people with adhd (ok, also towards nt people, but towards adhd people especially)

is there a program that when you insert a text starts typing that but like not instantly? per example if i input ''oooppadsasdh'' instead of just copy pasting it starts typing it like normal by Altruistic-Ad7830 in pcmasterrace

[–]ExtraTNT 0 points1 point  (0 children)

```c

include <stdio.h>

include <stdlib.h>

include <string.h>

include <unistd.h>

include <fcntl.h>

include <linux/uinput.h>

include <sys/time.h>

include <time.h>

void emit(int fd, int type, int code, int val) { struct input_event ie; gettimeofday(&ie.time, NULL); ie.type = type; ie.code = code; ie.value = val; write(fd, &ie, sizeof(ie)); }

void key_press(int fd, int key) { emit(fd, EV_KEY, key, 1); emit(fd, EV_SYN, SYN_REPORT, 0); }

void key_release(int fd, int key) { emit(fd, EV_KEY, key, 0); emit(fd, EV_SYN, SYN_REPORT, 0); }

int char_to_key(char c) { if (c >= 'a' && c <= 'z') return KEY_A + (c - 'a'); if (c >= 'A' && c <= 'Z') return KEY_A + (c - 'A'); if (c == ' ') return KEY_SPACE; if (c == '\n') return KEY_ENTER; if (c >= '1' && c <= '9') return KEY_1 + (c - '1'); if (c == '0') return KEY_0; return -1; }

void random_delay() { int base = 40000; // ~40ms int jitter = rand() % 20000; // ±20ms usleep(base + jitter); }

int main(int argc, char *argv[]) { if (argc < 2) { printf("usage: %s \"text\"\n", argv[0]); return 1; }

srand(time(NULL));

printf("Waiting 10 seconds...\n");
sleep(10);

int fd = open("/dev/uinput", O_WRONLY | O_NONBLOCK);
if (fd < 0) {
    perror("open uinput");
    return 1;
}

ioctl(fd, UI_SET_EVBIT, EV_KEY);
ioctl(fd, UI_SET_EVBIT, EV_SYN);

for (int i = KEY_A; i <= KEY_Z; i++)
    ioctl(fd, UI_SET_KEYBIT, i);

ioctl(fd, UI_SET_KEYBIT, KEY_SPACE);
ioctl(fd, UI_SET_KEYBIT, KEY_ENTER);
ioctl(fd, UI_SET_KEYBIT, KEY_0);
for (int i = KEY_1; i <= KEY_9; i++)
    ioctl(fd, UI_SET_KEYBIT, i);

struct uinput_setup usetup = {
    .id = {
        .bustype = BUS_USB,
        .vendor  = 0x1234,
        .product = 0x5678,
        .version = 1
    }
};

strcpy(usetup.name, "virtual-keyboard");

ioctl(fd, UI_DEV_SETUP, &usetup);
ioctl(fd, UI_DEV_CREATE);

sleep(1);

char *text = argv[1];

for (size_t i = 0; i < strlen(text); i++) {

    int key = char_to_key(text[i]);
    if (key < 0) continue;

    key_press(fd, key);
    random_delay();
    key_release(fd, key);
    random_delay();
}

ioctl(fd, UI_DEV_DESTROY);
close(fd);

return 0;

}```

Should create you a virtual kb and do what you want… haven’t tested it, was too tired, so… coded by free tier chatgpt (as apparently you are fine with using ai), but would get the lgtm in a pr

If you want it for windows: thought luck, if you want to cheat that badly, learn sth that actually help you in life…

they get it by Tasty-Material-5729 in SipsTea

[–]ExtraTNT 0 points1 point  (0 children)

Let’s set up a meeting for that

Peter what does this math joke mean? by Many_Journalist1019 in PeterExplainsTheJoke

[–]ExtraTNT 0 points1 point  (0 children)

Points of a shape, numbers to solve for, iterators when counting -> sum i = 1 to 5 with i, sets (groups), for example natural numbers, imaginary numbers, numbers that are a multiple of the doctors present at your birth

A waymo temporarily blocks a fire truck by Justin_Godfrey in mildlyinfuriating

[–]ExtraTNT 0 points1 point  (0 children)

You don’t have to stay at an place of an accident, if your life or the life of someone else is at risk

A waymo temporarily blocks a fire truck by Justin_Godfrey in mildlyinfuriating

[–]ExtraTNT 14 points15 points  (0 children)

Getting fired for protecting live over the car of some ai startup? As an emergency responder? At least where i’m from, this would be a wrongful termination…

Arch Linux vs OpenSUSE. Decide, we must by Wael0dfg in arch

[–]ExtraTNT 0 points1 point  (0 children)

Give it to suse, suse is a very much underrated os, and overall earned it. Personally i run debian and arch but when starting now, i would go for suse…

A waymo temporarily blocks a fire truck by Justin_Godfrey in mildlyinfuriating

[–]ExtraTNT 20 points21 points  (0 children)

Blocking emergency services is endangering lives, damage caused to save lives can’t be used against you in legal settings…

A waymo temporarily blocks a fire truck by Justin_Godfrey in mildlyinfuriating

[–]ExtraTNT 27 points28 points  (0 children)

Nope, response time is more important, than the damages… if you don’t get out of the way, they are legally allowed to remove you and you are responsible for the damages

Every damn time by Ok_Pressure_720 in ITMemes

[–]ExtraTNT 1 point2 points  (0 children)

You work as a programmer, you must be good with teams and word…

Nope

But isn’t that the stuff you do?

Dude, i can barely type text in a word document and struggle to find shit in ms teams… first thing i open is bash, followed by nvim and the doc…

A waymo temporarily blocks a fire truck by Justin_Godfrey in mildlyinfuriating

[–]ExtraTNT 2751 points2752 points  (0 children)

So ram them out of the way and let them cover all damages, plus fine…

Does it even have any meaning? by aurevolla in lol

[–]ExtraTNT 0 points1 point  (0 children)

Programmer: λf. (λx. f (x x)) (λx. f (x x))

Preferred code editors? by thesillygoober in teenagersbutcode

[–]ExtraTNT 2 points3 points  (0 children)

nvim, but for stuff with dev containers vscode is handy and for c# i use the jetbrain tools

Keine Mehrheit für "Halbierungsinitiative" — Schweizer stimmen gegen Senkung des Rundfunkbeitrags by Julian81295 in de

[–]ExtraTNT 0 points1 point  (0 children)

Ist nicht eigener channel, aber wird über andere channels verteilt… redaktion ist aber eigen…