9
submitted 5 months ago by aard@kyu.de to c/imageai@sh.itjust.works
38
submitted 7 months ago by aard@kyu.de to c/dach@feddit.org
4
submitted 7 months ago by aard@kyu.de to c/emacs@lemmy.ml

This uses the tool support from gptel to let any LLM with tool support

  • search my bbdb for contact info
  • perform a bbdb search for all contacts with an anniversary field
  • use gnus to compose an email

plus a few helper functions to make it useful (like giving it the ability to query the current date).

The tool definition it used in the above screenshot are:

(defun gptel-tool--get-date ()
  "Return the current date"
  (format-time-string "%Y-%m-%d"))

(defun gptel-tool--compose-email (to-address subject text)
  "Open an email compose buffer '*new message*' to to-address with subject subject."
  (gnus-setup-message 'message (message-mail to-address subject))
  (insert (concat "\n" text)))

(defun gptel-tool--bbdb-search (name)
  "Search bbdb for NAME"
  (bbdb-search (bbdb-records) :name name))

(defun gptel-tool--bbdb-search-anniversary (anniversary-type)
  "Search bbdb for anniversary with ANNIVERSARY-TYPE"
  (let ((bbdb-default-xfield 'anniversary))
    (bbdb-search (bbdb-records) :xfield anniversary-type)))

And they get registered with the following code:

      (gptel-make-tool
       :function #'gptel-tool--get-date
       :name  "gptel-tool--get-date"
       :description "Use to get the current date in %Y-%m-%d format. After calling this tool, stop. Then continue fulfilling user's request."
       :category "emacs")

      (gptel-make-tool
       :function #'gptel-tool--compose-email
       :name  "gptel-tool--compose-email"
       :description "Open an email compose buffer and set subject, to-address and body. After calling this tool, stop. Then continue fulfilling user's request."
       :args (list '(:name "to-address"
                           :type string
                           :description "The address to send to")
                   '(:name "subject"
                           :type string
                           :description "The mail subject")
                   '(:name "body"
                           :type string
                           :description "The body text of the email"))
       :category "emacs")

      (gptel-make-tool
       :function #'gptel-tool--bbdb-search
       :name  "gptel-tool--bbdb-search"
       :description "Return a bbdb entry for name, or nil if not found. After calling this tool, stop. Then continue fulfilling user's request."
       :args (list '(:name "name"
                           :type string
                           :description "The name to search for"))
       :category "emacs")

      (gptel-make-tool
       :function #'gptel-tool--bbdb-search-anniversary
       :name  "gptel-tool--bbdb-search-anniversary"
       :description "Return or a specific anniversary type. After calling this tool, stop. Then continue fulfilling user's request."
       :args (list '(:name "anniversary-type"
                           :type string
                           :description "The anniversary to search for, for example 'birthday' for birthdays"))
       :category "emacs")
22
Miniontaur (kyu.de)
submitted 1 year ago by aard@kyu.de to c/imageai@sh.itjust.works
[-] aard@kyu.de 149 points 1 year ago

Recall is a legal term for the car industry which includes stuff like reporting obligations. So if the defect meets the severity level of a recall it should be called as such, even if it is 'just' a software update. Ambiguous terms for safety violations are dangerous and may cost lives.

[-] aard@kyu.de 175 points 1 year ago

The annoying aspect from somebody with decades of IT experience is - what should happen is that crowdstrike gets sued into oblivion, and people responsible for buying that shit should have an epihpany and properly look at how they are doing their infra.

But will happen is that they'll just buy a new crwodstrike product that promises to mitigate the fallout of them fucking up again.

28
submitted 1 year ago by aard@kyu.de to c/3dprinting@lemmy.world

Screenshots of the UI changes on the Mac - in my opinion it is now just wasting a lot of screen estate for zero benefit.

On non-Macs they're adding an extra usability issue by hiding the top menu bar. I've gove back to 2.7.4 for now - fortunately I had my configuration in git.

Up to 2.7.4:

2.8.4:

[-] aard@kyu.de 191 points 2 years ago

Intel is well known for requiring a new board for each new CPU generation, even if it is the same socket. AMD on the other hand is known to push stuff to its physical limits before they break compatibility.

[-] aard@kyu.de 79 points 2 years ago

Short version: A bunch of shitty companies have as business model to sell open databases to companies to track security vulnerabilities - at pretty much zero effort to themselves. So they've been bugging the kernel folks to start issuing CVEs and do impact analysis so they have more to sell - and the kernel folks just went "it is the kernel, everything is critical"

tl;dr: this is pretty much an elaborate "go fuck yourself" towards shady 'security' companies.

[-] aard@kyu.de 127 points 2 years ago

Making an exception for one organisation, pressured by politicians, would be harmful. BBC has the following policy about neutral reporting:

We don't use loaded words like "evil" or "cowardly". We don't talk about "terrorists". And we're not the only ones to follow this line. Some of the world's most respected news organisations have exactly the same policy

[-] aard@kyu.de 91 points 2 years ago

All my software can be configured using dedicated configuration files (.c)

26
submitted 2 years ago by aard@kyu.de to c/dach@feddit.de
60
submitted 2 years ago by aard@kyu.de to c/dach@feddit.de

Vor ein paar Tagen gabs hier ein Post zu Deutschlandwochen im Lidl in Italien, wo einer aus Schweden und ich mich ueber das Layout gewundert haben.

Jetzt sind auch hier Deutschlandwochen - und anscheinend wurde generell das Packungslayout geaendert - frueher war das alles "Alpenfest", jetzt "taste of deutschland".

