Petar Petrov
petarov@social.tchncs.de
<p>mdm-dev, futurist, sci-fi, neuropsychol. enthusiast</p>
Posts
-
View post
I got into optimizing our Gradle build on Atlassian Bitbucket last week. Because it seems Develocity no longer plan to support their gradle/build-cache-node Docker image, I thought of building one based on nginx and webdav instead. It&#39;s a relatively simple GET/PUT protocol described at https://docs.gradle.org/current/userguide/build_cache.html#sec:build_cache_configure_remote. I saw other projects that use Java server apps to do the same but my goal was no JVM and to use already existing...
-
View post
I was just checking where the hell all my disk space on the Mac went and I wasn&#39;t disappointed. 158G /Users/&lt;user&gt;/Library/Containers/com.apple.podcasts/Data/tmp/ That&#39;s right - due to some bug, Apple Podcasts was consistently nibbling on my disk drive. https://forums.macrumors.com/threads/folder-with-nothing-but-0-byte-files-is-using-4-3-gb-of-space.2437150/ #macos #apple #macos15
-
View post
DIY Fahrradschlauch wechseln - 10 Min. Danach Fahrradkette einstellen - 45 Min. 🙃 #fahrrad #mittwoch #diy
-
View post
After almost a decade of using DiffMerge I now switched to Meld for merging code. The main reason: Meld seems more supported and has an aarch64 binary for macOS, whereas DiffMerge actually got stamped as deprecated on Homebrew. In any case, DiffMerge always did right by me. To the authors: great work and thank you! https://formulae.brew.sh/cask/diffmerge #coding #devtools #programming #git
-
View post
Cat&#39;s out of the bag. I&#39;m vibing my own MacOS Pomodoro tool for personal use, even though I&#39;ve been using one that I paid for for almost a decade now. The ability to filter out only the features that I need and add a couple that I always wanted but were never there is just too tempting. So far I barely touched any code. I just wrote a markdown specification and added pictures explaining what I want. The fact that Opus 5.5 was able to craft out something that works witho...
-
View post
Can you spot why this same query behaves differently on Microsoft SQL Server and on PostgreSQL? ``` UPDATE osupdate SET devices_count = 0 FROM osupdate AS ou WHERE ou.devices_count &gt; 0 AND NOT EXISTS ( SELECT device_id FROM deviceosupdate WHERE osupdate_id=ou.id) ``` #database #postgres #sqlserver #programming
-
View post
If you are working with Java, have you already adopted Markdown documentation in your code? Any hints or feedback? https://openjdk.org/jeps/467 #java #jep #programming #softwareengineering
-
View post
I migrated Mattermost to Postgres and installed the Mostlymatter binary to jump through the 10k message limit, but things are sadly not looking good. First of all the upgrade was not smooth - it didn&#39;t migrate our Boards, which was unexpected. I had to pgloader them separately. The Mostlymatter binary enables the MM &quot;Free Edition&quot;; it works but disables a number of features like scheduled message-send and group calls. All in all it looks like MM is going into a full...
-
View post
Once again I remind myself I should use my IDE more effectively. &quot;Structural search&quot; is a really powerful feature that helped me find all the wrongly used instances of `java.io.InputStream.toString()` in the codebase. Fortunately, there was only one. #java #ide #intellij #programming https://www.jetbrains.com/help/idea/structural-search-and-replace.html
-
View post
`What is io_uring?` - Bumped into this great write up while I was researching how to get to use io_uring in Java. https://unixism.net/loti/what_is_io_uring.html #linux #io_uring #programming
-
View post
If you use HikariCP 7.1, you may omit `setConnectionTestQuery()` from your configuration. HikariCP now uses JDBC4&#39;s `Connection.isValid()` behind the scenes to validate connections. https://medium.com/@slow_tech/hikaricp-understanding-the-common-parameters-based-on-source-code-analysis-359de07cf03f#bf3b #java #jdbc #database #hikaricp #sql
-
View post
I have started working on a minimal set of Apple Business API calls in my Apple MDM client libraries for Java project. Current goal is to add most info retrieval calls. Another thing on the list is update of the Device Assignment library. Some interesting feature are available with `X-Server-Protocol-Version 10` - like Device network properties including eID. Apple have introduced an interesting retry-mechanism for the `AssignProfile` call, which I personally dislike, but it is what it is. The...
-
View post
aktuelles Projekt: LYWSD03MMC BLE Temperatur- und Feuchtigkeitsmonitor in der Wohnung installieren, diese flashen und von Grafana Stats und Diagramme erstellen lassen. Da mein Mini-PC nicht rund um die Uhr läuft, sammelt und buffered ein RPi-3 die BT Daten. Advanced-Modus: eine LoRa-Antenne, um auch Daten aus dem Keller zu holen. Ich wohne am letzten Stock-das wird spannend. #iot #basteln #diy #xiaomi #raspberrypi
-
View post
Ich hab den 16 J alten ThinkPad T510i meines Vaters wiederbelebt, indem ich die Festplatte gegen eine SSD getauscht und Linux Mint installiert habe. Es ist ein Dual-Core i5 mit 6 GB RAM, der vorher unter Windows 8.1 fast unbenutzbar war. Jetzt bootet er in 5-7s. und Firefox, Youtube, Libreoffice, usw. laufen problemlos. #linux #linuxmint #thinkpad #pc #computers