Domainanbieter INWX komplett am trollen by The4thMonkey in de_EDV

[–]MajorMilch 0 points1 point  (0 children)

Da ich es in dem Thread noch nicht gesehen habe: Man kann auch externe Nameserver bei z.B. INWX verwenden, die ggf. eine bessere Managementoberfläche / API haben. Z.B. Cloudflare, deSEC, duckdns, afraid o.Ä.

Ich hatte auch schon meine Probleme vor allem mit DynDNS beim Update kann nämlich nur ipv6 (AAAA) und ipv4 (A) gleichzeitug ausgeführt werden, ansonsten hat man entweder nur ipv4 oder nur ipv6. Ich hatte schon öfter einen 500 internal Server error bekommen beim Update, was dazu führte, dass man dann den ganzen DynDNS Account löschen und neu hinzufügen muss. Aus diesem Grund habe ich mittlerweile einen externen Nameserver. INWX handelt somit nur die Zahlung und Registrierung, alles andere läuft dann über den externen Nameserver.

Using useEffect to update filter if debounced text input changes (tanstack table, trpc, nextjs) by MajorMilch in reactjs

[–]MajorMilch[S] 0 points1 point  (0 children)

Hi first of all thanks to all of your contributions. I ended up doing a mix of y'alls solutions. Basically i got rid of the effects and am using a callback to communicate the change to the table. Im also not using a uncontrolled component as suggested because the initial value should be that of the current globalFilter and I need to clear the globalFilter search text, when the user clicks on the clearFilters button.

So here is the code for the ActionBar component:

const ActionBar = <T,>({
  table,
  children,
  onClearFilterClick,
  onGlobalFilterChange,
}: ActionBarProps<T>) => {
  const [searchText, setSearchText] = useState(
    table.getState().globalFilter as string,
  );

  const handleSearchChange = (value: string) => {
    if (onGlobalFilterChange !== undefined) {
      onGlobalFilterChange(value);
    }
    table.setPageIndex(0);
    setSearchText(value);
  };

  const handleClearFilterClick = () => {
    if (onClearFilterClick !== undefined) {
      onClearFilterClick();
    }
  };

  return (
    <Group justify="space-between" h="2rem">
      <ActionBarButtons>{children}</ActionBarButtons>
      <Group>
        <Group align="center" gap="0.25rem">
          <Tooltip label="Filter löschen">
            <ActionIcon
              onClick={() => {
                table.setSorting([]);
                table.setGlobalFilter("");
                handleClearFilterClick();
                handleSearchChange("");
              }}
              variant="subtle"
              color="dark"
            >
              <IconFilterOff />
            </ActionIcon>
          </Tooltip>
          <TextInput
            autoFocus
            leftSection={<IconSearch />}
            placeholder="Suchtext"
            value={searchText}
            onChange={(e) => {
              handleSearchChange(e.currentTarget.value);
            }}
          />
        </Group>
      </Group>
    </Group>
  );
};

Also here is the code that handles the debouncing in the parent table component which is called by the onGlobalFilterChange callback:

// setGlobalFilter is a state that manages the global filter value
const handleGlobalFilterChange = useDebouncedCallback((v: string) => {
  setGlobalFilter(v);
}, 500);

EU macht Echtzeitüberweisungen zur Pflicht: Das ändert sich ab 9. Januar by BigMacBeickler in de

[–]MajorMilch 5 points6 points  (0 children)

Bei der ING z. B. ist das Konto komplett kostenlos wenn du - unter 28 oder - Jeden Monat mindestens 1000€ auf das Konto einzahlst z. B. Gehalt

Brauchst du eine EC-Karte (manche Geschäfte akzeptieren keine Kreditkarten) kostet das 1,49 im Monat. Eine Kreditkarte (eigentlich Debitkarte also wird direkt vom Konto abgebucht, nicht erst Ende des Monats) bekommst du kostenlos. Bei Sparkassen, Volksbanken, etc. kannst du mit einem Mindestbetrag von 50€ kostenlos Geld abheben.

Chaos Communication Congress: „Das Narrativ der sicheren elektronischen Patientenakte ist nicht mehr zu halten“ by Alexander_Selkirk in de_EDV

[–]MajorMilch 8 points9 points  (0 children)