Einige Produkte haben sich auch geaendert - z.b. waren die Apfel/Kirsch/Pflaumenkuchen frueher grosse runde Kuchen, jetzt sinds mehrere Teile.

Und Maultaschen sind wieder nicht dabei.

33
submitted 2 years ago by aard@kyu.de to c/imageai@sh.itjust.works

This is OpenDalle with img2img to make an existing picture into a futuristic city.

I took this picture at work a while ago, and it reminded me of cities with brutalist architecture we see in movies now and then, so I tried to get it made into one:

Other interesting attempts:

Forcing it to stay closer to the source made things look more like a highschool cardboard model:

[-] aard@kyu.de 90 points 2 years ago

I'm in my 40s and therefore generally in the "get off my lawn, kids" age.

But I totally agree with that article. I've converted quite a few legacy devices with barrel jack to USB-C - and got rid of a huge box of junky old power bricks. Especially for devices I only use occasionally I don't want to search for the matching power bricks - I just want to plug it into one of the 4 USB-C PD sockets I have installed into my desk.

124
submitted 2 years ago by aard@kyu.de to c/edc@sopuli.xyz

I've finally found a bag which nicely fits almost everything I want to carry every day, and alos makes everything easily accessible - it is about the same size as what I used to carry, but now I no longer need to dump everything out to find what I neede, even with some lose parts still in there.

Contents:

Center:

  • 4 empty 64 microSD with SD adapter
  • one rpi 2040 with USB-A interface
  • headphones
  • bag of female jumper cables, with male-male adapters
  • a collection of the most used NFC keyfobs

Left side:

  • USB-C cable with attached USB-A adapter (USB3, missing on picture)
  • two USB-C to headphone adapters
  • satechi USB-C power meter
  • headphone splitter
  • USB-C to SATA adapter
  • USB-C smartcart reader
  • VGA to HDMI
  • USB Ninja (USB-C)
  • proxmark3 with battery/bt
  • collection of NFC magic cards

Right side:

  • USB-C hub with charging port
  • miniDP to HDMI
  • small USB-C dock
  • USB-C to whatever adapters (mini, micro, B, HDMI, ..)
  • Chameleon ultra
  • MPP pen
  • Ninja USB remote
  • USB-C to serial, connected via jumper cables

[-] aard@kyu.de 150 points 2 years ago

While failing at art he was still Austrian.

[-] aard@kyu.de 89 points 2 years ago

After my Russian wife was browsing the internal news yesterday to see what level of information is provided over there she mentioned that their solution in the abortion debate is to have everyone give birth, and just give up the kids to be raised by the state if you don't want them.

Also there seems to be a proposal to exclude women from higher education unless they've given birth.

4
submitted 2 years ago by aard@kyu.de to c/emacs@lemmy.ml

I recently had to add a Mac to my zoo of hardware I'm trying to do productive work on - which prompted me to clean up and document my environment variable importer, which had grown to platform specific functions with lots of code duplication.

On both Windows and MacOS I have properly configured shells with all relevant variables - so it makes sense to query them, instead of duplicating the logic how they create that configuration into Emacs.

On Linux that'd have worked too, but I also have the relevant variables in the systemd user session, and querying that is a tiny bit faster than launching a shell.

[-] aard@kyu.de 249 points 2 years ago

This was just a matter of time - and there isn't really that much the affected can do (and in some cases, should do). Shutting down that service is the correct thing - but that'll only buy a short amount of time: Training custom models is trivial nowadays, and both the skill and hardware to do so is in reach of the age group in question.

So in the long term we'll see that shift to images generated at home, by kids often too young to be prosecuted - and you won't be able to stop that unless you start outlawing most of AI image generation tools.

At least in Germany the dealing with child/youth pornography got badly botched by incompetent populists in the government - which would send any of those parents to jail for at least a year, if they take possession of one of those generated pictures. Having it sent to their phone and going to police for a complaint would be sufficient to get prosecution against them started.

There's one blessing coming out of that mess, though: For girls who did take pictures, and had them leaked, saying "they're AI generated" is becoming a plausible way out.

[-] aard@kyu.de 113 points 2 years ago

This feature also has the potential of endangering those drivers. If I were a driver I'd definitely not opt in to a function like this.

562
submitted 2 years ago* (last edited 2 years ago) by aard@kyu.de to c/asklemmy@lemmy.ml

I was thinking about that when I was dropping my 6 year old off at some hobbies earlier - it's pretty much expected to have learned how to ride a bicycle before starting school, and it massively expands the area you can go to by yourself. When she went to school by bicycle she can easily make a detour via a shop to spend some pocket money before coming home, while by foot that'd be rather time consuming.

Quite a lot of friends from outside of Europe either can't ride a bicycle, or were learning it as adult after moving here, though.

edit: the high number of replies mentioning "swimming" made me realize that I had that filed as a basic skill pretty much everybody has - probably due to swimming lessons being a mandatory part of school education here.

3
submitted 2 years ago by aard@kyu.de to c/functionalprint@kbin.social

My kids broke the flap on one of our sockets, so I had to look into getting them replaced.

Initially I tried to make them clip on to avoid having to remove the complete socket for future replacements, but that ended up either weakening the hinges too much, or making it impossible to attach it with the spring in the right position.

The gasket and O-ring are donated from the original flap:

The original flap and the first test prints to check if I got the dimensions right:

The whole thing is over on printables

[-] aard@kyu.de 103 points 2 years ago

51% support slower employee response time outside of work hours

Uh, what? That does not compute. Either it's work, or it is not work (and I don't respond to anything, and don't get contacted in the first place)

view more: next ›

aard

joined 2 years ago