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 - "loop"
-
“That regex almost worked, lemme just tweak it a bit–”
*2 hours later*
“Fuck it we’re processing strings character by character with a while loop like granddad did.”5 -
Math: the imaginary unit is i.
Electrical engineering: no, it's j.
C hacker: hands off my loop variables!14 -
Just replaced a 300 line switch case with a simple if statement inside a foreach loop.
Feels sooo good man9 -
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 -
Boss: Oh can you add this feature?
Me: I added that function already and you said to take it out.
Boss: Can't you just copy and paste it from an earlier version?
Me: No its really not that simple, I removed a bunch of tables and went to town cleaning the code so it's super quick and "sexy fast" as you put it.
I go home, work all night and forget to eat.
nextDay++;
Boss: Actually just hold back on that, I'm having second thoughts.
When a project seems to be in an endless for (fucks sake) loop.8 -
GUYS WE HAVE BEEN WRITING FOR LOOPS IN JAVA WRONG THE WHOLE TIME. Here is how it should be done correctly...
int i = 0;
for(;(i<10) ? true : false;)
{
i++;
System.out.println(i);
}
Jokes aside though does anyone have any more horrid ways to write this?21 -
Going to forums asking for help as to why my nested for loop wasn't working correctly after the first loop only to realise I was using the variable i for both loops...
Felt like an absolute twat4 -
!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.10 -
A recruiter called today.
A new job proposal. Higher salary, manage some 5 men team, DevOps buzzwords, cool product, great conditions but then she says "and we're working only in Windows environment".
My ears ringed "only in windows env".. "only windows"... "windooowwssss".
"Nope, thanks, have a good day!" - hung up.18 -
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 -
Gaming on Linux:
Linux doesn't have many games..
Why? Because the market share is small.. But why is that? Because Linux doesn't have many games. FUCK31 -
Damn you stackoverflow!
Why can't we declare an answer as outdated or deprecated or just plain out wrong!
I like that you have so many questions, yet when the correct solution is a 0-upvoted by a 0-rep user hidden at the very bottom between a huge amount of wrong answers and whereas the *accepted* yet wrong answer has upvotes that are skyhigh, it just wastes my time.
All that is achieved is a feedback loop enforcing a faulty answer will accumulate ever more upvotes. And waste somebody else's time in the future as well.
I cannot add the correct information, as that would harm the author's intent. I cannot edit the faulty answer to state that there is a better answer, as that would be an attempt to reply. I can downvote it, yet that just a tiny drop on a very hot stone.
All I can do is add a comment pointing to a correct answer, yet that is easily overlooked.
Come on, stackoverflow! This is madness!6 -
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.4 -
Getting stuck in a while loop Getting stuck in a while loop Getting stuck in a while loop Getting stuck in a while loop Getting stuck in a while loop Getting stuck in a while loop Getting stuck in a while loop Getting stuck in a while loop
Getting stuck in a...[read more]4 -
imagine if devRant had a programming language
#define SHITS_I_GIVE 0
codes START_BITCH() {
FUCKING_DISPLAY("FUCK YOU WORLD\n");
COCKSUCKER_INT counter_bitch = 0;
DURING(counter_bitch < SHITS_I_GIVE) {
FUCKING_DISPLAY("I DON'T GIVE "); FUCKING_DISPLAY(counter_bitch);
FUCKING_DISPLAY(" FUCKS,\n");
}
FUCKING_DISPLAY("SUCK A COCK ASSHOLES");
}19 -
GF: Honey... What is that thing called... It's like a neverending if statement...
Me: ... A while loop?
GF: YEAH!! It's a while loop in the brain!2 -
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.9 -
// 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 -
Seen on HackerNews, couldn't left it for myself.
Mail loop from hell: https://blog.dbrgn.ch/2012/7/...2 -
When it keeps happening every time but you're too lazy to fix it because you always remember it at 7am when you want to close the computer and go get some sleep...
Ugh...1 -
I once saw this comment inside two embedded empty loop :
// WHY, OH GOD WHY!
Turns out somebody deleted the content but not the loop. The next dev added the comment but kept the loop. -
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!!11
-
It feels like you are talking to yourself while commits when you create a github repo and you are the only contributor. :p2
-
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 -
Android dev rant:
>Fixing some code
>Compile code
>Take a walk, waiting for gradle to finish compiling
>Almost 10 mins, notice typo on code, while still running gradle
>Fixing some code
>Compile code
>Take a... Wait a minute11 -
Wanted to play a new game this WE.
It's quite demanding so decide to boot into Windows, because NVIDIA driver support.
Haven't booted Windows 10 in a month so I start early in the morning to do the updates.
After about 3 hours all Windows and steam updates were installed and I finally start the game.
I play for a couple of hours until suddenly - blue screen
I rebooted and was faced with another blue screen right after the Windows logo. Didn't even reach the login screen.
So here I am with a Windows install that is stuck in a boot - blue screen - boot - system repair - blue screen loop and a shitty gaming WE.
Thanks Microsoft!12 -
Once made simple .bat file that opens itself.
Changed the icon to Internet Explorer(yea i know what you are thinking but it was like 2003 or smt.)
Victim clicks the shortcut.
BANG! Endless loop of same application eventually freezing everything.
12 years old and feeling like a damn hacker feelsgoodman.jpg. -
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.
-
-six months ago-
"Yo! Let's learn a web framework and build some sick apps!"
"Fuck yeah!"
-yesterday-
"Yo! Should we start doing that thing we talked about?"
"Fuck yeah!" -
so the bank has decided to charge me for sending me the sms notification for the sms- notification-charges
makes sense 🤨 ?7 -
Here I am wondering why the array only has 1 item after the loop finishes. I wonder if it's because the array I'm pushing too is INSIDE the loop...😁1
-
My IT teacher in high school. Got me into programming, helped me take programming from a hobby to a career and is still helping me today. Honestly one of the coolest people I know.1
-
int counter=0;
void loop()
{
if (counter>=10)
{
// nothing
}
else
{
Serial.println(counter);
counter++;
}
}
This is what I call bureaucracy3 -
My loop checked a variable, then the next 5 nested loops checked it again, then started over. It was a hard coded variable I forgot about.
I just made my code OCD -
I wanna learn something new but everytime I take one course I stop at the first video u.u
It's like I can't keep on the learning curve of anything unless I have the real need to do it :/
In addition, everytime I want to retake the course, a new/unknown technology is in front of me and well... everything starts again2 -
Somebody pays for this domain 👍
Translation: www.if-loop.de
There are no if-loops, just if-statements! -
while(true){
while(beTired()==true){
goRelax();
}
while(beBored()==true){
goProgram();
}
}
That's a fucking infinite loop4 -
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 -
I swear I NEVER hated PHP before, but after seeing this shit, I just can't love it anymore, I feel betrayed
I mean, WTF? Just bc I'm using the variable as a reference in the NEXT loop the LAST element changes? What even is the fucking reason?
Yeah, I read the answer on StackOverflow, but seriously...
SO ref: https://stackoverflow.com/questions...12 -
When I was really new to JavaScript, I wanted to create an image gallery with images which I stored in a MySQL database. Well, I did not really had a clue how to load all the image sources into my JavaScript to load the images. I also didn't know much about fetching an endpoint of my website to get the data asynchronously.
I also wasn't a good database architect at that time and my database had an image table wich was for the gallery. Within this table there were multiple columns for one image slider (there should be multiple sliders on one page in the gallery (I know... 🤢)).
So I ended up writing an PHP loop wich printed Javascript loops for each row in my images table. Within my JavaScript loop I created the sliders and set the images.
In my defense I can say: It worked. 😅
It hurts to remember this. And I hope you won't judge me.2 -
There's this little, self-loathing sigh I do every time my program locks up because I forgot to iterate inside a while loop
-
When mysql_query gets called inside of a loop that is inside of a loop.. While the could've used a one liner mysql command...
Best of all they don't think that this doesn't effect performance...1 -
We should get rid of loop invariants. They are cumbersome and counter-intuitive (hopefully someone gets the inside joke).1
-
My brain goes into infinite loop when an Interviewer asks, what was the hardest thing you did at your job?2
-
[Me at night]
1 Me: should I sleep?
2 Brain: right after finishing this module
3 Me: <drinking coffee>
4 goto 16 -
Help, please :D
My girlfriend came to visit me and now her laptop is bricked (boot loop). She has the WIP of fall creators.16 -
Just had to write an old-skool for loop. Index...termination condition...whole works. I feel dirty.
Bit embarrassing as someone saw me writing it, thought I was a hacker and informed the authorities. Spent the last hour being waterboarded.
We had a big laugh about it when they realized I was just fixing bugs in a legacy app.
National Security. Hilarious.10 -
When you spend half an hour long at your code wondering why your do while loop only works once.
Then you realise there is a return just before the end of the loop.
Today was not a good day2 -
Oops!! I just forgot to increment a loop variable in a while loop. ended up in an infinite loop :(6
-
Computers fear my devaura. Everytime I get called to fix something it magically starts working when I enter the room. 5 Minutes after I leave it broke again.
Repeat like while(true)3 -
Just looked at a fellow devs code (has 4 years experience). His test rig has the same 5 lines of code, copy pasted in the same file ... 400+ times.
What is the appropriate action to take?8 -
I solved this bug today just to get good sleep at night by not brainstorming every solution.
Here I am thinking about the different scenarios to test my code!!I think I'll sleep peacefully tomorrow!! -
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 -
Here's something not quite a rant, but relatable. And an issue. For me at least.
------
You get really proficient with a set of tools.
- Can solve things in an efficient & elegant manor.
But it's now boring.
You find some new exciting stack, research like a madman. Possessed.
Your perfectionist self, seldom doesn't want to settle.
You burn out from pressure & deadlines.
You feel inadequate, imposter syndrome settles in.
You reminisce of the easy days when you (thought) knew everything.
Decide to rebuild using that past stack.
Gets bored.
You notice something new & exciting.. loop iterates to next repetition.1 -
a meeting on why we are behind on a project. a meeting about meeting about being behind.... too many useless meetings
-
Windows Update prompted me to install the 1809 update for Windows 10 recently.
I left the machine for a while and came back to find it frozen at a completely blank screen.
It eventually restarted...and got stuck in a continual loop where the Windows logo would flash for a second and then instantly restart again.
The restart occurred so early in the boot process that I couldn’t even get it into recovery mode or do anything with it to fix it.
So I had no choice but to reinstall Windows from scratch and reinstall and restore all my software and files. Took about 7 hours.
Not happy!4 -
i have been browsing trough my gists and this is what I have found.
HAI
HOW DUZ I PRINTSMILE
VISIBLE "SMILEZ!"!
IF U SAY SO
HOW DUZ I PRINTSMILEZ NUMBERZ
I HAS A SMILEZLINE ITZ ""
IM IN YR LOOP NERFIN YR NUMBERZ WHILE NUMBERZ BIGGR THAN 0
SMILEZLINE R SMOOSH SMILEZLINE AN "SMILEZ!" MKAY
IM OUTTA YR LOOP
VISIBLE SMILEZLINE
IF U SAY SO
VISIBLE "O HAI! NOT MY WERK! LOL!:):)DIS WAY CUZ I LIEK SMOOSH:)"
I HAS A COUNTER ITZ 3
IM IN YR LOOP NERFIN YR COUNTER WHILE COUNTER BIGGR THAN 0
PRINTSMILEZ COUNTER
IM OUTTA YR LOOP
VISIBLE ":)N DIS WAY CUZ QUESTION. LOL!:)"
COUNTER R 3
IM IN YR LOOP NERFIN YR COUNTER WHILE COUNTER BIGGR THAN 0
I HAS A UDDERCOUNTER ITZ COUNTER
IM IN YR INNERLOOP NERFIN YR UDDERCOUNTER WHILE UDDERCOUNTER BIGGR THAN 0
PRINTSMILE
IM OUTTA YR INNERLOOP
VISIBLE ":)"!
IM OUTTA YR LOOP
VISIBLE ":)LOLOLOLOLOLOLOLOLOLOLOLOL!:):)KTHXBYE"
KTHXBYE9 -
So I'm writing this code, that does 2 important things, that cannot be seperated. I run the code, thing1 is correctly executed, thing2 not. No fucking idea, why this happens. Execute again, same result. Debugg the wohle thing, now everything works fine.
WHAT?
I check the code, there are no background tasks, no paralell processing, nothing that should go wrong.
Asking a Senior developer for help, he also has no fucking idea. He tells me to try to wait one second between the two things. Looking for a delay() or wait() function in my programming language but there is none. Ok, building my own delay, writing a "do 1000 times" loop, calculate some shit in it. Execute the code, it works perfectly.
Nobody has a fucking idea, why this is happening and why this solution is working, but now the code is productive and it works fine.9 -
When the management always knows better that something IS possible, and if you're wrong they just tell you to ask the other dev on the team...
-
To preincrement or to postincrement?
for(var i = 0; i<length; ++i){
}
or
for(var i = 0; i<length; i++){
}
I would imagine on a good vm or compiler this would be optimized anyway. So does it really matter?15 -
Time Wasted: 30 Minutes
Problem: Put the .add(myObject) statement OUTSIDE the for loop.
Solution: Today.Quit() || Coffee.Make();2 -
float integral = 0;
float dx=float.minValue;
for (float x = a; x<=b; x+=dx) {
integral+=f(x)*dx;
}
A classmate just literally wrote this and he believed it was the proper way to do it.
I asked him to integrate f(x)=1 on 0<x<1. -
Linux doesn't like my Asus laptop
For fuck's sake stop asking me to login again when I put in the correct password, cannot even sign in as a guest jeez
Never. Partitioning. Again.9 -
The worst infinite loop of all.
while(hasPoopOnTP( )){
if(goodEnough( )){
break; //it's never good enough
}
ass.wipe( );
}1 -
The programmer got stuck in the shower, because the instructions on the shampoo bottle said:
Lather, Rinse, Repeat -
It is 7:46PM...
I started debugging at 10:30AM...
.Net native making my app crash at startup... even before the logger can write anything...
Just now, I find out it is because of a 3rd party lib...
"Going crazy" can't even begin to describe today...
I really didn't need this shit today... just not today... -
int rantLevel = 0;
while(true) {
rantLevel++;
}
Join the army! Create an infinite loop with your favorite language and comment it 🤔29 -
Not a rant, but I was offered dev positions at 2 companies. Excited to start working as a developer! I guess I'll get to post actual rants soon.2
-
Public transport is slowly getting quieter and quieter. One side of my enjoys the silence and space, but the other side wishes I had the option to not take it either.
Everyone WFH, I envy you...2 -
Error in linux be like D∈∀DL❍⊂κ:
Can't install module <a> dependent on 3 other.. trying to install one of those 3 and here comes again.... Can't inatall this module depends on <a> -
vscode for now. I swap editors when I get bored of one. All editors have something cool to them. Except Vim. Screw Vim.1
-
Someone just explain me why. I really can't figure other reason that beeing too lazy to think a condition while writing a "while loop".
At university, a colleague asked me what i think of his code. I see something like that:
while ( 1 ){
...
if (condition)
break;
...
}
Am I a fucking genius thinking that just moving condition into while will improve readability, or am i a fucking stupid ? Really not the first time seeing this, maybe i am missing something.4 -
I always confuse `for..in` with `for..of` and have to look up their respective meaning. Again.
It drives me crazy.
Do you have any mnemonic on this? How do you remember the difference?
(Now, as in this very moment, I know that for..in is for looping over keys of an object and for..of for looping over iterators. But tomorrow I will have forgotten it again.)10 -
When you are dreaming about you being stuck in a never ending loop of string escape... Nightmares...1
-
The stupid shits I see...
Dt = dateadd ("s",5,now)
Do while Dt < now
Loop
WHY DO YOU NO THREAD.SLEEP ()?2 -
My Coding Loop :
while (working) {
coding();
createNewBug();
if (bugs != 0) {
fixTheFuckingBugs();
if (bugs != 0) {
fuckMySelf();
} else {
continueWorking();
}
}
}1 -
I need to install homebrew in my OS X so i go to brew.sh
brew.sh: /usr/bin/ruby -e "$(....
me: ok, need to install ruby
ruby-lang.org: brew install ruby2 -
var suffering = Number.POSITIVE_INFINITY;
for(love = 0; love > suffering; love++) {
var life = suffering - love;
}3 -
As a beginner at programming, I've never really appreciated or understood the point of a simple for loop until I've had to use an if/else loop 200 times2
-
Going back to a php project after writing loads of typescript on a node stack, I suddenly miss the instantanious feedback loop on file save via `nodemon` for basic scripts and `mocha --watch --reporter min` for tests.
Using phpunit, I currently have to rerun the test manually whenever I feel like. Which now feels so annoying. Cause I didn't know besser.
Now I was searching for something similar in php and I find answers[1] pointing me to use either set up some npm hooks or set up gulp task or to use pywatch. phpstorm also is supposed to support file watchers and run test on every save, yet setting them up feels clunky.
[1] http://stackoverflow.com/questions/...1 -
Start teaching it terrible standards and a misrepresentation of the world so the feedback loop breaks.
-
parse_str($_SERVER['QUERYSTRING'],$qry_arr);
when you see tha 4 time before he actually uses the qry_arr in a loop... -
He: Please help me understand loop vs iterator..
Me: Loop is which iterates over data
He: Then what's Iterator?
Me : Iterator is when we loop over data6 -
Anyone know of OSSU? It seems cool, but I don't know anyone that has any experience with it. Would be doing it part time to fill all the gaps of my self learning journey5
-
Found an infinite loop in SQL. One proc called another and then that one called the other. Woooooo.....
-
Which one is IPv6 loop-back address ?
A. ::01
B. 127.0.0.1
C. ::1
D. ::10
E. I put a loop-back on your loop-back
F. None of the above20 -
executing back to back awkward experimental snippet successfully.... a dream come true... thinking 💭 of making loop of that day.
-
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 -
Hello there, long time no see.
Back in the day I asked you for a book that goes deep in the C programming language, now I'm asking the same but for Nodejs, especially a book that explains the event loop down to the line of code.
There are some articles on the internet but they are all copy/paste of one another and don't even scratch the surface of what the event loop does2 -
One of our departments works only on Thinclients and one of my colleagues made an loop. You can think what happened.7
-
I kinda miss the do while loop. It seems it fell out of style, compared to a for each or a while. I always feel a bit guilty when IntelliJ tries to autocomplete the do while loop and you just want a variable that starts with do.2
-
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 -
Feels good to be able to clean up code! Just changed an ugly 5-line while loop into a clean 2-line do-while. Now I just need the rest of my program to work 😂
-
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 ... -
Endless loop from workstation to bathroom.
Enough coffee to make your central nervous system depends on it.2 -
#!/bin/bash
# An ideal work day
# Wake up naturally, keep sleeping until I won't wake up as a zombie
TIMETOWAKEUP=$(while ps -eo state,pid,cmd | grep "^Z"; do sleep 1; done)
# Work, between 9AM - 5PM, weekdays only!
TIMETOWORK=$(while [ $(date +%H) -gt 09 -a $(date +%H) -lt 17 -a $(date +%u) -le 5 ];
# Do cool work and get paid, every second.
do $COOLWORK && $GETPAID; sleep 1; done)
# Home
TIMETOCHILL=$(while $ATHOME;
# Do cool work, without getting paid, and spend money made from $TIMEATWORK
do $COOLWORK && $SPENDSPENDSPEND; sleep 28800; done)
$TIMETOWAKEUP; $TIMETOWORK; $TIMETOCHILL
# I don't get out much -
when you used to functional programming, every time you see a for loop, you can not resiste but to refactorit.
-
So I have an array of length 20 which stores a 64 bit decimal number by digits. The starting address is let's say array64. When I am trying to build up my number in ECX:EBX, I am using EDX as the iterator to access the individual elements of the array (I am loading them into AL)
.LOOP:
....
MOV AL, [array64+EDX]
INC EDX
....
JMP .LOOP
The problem is: somehow EDX cannot get higher than 10, so the program just stops and waits for input, when I try to work with a 12 digit number...
This module is outside the main function, and I thought about some Far Pointer problems, but all of my ideas just failed...
What is wrong here?1 -
Deep learning. Working on an image classification problem for a big company. The "boss" ask me to teach an AI to classify images into a few classes.
"Mmm, ok...I just need to create the dataset and then build the AI...so.."
Where is the problem??
The problem is that the classes are so perfectly similar that no one knows how to help me create the dataset and I have to do it alone.
That's how you spend your weeks in a loop where you look at thousands of images over and over just to have something decent start your work.
After that I felt like...
"I'm the hero they deserves, but not the one they need right now" - Cit2 -
Putting my draw_char routine in a for loop breaks everything... Doesn't when I just sequentially call it... Only when called from a for loop...
-
I came across a website today when I was searching for some banking related stuff on Google and this is what happened...
Types search term in Google
Gets the results
Opens a result in a new tab
Finishes reading it and clicks back
Tab refreshes to go the website's home page (What!?)
Clicks back again
Refreshes to the same result page (seriously?)
Back
Home page
Back
Result
Back
.
.
.
.
Back
Google home page (wtf?)
Back
Website home page (again?)
Back
Result page (NO! I'M DONE)
Closes the tab
What sort of wicked loop did I get myself into? Did the website devs ever think how frustrated it will be if they ever open their own page?
And what a clever technique to open Google home page for people who keep on pressing the back button! 👏👏 /s1 -
My life:
Int main(nothing){
while(1){
drink(beer);
code(c);
sleep(the_next_time);
}
return 0;
}
/* compile error -infinite loop found- */ -
TFW you can’t figure out why your code is only running once, then realize that you forgot to put it in a loop.
(It’s in a try catch block so my brain interpreted that as a loop) -
I have this weird feeling that i want to increment peoples rants/comments till they are even with the current ammount of increments they have, but thats a infinate problem i will have to personally deal with because that will never happen.
-
Anyone with the guts to kick-start this can do so here (so that you can't get my IFTTT webhook key):
https://to.retnikt.uk/ifttt2 -
while(projectManager === isAlive) {
me.work();
(!isAlive) ? new.projectManager : me.keepWorking();
} -
Was gonna talk to my PM today about stand ups going long, but then standup lasted right through our scheduled meeting. Feels cyclical.
-
If anyone is good with dart (or) other single threaded programming languages, i have this small doubt about the inner workings of the event loop and such and i would like an explanation if possible.
If you're too lazy to goto the link:
1. I have a future returned from a http request.
2. a future.then is declared that prints the http result.
3. A separate while(true) loop is declared that runs forever that just prints natural numbers.
4. the while loop also has an await future.delay that waits for 1ms before continuing with the next iteration
My question :
1. There's only one thread so how does the http download code run WHILE my main loop is still executing.
2. my future.then event is not processed unless i await a future.delay separately for 1ms. returning control to the event loop ? i don't get it how does adding an event help it process a prior event? It's FIFO ?
gist :https://gist.github.com/TheAnimatri...
discussion:
https://groups.google.com/a/...5 -
A v dumb C language question....
Consider this code snippet:
{
while( getchar() != EOF )
printf("a");
while( getchar() != EOF )
printf("b");
}
Is there some way to get inside the second loop? After I input some text, ctrl+D sends in the text stream and loop 1 executes, then the control waits at the test for loop 1 again, pressing ctrl+D again triggers EOF, but it ends up skipping all loops after24 -
So i was told to make a code to iliterate through some categories from web... And then boss added subcetagories... And sub subcategories... And after a while a sub sub sub sub categories... Code was piling up and boss says "dont worry, you can do it"... So i ended up with a loop within a loop within a loop within a loop... About half a milion combinations... HOW DID YOU BECAME A BOSS WITHOUT LEARNING TO DO MATH BITCH?!2
-
this aint working for some reason. unless im missing something then im completely stumped.
https://gyazo.com/37598c63be6af4702...
can someone please tell me what’s wrong?
It’s an array of objects that im trying to turn into options for a selector with the id prop being the value and the name prop being the actual text but it keeps saying select.add or appendCHild isn’t a function. now im lost.
god i hate tests, i know they are needed but damn5 -
tabs spaces oses languages what about using I instead of counter or index as a variable for for loop2
-
Are there any certifications worth focusing on? I'm fresh out of high school, doing an internship at a web dev company.
Everyone I've asked has told me to focus more on experience and the things on my github to prove that I can code, but I'm pretty sure have some certifications will help me somewhere in life.
I've looked into Cisco, Microsoft, Google, AWS and many more, but I have no idea where to start.
Any help will be appreciated :)2 -
Am only me gets bored during internship with java ee? Just robotic stuff, that repeats with every sansara loop
-
Trying to figure out what the API your company has been using does with 2 pages of documentation sucks! The explanation given to me was also pretty stupid: "So... you click here and then... uhm... this link, and uhm..."
-
Ooh, so you are a PRO JS programmer with *900000* years of bloody programming experience and don't know about the Event Loop..1
-
You ever want to keep figuring out a nested loop solution so it executes beautifully, but a deadline forces you to use a cheap solution outside the loop (module import) instead?
-
Do you have multiple screens? If yes, in what orientation?
I'm personally using 2. 1 horizontal and 1 vertical.
The vertical one is nice for long documentation and the horizontal one is mainly used for gaming.13 -
How could one write a parser for BNF without causing and infinite loop in the following case:
Something ::= AnotherThing|Something
?6 -
Stacktraces of exceptions thrown in async code. When walking up the callchain just gets you in the schedulers dispatch loop...
-
in my country they create an authority to liquidate another authority. how do they liquidate that authority? inevitable stackoverflowexception2
-
The time I can get a while loop to not crash the tab/application when I'm testing it for the first time will be the happiest moment of my life.1
-
When did you use i++ and j++ in real world? I couldn't answer a algorithm question on whiteboard that day during interview.4
-
Annoying monday - nearly no code but useless things like trying to use a Windows keyboard on some old MacOS X
On the other hand: for the first time I wrote a one line for loop in bash that worked - without googling!1 -
I don't really like the way how JavaScript does a foreach loop. Either you have to use the "for in" loop, or you have to use the "Array.prototype.forEach" function which opens a new scope.2