I joined Lemmy back in 2020 and have been using it as @[email protected] until somewhere in 2023 when I switched to lemmy.world. I’m interested in systemd/Linux, FOSS, and Selfhosting.
- 56 Posts
- 409 Comments
qaz@lemmy.worldOPto
Programmer Humor@programming.dev•Who cares about time complexityEnglish
7·6 months agopublic static int convertRomanNumeral(String numeral) { return numeral.replace("M", "DD") .replace("CD", "CCCC") .replace("D", "CCCCC") .replace("C", "LL") .replace("XL", "XXXX") .replace("L", "XXXXX") .replace("X", "VV") .replace("IV", "IIII") .replace("V", "IIIII") .length(); }
Yesterday I got feedback on my PR asking me to add more XML comments. The userId parameter of type Guid parameter didn’t have a param tag that said that it was the ID of the user. I was unable to convince them this was unnecessary and eventually conceded by adding a comment userId: ID of user.
Yes, but that is actually almost “incompatible with every app and website”
I really don’t get the WebP hate, it’s a good format. It’s better than PNG and JPG.
qaz@lemmy.worldto
Programming@programming.dev•Let's Make Sure Github Doesn't Become the only Option - Edward LoveallEnglish
8·7 months agoPeople. Most people are still on GitHub and don’t see things on Codeberg / GitLab nor are they willing to create an account. It’s a classic case of the network effect.
qaz@lemmy.worldto
Programming@programming.dev•Let's Make Sure Github Doesn't Become the only Option - Edward LoveallEnglish
7·7 months agoI have a Forgejo instance with all my private repositories and use GitHub for my public repositories I want to share with others / collaborate on. I’m planning to switch to Forgejo / Codeberg for my public repositories when Forgefed has been implemented.
qaz@lemmy.worldOPto
Programmer Humor@programming.dev•Who needs MongoDB when you have JSONB?English
1·7 months agoI tested it once and it didn’t really impress me. Perhaps you can try using something like Grist.
I mean, you could do it using foreign data wrappers.
EDIT: It has been done before https://www.cdata.com/kb/tech/excel-jdbc-postgresql-fdw-mysql.rst
qaz@lemmy.worldOPto
Programmer Humor@programming.dev•Who needs MongoDB when you have JSONB?English
16·7 months agoThere is actually an open source alternative for that in the Libreoffice suite called “Base”
“Building for Developers- Not imitators” | MongoDB
At MongoDB we believe in fair competition, open collaboration, and innovation that empowers developers. Our work has popularized the document database and enabled millions of developers to build modern, scalable applications that power some of the world’s leading companies. We welcome competition that drives progress and expands developer choice.
But that only works when everyone plays fair, which, unfortunately, isn’t always the case.
On May 16th, we asked FerretDB to stop engaging in unfair business practices that harm both MongoDB and the broader developer community. We believe that FerretDB has crossed two distinct lines:
…
qaz@lemmy.worldto
Programming@programming.dev•I'm getting started with functional programming, which language would you recommend?English
2·7 months agoF# is a decent introduction into functional programming. You can use .NET libraries and occasionally fall back to imperative code when needed.
qaz@lemmy.worldOPto
Selfhosted@lemmy.world•Mommy, Why is There a Server in the House?English
2·8 months agoIt is not. The source is linked in the post.
qaz@lemmy.worldOPto
Programmer Humor@programming.dev•Context: Docker bypasses all UFW firewall rulesEnglish
2·8 months agoI’ve just disabled all incoming connections (including SSH etc.) and access everything through WireGuard
qaz@lemmy.worldOPto
Programmer Humor@programming.dev•Context: Docker bypasses all UFW firewall rulesEnglish
2·8 months agoThanks for checking
qaz@lemmy.worldOPto
Programmer Humor@programming.dev•Context: Docker bypasses all UFW firewall rulesEnglish
1·8 months agoThe VPS I’m using unfortunately doesn’t offer an external firewall
qaz@lemmy.worldOPto
Programmer Humor@programming.dev•Context: Docker bypasses all UFW firewall rulesEnglish
5·8 months agoI also ended up using firewalld and it mostly worked, although I first had to change some zone configs.
qaz@lemmy.worldOPto
Programmer Humor@programming.dev•Context: Docker bypasses all UFW firewall rulesEnglish
2·8 months agoYes, you can fix it by doing this
echo "Adding rules for Docker subnets to allow communication between containers..." for subnet in $(docker network inspect bridge -f '{{range .IPAM.Config}}{{.Subnet}} {{end}}'); sudo ufw allow from $subnet echo "Added rule for $subnet" done



I’m pretty sure it’s Java (due to the syntax and Eclipse editor default color scheme), so that isn’t an issue