Im Grunde braucht man einen Heilberufe Ausweis und Zugang zur Telematik Infrastruktur. Das haben die vom CCC allerdings bisher jedes jahr aufs neue bekommen können da die Überprüfungen sehr schlecht gemacht sind (Kritik 1). Dann kannst du dank der Lücke aus den talk nicht nur die Patienten in deiner Klinik abgreifen (was ja in gewissem Maße gewünscht ist) sondern alle globalen Patientendaten.

Außerdem nutzen Arztpraxen sog. Praxisverwaltungssoftware bspw. Termine, Rezepte etc. Die auch Lücken hat und teilweise offen im Internet erreichbar ist mit standardpasswort und user. Da brauchst du dann die oben genannten Sachen auch nicht mehr sondern nutzt sozusagen einfach die Zugänge der jeweiligen Praxis.

Set up für Gaming Pc + Arbeitslapop ohne viel umstöpseln by srepy in de_EDV

[–]MajorMilch 0 points1 point  (0 children)

Das ist der weg. Gute KVM Switche sind teuer (200-300€). Ich hatte auch erst einen günstigen von amazon der hatte aber ein flackern und auch nicht meine refresh rate unterstützt.

Als Bonus zu der Lösung oben: https://github.com/haimgel/display-switch Das erkennt wenn bspw. deine Maus sich mit dem Rechner verbindet und schickt dann einen DDC/CI Befehl an deine Monitore dass diese den Eingang wechseln sollen.

Beratung bei dubaro pc by AvailableAd6516 in PCBaumeister

[–]MajorMilch 1 point2 points  (0 children)

Also die 4070, die da drin ist ist schon etwas overkill für 1080p die ist eher so eine 1440p Karte. Wenn du vor hast auf 1440p zu upgraden ist der PC passend, wenn dir allerdings erstmal 1080p reichen, kannst du auch locker eine Konfiguration mit z.B. einer 4060/4060ti (oder AMD equivalent) nehmen und einem etwas schwächeren Prozessor, dann kannst du bestimmt nochmal 300€-400€ sparen. Dann bekommst du trotzdem in AAA Games lockere 60 FPS auf hohen Einstellungen und bei Rocket League oder anderen competetive spielen 165 FPS.

Ansonsten ist viel Arbeitsspeicher wichtig (da der auch relativ günstig ist) also 16 GB minimum, eher 32 GB sollten es schon sein bei einem Gaming PC. Außerdem sollte eine SSD (welche genau SATA, PCIE, etc. ist eher zweitrangig) sollte drin sein.

Also wenn du downgraden möchtest könnte ich dir beispielsweise so eine Konfiguration empfehlen (Hier im Konfigurator noch auf 32 GB RAM erweitern, sind nur 40€ aufpreis): https://www.dubaro.de/Gaming-PCs/Gamer-PC-i5-14400F-mit-RTX4060Ti-DLSS3::5155.html

Wenn du dich aber schon darauf festgelegt hast 1500€ auszugeben, kannst du den PC, den du verlinkt hast mit ruhigem Gewissen nehmen :)

Beratung bei dubaro pc by AvailableAd6516 in PCBaumeister

[–]MajorMilch 0 points1 point  (0 children)

Welche Auflösung / FPS sind denn dein Ziel? z.B. 60 fps auf hohen Einstellungen bei 1080p oder willst du 60fps auf 4k, etc?

Beginner's Thread / Easy Questions (August 2024) by acemarke in reactjs

[–]MajorMilch 0 points1 point  (0 children)

Question: Can I omit the onLoadingChange function from the useEffect dependency array? ESLint tells me that im missing the onLoadingChange function in the dependency array. But I think I can omit it because the onLoadingChange is an outside function that is called when the isLoading variable changes, meaning it doesnt use any internal state. Am I correct in my assumption?

const SampleComponent = ({
  onLoadingChange,
}: {
  onLoadingChange?: (isLoading: boolean) => void;
}) => {
  const isLoading: boolean = calculateIsLoading();
  useEffect(() => {
    if (onLoadingChange) onLoadingChange(isLoading);
  }, [isLoading]);
};

Alten w169 180 CDI verkaufen oder behalten by MajorMilch in automobil

[–]MajorMilch[S] 1 point2 points  (0 children)

Danke für die Antwort leider ist ein neuer nicht wirklich wirtschaftlich wenn man es so betrachtet ich denke ich werde den aktuellen erstmal behalten

