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
-
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.9 -
I don't think we need to worry about judgement day anytime soon... If anything, we should be worried they miscalculate where the ICBMs are going to land...4
-
Log() method blocking caller to
1) Enter a critical section
2) Open the log file
3) Move to the end of the file
4) Write the log
5) Close the log file
6) Exit the critical section
And this was already in production.1 -
Learn enough math to solve the problem Chat GPT (and two university math professors) have been unable to solve :(
The hardware is ready, the software is ready, and the only missing piece is to align a laser pointer with a Lambert's conformal conic projected map... I thought Chat GPT would be able to at least provide me with the necessary formulæ, but not...6 -
Ex-employer contacting me after 6 months asking for 2FA codes into their system which I handed over a week before leaving... Sorry guys (not really!)1
-
Upgraded my project from .NET 6 to .NET 7.
Looks like some kid who writes shit in JavaScript and pats themselves on the back has had some input on System.Text.Json
JsonDerivedTypeAttribute8