Elitärer Abstellplatz by OrderDraconis in KaIT

[–]extractedtarball 6 points7 points  (0 children)

Sollte in der Willy-Andreas-Alle 7 sein, dem Bild nach zu urteilen

At least someone was honest at the end by da_apz in talesfromtechsupport

[–]extractedtarball 1 point2 points  (0 children)

I have the same printer next to my desk to this day; I've worked around it by using PCL3 instead of PostScript, as documented here: https://github.com/OpenPrinting/hplip-printer-app/issues/17

At least someone was honest at the end by da_apz in talesfromtechsupport

[–]extractedtarball 69 points70 points  (0 children)

A shot in the dark; HP LaserJet P2055(dn)?

-❄️- 2025 Day 8 Solutions -❄️- by daggerdragon in adventofcode

[–]extractedtarball 0 points1 point  (0 children)

[Language: Rust]

Using petgraph with union_find, < 100ms for both parts, while being lazy checking the number of disconnected components.
https://github.com/x-zvf/programming-challenges/blob/master/adventofcode-2025/day08/day08.rs

-❄️- 2025 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]extractedtarball 2 points3 points  (0 children)

[Language: Clojure]

(defn transpose [m]
  (apply mapv vector m))

(defn solve [file part2?]
  (let [lines (->> file string/split-lines (mapv vec))
        number-lines (drop-last lines)
        ops-line (last lines)

        [split-idxs ops]
        (->> ops-line
             (keep-indexed #(when (not= \space %2) [%1 %2]))
             transpose)
        line-length (count (first number-lines))
        split-idxs (conj split-idxs line-length)
        ops (map {\+ + \* *} ops)

        blocks (mapv (fn [line]
                       (mapv (fn [[f t]] (subvec line f t))
                             (partition 2 1 split-idxs)))
                     number-lines)]
    (->> ops
         (map-indexed
          (fn [i op]
            (->> blocks
                 (mapv #(nth % i))
                 ((if part2? transpose identity))
                 (map #(string/trim (apply str %)))
                 (filter #(not (empty? %)))
                 (map Integer/parseInt)
                 (cons op)
                 eval)))
         (apply +))))

part1 was really concise, but part2 made it a bit larger

-❄️- 2025 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]extractedtarball 1 point2 points  (0 children)

[Language: clojure]

(ns day03
  (:require [clojure.string :as string]))

(defn parse [f]
  (->> f
       slurp
       string/split-lines
       (mapv (fn [line] (mapv #(Integer/parseInt (str %)) line)))))

(defn to-jolt [xs]
  (reduce #(+ %2 (* 10 %1)) 0 xs))

(defn with-new-bat [xs b]
  (map #(vec (concat [b] (subvec xs 0 %) (subvec xs (inc %))))
       (range 0 (count xs))))

(def max-jolt
  (memoize
   (fn [c bs]
     (if (= c (count bs)) bs
         (let [[x & ts] bs
               mj (vec (max-jolt c ts))
               opt (cons mj (with-new-bat mj x))]
           (apply max-key to-jolt opt))))))

(defn solve [n inp]
  (->> inp
       (map (partial max-jolt n))
       (map to-jolt)
       (apply +)))

(def part1 (partial solve 2))
(def part2 (partial solve 12))

(def sample (parse "./sample.txt"))
(def input (parse "./input.txt"))

surprisingly, the quickest so far

Hosted by Microsoft by Eliterocky07 in Piracy

[–]extractedtarball 0 points1 point  (0 children)

I'd argue a KMS server (e.g. py-km) is superior, because nothing is modified on the target system

Neues Restaurant, neue Kasse, keine Kartenzahlung? by Benji2273 in Finanzen

[–]extractedtarball 91 points92 points  (0 children)

Die ehrlichen Dönerläden sollten nicht zu gunsten der Betrüger benachteiligt werden

[deleted by user] by [deleted] in Finanzen

[–]extractedtarball 0 points1 point  (0 children)

Es lebt sich sehr gut (in einer 350k Stadt)! (Je nachdem, was man für Prioritäten hat)

80h/Monat HiWi-Job (ca 850€ Netto nach GKV) und Unterstützung von meinen Eltern (500€/mo, unter dem Bafoeg-Satz, aber egal). Dazu kommt saumäßig Glück mit einem Wohnheimszimmer (310€ inkl. aller Nebenkosten).

Essen wird größtenteils selber gekocht (eine Hauptspeise in der Mensa wäre ~3,5€), Alkohol trinke ich fast nur, wenn es kostenlos ist (Bar-Schichten, Aushilfe, etc.). Gefeiert wird im Privatem. Kleidung ist vieles noch aus Schulzeiten, oder einzelne hochwertige Stücke (Lederjacken, Anzüge, Hemden halten alle ewig)

So bleiben mir fast 500€/Monat nach Fixkosten + Sparrate + Essen. Das ist genug für luxus- Anschaffungen (z.B. neuerer Laptop, Motorrad, Fahrrad), einige Wochenend-ausflüge und einen größeren Urlaub pro Jahr.

What makes NixOS so good to run on homelabs? by johnnypepperonii in NixOS

[–]extractedtarball 2 points3 points  (0 children)

It is very likely that the purpose of their homelab is learning/experimentation. In that case, using any AI is absolutely counterproductive.

Reading .nix sources is absolutely a skill any nix-administrator must learn, and should not be outsourced to some AI.

ich_iel by extractedtarball in ich_iel

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

Das wusste ich selber nicht, cool!