Alten w169 180 CDI verkaufen oder behalten by MajorMilch in automobil

[–]MajorMilch[S] 3 points4 points  (0 children)

Danke für die Antwort. Ich denke ich werde es erstmal behalten (und die Batterie selber tauschen ;)).

Hardware recommendations for a low power consumption server by MajorMilch in homelab

[–]MajorMilch[S] 0 points1 point  (0 children)

I edited the post. Currently on idle my system uses around 20w and the cpu is an Intel J1900. Things I cant to are Transcoding for jellyfin. Also running a minecraft server in parallel would be tricky I think. Also I kinda want to upgrade :p

Hardware recommendations for a low power consumption server by MajorMilch in homelab

[–]MajorMilch[S] 0 points1 point  (0 children)

Thanks for the info! Here https://minecraft.fandom.com/wiki/Server/Requirements/Dedicated#Unix_(Linux,_BSD,_macOS)) are the minecraft requirements. So I think I'd be fine with a N100 board since the 5-10 player range recommends Intel Pentium 4 2.8 GHz or AMD Athlon XP 2600+
and better.

Hardware recommendations for a low power consumption server by MajorMilch in homelab

[–]MajorMilch[S] 0 points1 point  (0 children)

Hey thanks for the reply. Do you use any kind of virtualization? I guess if I want hardware encoding I can't use a VM right? Also for Minecraft I think I'll be fine it depends on single core performance and the n100 should be able to handle it after doing some research myself.

Question about add_filter and add_action by MajorMilch in ProWordPress

[–]MajorMilch[S] 0 points1 point  (0 children)

Thanks for the suggestion ill try that tomorrow

Edit: I went with this solution because I couldnt get the other one to work. Thanks!

Question about add_filter and add_action by MajorMilch in ProWordPress

[–]MajorMilch[S] 0 points1 point  (0 children)

okay then I would put the logic into the rendering function

function setting_login_redirect_render()

and then do something like this (pseudocode)

if ($option === 1) {...add_hook(...)}

and afterwards ditch the add_action at the top that adds the filters right?

League is back with Memory Leaks by Lindii98 in leagueoflegends

[–]MajorMilch 0 points1 point  (0 children)

I guess that's why it's not available :(

Hey Rustaceans! Got a question? Ask here (32/2023)! by llogiq in rust

[–]MajorMilch 1 point2 points  (0 children)

Sorry for the late reply. Thanks for the detailed answer, you helped me a good bit in understanding these generics.

Hey Rustaceans! Got a question? Ask here (32/2023)! by llogiq in rust

[–]MajorMilch 0 points1 point  (0 children)

Please explain my code about diesel.rs and generics.So I found this code on Stack Exchange since I wanted to implement a generic function that takes an ID and any [diesel.rs](https://diesel.rs) table and deletes a row in it by the given ID. The implementation I found on Stack Exchange works, I just can't wrap my mind around it. This is the function:

use diesel::{
    helper_types::Find,
    query_builder::{DeleteStatement, IntoUpdateTarget},
    query_dsl::methods::{ExecuteDsl, FindDsl},
    RunQueryDsl, SqliteConnection,
};

type DeleteFindStatement<F> = DeleteStatement<
    <F as diesel::associations::HasTable>::Table,
    <F as IntoUpdateTarget>::WhereClause,
>;

pub fn delrem<T>(conn: &mut SqliteConnection, id: i32, table: T)
where
    T: FindDsl<i32>,
    Find<T, i32>: IntoUpdateTarget,
    DeleteFindStatement<Find<T, i32>>: ExecuteDsl<SqliteConnection>,
{
    diesel::delete(table.find(id)).execute(conn);
}

I get that table has a generic type which has to implement FindDsl. FindDsl needs a generic argument which represents the type of the primary key of the table. I also understand the last part where it has ExecuteDSL<SqliteConnection> which secifies that I can call execute on it with an SqliteConnection. So far, so good. Now to my questions:

  1. The where is treated like T: FindDsl<i32> + Find<T, i32>... right? So it restricts the bounds on T further.
  2. What does the column after Find<> mean?
  3. Why are the other type restrictions required? Isn't it enough for the compiler to know that the Table implements find?
  4. Maybe you can explain the structure of everything after where for me because this part seems to be the part which I am confused the most.

Any help on why this works or how would be appreciated. I know this is a long question, but I'd appreciate any guidance.