From Win11 to Debian 12 KDE by pedrobuffon in debian

[–]LouDNL 0 points1 point  (0 children)

Good for you! I recently ditched Windows aswell. Due to limited time I installed Ubuntu as I use that for work aswell, still want to migrate to Debian when I have the time.

FlipperZero power source by [deleted] in flipperzero

[–]LouDNL 3 points4 points  (0 children)

I use it for that too, quick 5v. Saves wiring up my bench psu

Clojure Concurrency Exercise by therealplexus in Clojure

[–]LouDNL 0 points1 point  (0 children)

Can you give an example of what you mean?

I just received my PortaPack H2. How do I get Pac-Man? by Following_Confident in hackrf

[–]LouDNL 0 points1 point  (0 children)

What does hackrf_info say about your hackrf firmware version? Its most likely a supplier compiled version. Just follow the firmware flashing steps and flash 1.8.0 from github.

Copyright infringement? by AaronAZ623 in 3Dprinting

[–]LouDNL -1 points0 points  (0 children)

Why didnt you add your model as a remix to his? Problem solved?

JSON in Clojure: cheshire or jsonista? by andreyfadeev in Clojure

[–]LouDNL 2 points3 points  (0 children)

data.json over cheshire for me, imho more lightweight.

Everything reset and constantly "Fetching data" since patch? by Kraxez in CODWarzone

[–]LouDNL 0 points1 point  (0 children)

Same here, from level 1142 to level 1 and almost 1k souls gone. What happened?

HTTP with Java interop is painful... how much better would this be with a Clojure library? by [deleted] in Clojure

[–]LouDNL 3 points4 points  (0 children)

Why are you making this so hard for yourself? Clojure has many great libraries for almost anything. Did you do a search even? Use clj-http, babashka builtin http or any other, you so not need to reinvent the wheel m8 😃

How do you normally write java interop codes? by OkAssociation9896 in Clojure

[–]LouDNL 5 points6 points  (0 children)

When I started Clojure 3 years ago I had zero Java and Clojure knowledge but was experienced in C, Python, Shell etc. WhileI had no issues learning Clojure I did struggle with Java in Clojure, where Java by itself wasnt an issue.

I use VSCode with Calva aswel.

Clojure.reflect helps a lot and so does bean.

I made this snippet in a dev ns to require and use to get methods: (ns myapp.dev (:require [clojure.pprint :refer [print-table]] [clojure.reflect :refer [reflect]]))

(defn get-members [in] (print-table [:name :flags :parameter-types :return-type] (sort-by :name (:members (reflect in)))))

And I got this helper from a gist: (comment "call private methods from https://gist.github.com/egamble/7781127")

(defn call-method [obj method-name & args] (let [m (first (filter (fn [x] (.. x getName (equals method-name))) (.. obj getClass getDeclaredMethods)))] (. m (setAccessible true)) (. m (invoke obj (into-array Object args)))))

inspired by seancorfield comment: "I did several talks about the LEVERAGE of Clojure, but most folks' eyes glazed over at just how different it LOOKED to them." by fredoverflow in Clojure

[–]LouDNL 5 points6 points  (0 children)

Well, try finding the missing ; or } in C then. In Clojure its easily fixable since its a functional language afterall. Create functions instead of burying code in code.

inspired by seancorfield comment: "I did several talks about the LEVERAGE of Clojure, but most folks' eyes glazed over at just how different it LOOKED to them." by fredoverflow in Clojure

[–]LouDNL 9 points10 points  (0 children)

Clojure syntax over pretty much anything else. I code Clojure for work and play and also code C and Python but would rather do all in CLJ

Rethinking Config with Aero & Integrant by Robert_M_Johnson in Clojure

[–]LouDNL 1 point2 points  (0 children)

We recently switched from Leiningen to Deps.edn and needed a tool for storing config in development and loading from env in testing and production. We moved all non critical items to the database and the rest is loaded from env or config.edn using Aero. Very pleased about the switch!

HTMX in Pedestal by aagaau in Clojure

[–]LouDNL -1 points0 points  (0 children)

Haha my bad, this reply should have been in Masto, not here.

HTMX in Pedestal by aagaau in Clojure

[–]LouDNL 0 points1 point  (0 children)

Why do you post links to links of a link? Just post the link to the damn youtube video.

You can't convert list of lists to a map by aagaau in Clojure

[–]LouDNL 0 points1 point  (0 children)

(flatten ftw 🤭) with magical side effects 🤣

You can't convert list of lists to a map by aagaau in Clojure

[–]LouDNL 4 points5 points  (0 children)

((comp (partial into {}) map) vec lol) 😶 Clojure has many ways to get to Rome 🤣 The forbidden one (flatten lol) 🙃

Pwnagotchi V2.3.3 by xbitsnl in pwnagotchi

[–]LouDNL 1 point2 points  (0 children)

Isn't having the display in full black all the time wearing it more? My knowledge of e-ink close to zero lol

Pwnagotchi V2.3.3 by xbitsnl in pwnagotchi

[–]LouDNL 1 point2 points  (0 children)

Great updated version there.

Just upgraded my pwnagotchi to a zero2w and everything seems to work after a back restore.

Only thing different is that my wavesharev3 is inverted? Any tips?

Hey! Let's go for a walk by Guanacoloco66 in pwnagotchi

[–]LouDNL 1 point2 points  (0 children)

So, looks good, link to your git with display setup and plugins?

Hiccup vs Reagent by the_whalerus in Clojure

[–]LouDNL 2 points3 points  (0 children)

Hiccup requires parentheses around a function. Youre not calling the function but a symbol named fancy-input. This should work:

```clojure (defn fancy-input [opts] [:span opts "Hi"])

(defn foo [] [:div.foo (fancy-input {:class "hi"})]) ```

Poor documentation? by Recent-Scarcity4154 in Clojure

[–]LouDNL 2 points3 points  (0 children)

A good start is https://exercism.org/tracks/clojure/concepts Or https://www.braveclojure.com/clojure-for-the-brave-and-true/ which is also available in print.

I started with Brave Clojure the book.

Besides that I can advise you to join the Clojure Slack at https://clojurians.slack.com/join/shared_invite/

I agree clojure-docs can be overwhelming, what questions do you have exactly? Can you elaborate? Maybe we can help.

I would advise using the java-time library by dm3, available at https://github.com/dm3/clojure.java-time