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
Search - "infinite loop"
-
The feeling when you realize the DDoS attacker is yourself because of some stupid JavaScript bug which resulted in an infinite loop which happens to make requests to your server...14
-
Coding essentially is an infinite loop of:
1) wtf
2) ah yea
Add sprinkles of "that should be easy" and "why did i agree on this"6 -
!rant
Programming is a huge blessing i believe we all should be thankful to. For me, it literally turned my life around.
11 months ago i was fighting a losing battle with depression, and contemplated suicide constantly. I would use a self remedy of smoking weed and sleeping all day long. I was depressed because i felt my life had no real value. I was doing nothing, and its kind of an infinite loop.
You don't do anything, so you feel bad, so you don't do anything, and so on.
That was until i finally took the step that changed my life. I searched and wanted to learn something. I always liked web pages so i thought id get into web development.
Did some research, found out that the fastest way to go was to learn ruby on rails. I followed a tutorial i found online, and literally pushed myself through it. There were times when there where things i didnt understand, and when it was really bad, but i pushed myself through it and i finished the tutorial.
Just finishing the tutorial and learning something new helped me alot. I had already quit smoking and was feeling way better, but after a while i started feeling bad again since i wasnt doing anything after i had finished learning, so i started working on a personal project, creating it from scratch, and just working on it day and night. I worked 14 hours a day, never really leaving my room ( this was during summer vacation ) for a month.
There were many things i didnt understand, but i never gave up and always searched for the solution and read about it until i understood it better. Looking back, there were things i knew could have been done in a better way, but as a first project, im proud of myself, not because it rocks, but because i did not give up.
In the process of starting a new life, i was really lonely. I cut all ties with everyone i knew, since they were all toxic, all i had in my life was ruby on rails and my web application. I wanted to launch it but couldn't due to personal reasons.
Not being able to launch and see something live, something that you worked so hard on, that you put so much effort into, that was devastating to me. I felt as if all my efforts had gone to waste.
And here is what i love most about programming, NOTHING EVER GOES TO WASTE. All that effort you spent on something ? All these all nighters you pulled ? All that frustration from that bug ? It will pay off later. It always does somehow. You get more knowledge and become a better programmer, and sometimes it even gives way to new opportunities and chances you never even expected.
I included my web application in my resume and it helped land me a job as a junior developer in a really nice company. A job that i wouldn't even have dreamed of several months earlier.
Programming and creating something new and learning something new everyday, creating something that people use, that someone else will benefit from and be grateful for, i think we should never take that for granted !
Tl;dr : learning how to code and web development saved my life9 -
Ladies and gentlemen, prepare yourselves for a rant with a capital R, this is gonna be a long one.
Our story begins well over a year ago while I was still in university and things such as "professionalism" and "doing your job" are suggestions and not something you do to not get fired. We had multiple courses with large group projects that semester and the amount of reliable people I knew that weren't behind a year and in different courses was getting dangerously low. There were three of us who are friends (the other two henceforth known as Ms Reliable and the Enabler) and these projects were for five people minimum. The Enabler knew a couple of people who we could include, so we trusted her and we let them onto the multiple projects we had.
Oh boy, what a mistake that was. They were friends, a guy and a girl. The girl was a good dev, not someone I'd want to interact with out of work but she was fine, and a literal angel compared to the guy. Holy shit this guy. This guy, henceforth referred to as Mr DDTW, is a motherfucking embarrassment to devs everywhere. Lazy. Arrogant. Standards so low they're six feet under. Just to show you the sheer depth of this man's lack of fucks given, he would later reveal that he picked his thesis topic "because it's easy and I don't want to work too hard". I haven't even gotten into the meat of the rant yet and this dude is already raising my blood pressure.
I'll be focusing on one project in particular, a flying vehicle simulator, as this was the one that I was the most involved in and also the one where shit hit the fan hardest. It was a relatively simple-in-concept development project, but the workload was far too much for one person, meaning that we had to apply some rudimentary project management and coordination skills that we had learned to keep the project on track. I quickly became the de-facto PM as I had the best grasp on the project and was doing a lot of the heavy lifting.
The first incident happened while developing a navigation feature. Another teammate had done the basics, all he had to do was use the already-defined interfaces to check where the best place to land would be, taking into account if we had enough power to do so. Mr DDTW's code:
-Wasn't actually an algorithm, just 90 lines of if statements sandwiched between the other teammate's code.
-The if statements were so long that I had to horizontal scroll to see the end, approx 200 characters long per line.
-Could've probably been 20 normal-length lines MAX if he knew what a fucking for loop was.
-Checked about a third of the tiles that it should have because, once again, it's a series of concatenated if statements instead of an actual goddamn algorithm.
-IT DIDN'T FUCKING WORK!
My response was along the lines of "what the fuck is this?". This dipshit is in his final year and I've seen people write better code in their second semester. The rest of the team, his friend included, agreed that this was bad code and that it should be redone properly. The plan was for Mr DDTW to move his code into a new function and then fix it in another branch. Then we could merge it back when it was done. Well, he kept on saying it was done but:
-It still wasn't an algorithm.
-It was still 90 lines.
-They were still 200 characters wide.
-It still only checked a third of the tiles.
-IT STILL DIDN'T FUCKING WORK!
He also had one more task, an infinite loop detection system. He watched while Ms Reliable did the fucking work.
We hit our first of two deadlines successfully. We still didn't have a decent landing function but everything else was nice and polished, and we got graded incredibly well. The other projects had been going alright although the same issue of him not doing shit applied. Ms Reliable and I, seeing the shitstorm that would come if this dude didn't get his act together, lodged a complaint with the professor as a precautionary measure. Little did I know how much that advanced warning would save my ass later on.
Second sprint begins and I'm voted in as the actual PM this time. We have four main tasks, so we assign one person to each and me as a generalist who would take care of the minor tasks as well as help out whoever needed it. This ended up being a lot of reworking and re-abstracting, a lot of helping and, for reasons that nobody ever could have predicted, one of the main tasks.
These main tasks were new features that would need to be integrated, most of which had at least some mutual dependencies. Part of this project involved running our code, which would connect to the professor's test server and solve a server-side navigation problem. The more of these we solved, the better the grade, so understandably we needed an MVP to see if our shit worked on the basic problems and then fix whatever was causing the more advanced ones to fail. We decided to set an internal deadline for this MVP. Guess who didn't reach it?
Hitting the character limit, expect part 2 SOON7 -
I remember reading shampoo directions as a kid and it feeling wrong to exit the cycle.
1. wet hair
2. apply shampoo
3. lather
4. repeat
I didn't choose development life, it chose me2 -
My first experience with Swift ended in me infecting myself with a virus (kinda). I wanted to create a macOS app that would listen for a global key event, catch it and then type a word.
During development I set it up to listen for ANY key event and to type "BALLS". So what happened? I compiled the code, everything looked good, I started the app and pressed a key which emitted a key event. The event was caught by my app and it typed "BALLS", just as expected. However, the typing of the word caused a NEW key event to be emitted, which the app also caught. The infinite loop was a fact. FUCK!
I tried closing down XCode but all I could see was "BALLS BALLS BALLS" everywhere. I tried everything I knew but it just kept typing "BALLS". I had to hold down my power button to make it stop.
I finally finished the app (which I named "The Balls App", I kept the word "BALLS"). I solved this issue by only listening for KeyUp and when emitting the "BALLS" word I just used KeyDown.7 -
!rant
So this year I had a subject at university called "Linux internal architecture", and for the last assignment I had to write a kernel module and interact with it with a separate program written in C.
Once I had finished and tested the driver, I went on to write the other program, which was supposed to use system calls to read and write data to the module. While debugging this program (~500 lines of code) I reached the level of frustration where you just start printing absurd messages everywhere in your code to see what's wrong. So for example instead of printing "This error happened in this function", my error messages were more like "Fuck this fucking function it doesn't fucking work".
Guess who forgot to delete all those messages before sending the code to the teacher...
Also, if a specific mode is selected, the program enters a while(1) that, apart from doing what it's expected to do, also creates a file in the user's home directory called something like 'motherfucker' and appends the words 'fuck this shit' to it. INFINITELY.
I really really hope this teacher doesn't try to run the program in his own computer, or he's in for a big surprise.8 -
I just got this message, until now I thought these pictures are fake.
Looks like I have to start this app, if i want to be ready in time 😄
Human stupidity is an infinite loop...23 -
Son: Dad what's a infinite loop?
Dad: I don't know ask your mom!.
Son: Mom what's a infinite loop?
Mom: I don't know ask your dad!.
Son: Dad what's a infinite loop?
Dad: I don't know ask your mom!.
Son: Mom what's a infinite loop?
Mom: I don't know ask your dad!
........ 😒4 -
Infinite loop...
Got a story assigned with no requirements listed this sprint. Since I finished the rest already I was like, lets be pro-active and see what it's about during the stand-up.
Me: Hi, I only have story X remaining, what's it about, there are no requirements listed in Jira?
SM: Yeah person Y is going to reach out to you with the reqs.
Me: Ok, when is Y going to reach out?
SM: Y doesn't have time now, will probably be in 2 weeks.
Me: Ok, so why is the story included in this sprint then?
SM: Because they want X implemented this sprint.
(Me wondering if the Scrum Master is familiar with infinite loops, thinking let's try this out)
Me: Ok, if X should be completed, can Y reach out to me with the requirements?
SM: Y doesn't have time now, will probably be in 2 weeks.
Me: Ok, why is the story included in this sprint then?
Stand-up lasted a lil' longer today... Hope the SM got the message not to assign stories without reqs or clear communication anymore.5 -
My first poem for programmer girl 😘😘😘
My life is incomplete without you,
You are semicolon of my life
You are my increment operator,
you make my value increases
I am username and you are my password,
without you No one can access me
You are my initializer,
without you my life would point to nothing (NULL or “0”)
If I were a function you must be my parameter,
Because I will always need you
Can you be my private variable?
I want to be only one who can access you
You are my compiler,
My life wouldn’t start without you
You are my loop condition ,
I keep coming back to you
My love to you is like recursive function,
It will never ends & Will never enter into infinite loop
Forever and Ever10 -
Confuzzled if I should go the low level way and learn more about software architecture and foundation or go the artificial intelligence machine learning way because I want to get out of this infinite loop of only developing apps!4
-
I was taking an introductory programming course. One assignment was to do a little payroll program, including some data validation. The program was supposed to accept terminal input and send output back to either the console or a printer.
Suddenly the printer began spewing out paper like crazy. One of the students (a particularly mouthy woman) had programmed a less-than-helpful error message ("YOU ARE WRONG") and then not provided any exit from the error-checking logic -- the program just re-read the last (failing) input and re-tested it. All in all, it was a very nice infinite loop.
After spitting through about fifty pages of "YOU ARE WRONG," somebody cut power to the printer, and the instructor had to flush the print queue manually. He went back to the student and asked if she had tested the program by sending the output to the console before trying to print it, and she said, yes, she had tested it on the console and ended up with a screen full of "YOU ARE WRONG" messages. Why, then, had she sent her output to the printer? "I thought I would be daring!"7 -
Man it's midnight and all I want to do is work. 5 hours from now I'll be dragging out of bed to go to work where nothing gets accomplished. In 17 hours when I drag in from work I can do real work for 7 hours before crashing while wishing I could just code through the night. It's an infinite loop and I dont know how to fix it!10
-
Okay, just wrote a program with memory allocation inside an accidental infinite loop and by the time I was able to kill it, it had already claimed 86% of my memory. Scared the shit out of me because my OS was CRAWLING for a while3
-
My brother is just like f*cked up program:
Fortnite > Movies > TV Series > Fortnite > Movies > TV Series > F...
Yes, infinite loop and memory leak at its' best.8 -
// to understand infinite loop, see the bottom of this file.
At the bottom of the file:
// to understand infinite loop, see the top of this file.2 -
Making an infinite loop of cat /dev/urandom for anyone trying to login to server via ssh as an April Fool...
But on prod server instead of dev server...3 -
I have that one friend, every time he ask what I am doing and I tell him I am coding, he tells me that he wants to programme too but has no idea how to start.
I always tell him to Duck duck go start programming python/java but he never does...
(I think I somehow created an infinite loop)16 -
Today I had the pleasure to introduce to my Professor (who teaches Python) that you could cause a keyboard interrupt typing Ctrl-c. Her logic was that "Ctrl-c is for Copy" and the only way to end a infinite Loop in the shell is to, "X out the Window." She also clearly has never dealt with linux or terminals.13
-
Felt so awkward today. Bare in mind I am still a junior. I was on a pull request reviewing session on a repo I use. I was being super super pedantic with variable names, data types etc as the people who wrote it are brand new to the company. I then realise I had just reviewed the companies lead developers PR to a different repo. Every time someone comments on a PR on this repo all developers in the company get an email notification. I sat there litrually sweating, bright red with the words 'oh ****' on an infinite loop in my head, staring at the screen waiting to see what was to happen.
Thankfully he was ok with the comments. But now people keep calling me the lead developer (teasing) fml I hate anxiaty2 -
I just wasted 20 minutes debugging a component that, when included in the parent template, caused an untraceable infinite loop.
Out of desperation, I finally just renamed component to "pants". It works.
...huh?
Renamed back to its original name. THAT works too.
...Huh??7 -
Recently wrote a script that would check 2 years worth of images, crop them, and resize to different sizes as changes to front end required those.
Eventually the script went into an infinite loop and crashed the whole CMS.
The worst part was that my manager was on a date and I had to call him back into office, since his laptop was still at the office.
The actual problem wasn't the loop.. I forgot to check if file actually exists before cropping... Error log size was 10gb!1 -
God damn it lastpass, how the hell do you get a memory leak and an infinite loop in a fucking browser extension?! Using 7GB of RAM and all 8 cores @ 3,4GHz!!9
-
Infinite loop in real life :/
X: Where is your house?
Y: Near Ramesh's house.
X: Where is Ramesh's house?
Y: Near my house.8 -
The worst part of being a dev
My social dilemma
In a fast paced world where the average human spends at least 6 hours a day with technology, deriving basic entertainment, pleasures and engaging in various activities.
Here we are the developers that have to engage with technology for longer hours for a living , having to keep up with deadlines, immersing our minds in complicated algorithms and then the endless possibilities of entertainment from the machine in so few human hours a day , you wonder how you’d get off, and to top it up, I personally work from home.
And then the dilemma of overcoming different suggestions from various parties in taking a break off, a break off to what you later ask yourself, thus creating the shadow of doubt, splitting the fragile programmer’s mind , trying to solve this imaginary puzzle, “this bug of the mind”.
Then the challenge often arises in creating a balance, telling yourself, just catching up with people with this same technology takes a whole day, or then again quitting my Job, but from my little experience of life, nobody likes a poor visitor, this is actually worse than a “bug” and as I bask in this quagmire, “a little voice in my head keeps singing keep doing what you love doing”.
Like an infinite loop of crazy, spiralling back to these machines, trying the find and fix the balance of normalcy. Always remembered the cool years of college tho, with so much people around and then again that was college.
An then the thought arises, maybe something else might be worth doing, but after so much time spent in building your skills and the enormous joy of programming even typing without looking at the keyboard is a real pleasure, and yeah sure the days are short with the reality of a constant need to survive, remain sane, compete and make the best of life in such short time.
Then how do we know if we have fallen off the so-called “social track”, when we have only lived so little to really comprehend the most parts of life? with such constant stream of unanswered question, you’d realise you shouldn’t have burdened the mind creating such questions in the first place
But then again maybe it gets better, one of the above, the disturbed mind or the situation as whole and yes I try oh I try, I place calls, do some visiting, no relationship tho but with a good perspective in mind.
In this race of life, you sometimes ask yourself would you rather be in a different position, or maybe already put exactly where we belong. For this illusionary fight with self is a fight with reality as a whole and true bliss comes from actually letting go as time and people pass you by.
And my greatest achievement to date aside family and my work is getting into the 1000 club on devRant.2 -
As we all know that yawning is contagious, so if we yawn standing in front of a mirror, does that mean we'll end up in an infinite loop 🤔🤔4
-
In fact I'm a sinful dev, so that I can't easily decide which one is worst. From indenting with tabs, or using nano instead of vim/emacs, to hardcoding database credentials on server, to many hacks and workarounds I use as actual "fixes" when the deadline is upon me and I've tried all I could. But it always led only to my own regret. For instance, my latest sin was that I prefered Debian over Arch and used proprietary graphic drivers to speed up my new setup. But ended up with a curse from St. Ignucius. (check my last rant)
But my worst sin probably goes to when I was "printf-debugging" some issue for a GSM controller on a raspberry pi. I forgot to remove one little print line and deployed the new "fixed" version. I didn't follow that project after that for like a month or so, when the client posted back the device and said that "it just doesn't work anymore". It seemed that raspbian didn't boot beacause the sd card was curroptted. I dd'ed through the card and I noticed that there are billions of lines of "DEBUG:: reading stream from 192.some.shitty.ip", took almost all over the 32G sdcard. Just as I suddenly remembered the cursed line I just added a month ago, I declared the sd card dead with no hesitation, dunce-commented the line (so the history would remember), implemented a time out for the thread containing it, setup a journald unit for my service and removed the redirection of process output to a log file, found a new sd card and installed everything again, and finally posted back the new "fix" to the client.
Moral: Never comfort yourself for the sins you have commited in the past kids, they certainly will come back to you. And also not to do any io especially write to a file on an SD card with ext fs, in a potentially infinite loop with no timeout.
P.S: I'd posted my last rant just before the new week rant last nigh. I really liked the St. Ignucius meme so decided to create a new one. He's very adorable :)1 -
Ah, the old locked up non-gui thread. Bastard gets me every time. My monkey brain says "Button still work, so no infinite loop". Oh, but there DO be infinite loop.
-
La me working on a new chrome extension:
- ok, this page has some hidden divs, I need to tell the extension to make windows scroll to the bottom while there are still elements with a hidden class
- creates a while(1) loop with a condition inside it to break if no elements with hidden class are longer there.
- happy with the code
- uploads the extension
- goes to page
- brings out developer tools
- goes to console
- clicks on extension on chrome
- right clicks the extension and then inspect
- ok here we go: la me click on button inside extension popup
- console shows some logs
- nice it's still looking.
.
.
.
- wait! Why is the page not scrolling ???
- looks at logs, WTF nothing changes in logs .....
- OMMMMG a infinite loop .... infinite loop inside chrome ....
- OMMMMMG my pc's gonna crash .
-stop please stop stop.
- wait! how do I stop this?
- tries CTRL+C ... nothing
- tries CTRL+Z ... nothing ...
.
.
.
.
Abort abort Aboooooort.
.
.
.
- Deletes extension from chrome.
-..... loop still running
- clicks on X to close Chrome.....
- not closing O_o
- Oh God, i need to do something before Chrome sucks all the RAM left.
- remembers the savior...
.
.
.
- Task Manager heeeelp me.
- opens Task manager
- chrome is consuming ~ 2 GB of RAM.
- WTF! Kills chrome.
Thanks for reading my lil adventure 😅5 -
While coding in C, I once forgot to add a semicolon at the end of a while loop polling a register value.
The logic required me to make it zero as soon as it read non-zero and continue the rest of the process. Hence the 'while' that missed the semicolon ended up being a single instruction assignment to the same volatile register that I kept polling. This caused synchronisation issue with the FPGA, and my code got stuck in an uncertain infinite loop.
Took me 2 days and a silly, yet valid question from my teammate to figure out the cause of this stupid bug.8 -
I had a response body that I needed to obtain data from. It would either come as {success: {name, id}} or {success: [{name, id},{name,id}]}
I couldn't loop over something that wasn't a list and I couldn't just ask the type of the element in success so in my infinite wisdom I split the cases by examining the length of the element in success. If it had one it was an array and could be looped over, if it didn't, it was a single object to be processed 😂 if it works it works (it's still in production, tyvm)4 -
Fucking professors, they think could play ping pong with students. I started my thesis on ransomware but these meaningless biological creatures who is my relator sent me to another one who sent me to another one who sent me to the first professor. After almost three weeks I have nothing done so i switched professor and thesis argument to neural networks (TensorFlow, Theano, Keras, Caffe and other) and now they wants me back and one of them said that he is offended. Fucking retarded, I have to graduate and I'm working hard to do it in september, if you were a little bit interested I could have collect some material to study in august sacrifing even the summer but you mock me, but rightly it's my career and my money, it doesn't care to you. You deserve to get stuck in an infinite loop of pian.4
-
so the bank has decided to charge me for sending me the sms notification for the sms- notification-charges
makes sense 🤨 ?7 -
my code went into an infinite loop of printing "fuck". that happens when u forget to put curly braces and the first line after the if statement is printf("fuck\n");6
-
In college I was working on a PHP app that needed to get a list of people to send emails to from a DB and send an email to all of them.
The good news is, I had hard-coded my own email address for testing so I wouldn't annoy anyone if things got messed up.
The bad news is, I had done something wrong and had an infinite loop. It was only running for 30 seconds or so, but the emails were coming in for hours.1 -
I am not sure which 24 hours was the craziest one, but I will pick 2.
This one happened just a few weeks after I started working for the one and only company I have ever worked for. The huge-ass multi-tenant website stopped working. There was out of memory exception and nobody knew what is going on. I was still very new and knew shit about how it worked + plus my PHP knowledge was limited back then. Everyone was looking for the culprit but with no luck. Then the next day I finally managed to find a fucking infinite loop in our weather plugin.
We were working on a moderately big project for a client. There was a lot of work lately (on different projects) and we were *very* behind schedule on this one. Deadline? You guessed it - tomorrow. What was worse is that we couldnt move it any further, becuase we already did once before. So I had to work for about 20 hours straight to kinda finish the work. Worst part? Client turned out to be moron and half-scammer, so they are not our client anymore and the project was never deployed to production. Never again.2 -
Do you guys think that in terms of a design, we're in a refresh loop?
Like, I don't think the goal of a design is to be user friendly and optimal for all human eyes. There's a million ways sideways to achieve that.
I think the real thing most designers go for is to just make something look "new". And every few years that needs to be redone. Forever. In an infinite loop.
Fuck actual usability, thought-out layouts, contrast rules, what-the-fuck ever. 99% of the goal is to make it look "modern"10 -
Turns out Macbooks with Night Shift set to sunrise/sunset go into an infinite loop near the poles due to the lack of a sunrise/sunset.
https://mobile.twitter.com/austinj/...3 -
*Program crashes*
Colleague looks over my shoulder : While loop?
Me : ...while loop.
It's been two years...my brain just refuses to write non-infinite while loops. I tend to avoid them as much as I can cause every time, without fail, first time I create one I crash something.2 -
Made a backup script today that backs up our site files and database (total size 34gb, we have 70gb storage)
the script takes 1:10 hours to far the website files and backups up the database and somehow when running in a detached terminal because my boss wanted me to run it at 4:20pm when I'm leave at 5:05pm( what could go wrong) it went in a infinite loop and filed our storage.
Our provider just called our boss that his drive is full ( why can you even see that)
Well it will not be a fun morning tomorrow6 -
You know you did good for the week, when you realize that the infinite loop looking logs you were trying to recreate for the last half hour was in fact caused by how you held your thumb on the side of the thin bezeled device you were inspecting...
Have a nice weekend!1 -
while(true){
while(beTired()==true){
goRelax();
}
while(beBored()==true){
goProgram();
}
}
That's a fucking infinite loop4 -
[Me at night]
1 Me: should I sleep?
2 Brain: right after finishing this module
3 Me: <drinking coffee>
4 goto 16 -
My brain goes into infinite loop when an Interviewer asks, what was the hardest thing you did at your job?2
-
*Puts the same music in infinite loop through a whole afternoon of coding*
*Gets tired of the music after 2 hours and a half (my playlist contains some dope musics)*
*Removes the infinite loop to let the next music come*
*Head starts to headbang by itself when the next music starts*
*Puts said music to infinite mode*
*Repeat*6 -
This was a while back... Like 20 years ago. I was doing some crappy development with asp/vbscript. Once I had a task to send emails in certain cases and while testing, I used my personal mail as recipient. In a loop. If you ever did asp/vbscript you know how easy it is to have an infinite loop... And my mail was forwarded as text messages to my phone. I deleted incoming text messages for days.
And I made the same mistake next week.2 -
When you see
int i = 0;
while (int i == 0) {
//Code where nothing changes i
}
If you're going to create an infinite loop you could at least write it as
while (true) { }
and save me a little time wondering what the hell 'int i' is for!3 -
In an encryption-module, I had a bug, that caused my PC to crash, every time I tried to encrypt something.
Turns out, the loop, that appends
0-Bytes to the string, to make it Block-Cipher compatible,
Had an logical-bug in its exit-condition, that caused it to run infinitely and allocate an infinite amount of memory. -
after staring my stupid code for 10 mins, the facepalm. Better even before this my program went into infinite loop cause i had initialized a counter and if(counter<10) WITHOUT INCREMENTING IT. Its 1 am i should sleep.2
-
Someone made an infinite recursion loop through the aws cloud and racked up 86,000$ of bills in a few hours16
-
Manager: Why not use the alibaba cloud?
Me: Because balbalbal...
After two week
Manager: Why not use the alibaba cloud?
Me:....
Infinite loop!!!3 -
So I just fixed about a year or so old bug by removing my solution entirely.
As very few of you will know, I work on/ off on a project called TG which accelerates cmd.exe
One of my oldest bugs in this project is that the buffer resizes real weird. If you adjust both the height and width at the same time, it goes into this weird infinite loop business.
As it turns out, cmd.exe handles that by itself just fine. I just removed my resize listeners and now everything is running smooth.
feelsgood(?)man.jpg -
Helping Fix something on my Managing Directors Laptop...
After a restart I ask (word for word), "Can you please give me the password you use to login to your laptop"
She proceeds to give me her E-mail password
I respond by saying that I think that is her e-mail password and I need the laptop password.
Next thing I hear "You have to be more clear, to me they are the same thing"
Seriously... How much clearer could I have been, I'd be annoyed right now if my brain wasn't in an infinite loop going WTF JUST HAPPENED... WTF JUST HAPPENED... WTF JUST HAPPENED...7 -
uni prof: "you can't make an infinite for loop. Infinite loopsnare only possible with while loops"....
I think it's not what he meant, but it was a while ago and I forgot the context, but multiple students made a 'what the fuck?' noise.5 -
Life can be simplified with code. We're all running on an infinite loop. Eventually, we come across an unexpected bug and crash.2
-
The worst infinite loop of all.
while(hasPoopOnTP( )){
if(goodEnough( )){
break; //it's never good enough
}
ass.wipe( );
}1 -
that ankward moment when you generate a javascript infinite loop and you are not able to close or reload the window
-
We are switching to an infinite scroll mode for our app. I told the backend dev in my project (we're just 2 people) I need an API to get more than one post at once.
He told me to use a loop to call the old URL 15 times.
...Not sure if stupid or just too lazy4 -
I was practising Java at my school(they were still teaching POWERPOINT,f**k)
They got themselves 20 shiny All-in-one garbage with Windows 10.
I got my bootable usb Linux with me,and fired up Kali.By mistake my program ran into infinite loop....
And the rest is history,got banned from the lab😭
P.s.I don't have anything to code on ,i write my programs on paper and executed them on the pc at my school,what to do now9 -
Oops!! I just forgot to increment a loop variable in a while loop. ended up in an infinite loop :(6
-
!Rant
I bought a Samsung Galaxy S7 Edge from my cousin for $450. I then proceeded to root it and everything was fine for a week or so before my phone went into an infinite boot loop after an OTA update.
In the process of trying to fix it, I accidentally flashed a bootloader, unaware that Samsung has the bootloader locked. As a result, I had a completely bricked phone.
I mean legit bricked. No buttons with work and the screen remained shut and I couldn't flash anything over it again to try to repair it. I couldn't even put the phone into recovery mode. I now had the world's most expensive paperweight.
However, I managed to convince Samsung to repair it for me for free! I told them that the phone just stopped responding after an OTA update from them, which isn't so far from the truth.
I only ever had to flash things on the phone to begin with because of their update. Honestly, I wouldn't has had to deal with this problem, and neither would Samsung, if they just didn't lock the damn bootloader! Why are these companies taking away are independent control of our own devices?
Moral of the story: DON'T flash over a locked bootloader EVER or you will end up with a completely brick device, with no solution other than to open it up and replace the motherboard entirely.12 -
I found a vulnerability in an online compiler.
So, I heard that people have been exploiting online compilers, and decided to try and do it (but for white-hat reasons) so I used the system() function, which made it a lot harder so i decided to execute bash with execl(). I tried doing that but I kept getting denied. That is until I realized that I could try using malloc(256) and fork() in an infinite loop while running multiple tabs of it. It worked. The compiler kept on crashing. After a while I decided that I should probably report the vulnerabilites.
There was no one to report them to. I looked through the whole website but couldn't find any info about the people who made it. I searched on github. No results. Well fuck.7 -
I like how software is smart so I have to do things twice instead of once.
Automatically putting quotes works only if you put quotes and then paste inside it, the problem is I usually paste then put first quote and then need to remove second quote and put it on back and remove second quote from back.
Video start from where you left automatically fires and shows closing credits because you obviously want to see them.
Evaluate variable removes old evaluation because why you want old one when you have new.
Collapsing imports or functions in ide so you need to expand them all the time because who needs to look at functions when we have ai
AI models suggesting and adding meaningless annotations and code suggestions to distract me.
Randomly running some console command because I entered keyboard shortcut I don’t know even exists.
Literally every web browser address bar becomes advertising network instead of showing me history results.
Shadowing browsing history when you click back and forward button.
Search results are now buy results.
Suggesting me useless crap to watch because I watched one video in that topic.
Showing me 10 minutes videos as a solution to my problem where I want to find exact line of text to copy paste it. If I’m lucky I need to write text from video into my computer.
Stack overflow infinite loop of answered in #some-different-question
I think it’s about time for me to slowly retire from programming and software as a whole or switch to notepad because I don’t want to use this crap anymore.
Looks like software is now meant for entertainment and distraction instead of doing actual work where you need precise data and information.
Luckily if everything goes good I can retire soon and throw everything away for a while.3 -
It's 3am, just submitted an app for review for iOS... go to take one last test drive on the release build for android, and I get stuck in an infinite loop of "system up stopped working". An factory reset and an hour later, I'm saying fuck this, android waits, and fuck whatever Xamarin did to my phone. While I'm at it, fuck Apple for making me have 20+ icons in different sizes, and their shitty walled garden approach to a so called marketplace.4
-
About 5 years ago I worked at a small company developing websites and .NET applications.
They haven't changed any passwords which means, I still have access to ALL of their customers DNS setups.
Of course I wouldn't do anything.
But just the thought, that I could make an infinite loop, by redirecting the domains, is amazing.
Or redirecting them to a porn site.3 -
The more problems I encounter with Windows the more I have the impression these infested chimps never implemented a real system repair/restoration feature but just faked it with randomized error messages.
Now Windows 10 can't even rollback updates anymore but lands in an infinite boot loop that even a reset to an earlier restoration point won't fix.
And the Windows repair option lists two Windows installations even though there's just one.
Somehow the roles of Linux and Windows have switched nowadays, by now I had to reinstall Win10 5 times on three PCs in the last 12 months.
Windows 8 was shit too but at least it didn't fucking break within a week.3 -
> Be me
> Programming for an embedded system
> It's not interruptable
> Got ISR Fault (Interrupt Service Register)
> WTF
> Breakpoints are useless
> WTF
> Comment out some lines
> Turns out it goes ISRF Infinite Loop because of the multi dimensional array of strings
> WTF
> Use pointer intead of defining actual size
> Works
> WTF
WTF?1 -
int rantLevel = 0;
while(true) {
rantLevel++;
}
Join the army! Create an infinite loop with your favorite language and comment it 🤔29 -
TLDR; College group projects suck, not because the work, but the people in your group will make or break you. Fuck having 1 week to do this assignment.
Sometimes working with other students on group projects is great, they actually know how to create a merge a git branch. I've had a decent partner once during my 3 years at university so far. This last project takes the cake on idiots I've worked with...so far at least... It was me and two others, we'll call them Thing1 and Thing2 for now. Anyway so the 3 of us had a week to implement a very rudimentary Invoice system; fine, easy enough. We divided up the work and 'started'.
All seemed to be going well, no complaints or cries for help all week. Until 4 hours before we submit the assignment; Thing 1 sends me a DM saying all of Thing 1's work is useless full of bugs and just shouldn't be integrated with the rest of the code. Umm fine? I guess? wtf?! why did this have to come out last minute?! We could have explained to Thing 1 what's going on and gotten him/her up to speed on everything. Believe it or not, I was sorta ok with this? I mean thing 1 hadn't pushed anything to the repo yet. I mean literally nada, Thing 1 is a collaborator on the repo that has contributed nothing. Seeing as how Thing 1 was contributing nothing I had already started to cover our ass a began Thing 1's work.
That's not even what's pissed me off... at least thing 1 had the gall to message me to say "idk..wtf is going on...continue without me". Thing 2 arguably made my time with the project worse. His code was nothing but garbage...every time...literally spent more time deciphering his incoherent bullshit more than I did rewriting his mess. I shit you not he wrote out this method, and tells the group he's "finally got it fixed and working":
public static float updateTotal(float newValue)
{
total = updateTotal(newValue);
return total;
}
How tf did he test this to see if its working?! I'm a novice and can already see the infinite loop here. You called your method within that method's own definition, what did you expect to happen.
I managed to get things 75% working and turned in 5 mins before the cut off.
Thankfully Thing 1 emailed the Proff as well, hopefully he won't tank my grade too bad. I'm so glad to be done with this assignment, fingers crossed there's no more group work.4 -
Was writing a multithreaded program in Java with an infinite while loop (for waiting). The thread was never preempted. Added a print statement inside the while loop and everything started working :/
Now I need to print a stupid message just so the program works :P3 -
The programmer got stuck in the shower, because the instructions on the shampoo bottle said:
Lather, Rinse, Repeat -
It was the last year of high school.
We had to submit our final CS homework, so it gets reviewed by someone from the ministry of education and grade it. (think of it as GPA or whatever that is in your country).
Now being me, I really didn’t do much during the whole year, All I did was learning more about C#, more about SQL, and learn from the OGs like thenewboston, derek banas, and of course kudvenkat. (Plus more)
The homework was a C# webform website of whatever theme you like (mostly a web store) that uses MS Access as DB and a C# web service in SOAP. (Don’t ask.)
Part 1/2:
Months have passed, and only had 2 days left to deadline, with nothing on my hand but website sketches, sample projects for ideas, and table schematics.
I went ahead and started to work on it, for 48 hours STRAIGHT.
No breaks, barely ate, family visited and I barely noticed, I was just disconnected from reality.
48 hours passed and finished the project, I was quite satisfied with my it, I followed the right standards from encrypting passwords to verifying emails to implementing SQL queries without the risk of SQL injection, while everyone else followed foot as the teacher taught with plain text passwords and… do I need to continue? You know what I mean here.
Anyway, I went ahead and was like, Ok, lets do one last test run, And proceeded into deleting an Item from my webstore (it was something similar to shopify).
I refreshed. Nothing. Blank page. Just nothing. Nothing is working, at all.
Went ahead to debug almost everywhere, nothing, I’ve gone mad, like REALLY mad and almost lose it, then an hour later of failed debugging attempts I decided to rewrite the whole project from scratch from rebuilding the db, to rewriting the client/backend code and ui, and whatever works just go with it.
Then I noticed a loop block that was going infinite.
NEVER WAIT FOR A DATABASE TO HAVE MINIMUM NUMBER OF ROWS, ALWAYS ASSUME THAT IT HAS NO VALUES. (and if your CPU is 100%, its an infinite loop, a hard lesson learned)
The issue was that I requested 4 or more items from a table, and if it was less it would just loop.
So I went ahead, fixed that and went to sleep.
Part 2/2:
The day has come, the guy from the ministry came in and started reviewing each one of the students homeworks, and of course, some of the projects crashed last minute and straight up stopped working, it's like watching people burning alive.
My turn was up, he came and sat next to me and was like:
Him: Alright make me an account with an email of asd@123.com with a password 123456
Me: … that won't work, got a real email?
Him: What do you mean?
Me: I implemented an email verification system.
Him: … ok … just show me the website.
Me: Alright as you can see here first of all I used mailgun service on a .tk domain in order to send verification emails you know like every single website does, encrypted passwords etc… As you can see this website allows you to sign up as a customer or as a merc…
Him: Good job.
He stood up and moved on.
YOU MOTHERFUCKER.
I WENT THROUGH HELL IN THE PAST 48 HOURS.
AND YOU JUST SAT THERE FOR A MINUTE AND GAVE UP ON REVIEWING MY ENTIRE MASTERPIECE? GO SWIM IN A POOL FULL OF BURNING OIL YOU COUNTLESS PIECE OF SHIT
I got 100/100 in the end, and I kinda feel like shit for going thought all that trouble for just one minute of project review, but hey at least it helped me practice common standards.2 -
There's an angular project at work.
I guess they know about as much about angular as I do (not much)
Because the error page isn't working, so when you get an error, you infinite loop and DDoS yourself.
It actually crashes my (admittedly subpart) desktop.
Guess I'll be learning how to fix that.19 -
About half an year ago, I literally fought with my DS teacher for half an hour in front of whole class,
REASON:
That dude couldn't saw the infinite while loop on his BINARY SEARCH algo hand written on board...
I mean come on dude, binary search is one of the simplest algo, and he didn't agreed with me until he dry run his written code(PS: the only thing I liked about him...HE KNOWS HOW TO DRY RUN)....
Scariest part: He was supposed to teach us trees and graphs in about a month
And it was my first day in that class -
How do you effectively kill all the cloned processes when you accidentally called fork() in an infinite loop before the computer starts to freeze?6
-
Well ... a few minutes ago i tried to make a discord script wich is changing my status from idle to dnd to online and so on, in an infinite loop, all good until i checked Task manager and saw how much memory is using. my bad i guess in the way i wrote everything
-
So I'm writing a function in Unity3D that walks a rectangular grid. At one place in the code, I got the x+y coordinates backwards, which caused the function to infinitely loop between two coordinates.
Not seeing a way to kill the loop, I looked it up on Google. The suggestions I get are. . .
1. You need to kill the Unity3D task and lose your edits because the environment and the player run on the same thread.
2. You can pay ten bucks for an extension that lets you break out of infinite loops.
3. You should really avoid writing infinite loops. That's just bad form.
SERIOUSLY?1 -
Have Pocket app.
Save awesome article/site to Pocket.
Swear to read it later.
Open pocket app after a while.
Shit so much saved.
Can't read all of this no time.
Thus begins the infinite loop.4 -
Hell of a Docker
One application in c++. 4 in c# targeting Linux. Several logging places, Several configuration files , dozens of different folders to access (read/write). Many applications being called from just one that orchestrates everything.
OS is Linux. Installation is to be made inside a docker image and later placed in a container by means of several bash files and python scripts. All these are part of a legacy set of applications.
They’ve asked me to just comment out one line which took 3 days to find out because they didn’t remember where it was and in which application it was and what was in that line.
After changing it, I was asked to create a test environment which must have resemblance to the current server in production. 12 days later And many errors, headaches, problems with docker, I got it done.
Test starts and then, problems with docker volumes, network, images, docker-composer, config files and applications, started to appear.
1 month later, I still have problems and can’t run all applications at least once completely using the whole set.
Just one simple task of deploying locally some applications, which would take one or two days, is becoming a nightmare.
Conclusion: While still trying to figure out why an infinite loop was caused by some DB connection attempt in an application, I am collecting a great amount of hate for docker. It might be good for something, that’s for sure, but in my experience so far, it is far worse than any expectations I had before using it.
Lesson learned: Must run away from tasks involving that shit!5 -
Found an infinite loop in SQL. One proc called another and then that one called the other. Woooooo.....
-
Is there any solution to the “Preparing Automatic Repair” error in windows?
It has gone in an infinite loop.
I have Lenovo Ideapad 300.7 -
This SocketIO method emits a message to all users who have joined the same room (conversation ID).
This works if it's a 1-to-1 chat or a group chat with infinite users in the group.
The thing that bothers me is this enhanced for loop. It loops through ALL currently connected users.
- If theres 10 users, sure no big deal
- if theres 1000 users, it has to loop 1000 times
- for N users it loops N times
What if N = 10000? God what if it's 100,000 or 1,000,000.
Imagine having to loop that many times every time you want to send just 1 message.
OR wait i just realized. This shit grabs ALL users -- but within the room ID. Right? Am i trippin balls here
Im now confused (excuse my confusion i coded till 3am last night and im still fried). Is my logic flawed? Have i written this piece of code with good performance or not?38 -
I'm now caught in an infinite loop on this project. The tests all pass but the identical code on an identical Live environment won't work. The API vendor is saying it's our code's fault and they won't support us. The developer is ignoring my pleas for assistance because the client won't pay for more of his time as they consider this warranty work even though we warned them that this was a one-of-a-kind custom job with a risk of failure.1
-
Talk about giving me a headache..
Mmh k, so i want to move my current domain to cloudflare.
Go to current provider, their site report a previous provider has the record but that provider says they have nothing left.
Great.
Contact current provider and they tell me to contact cloudflare, cloudflare tells me to resolve that issue with my previous provider....
Starting to feel like just dropping it and getting a new ... -
Basic requirement of every Data Science college internship:
1) 2-3 years of experience... God damn it
2) Research and publications...(yeah right! in 2 years of college in which you taught me how to "work with" C on Turbo-C... I should have god damn publications... Well worked my ass on and have 2, but guess what campus internships says.. " no fucks given man", solve those damn segment tree question first then we will talk)
Its an infinite recursive while loop
FML -
Hard times create strong men
Strong men create good times
Good times create weak men
Weak men create hard times
What segment of this infinite loop are we living in right now?7 -
Worst mistake? Well nothing to bad since it only affected me. Tried out of curiosity to instantate an object every frame in unity that ran an infinite loop every frame. It crashed not only unity but also my computer resulting in about an hour of lost work :P
-
Mount an azure file share in an app service container? Sounds handy. Nice clicky-draggy wizard to set it up, pick your file share, type a path to mount it to, hit save.
And does it work?
Does it buggery.
And is there a helpful error message so you can see what you've done wrong?
In a pig's arse is there a helpful fucking error message.
"Application error", and a link to some "diagnostic resources" that displays the exact same error message, including the same link, so a link to itself, in an infinite recursive loop of rank, inhuman stupidity.
Let me see what's in the logs. Absolutely fuck all. No, wait! There's the html markup for the fucking useless error message I'm looking at in the browser. So the UI is telling me to fuck off, and the logs are recording that I have been told to fuck off.
But this is Azure. So there isn't just one place to look at the logs, there are many places to look at the logs. And they are all geologically slow and most of them don't work.
It's probably a firewall issue. I'll have a look later on if I can be arsed, but frankly I'd rather be performing cunnilingus on a lion.1 -
life becomes sulking when you have no support.
1. bought a new car. finally everything went good and i was able to get out of the infinite loop of anxiety : "where would i park?" "fights with neighbour" , "how to become confident after learning to drive in driving schools?" , efc
2. on delivery day, a friend helped park the new car near home. the plan was that from next day , we will start taking classes on self car with a car trainer
3. this morning, i took a class with car trainer alongside my mom as she wanna learn too. she used to drive somewhat shakily 10 years ago.
She got scared seeing me to drive. i was driving fine as the trainer hmmself didn't scolded me anything. i was driving at 30kmph on empty roads, while she is trained to drive at 10-15kmph. whe she drove, her driving was full of jerks and sudden break/clutch release, but i remained mum
4. later on, one of my friend also rejected going with me for driving. and the car trainer is also citing some time issues for next few days. i am now stuck with:
- a brand new car wrapped under sheets with no future for getting out
- a driving license in my wallet that will keep on taking dust as i would rarely be allowed to ever take my car out for a 60km drive to office.
-some overly anxious parents trying to take out my morale
- a sad me. when will the life give me a chance to fuckin grow up?
i have cracked the IT for fuck's sake. i started from peanuts salary, and worked my way to a great package, i am a person who understands how to live. why the fuck can't i learn this skill5 -
Im beginning to think im stuck in an infinite loop of learning. This fucking bullshit never stops. I just continuously keep learning new shit and the more shit i learn the more i realize how much bullshit i still have to learn
It creates an illusion as if i know nothing
Just when i thought i see the end of the horizon and reach it only then i realize it just keeps on going into oblivion, as a sphere
Its like im trying to catch and find a corner of a sphere
There aint none
Its pointless
Is it also pointless to keep learning like this?
Perhaps this whole existence is pointless
Real talk now whats the point of existence bro
No matter what you do or dont do it doesnt matter
No matter if you're successful or not it doesnt matter
No matter if you learn all the bullshit in the world you're still gonna die and it wont matter
No matter how much i learn, it still and will always appear as if its not enough to these shitface recruiters and companies, to them it doesnt matter
Nothing matters. Everything is empty and meaningless. The entire life itself is. I dont value life. I dont care if i live or die. I feel no joy when i succeed and i feel no sadness when i fail
The tiny little bit of joy or success cannot outweight the years of sadness depression emptiness and failure the life has dumped onto me in spite of my hard work and continuous learning
Hhhhhhhhhhhhhhhhhh20 -
while(true) {
$us->me();
}
Damn it. I'm stuck on an infinite loop and can't get out. I'm starting to feel unmotivated on our first project as a team. No financial support from client. Disastrous planning phase. I really do want to drop this project. But I won't because of my dev friends, we started this together. Another thing that frustrates me, they don't know how to use Git. If there are changes on the system, we have to transfer it through flash drive. [ill teach them]. I don't wanna go to the point that this project becomes toxic. So frustrating. This too shall pass.
Does every start have to be this hard and frustrating? -
What's your first instance of a infinite loop which ended badly?
Mine was a loop to calculate prime numbers.
My computer came to a halt within 5 seconds :S4 -
Fuck angular.
Syncing formControl errors?
Fuck you. Infinite loop.
Debounce formgroup validator?
Fuck you. We clear all asyncValidator errors on every change12 -
Back in the early noughties I had an interview for the new job. A couple days before the interview I've visited that company's website. There was search input. Of cause I've entered some hacky things into it. And after several attempts I hacked it. The site was down in an infinite loop.
Two days later I told interviewer about the bug and what I did to reproduce it. He was surprised and checked the website. It was still down the same way.
I was totally ashamed. I was supposed to report that problem somehow.
BTW I got the job:) -
I just discover a new way to achieve infinite loop today: https://github.com/necolas/...
I can't wait for 2019 and react-native-web-mobilr1 -
I started to learn coding at school using RM Basic. I made a script with an infinite loop using goto that flashed the screen different colours and said error on it. I left it running. Found out later the it guy took the computer away for "repair"...
-
So I start up the Windows Upgrade Assistant to upgrade my Windows 10 to the anniversary edition and it shows me that I'm running version 10240 and I can upgrade to the latest version 14xxx.
So I hit upgrade now, wait for 10 minutes for the update to be downloaded and another 10 minutes for the update to be installed. Then it does the customary reboot after update.
So now I assume that I'm running the anniversary edition of Windows 10 but it shows that I'm still running 10240.
WTF was the upgrade assistant doing in those 20 odd minutes. And now it does it in an infinite loop. Is Microsoft trying to explain me what an Infinite loop looks like practically.2 -
bad APIs lead me to leaving comments like this
```
// we do not know how many pages their may be.
// im thinking of space invaders here, reverse direction and increase speed!
// only we are just adding one and creating an infinite loop that is only infinite until it isn't```1 -
Do you think we can, one day, teach an AI it's own coding language and make it improve itself to a point where it can code better versions of itself in an infinite loop until the perfect AI emerges? 🤔3
-
Once upon a time I was a student. We had QBasic programming with graphics involved in it. Once I was thinking about animation as we were told in the classroom. In order to perceivably move an object, we were supposed to draw the object, erase the screen, give some delay then draw the object again at a slightly different position....repeat the same thing all-over...
I suppose I had not done this exercise even once.. I might have seen it happen at our labs, I did not like it.. because I was clearly able to make out that screen is clearing...there was too much fluctuation..it did not look good as an animation..
I tried to better the process by redrawing in black color instead of calling a clearscr() routine and keeping all other things same.
I had also put an infinite outer loop so that I can see the process all over again after the circle (it was a circle I was moving btw), started from one end of screen and reached the end of screen.
As I hit F5, I was so impressed by the results...that I kept staring at it for 10 passes of the circle.. it was pretty darn smooth.. -
I have yet another problem.
Whenever I think about starting a new project, I open console, make a directory, initialize the boilerplate things and then...
Stop. I can't move much further because I get another idea that could be branched off of that last idea. And then.. another one.
Infinite loop :/
Hopefully I will reach a stack overflow soon...1 -
mann... either i am dumb or my team is a bunch of excited monkeys.
for last 6 months my senior and this contract dev (both in Android) have been fussing about adding coroutine flows in our codebase: how our codebase "needs" it and how flows will help our codebase become "better"
when i asked them why, they gave me even more shit about hot flows cold flows, state flows, and how ots the latest "solution" from google.
So today, while going through another existential crises in my free time, i decided to understand what these "flows" are.
and from what i understand, it is mainly for cases in which there os actively changing data and we want to get latest updates without any event or trigger, like those streaming datas , chat messages, location etc.
but we are a freaking insurance app! user presses a button and we make an api call! what is the fucking problem here that isn't being solved by good old livedata and coroutines? There isn't any "live" api in app as far as i know and even if there is the code should be modified for 1 such api.
why fuck the whole codebase for a usecase that isn't applicable for 99% of APIs?
also, if a flow is going to auto trigger and call api, how are we supposed to control it? like say there is a offers api(there isn't) which gives us the latest offer products to show user for 5 seconds then refresh. for this i will simply returrn
flow{
while(true){
emit (offer api results)
delay(5000)
}
}
but this is an infinite polling api! how to stop it when say user pressed a cross button or did some other interaction?
it seems useless as fuck.. i can achieve a more controllable polling using the same while loop in different location or some other solution that won't require me adding this wierd api5 -
Has anyone used YouTube iFrame API?
I do ask first here before going on SO.
I am trying to play a YouTube video in sync from 2 different computers.
Luckily YouTube iFrameAPI has an event called `onStateChange` that is fired every time a video is paused, played, stopped etc.
This is the scenario...
1. Host creates a session and sends the link to guest.
2. Guest connects with the host.
3. Host plays/pauses/goes to specific time in the vide the video. The video is synced on guest session.
Now I have to figure out how to sync when Guest does an action. The thing is, every time an event is triggered in Host, it sends the command to Guest. The guest obeys BUT THEN the event `onStateChange` is triggered on guest and sends the command to Host. It is an infinite loop that I cannot seem to figure out if the onStateChange is triggered from API or from User interaction.
What I have tried so far...
1. Global variables. No luck.
2. Disable the event handler when the guest is gets data from host and after it finishes syncing, activate the event handler. But the handler still triggers.
3. Timeframe. (an ugly one) . Checks when the last time that event was triggered. If it was less than 1.5 seconds (or other second), it does not send the commands to host.6 -
while(projectManager === isAlive) {
me.work();
(!isAlive) ? new.projectManager : me.keepWorking();
} -
My life:
Int main(nothing){
while(1){
drink(beer);
code(c);
sleep(the_next_time);
}
return 0;
}
/* compile error -infinite loop found- */ -
Who else is frustrated/burnout at building products that never gets into production?
When I work for a company I always tend to do everything with good practices, spend a lot of time thinking on the best ways to build x feature, and then the company falls into the infinite loop of adding stupid features, and then I've been working for 2 years and 0 paid customers. Funny that we've Sentry, GA, Hotjar sitting there doing nothing.
I'm honestly hating the startup environment rn. Good thing is that I've learnt a lot and salary is good. But also I lost all motivation.
Any recommendations for a tired dev?7 -
Shit is getting more and more weird.
Context updating hooks inside useEffect is just icing on the cake especially the comment about how putting that hook in useEffect dependecies would cause infinite loop. No 💩, Sherlock!!!
No dumb components in this project except maybe buttons.
Every fucking component has tons of business logic and you can't simply tear it apart as data structures are all over the place. Prop drilling with every drill-step recieveng data of a different type.
We are using Context. For just one value. One. That's it.
Fuck this shit! This shit beats every anti-pattern approach I saw in my whole life, and this is my 40-ish project!
Over engineering by stdOut playing in the backround while I curse at this POS code.
The product is cool though. And it works™ -
worst mistake was probably introducing an infinite loop in the category tree for e-commerce site...
in the vein of true agile and considering MVPs and what not we had not yet automated everything. the client would send category updates as a spreadsheet and i had a script to generate the sql and jam it into the site. having run the script several times in the past I thought I'd just throw the update into production and call it a weekend...
it wasn't long before I started fielding calls that the site was unstable. no page would load and the server kept crashing under trivial load. well an entire frantic weekend later I discovered the category load hit an edge case I hadn't considered and I had introduced an infinite loop in the navigation of the site.
i'd like to say I learned my lesson and never just threw changes into production again, but what can I say - I like living on the edge. I did however learn that loop detection can be a valuable thibg -
So I've been using Duet on my iPad Pro for a couple years now (lets me use it as an external monitor via Lightning cable) and without issue. Shit, I've been quite happy with it. Then the other day, whilst hooked up to my work laptop, there was a power fluctuation that caused my laptop to stop sending power to connected devices. Which is fine - I have it plugged into a surge protector so these fluctuations shouldn't matter. After a few seconds the laptop resumed normal operation and my connected devices were up and running again.
But the iPad Pro, for some reason, went into an infinite boot loop sequence. It reboots, gets to the white Apple logo, then reboots again.
In the end, after putting the iPad into recovery mode and running Apple's update in iTunes (as they recommend), it proceeds to wipe all my data. Without warning. I lost more than a couple of years of notes, illustrations and photos. All in one fucking swoop.
To be clear, you get 2 options in iTunes when performing a device update:
1. UPDATE - will not mess with your data, will just update the OS (in this case iPadOS)
2. RESTORE - will delete everything, basically a factory reset
I clicked UPDATE. After the first attempt, it still kept bootlooping. So I did it again, I made sure I clicked UPDATE because I had not yet backed up my data. It then proceeds to do a RESTORE even though I clicked UPDATE.
Why, Apple? WHY.
After a solemn weekend lamenting my lost data, I've come a conclusion: fuck you Apple for designing very shitty software. I mean, why can't I access my device data over a cabled connection in the event I can't boot into the OS? If you need some form of authentication to keep out thieves, surely the mutltiple times you ask me to log in with my Apple ID on iTunes upon connecting the damn thing is more than sufficient?! You keep spouting that you have a secure boot chain and shit, surely it can verify a legitimate user using authenticated hardware without having to boot into the device OS?
And on the subject of backing up my data, you really only have 2 manual options here. Either (a) open iTunes, select your device, select the installed app, then selectively download the files onto my system; or (b) do a full device backup. Neither of those procedures is time-efficient nor straightforward. And if you want to do option b wirelessly, it can only be on iCloud. Which is bullshit. And you can't even access the files in the device backup - you can only get to them by restoring to your device. Even MORE bullshit.
Conversely, on my Android phone I can automate backups of individual apps, directories or files to my cloud provider of choice, or even to an external microSD card. I can schedule when the backups happen. I can access my files ANYTIME.
I got the iPad Pro because I wanted the best drawing experience, and Apple Pencil at the time was really the best you could get. But I see now it's not worth compromise of having shitty software. I mean, It's already 2021 but these dated piles of excrement that are iOS and iPadOS still act like it's 2011; they need to be seriously reviewed and re-engineered, because eventually they're going to end up as nothing but all UI fluff to hide these extremely glaring problems.2 -
I've wasted hour to fix bug in my program.
Basically there was problem with auto updates system (two exe files - one is program itself, and another is update Manager which replaces old exe with new one).
I've managed to make bug which causes to infinite update loop...
The problem was instead of calling program "helmet_updater.txt", it was calling "helmets_updater.txt"... -
When C output questions to an Interview seem like an infinite loop,
But end up simply getting solved on the nth iteration.
And you feel like, if this was in python, this load of crap won't be torturing you! -
there it goes again
rip my college access, i'm in an infinite loop of this and can't break out
i have to wait for the server to deauth me on its end, should take 48 hours or so2 -
I was put into pair programming for writing code in BASIC in my 5th grade. I did all the exercises while my pair simply watched. It was simply natural to me, and a bug in code helped me to print my name in a infinite loop. Amazed with what computers can do, and my story with computer and software development started there.
-
All the night thinking about a possible solution, finally got it, code it, push and went to sleep some time, then I realized it didn't deploy and doesn't actually run ._. almost cry, and then I realized the error was that i was using the wrong variable and forcing an infinite loop .___.
-
Not finding what I want via google so I'll ask here: What's the deal with opengles android shaders freezing my phone's screen?
Is it normal unavoidable behaviour for a shader with an infinite loop to fuck up the visual output irreversibly (until phone restart)? -
People working with a huge codebase, how do you guys go about creating a new feature in the application given that you are new to the development team? Do you guys isolate yourself to your own task or are busy debugging how some random thing like a configuration file gets loaded in the application.
Its been two days since i have been assigned a task and im not even close to starting what im supposed to do. Instead im stuck in what seems to be an infinite loop of debugging :)9 -
How could one write a parser for BNF without causing and infinite loop in the following case:
Something ::= AnotherThing|Something
?6 -
in my country they create an authority to liquidate another authority. how do they liquidate that authority? inevitable stackoverflowexception2
-
Infinite loop definition: when you post on devRant the stickers you received from devRant and you get upvotes, so you can request more swag from devRant that you then post again on devRant.