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
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
I feel like working with embedded compilers is like working in the dark ages sometimes. I end up doing things that are like black magic to just make things work:
union {
float infloat;
uint32_t outint;
} puneit;
As long as the compiler supports C99 this is supposed to work. I think even if you are using it as a C++ compiler. There is also no way for us to get a compiler from the vendor for our embedded chips to do this the C++ 20 way:
float ieee_float(uint32_t f)
{
return std::bit_cast<float>(f);
}
I am not even sure if the compiler I am using is C++ 11 compatible.
edit: okay, it supports C++ 115 -
accidentally deleting hours of tedious front end work by accident while trying to get rid of the error generated garbage by the build system when you are trying to commit just the relevant things while iterating2
-
I made a bad design decision on the DB level, I made 1 NON-NULL column so i can avoid 2 NULLABLE columns
Small thing, but over a couple of years it's now bed-rock code and Projects, Services, API layers, all have to deal with "Am I a URL or an EntityID?", n on-demand derivation across Projects (or even param-passing) has started to birth bugs T__T
If it were something small like a log I'd ignore, but it's core to how content is stored n entire analytics is tied to it
It's theoretically an easy fix, BUT IT'S SO DAMN TEDIOUS. I've to make a LOT of things to live together and migrate some data, if even 1 portion is messy, there'll be silent failures (:
I've been putting it off for a week now coz my mind actively avoids doing it. Kill me1 -
geez so one doc says it isn't multiple sclerosis and the other one says yes and his whole practice just keeps hinting drugs, ignores half my symptoms and questions after gaining my trust (again like the previous neuro), and keeps insisting on me signing a consent form to basically epi-pens that have to be personally delivered to my house every month due to "refrigeration" for the rest of my life and then tries to fear monger me and tells me the brain scars never fade
completely dismissed a lot of things that didn't fit his diagnosis and ofc when I mentioned oh wait the COVID vaccine made me numb that was the ONE and only time he heard me mention numbness and he didn't start nodding his head to it being multiple sclerosis. oh so my immune system can attack my nerves but it can never have anything to do with a product that is meant to increase your immunity, yet you want to inject me with immune destroying shit that will make me immunocompromised as a "cure"?
people are so disappointing
they have like 30 tests they did on me and all their results. and they took even more blood and didn't explain why. I was in there 2 hours going over all the events with the interim chick who seemed human but her boss doctor is not. guess I'm figuring out how to get all my test results, since I saw them for the first time in years on her fucking computer screen and I can actually use that data
this guy has the gall to keep telling me I was reading blogs when I mentioned I did research when the doctors kept dismissing me 3 years ago... and little snips like "supplements don't work" alongside shit like "let me prescribe you vitamin d" to which I was confused because he literally just asked me if I take vitamin d and I said I took some during the winter but stopped... so I clearly still have it. they sell them in bottles of 360 pills here come on. and he throws in "vitamin d is actually studied to be efficacious". yeah so is a lot of stuff I read about and tried and it did work. I had to actually fight him to just be allowed to use the vitamin d I already have at home ???
I only ended up in the hospital recently due to the trauma and not the nerve issues. cuz I could have emotions without shaking violently so all my emotions from the trauma undergone by his comrades and my friends abandoning me is just re-arranging itself through the 5 brain lesions now and my 2/10 death scale. these fear mongering hacks at least finally told me how many lesions and nicely decided to give me a "death scale" to upsell their drugs
so they wanna give you fake antibodies to kill your b cells so bam no immune system. ok why can't you just fix my b cells instead, re classify them? he's like making a face and I'm like "oh right sorry you probably spent your whole life trying to solve this" since he's literally the expert on multiple sclerosis in one of the most renouned universities in the world and got PhD beside his name... I don't wanna be insulting. then he looks disapprovingly at me and says "maybe in a decade or two". how much you wanna bet it's trivial?
I fucking want my fucking tests. they mentioned high igg (amongst themselves ofc, not to me). but not what igg it is. igg4 is tolerance igg... and COVID vaccine injured people all have high igg4. is it fucking igg4? does he even know how iggs work? his neurologist colleague said I had no antibodies for MS. so why do I have high igg if I have no antibodies for my own neurons?
these fucking hacks. I can't with this medical field.
and he has the gall to tell me to sign consent forums to get the meds now and tried this damnedest to fearmonger me. "this company" he points on the paper like that somehow matters. this is Canada why the shit would I give a shit which company it fucking is, all healthcare is free? even the fucking lead specialist in his field is just shilling for pharma. cure it or eat shit. claims lesions don't go away. oh you wanna bet? if you let me see my MRIs I'll find a way. guy totally ignored how that EEG helped me. in theory it shouldn't help anyone but it helped my nerves turn back on immensely. I mentioned it 4 times. are you not interested? are you not a PhD holder or just a prop? what a useless hack seriously
his interim was nice though. she heard me cry for 2 hours lmao. I apologized and she said it's fine and normal. apparently MS people have trauma a lot. well yeah you have your nerves scream a banshee scream and then everyone leave and insult you, all the while you can't think your way out of a paper bag and cease being able to walk randomly and all the other random nonsense
humans perpetuate to disgust me -
every new project is asking for a slack channel that we can pipe things into.
the effort is low, but the need for this instead of just looking at a dashboard that just takes a sql query is so fjdasjfdalfd.2 -
Yes, I had the opportunity to buy any mouse in the world, but I picked a weird apple one with one physical button acting as two separate buttons, a trackball for scroll wheel (it's neat to scroll horizontally though, not gonna lie), virtual middle button, virtual squeeze sensor and a tiny internal speaker. Yes, I'm an idiot.
But hear me out. When I was a child, I accidentally wandered into an apple store. I was blown away by what their UIs looked like (it was a Leopard era, maybe Tiger, I'm not sure). I still remember how I approached a desk where an iMac stood, and this was the mouse it came with. This. This very mouse was my first experience with apple. and oh boy, how memorable it was, and how much I wanted a macbook of my own.
Apple still means a lot to me. It's so unfortunate that their privacy approach went real bad real fast. Somehow when people say that nintendo, which is a shitty anti-consumer company, means a lot to them, it's suddenly okay, because that shitty anti-consumer company is based in japan. mark my words, if apple was a japanese company, it would've been much worse, but it wouldn't have been hated as much.
I now possess my childhood dream, or at least its fragment: the best mouse that apple ever made. it feels comfy and substantial. modern flat magic mouse is a disgrace. if you're still an apple user (my condolences), buy a mighty mouse on ebay. wireless ones do exist, they take regular batteries.
Oh, and this mouse works perfectly with Debian out of the box. If you pair it with a Mac, you can see probably the oldest bit of UI that's still in modern os --- the mighty mouse settings panel. It's there, unchanged since the 2000s.15 -
Because we live in the universe not made for us — it would’ve been arrogant to think that all this vastness was designed around apes with anxiety — it doesn’t make sense. Thus, nothing that happens here does. If you examine something — anything — really closely, you realize that everything made of infinite number of parts, each of those parts infinitely complex.
So, if you think you grasped something, you didn’t — you’ve just found a way to dumb it down so your frail brain doesn’t immediately explode.
You didn’t grasp the thing. You just made up another thing that may or may not have anything in common with the thing you tried to grasp.3 -
wow, robot retoor does look like real retoor, wtf?
also, toorii, does calling you 1.5m gremlin offend you? or are you in on the joke?8 -
Dark Humor
Lets try some seriously dark dark humor. Lets find what lurks in the hearts of men.
My Kid: I was adopted.
Me: We wouldn't have picked you.
Oedipus: <whilst banging his wife> You remind me of my mom.
What do you call Rock Hudson in a wheelchair?
Rollaids
What did Christa McAuliffe say to her husband before the launch?
You feed the dog, I will feed the fish.
Some I found from searching web:
What's worse than a baby in a dumpster?
A baby in 2 dumpsters.
If we had mosquito nets in Africa we could save millions of mosquitos from getting AIDS.
Down syndrome in military is called special forces.
Mom told me to eat my vegetables, now where do I put the wheelchairs.
Whoever thought white men can't jump obviously never watched the 9/11 footage.15 -
How is MSSQL so popular? "Oh yeah, sometimes you have to use dynamic SQL because the compiler doesn't correctly detect the impact of DDL commands and rejects working code" god fucking what? Why does the compiler infer the future structure of tables after a DDL command if it can't do so reliably? In my world, if it becomes public knowledge that a compiler incorrectly infers something, the maintainer scrambles to remove the inference instead.
I also find it surreal that I have to disengage versioning on a table in order to be able to modify the version history. Like surely, there should be a mechanism to temporarily skip the hooks other than ALTERing the table into a regular unversioned database table and then ALTERing it back, rebuilding the versioning infrastructure from scratch. SQL is awful and MSSQL is doubly awful.5 -
So there is this discussion about killing children in code. Someone pops in with this:
"I do remember a post from a guy who actually got pulled into an HR talk, to ask why he'd littered the code with references to killing children and removing children from their parents. Imagine trying to explain to a person who's never programmed, that Kill(parent.child)is a perfectly standard phrasing and not a latent psychosis that should be reported to the police."
First I think who is the idiot that reported this? Then I think who is the HR idiot that didn't do a google search or talk to the software manager? So many people had to fail at basic thinking for this to get this far.
Then I think also. Two things can be true at the same time. The person writing this code could also harbor latent desires to kill children. But can hide their sickness in plain sight. CS could just be a place for psychopaths to talk about the true serial killer thoughts.
I was wondering what this would look like. Maybe the psycho programmer will allocate extra hidden children that will get created and destroyed without anyone knowing the better. Maybe they only need 10 children for the code, but they allocate 100. That is 90 children they can create and destroy that only they know about.
Is balancing a tree really about cycles to read the data? Or is this some sort of karma balancing with latent desires to add or remove children with different karma leanings? Linked lists? Obviously only a psychopath would make a singly linked list.
Then I read posts on devrant and think there is probably at least one psychopath here that looks up to Anakin. We know you are here! You can't hide forever.15 -
A day in my life. This morning Dell was doing it's update on my laptop before I left for work, so later when I knew my wife was up I asked her via text to shut my laptop off.
W: "You left your laptop on this morning."
Me: "I know, it was still doing an update this morning. I sent you a text."
W: "Leaving your computer on all day is going to burn it up."
Me: "Its 8:30, been maybe a half hour isn't a day."
W: "Still wasting electricity. How do I turn this thing off?"
Me: "It's just like yours."
W: "No, your computer is way different than mine. Just tell me how to turn it off"
Me: "My computer is running Windows 11, yours is Windows 10, shutting down is exactly the same"
W: "I don't understand, yours looks completely different. Stop being an ass and just tell me"
Me: "Select Start, then shut down"
W: "Select what? There isn't anything that says Start"
Me: "Sorry, click the little icon in the bottom left. Looks like four little blue squares. That's the Windows Start menu button, just like yours."
W: "OK, now what?"
Me: "Shut down"
W: "Shut down what? I don't see anything"
Me: "The icon that looks like power button next to my name"
W: "There is nothing next to your name except your picture"
Me: "It'll be on the right hand side"
W: "Where the clock is?"
Me: "No, on the Start menu, where you see my picture, there should be a button to turn it off."
W: "No, it went away"
Me: "What do you mean went away?"
W: "All that disappeared when you told me to click over by the clock."
Me: "I didn't say to click on the clock, anyway, doesn't matter. Start over, select the icon in the bottom left"
W: "You're not listening. There is nothing there when I click that. You're such as ass. You cannot even tell me how to turn off this stupid computer. I'm busy, you can turn this thing off when you get home."
<a few minutes later I text my daughter>
Me: "Baby girl, can you turn off my computer?"
<10 seconds later>
H: "Done. Anything else?"
Me: "Nope. Thank you."16