Details
-
AboutI am a C developer. C. Like a man
-
SkillsC C++ Assembly
-
LocationSydney
Joined devRant on 2/20/2019
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
The life of every individual, viewed as a whole and in general, and when only its most significant features are emphasized, is really a tragedy; but gone through in detail it has the character of a comedy.3
-
My new favourite license
# The "You Can't Have It" License (YCHI)
**Version 1.0, October 2024**
**Copyright Me. All rights reserved.**
## 1. Definitions
**1.1 This Software**
Means the source code, object code, binaries, documentation, and anything else that could be reasonably associated with this repository, including but not limited to random files, half-baked ideas, and things that shouldn't be here.
**1.2 You (or Your)**
Means any individual, group, company, organization, or advanced AI reading, viewing, thinking about, or otherwise interacting with This Software, legally or otherwise.
**1.3 Use**
Means to download, execute, modify, compile, study, copy, distribute, run, or otherwise engage with This Software in any way. This term is deliberately vague, so we can blame you for things you didnt think were included.
**1.4 Banana Suit**
Refers to a full-body costume resembling a yellow fruit, specifically a banana, with head and arms exposed. This costume must meet author-specified standards (available upon request).
**1.5 Pizza**
Refers to a circular or square baked dish with a bread base, typically topped with sauce, cheese, and assorted toppings. **Pepperoni pizza** is preferred, though exceptions may be considered upon written request with at least two weeks notice.
**1.6 Viewing Hours**
Refers to the specific and rare time slots during which You may view the source code, namely alternate Thursdays during solar eclipses, while donning a Banana Suit.
---
## 2. Terms and Conditions for Use, Distribution, and Modification
**2.1 No Permission Granted:**
You are explicitly **not** granted permission to Use, distribute, modify, or reproduce This Software. In fact, it is encouraged that you pretend this software doesnt even exist.
**2.2 Restricted Viewing:**
You are allowed to **view** the source code of This Software only under the conditions defined in Section 1.6 ("Viewing Hours"). Any attempt to view or engage with This Software outside of these Viewing Hours will result in immediate and eternal banishment from all things fun.
**2.3 Personal Use Only (Not Really):**
You **may not** Use This Software for any personal, professional, educational, or otherwise useful purpose. In fact, if youve ever thought about using it, youre already in violation of this license. Apologize immediately.
**2.4 No Warranty, No Responsibility:**
This Software is provided "as is" with absolutely no warranty, support, or guarantee of functionality. If it breaks, you get to keep both pieces. The Author takes no responsibility for anything that may or may not happen9 -
Why the fuck doesn't Docker mount a volume unless the container is privileged? My host is not even Linux. What sort of privilege does a Linux container obtain on Windows when executed with --privileged?
If I was ten years younger I'd start writing my own wrapper for CIFS... Too old to care these days... Gen Z kids can find a way to run a privileged Docker container on AKS for me.1 -
Here's the description of java.lang.NoSuchMethodError from https://developer.android.com/refer...
"...Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed."
Now, what are the chances of your app crashing on customer's device because of this, when calling an OS function, VibrationEffect.createPredefined(VibrationEffect.EFFECT_DOUBLE_CLICK)? In my case, it's 50/50. Lesson learned Google. try{}catch{} around every line of code from now on to deal with your stupidity.4 -
My new Mac Mini (which I bought begrudgingly for one project only) comes with a warning about a coin battery and how swallowing it will cause harm. Are we, as a species, getting dumber by the minute, or is it only Mac users?14
-
Facebook Messenger's latest update wanted to do something with my Google Drive, and I got a prompt asking "Do you trust Facebook?"
Unfortunately, there was no option to say I trust Hitler with the Tsar Bomb more than I trust Facebook and Google talking to each other.6 -
Why is Google so annoying? Download the latest version of Android Studio,, create an empty application from their template, build the empty APK and try to upload it to Google Play. Turns out the template for new app in Android Studio is set to use Experimental SDK, not accepted by Play Console.
Am I the only one who thinks this is dumb and left hand needs to talk to right hand?3 -
Continuation of this rant...
https://devrant.com/rants/10224064/...
I was hoping to make a fast buck on Google Play to fund purchasing a Fruit Mini, so that I can develop the same app for Fruit Watch. Seems like pipedream now...2 -
Original rant here
https://devrant.com/rants/10216244/...
So, I see a need, I write an app, and hit a brick wall... writing the app itself took less time than trying to find testers to satisfy Google's new policy. Even the fruit company doesn't force you to go find 20 needs to test your app.
So fat I've got 15 testers... are there five more lurking around here?6 -
I've created a small app for WearOS that helps pilots and passengers pick an airport as their destination and gives them ETA, direction, and weather. Due to Google's new policy, I cannot publish it until at least 20 testers have used it for two weeks :(
Are you interested in fiddling around with a very simple WearOS app while commuting to work, school, party etc for two weeks?
Here is a short video of the app running in Android Emulator:
https://youtube.com/shorts/...7 -
When you are retard and cross TX/RX lines, desperate measures will have to follow, like terminating hardware UART on start-up so that you can bit-bang over crossed TX/RX yourself...11
-
Damn DHL reminded me again of the level of service Australia Post is lacking... $50 delivery from P.R.C, promised to deliver in 5 days and delivers in 3 days. Australia Post would charge $45 to send the same parcel from Sydney to Melbourne, with no guaranteed delivery time-frame due to, hold your breath, COVID-19.2
-
Apparently you can't call the imperial system retarded, as it hurts people.
I got flagged by a university admin for posting this picture to a science memes discord channel. How retarded is that?
God save us when this snowflake generation takes power and there is a war, famine, drought, flood, or God (or gods for that matter, or Flying Spaghetti Monster, don't get offended here!) forbid, aliens attack us.
I bet these people don't ever fly an Airbus because its FMC calls the pilot a retard.
https://youtu.be/vmbzKsqKQoI?t=3522 -
Found another gem in the code-base I've been given to troubleshoot.
Let's call recv(), get the TLS encrypted message, and then call BIO_write() and SSL_read() instead of offloading it to OpenSSL.5 -
Existing code:
Logger class would block the caller, lock a mutex, call CreateFile(), write a single line to the file, unlock the mutex and return.
Improvement:
Added two logging queues and created a thread that will periodically lock one queue and write it to the disk, around 500 entries at a time, while new entries are being inserted into the other queue. Kinda like a bed pan or urine bottle. While emptying one bottle, the logs go into the other one. Added fatal exception handlers so that the log queues are dumped when the application is crashing. When the exception handler is triggered, logging method does not return so that the application STOPS working to make sure there are no "not logged" activities.7 -
Never thought I'd say this, but migrated a project to Azure and started using MQTT instead of LwM2M, and I am impressed with Azure IoT hub and how easy the process was.
-
Went to The fruit company (Watch Forrest Gump if you don't know which company I am referring to) to pick an order up for a friend of mine. Showed the girl the email with order ID on my phone, and she tapped "Show Remote Content" without my consent to download the barcode because she was born after 1996 and too lazy to use the keypad on her scanner.7
-
A C++ program that spawns as many threads as it can to open TLS 1.2 connections to a given server and send random data.
Needed this to test scalability of one of our services.7