Open Source Consultant, Software Developer and System Administrator
If you are interrested in hiring a consultant for the effective use of open source software on an enterprise grade, take a look around in the About section to see, what I have to offer.
Blog and snippets
Various snippets or code parts I found useful, so I keep them here for reference.
Next we need to ready Fennel in
~/.config/awesome/rc.lua and run the
configuration written in Fennel:
Simply changing the Groovy version in a Springboot Gradle project won't cut it. Trying to force the version with
will result in errors building the project:
The problem there is, that Springboot manipulates the dependencies via the plugin after the fact. So we end up with mixed 2.4 (which is the default for Springboot 2 right now) and the desired 2.5.
To solve this, we need to change the Groovy version as described in Customizing managed versions .
Instead of changing the version at the dependency, add the following at the top level of the
When dealing with APIs we are often confronted with some sort of paging to access lists. Yet if we need to access all of the data, it would be nice to have them as a lazy sequence.
This can be done nicely with transducers:
Add some tests:
Now see, if that is really lazy:
Well, no. We should only see
Loading page 0 and not the one for
1. The reason for this is chunking. Clojure internally loads itself
chunks of 32. So side effects will be problematic. But for just lazily
loading the whole lot having some mismatch in the used paging and the chunking
is good enough for now.