[CODING/SOLVED] gradle build (android) breaks after upgrading a dependency...
You’ve just upgraded one of your Android project’s dependencies and when you ./gradlew assembleRelease the build process breaks. You invoke it again with --stacktrace to find the following exception:...
View Article[linux/ubuntu] How to suppress useless mod_openssl/lighttpd error messages...
Sometimes you have a bunch of useless errors creating unnecessary disk I/O on your server, disk I/O that should be used towards serving your user’s requests efficiently. In this case a site running on...
View ArticlePython in Functional Style: How to add 2 lists of integers without using loops
Usually you’d add a list of integers this way: a = [2, 2, 2, 2] b = [2, 2, 2, 2] c = [] for i in range(len(a)): c.append(a[i] + b[i]) You can do it functionally without any loops in different ways:...
View ArticlePascal Triangle Generator in Python, and then in Haskell – The Gubatron Method
Here’s in python, imperatively, and then in functional style without the need for loops. .gist table { margin-bottom: 0; } This file contains bidirectional Unicode text that may be interpreted or...
View ArticleHow to enable source highlighting when doing `less mycodefile.ext`
.gist table { margin-bottom: 0; } How to enable source highlighting when doing less mycodefile.ext Install source-highlight sudo apt install source-highlight Configure it on your .bash_profile...
View ArticleThings to remember when compiling/linking C/C++ software
.gist table { margin-bottom: 0; } Things to remember when compiling/linking C/C++ software by Angel Leon. March 17, 2015; August 29, 2019. Include Paths On the compilation phase, you will usually need...
View ArticleAccessing and manipulating a 32bit integer as a byte array in C++ using unions
I don’t think I’ve ever used union for anything, but today I came across a very interesting use case to avoid bit-shifting tricks when dealing with data embedded in numbers. What’s a union? Microsoft...
View ArticleHow to resize AWS ec2 ebs root partition without rebooting in 3 steps
Go to the AWS EBS dashboard and modify the volume size. Might be good to create a snapshot of it for safety but haven’t really failed ever doing this. # 1. Check the device of your partition $ sudo...
View ArticleHere’s my first very rough draft of “LifeTips”.
https://github.com/gubatron/LifeTips#life-tipsIt is a short manuscript with actionable tips to live a better life, it’s there primarily as a manual for my kids when I die.Advice is grouped into 6...
View ArticleHow to build your Docker image using the same Dockerfile regardless of the...
Problem If you are now using docker on a Mac M1 (arm64 platform), you don’t want to use amd64 as the architecture for your Linux Images. You could have 2 lines on your Dockerfile and comment each one...
View ArticleThe difference between a Slice and an Array in Rust
In Rust, a slice is a reference to a contiguous section of a larger data structure, such as an array or a vector. It is represented using the syntax &[T], where T is the type of the elements in the...
View ArticleWhat is the Rust equivalent to Java’s PrintWriter?
In Rust, the equivalent of Java’s PrintWriter is the std::io::Write trait, which is implemented by a number of types that can be used to write data to an output stream, such as a file or a network...
View ArticleControlling Dopamine Levels with Gut-Based Nanobots: A New Approach to...
Download PDF Today, I spent nearly 3 hours writing a science fiction paper on nanobots that can synthesize hormones in the human gut. I used a tool called ChatGPT, which is a large language model...
View ArticleMass delete Github Workflow Run Logs with this script
Github workflow doesn’t allow mass deletion of Workflow Action run logs, it takes 2 clicks to delete each run log. If you wanted to delete hundreds of these, the only way is to script something....
View ArticleThe First Human Martian: Media Giants Battle for Interplanetary Supremacy
As humanity takes its first steps towards colonizing Mars, the birth and eventual journey of the first Mars-born human to Earth are destined to capture the world’s attention. This unprecedented event...
View ArticleJava Pros: Discover 6 Websites to Boost Your Income through Bounties
A Java programming veteran can find easy bounties on various platforms where developers can earn rewards for contributing to open-source projects, solving coding challenges, or participating in bug...
View Article