Details
-
Abouta geek diggin' deep
-
SkillsJava dev, Linux/UNIX sysadmin, performance engineer
-
LocationLithuania
-
Github
Joined devRant on 2/26/2018
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
-
Overall worst part of being a Software Dev? Really, really loving it. How could that be a bad thing you ask? Because people, in general, in life, do not want you to code. Managers, family, kids, colleagues, they all want your attention, they all want to yap at you, they all abhor seeing you concentrate at a screen. In short, they just can't leave you the fuck alone to do what you trained yourself so hard for. Best one of all is being hauled up on a daily basis for an hour to answer "How can we go faster!?" IDK maybe just let me do my thing? So fucking frustrating. If you don't recognise this and have all the time in the world, feel blessed, for you are free.3
-
Sleeping well cleans our mind and let us approach a problem in a different way and help us find the solution. For some days I was worried about how to solve a couple of bugs, but this morning after a good sleep I magically realized how easy the solution was:
WON'T FIX -
New year, new salary. My mind doesn’t comprehend the total world of difference between the toxic environment i was in, and the positive place i’m at now.4
-
> made tea 3 hours ago in a thermos
> got distracted by stuff
> tea still warm
it's the little things in life8 -
I opened the backlog today and found a bug assigned to me.
the bug basically describing that the images are not loading on the app, I take one look at the response and find the images url are sent as ip address.
I mention this to the tester and with a straight face they say "well why is it working on my laptop?" the laptop that's connected to their company's network.
god why am I even doing this.2 -
A fancy position opened up in a good spot, which I should be applying for. I want to. But this soul sucking place I currently work for has crushed me and I really don't see it in me anymore. The robots have more soul in this corridor than people.10
-
I'll keep on going about my vacation.
Went down the piste from where I took the picture, usually takes half an hour on average, I took less than 15 minutes.
I'm a tiny bit proud of myself :)14 -
Almost got scammed on fucking fiverr,
just created my profile and my two gigs, had some people contact me right away, I got real excited, they asked for my email cuz apparently they could not complete their order without it so I provided them my fake email I used to create my fiverr account, then they provided me a link to enter my payment information and this is where I became sus, they were asking for my fucking card balance, I was like wtf is that shit, then I noticed that the mail was shady asf, then some 2 other mfs sent me an email with a different body.
Thank god I noticed before it was too late, joined fiverr to get bank and instead was gonna get drained, fucking motherfuckers!1 -
"While a spectrum is defined as a function of frequency, a cepstrum is defined as a function of 'quefrency'. Quefrency is measured in 'time' and can be interpreted as a measure for time offsets of patterns in the time domain."
What in the actual fuck did I just read14 -
Almost no one seems to be online today. Most people have smth better to do but I don't.
I have upgraded the Ragnar anti spam service. It will:
- respond to spam in less than a minute like you're used to (a bit slower than before actually. The other system reacted in seconds but I decided that it's a bit overkill / not worth the resources.)
- use around 20 times less resources (instead of 20 bots, it's now one bot (a scout) that checks situation and activate other bots when needed)
- spam less, from now on, only one message gets posted under a downvoted rant. (before this was varying, could be 7 messages under a rant)
- since spammers upvote their down voted rant after a week or so, Ragnar down votes 5 times so it's harder to upvote. (before this was varying)
If someone thinks to see more spam because the service is a bit slower, let me know. It's very easy to adjust it's speed.7 -
What in God's name is thrift and why the fuck does every fucking library that supports it have no actual documentation. DOES EVERYONE COME PREINSTALLED WITH THIS MAGICAL THRIFT KNOWLEDGE??????6
-
gonna try working from the hospital while my youngest brother is in surgery from a car accident yay american work culture forcing productivity in difficult times9
-
I will not comply.random eat shit eat a bag of dicks go fuck yourself fuck off rancid ballsack skin cock suckers eat shit and die8
-
It's almost my birthday. My mom wanted to give me a month ChatGPT for my birthday but I have it already. Actually amazed by the spot-on suggestion. Recently for xmas she was spot-on too. She gave a 10kg warm blanket. Ever slept under such heavy blanket? You sleep in NO TIME. Heavy recommend!
Tip for when somebody asks what to give you for present and you have no idea: supermarket stuff of their own choice. You'll learn some new products that way and will have stuff you normally don't buy. So asked that.
A good friend who lives in Ukraine comes to my birthday so I'm happy.12 -
So I wrote some code to sort images in folders based on dates.
Like 2024>06>12.
I thought thats a good little script for GPT to help me out as I wanted to write it in rust.
Everything was fine and after processing all images and videos for 24 hours I was happy.
My test runs worked well.
Two days passed and I realize something.
Some images are not put in date folders. Why? Well I guess a little bug.
Starting to dive deep and checking if other images are in folders.
I see that I have images in folders since 2015 for most months and dates.
But why are some not put in exact day folders.
So another deep dive and I find out that the creation date is different to the folder the images are in.
Often its off by months.
Turns out I forgot to double check how the code generated by GPT maps the time between image creation date and unix epoch to a date folder.
It was just doing a division by an approximation of seconds that a month has, a year has, and a day has.
This caused things to be completely off the further away we go from 1970.
Lucky me that I did not mess up the creation dates :)
Looks like another 24 hours run5 -
The downsides of coding drunk: Implementing the same thing you've already implemented but forget you did13
-
tldr: I no longer like my job.
Several years ago I got hired at this company. It was great. Lots of things to learn. Able to make a big impact. The manager is great. Lots of flexibility. Raises were decent for the most part.
6+ years later. I have nothing to learn. I feel my career is stagnating. I'm quite good at my job but things are boring and there's no challenge. In the end my company has proved to me I do not make enough to justify my skills. I keep being told things are going to change and there will be new opportunities to change roles and learn/grow, but Ive heard that for years and trusted my leadership. They didn't lie to me but there are so many things out of their control that things just never happen.
My manager has become a good friend and I hate to think about leaving but finally just have to accept that all I'm doing is hurting myself and my career.14 -
Garbage collectors are actually pretty dang clever. I always thought they are inferior but honestly they can be really fast and the ergonomic benefit you get from them is just priceless
One really cool trick of multi generational GCs is having a young generation where all new objects are allocated and on each GC cycle you fully clean it out by deleting dead objects and promoting living objects to a higher gen
This way you can just linear allocate new objects in the young gen which is magnitudes faster than a general purpose allocation algorithm
You can basically heap allocate for almost free! Bunch of short lived temporary strings? No problem!9 -
So, my wife's family has a "no shoes inside the house" rule, what is fine... until you realize that they mean "*no shoes inside the house*" - regardless if you are actually wearing the shoes or if those are in your luggage or something.
So you're supposed to leave all footwear on a shelf on this bench outside their door.
That proved to be tricky when my 10yo twin girls started freaking out that someone was going to steal their prized shoes if we left those outside the house during the night.
It would actually be a risk in our own neighborhood, infested with amazon-package kleptomaniacs, but here we are deep in the country.
Now, I've been to my in-laws place many times, and they absolutely cannot be reasoned with. I wish I could use their stubbornness to train a LLM into relentless compliance with company policy.
So, in order to spare my girls from some of my in-laws paranoia, I've spent some time before we came here rigging up a wifi cam to a facial detection service. (I know I've just exchanged their covid-style paranoia with my own surveillance-state-style paranoia. Those are the times we live in. But i can see the irony)
The server monitors the camera feed and stores the first few seconds before, during and after some face is detected.
I trained a facial rekognition model with our family's faces and had it notify me every time some unknown face appears on camera.
Finally, I've printed a "smile, you are on camera!" sign, taped it over the laces of my tracking boots, and hid the camera (and a powerbank) inside one of the boots.
My daughters were pacified with that solution, my wife laughed out loud with a devilish smile, and my in-laws completely ignored me when I tried to explain it all. Perfect.
The system has been up and running since before christmas. It notified us when some relatives arrived for celebrations and one package delivery - no shoe-related shenanigans. Until this morning.
My daughters have been playing with some neighbor kids, and a couple of those decided to fill their shoes with mud on this new-year morning, as a stupid childish prank.
I know because they kneeled in front of the camera earlier today.
Right when I was finishing up my stretches for the morning... less than 2m away from the door.
The wicked kids looked straight at the camera, and you can actually pinpoint the moment that they realize they have been caught. Then you can see when they hear me unlock the door...
I opened the door to find a bucket full of mud and no soul on sight.
I'm not posting the video, they are minors, after all. But my family is sure to laugh at it every year... and my in-laws will keep on bringing it up with the kids' grandparents forever :)12 -
I inherited a nextjs project from an unknown guy and am fangirling the codebase
But the deeper I familiarise myself with it, the more the cracks begin to appear:
1) The dude Is incapable of grasping the basics of DRY concept. He actually setup a ton of stuff I may have done poorly if I'd started working straight out of the docs, so I feel like I owe him a shower of praise. I guess being new to nextjs makes it look more impressive than it actually is. He was paid off, yet getting the credit seems unearned to me. I'm just afraid reaching out to him might turn around to bite me in the ass
***
I had the above in my drafts, contemplating sending him a token to show some appreciation for unknowingly showing me the ropes. I was going to find him on LinkedIn using his commit names. But after doing everything I've done, undergoing the anxiety and severe pressure I faced at the hands of the project owners, I'm not sharing a farthing with anybody
Yes, I may not have known about zustand and persist middleware. Yes, he did all the ui. Yes, he created the base components and fancy wrappers around form and button html elements. For those, I'm grateful
But the amount of refactoring I had to do to, for an opportunity to implement my own target features, I'd say I can lay as much claim to the project as he does.
Side note #1: I have some newfound respect for front end devs. We used to discriminate against them for doing just css but that was only relevant in the jquery days. Now, they have to use cryptic css frameworks (sass, less, tailwind), they have to learn esoteric syntax of some js framework and write controllers/components as the case may be. They have to (the worst part), bind this data to an API, which would never make sense to me coming from a php ssr-natural world
Back rewarding the guy, some of the challenges I came back from were:
1) Next server outages: I still don't know the workaround this. The app terminates, browser giving an error about using up memory. I have to wait for about 10 minutes before I can access the app again
2) spring Webflux authentication not hydrating: I was unexpectedly asked to work on the back end too, where I got tortured with this horrifying condition. The most poorly documented framework for the Web has no upto date guide on how to implement jwt security measures. I opened a question on stackoverflow. A day later, both my question and the helpful answer got downvoted
3) Zustand not retrieving any data from localstorage once page reloads, until I miraculously stumbled on a hack: there's a config callback for reading state after rehydration or thereabout. So I interact with the state there. That's the only way content clearly in localstorage can get transmuted into dynamic format accessible by the code
4) Mongo database suddenly disconnecting: for no apparent reason, this bailed. Accessible on compass. This was even when I realised it was responsible for front end requests not going through. Eventually created a new database and requests surprisingly began connecting again. Thankfully, my laravel background taught me about seeders so I had them on standby from the onset. Wasn't difficult to just port to a fresh database after confirming the first one was inaccessible to the app
After this painful odyssey and the time constraints, threats of moving forward with someone else, I deserve every dime they deem me worthy of and more3