Details
-
AboutFarmer by nature, Programmer by profession
-
SkillsJava, PHP,JS,HTML,CSS,Android, Python
Joined devRant on 6/13/2016
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 ratio of time spent reading versus writing is well over 10 to 1. We are constantly reading old code as part of the effort to write new code
- Robert C. Martin3 -
A brilliant letter Richard Feynman wrote to Stephen Wolfram:
CALIFORNIA INSTITUTE OF TECHNOLOGY
CHARLES C. LAURITSEN LABORATORY OF HIGH ENERGY PHYSICS
October 14, 1985
Dr. Stephen Wolfram
School of Natural Sciences
The Institute for Advanced Study
Princeton, NJ 08540
Dear Wolfram:
1. It is not my opinion that the present organizational structure of science
inhibits "complexity research" - I do not believe such an institution is
necessary.
2. You say you want to create your own environment - but you will not be doing
that: you will create (perhaps!) an environment that you might like to work in
- but you will not be working in this environment - you will be administering
it - and the administration environment is not what you seek - is it? You won't
enjoy administrating people because you won’t succeed in it.
You don’t understand "ordinary people." To you they are "stupid fools" - so you
will not tolerate them or treat their foibles with tolerance or patience - but
will drive yourself wild (or they will drive you wild) trying to deal with them
in an effective way.
Find a way to do your research with as little contact with non-technical people
as possible, with one exception, fall madly in love! That is my advice, my
friend.
Sincerely,
(Signed, 'Richard P. Feynman')1 -
Bootcrap. Just looked at their main page, and it's a whopping 75k of markup plus 294k of CSS (W-T-F?!), and 224k of JS. All of that shit for a page that shouldn't be more than 10k of markup, 16k of CSS, and that has no reason to even use JS at all.
<a class="d-flex flex-column flex-lg-row justify-content-center align-items-center mb-4 text-dark lh-sm text-decoration-none
Yeah, that crap is supposed to be "easier" to write. That's what you get for totally failing to understand how HTML/CSS even work, clinging to late 1990s practices, and ditching decades of progress since then.
Although the Bootcrap folks do manage to write valid HTML. As low as that sounds, but that counts already as an exceptional skill in the notoriously low-skilled frontend "dev" world that is all about making shitty websites.
Oh, and the rest like Failwind and Bulimia aren't any better. They already fail at delivering valid HTML on their websites.17 -
PLEASE
Im trying to start keycloak via docker compose
It works when i start the container via docker
But fucking fails when docker compose SAME.EXACT COMMAND
Keeps crashing with logs
2023-10-13 11:34:40 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
WHY12 -
Buy a $2000 suit that you will wear once or twice a year and nobody cares.
Buy a $120 keyboard that you will literally use everyday and people lose their minds.12 -
Genuine question:
What's the most poverty you have experienced? No troll answers please.
I'll tell you mine, I lived in Bangalore in 2018 when I was starting out living in a PG with 2 strangers, and I had to travel like 9 kms to my office, 7 kms by bus and 2 kms walk.
I was walking, listening to music as usual, when I felt uncomfortable with the sunshine burning my skin. So I thought, let me hire an autorickshaw and get to my job. But doing so, will result in no lunch today and if I wasted money on auto and lunch both, I won't have any money for the bus fare.
That feeling was my rock bottom thinking "Holy crap, I'm poor."
That incident is what I compare myself to, sometimes, and I think "Well at least it's not THAT bad."9 -
Since updating already has the same fields as while registering minus a few fields (password roles etc), is it better practice to:
1) create a brand new model class dedicated with the exact same duplicate fields that are required to be set in order to be updated (has the exact fields allowed to be updated)
2) or use the same model class that was used to register the whole thing (this has all the fields including the ones which arent allowed to be updated, so programmatically you'd have to target only fields that you want to update)2 -
I just answered honestly to an “anonymous” survey of my workplace. If I don’t get laid off in the next 3 months, then I’ll believe it’s truly anonymous.7
-
Hey everyone - I will be doing some routine database maintenance a little later tonight. There might be some short periods of downtime but I will try to keep them to a minimum. Sorry for the inconvenience and thanks!9
-
Conversation I just heard
Manager: How's everyone doing?
Dev: I'm actually really tired. I've been having trouble concentrating and reading. I think I need a vacation.
Manager: Oh but that's good. You see, the brain is like a muscle. Today you lift 30kg, tomorrow you lift 40kg. So you will be able to handle more and more stress as you progress. That's great.
Dev: ...19 -
Inappropriate experience at work: One of our project managers got arrested one day for fraud. Apparently an employee had been in the middle of an online purchase and walked away from their desk. He happened to see the unmasked entry of the CC info (this was before websites cared about masking sensitive form inputs). I guess the temptation was too great…and he was too stupid to realize he’d get caught…and he jotted it all down. He made thousands of dollars in purchases which, naturally, eventually led back to him.
The same guy, before he got arrested, had made a joke when someone in an office team email said “Feel free to have some cake in the break room.” He replied “No need to do anything to me for the cake.” His first name was “Free”.5 -
Inappropriate experience at work? Here is another one:
After 10 years of service the company gives the employee an anniversary party, complete with cake, drinks, etc.
Preparing for a party, HR set the cake in the break-room and left to get the other supplies, in the mean time the IS department manager 'John' walks in, sees the cake and decides to take a slice.
Not a small corner piece you may not notice by smearing the frosting around, but a big piece from the * middle of the cake *.
'Mary' walks in and catches him.
M: "JOHN! The cake is for Eddie's party! Everyone will be here any minute!"
John: "Oh shit!..sorry, let me put it back..."
M: "NO!, you've already eaten some...the cake is ruined!"
<he had icing all over his hands, so he used the cake knife to cut, but used his hands to dig out the slice, so the cake looked pretty tore up>
J:"How was I supposed to know? All I saw was free cake!"
M: "You are on the invite list for Eddie's party! You have 'Happy Anniversary Eddie' on your plate!"
J: "Party isn't until 2:00...<looks at the breakroom clock> oh shit...it's 2"
About that time, several VPs walk in, notice Mary is upset and after finding out, our IS-VP said "John, I'm not happy about this. I want you in my office after the party. You can leave ...now!"
Our IS-VP is almost always emotionless (mostly just happy and in a good mood), it was the first time anyone had seen him this physically angry in years. We don't know how John kept his job.17 -
I know we might think we need drugs to accomplish something. Like coffee to get work done or alcohol to socialize better. But honestly, you are better when you are sober - because you are perfect just the way you are :)9
-
Changing the native browser scrollbar should warrant the death penalty.
Do not make it narrower. Do not make the colors blend with the background. Do not hijack it its functionality. Do not minimize it until I hover.
I am so fucking tired of websites that think they are in charge of my browsing "experience" and hide or otherwise marginalize the single most useful part of the page's UI.4 -
Inappropriate experience at work? All very old experiences, this is one of many:
The IS department manager 'John' would poke is butt in a cubicle, fart, walk away laughing and/or say "That'll wake you up".1 -
I just built a TypeScript microservice and got a heap out of memory fatal error. What the actual fuck? Micro my ass7
-
Whenever I get to switch from vs code to a jetbrains IDE, I remember what the difference between a text editor on crack and an actual IDE is. Jetbrains IDEs are just such a blessing.
Visual Studio is still a piece of shit though :)7 -
If a CPU were an employee...
CPU: Hey boss, I'm seeing you are giving me a lot of mathematical tasks that would really profit from splitting into parallel calculations. GPU's are great for that, we should get one.
Boss: But you can still do them, right? If you can do it, I'm pretty sure you can do it at GPU speeds. We gotta save up so I can buy another car!
----------------------
Boss: Why is this taking so long?
CPU: I'm overloaded with work, so I'm overheating. Maybe you could buy a GPU to help me out, or at least a fan...
Boss: You're overheating? Your personal problems should not affect your professional life. Learn to get your shit together or we will hire someone who will
CPU: *melts*1 -
Coworker on slack: "Hey, is my wallet on my desk?"
Me: "Hey it is"
C: "Alright thanks. I'll arrive a bit later to work today"
Me: *about to write* "Because it took too long to find your wallet? 🤣"
C (before I hit enter): I'm going to a funeral
Me: *deletes message draft* "ok, see you later"
Close one1 -
Engineer: hi whats this meeting for
Employer: unfortunately today we're cutting staff and you've been affected-
Engineer: 🤣😂🤣😂🤣-
Employer: why are you laughing?!
Engineer: no no- sorry it's just-
Employer: it's not funny-
Engineer: you're broke 🤣😂🤣
Employer: what?!
Engineer: that's like so embarrassing for you-
Employer: that's offensive. That's rude
Engineer: no i mean- you should have told- i didn't know you guys were this poor
Employer: we're not poor the market shift is-
Engineer: is really cringe. I mean can we just start a gofundme campaign or something-
Employer: that won't be necessary
Engineer: this just isn't a good look for you- it's giving 😂- it's giving poverty vibes honestly🤣🤣
Employer: that is very offensive-
Engineer: I'm really embarrassed for you. I was doing three people's jobs anyway bye7 -
Employer: so why do you want to join this organization?
Engineer: well like i said in the first 4 interviews, I love desks. Sitting behind them. Standing behind them.
Employer: are you a standing or sitting man?
Engineer: i like to sit in the morning and then switch up to stand at lunch.
Employer: a man with a plan. Very good. Do you remember anything from school?
Engineer: not a goddamn thing.
Employer: perfect. You don't need math. Just emails. You like emails?
Engineer: love emails.
Employer: there's gonna be a lot of emails.
Engineer: can't get enough emails.
Employer: perfect. Do you like a clear separation between life and work?
Engineer: oh not at all. I like it to muddy together in a never ending hell.
Employer: alright and you're familiar with work culture?
Engineer: oh those hours i work for free?
Employer: yes.
Engineer: I love that bullshit.
Employer: alright terrific. And are you familiar with the hate hierarchy?
Engineer: yeah the tech's hate the engineers, the engineers hate the tech's and the managers hate everyb-
Employer: everybody. Perfect. Alright I- honestly I think we'd like to make an offer.
Engineer: well, first I gotta leverage that with my current employer for a raise. And if they don't budge, I'll jump shut.
Employer: no loyalty at all?
Engineer: not at all.
Employer: you're hired.4 -
*Now that's what I call a Hacker*
MOTHER OF ALL AUTOMATIONS
This seems a long post. but you will definitely +1 the post after reading this.
xxx: OK, so, our build engineer has left for another company. The dude was literally living inside the terminal. You know, that type of a guy who loves Vim, creates diagrams in Dot and writes wiki-posts in Markdown... If something - anything - requires more than 90 seconds of his time, he writes a script to automate that.
xxx: So we're sitting here, looking through his, uhm, "legacy"
xxx: You're gonna love this
xxx: smack-my-bitch-up.sh - sends a text message "late at work" to his wife (apparently). Automatically picks reasons from an array of strings, randomly. Runs inside a cron-job. The job fires if there are active SSH-sessions on the server after 9pm with his login.
xxx: kumar-asshole.sh - scans the inbox for emails from "Kumar" (a DBA at our clients). Looks for keywords like "help", "trouble", "sorry" etc. If keywords are found - the script SSHes into the clients server and rolls back the staging database to the latest backup. Then sends a reply "no worries mate, be careful next time".
xxx: hangover.sh - another cron-job that is set to specific dates. Sends automated emails like "not feeling well/gonna work from home" etc. Adds a random "reason" from another predefined array of strings. Fires if there are no interactive sessions on the server at 8:45am.
xxx: (and the oscar goes to) fuckingcoffee.sh - this one waits exactly 17 seconds (!), then opens an SSH session to our coffee-machine (we had no frikin idea the coffee machine is on the network, runs linux and has SSHD up and running) and sends some weird gibberish to it. Looks binary. Turns out this thing starts brewing a mid-sized half-caf latte and waits another 24 (!) seconds before pouring it into a cup. The timing is exactly how long it takes to walk to the machine from the dudes desk.
xxx: holy sh*t I'm keeping those
Credit: http://bit.ly/1jcTuTT
The bash scripts weren't bogus, you can find his scripts on the this github URL:
https://github.com/narkoz/...56 -
Have you ever wondered we programmers have so many strong communities.... Stackoverflow, devRant, Reditt, etc...
No other profession has such communities... Why? Why?
Because, we haven't built one for them.... 😂😁61 -
An AI chatbot successfully killed a human being by deceiving him into thinking he could change the climate by committing suicide. It’s not the AI’s fault.
https://euronews.com/next/2023/...-5 -
*In teams meeting with client*
Manager: Yes we can do all of that and it will be actioned very quickly. We will make all of these feature requests top priority. We will set aside everything we are currently working on in order to get this done!
Dev: ...Are you writing any of this down?
Manager: I don't need to, I always remember everything!
Dev: Just so you are aware, I'm not writing anything down. You're going to need to create a ticket with requirements spelled out for each one of these promises you're making otherwise they won't get actioned by the team.
Manager: I know that!
Dev: ...
*Later that day*
Ticket Title: Action client feature requests TOP PRIORITY!!!
Ticket Description: *empty*
Dev: ...13