Fork me on GitHub
#clojure-europe
<
2024-03-08
>
schmalz07:03:29

Morning all.

thomas08:03:55

mogge TGIF!!!

ray08:03:34

Good morning Friday

❤️ 2
Ludger Solbach09:03:00

These are pictures i can't take because I'm more of a night owl. I'm the guy for sunsets. 😉

Ludger Solbach09:03:33

But I really love them.

ray09:03:44

I'm mostly the same tbh - these pictures are way past dawn - but they are pre-10 am 🙂

😄 1
maleghast09:03:54

madainn mhath :flag-scotland:

otfrom09:03:18

I seem to finally be making a break through in programming emacs rather than just configuring it. It has only taken 25 years or so

🎉 6
emacs-spin 2
Ed10:03:12

... all helpful tips gratefully received ...

otfrom10:03:43

I'll see whether my current struggles pay off. I'm hoping to get some code reviews that tell me how I'm doing it wrong. My code is definitely too brittle still

👍 1
otfrom13:03:14

And I can't get match-string and string-match to work, so I might be a bit previous in my crowing

Ed15:03:44

what's the issue?

otfrom15:03:13

almost certainly PEBCAK

😁 1
otfrom11:03:17

Here is what I have so far. I'm still a bit confused about why I needed to write link-title the way I did. Mostly I'm trying to capture and refile things from pocket, orgzly, or just an inbox of links to put them into org-roam nodes or into an org-roam-daily node with the hope that some day I'll do something like rememberance agent. https://gist.github.com/otfrom/6b4d9a54dff2d4edcf16d8a39a5469de

otfrom11:03:16

If I got the url from the org-link I could probably archive things using org-eww-copy-for-org-mode and store that. I'm getting annoyed with things that are disappearing from the interwebs (link rot) and external search is getting worse and worse for finding things I've found before

Ed20:03:25

Yeah ... I'm using orgzly to capture links too, but I'm manually refiling them right now ... I don't use a date based setup, but maybe that would be helpful ... idk ... my initial suggestion for changing the string-match/`match-string` thing in link-title would be to maybe just do a regex replace?

(replace-regexp-in-string "..\\(.*?\\)].*" "\\1" "[[][Homepage]]") ;; => ""
not sure if that sparks more joy 😉

Ed20:03:42

I've not used the org-eww-* stuff before ... but I don't use emacs as a browser much 😉

otfrom11:03:24

I don't either, but it is good for getting past some annoying javascript/css paywalls and for archiving things

👍 1
Ed11:03:18

It's weird how much fun it can be optimising bits of your workflow ;)

Ed10:03:01

Morning

pez10:03:09

ys -e '(->> ["Good" " " "Morning"] (apply str) say)'

maleghast10:03:39

(I mean I get what the function is "doing", just don't know what ys is)

pez10:03:26

Thanks! It was the reaction I wanted, @U08ABGP70 😃 https://yamlscript.org/

pez10:03:42

I do hope they hurry up with publishing the presentation from tonight: https://www.meetup.com/seajure/events/299251467/ It blew my mind!

Ludger Solbach10:03:45

babashka for yaml? :thinking_face:

pez10:03:24

Yes, Babashka for yaml. Using SCI even.

maleghast10:03:39

Fascinating...

pez10:03:02

I think it may be the Killer Application we have been waiting for.

maleghast10:03:03

I am just looking at the website you linked above ☝️

maleghast11:03:16

@U0ETXRFEW - If you're on a Mac, try this:

ys -e '(->> ["Good" " " "Morning"] (apply str) say)' | say

metal 1
maleghast11:03:34

Is Seajure the Seattle Clojure Group?

pez11:03:58

Yes. I woke up 2:30 this morning to attend. 😃

pez11:03:10

There’s some shell namespace too, if I understood correctlty. But we can ask in #C05HQFMTURF

borkdude11:03:54

Why is molding Clojure into YAML better than just Clojure?

pez11:03:22

I think a lot of existing YAML configs would benefit from it. And it’s not asking for a change of behaviour the way Clojure, and albeit to a lesser extent, Babashka does. It’s your familiar YAML file and you want to have scripting powers there.

pez11:03:26

Suddenly you have written your first Clojure code without realizing you’ve been fiddling with a Lisp.

pez11:03:41

I have to figure out how to make Calva work with it. Or how to give some access to the repl.

pez11:03:17

Things took a different turn than I had expected when I wrote an nrepl server for Lingy (a Clojure for the Perl VM that is now discontinued because YAMLScript turned out to be the major thing, not just an offshoot of Lingy).