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 - "number"
-
Confession: I am not a dev, I actually work on an IT helpdesk telling people how to turn on their PC's everyday.
It's soul destroying!!
My boyfriend is an Apple dev though, and I only joined DevRant to see if it would help me understand what he talks about 24/7...
I have very basic coding knowledge but still find this all so fascinating!
You guys are so smart, and can literally create anything in the blink of an eye.
Why are you guys generally so very under appreciated??
You also have a fantastic sense of humour! Haven't laughed at so many nerd-jokes in years!
Loving DevRant so far!
Keep up the great work! :)32 -
A trusted-partner of my company obviously opened a dodgy email, as some of my co-workers got emails with a dodgy link from them....
So our Network Admin sent an email to the entire company with a screenshot of the email and a message along the lines of "DO NOT CLICK THE LINK IF YOU'VE RECEIVED THE ORIGINAL EMAIL!"
Company director REPLIES TO ALL and says 'i cant click the link that you sent to us'.
N.A replies directly to him to say its only a screenshot as it could spread a virus.
Director then informs N.A that that he has found the original mail (hurrah!) but the link downloaded an empty .zip file, so he forwarded the file to another director... who also couldn't open.... so they forwarded it to another person who also couldn't open it..... and they in turn forwarded it etc etc.
Currently have 37 power scans running (out of 250 computers) and trying to figure out how the hell these people manage to dress themselves every morning.10 -
A HUGE FUCK YOU TO EVERY GODDAMN ONLINE STORE WHO NEEDS A CREDIT CARD NUMBER TO OBTAIN SOMETHING FREE.
(the following is a big fuck you)
______
| ___|
| |_
| _|
| |
\_|
_ _
| | | |
| | | |
| | | |
| |_| |
\___/
_____
/ __ \
| / \/
| |
| \__/\
\____/
_ __
| | / /
| |/ /
| \
| |\ \
\_| \_/
__ __
\ \ / /
\ V /
\ /
| |
\_/
_____
| _ |
| | | |
| | | |
\ \_/ /
\___/
_ _
| | | |
| | | |
| | | |
| |_| |
\___/10 -
Sent an email out in work informing everyone that we had pushed updates out to all Windows PC's.
Got the following phone call 10 minutes later:
"Hi, I can't log into the banking account app on my iPhone. Did you do something to it with your updates?"
"Nope. They were PC updates."
"Well, I'm sorry but you're wrong. It must be you! It was working yesterday."
"Again, it's not us. What's the error message you're getting on your app?"
"Invalid password"
".....then could it just be that you're entering an invalid password?"
"No, I know the password. I only changed it yesterday!"
"So it was working before you changed the password?"
"That's what i said!
I'm telling you, it's your updates."
"Okay but before we go 'troubleshoot' it, how about ringing your bank firs-"
"Oh look, it doesn't matter if you don't want to help, I don't have time for this!
I'll ring your boss and he'll uninstall the updates for me and fix the app." *hangs up*13 -
First Helpdesk call of the day:
"My PC has been stuck on the same thing for an hour now. Its completely crashed."
"Does pressing ctrl alt delete do anything?"
"Where's that button?"
"Its 3 buttons - ctrl in the bottom left, alt beside the spacebar and delete over near the arrow keys. Press them all at the same time. Does it do anything?"
"No"
"Okay then, you need to manually power off the laptop then."
"How do i do that?"
"Hold down the power button"
"Where's that?"
"....on your laptop?! It's how you turn it on in the mornings?"
*60 seconds go by* "oh i see it. Ok i pressed it! Its Flashing blue now."
"Oh, no, just hold it down until everything goes black."
"The power button?"
"Yes."
"But that would turn off the entire PC?"
"Yes."
"Why do i have to do that?"
God help me if this is how my day is going to be 😢12 -
Receives email from warranty guy in work.
Warranty: "Hi, see attached scan in PDF form.
I normally fill the boxes in manually, scan as pdf to myself and then email it on to the higher ups, but they now say they need it in excel form from now on! Can you convert it for me?"
Me: "It looks like your scan's quality isn't good enough for a convert to excel.
Where do you get the original form?
Is it from a website?"
Warranty: "Hang on and ill send you an email with the file and give you a call"
*receives email and a phone call"
Warranty:
"There you go. Theres an excel sheet in that email. what do i do?"
Me: "So.... just so I understand the question... you just fill in this excel sheet, scan as pdf and send it on... but they want it sent as an excel form and not a pdf?"
"Yes."
"So.... Could you not just fill in the excel sheet and email it to them?"
"What do you mean?"
"....fill in the excel sheet as normal, and go to file, share and email... send the original one on."
"And what would that do?"
"...you... you'd be sending the form as an excel sheet, as requested??"
Warranty: *silence for 10 seconds* Oh, i see now. I get you! You're a genius! Well done for figuring it out. Thanks a million!!"
O.O9 -
Someones keyboard just stopped working in my job.
They called the helpdesk and i told them to unplug the keyboard from the back of the PC and try a different usb port before i send them down a new keyboard.
Their reply?
‘How am i meant to do that? I mean... *laughs* I didn’t go to college for this kind of stuff. I know you did but you need to explain it in English for me instead of using technical terms.’
....
So i had to describe what a USB looks like, and tell her how to follow the (only) skinny black cable she has on her desk, down the back of the desk and into the PC. She got overwhelmed by this cable being the same colour as the thicker VGA cable, so ended up unplugging everything!
Its fine though, as when she plugged them all back in, everything was back working.
She finished the call by saying:
“Like, i know how to use a computer but I just don’t understand all this technical mumbo jumbo, like USB’s and stuff? How should i know about that?”
...
I sincerely think interviews need to have just 5 minutes dedicated to the person showing that they know what a bloody USB is!!, can turn on/off a PC, open outlook, and follow basic instructions.
Ugh I work with idiots 😢18 -
I genuinely am lost for words on this one.
I just asked a user to press the wifi button on their laptop so i can check their wired connection was up and running okay.
They couldn’t find the blue ‘Fn’ or ‘aerial’ symbol that i described, so sent me this picture to see if they were pressing the right button.
Like....
What?? No!
What is wrong with you?? Seriously???
*cries*
Working on a helpdesk is destroying my soul!!7 -
Why is it called RAID0?
Because the number 0 is standing for the number of files you can recover when a drive fails2 -
Observed my bf spending at least a half hour browsing devRant in bed, so asked him what he'd do if devRant didn't exist anymore.
His simple reply?
"Cry"
May God help him tomorrow for the scheduled downtime... ;)9 -
I love how "minimal" devRant is.
No username, no time... just the number of likes and number of comments ..
*it's a feature not a bug*
✌(◕‿-)✌3 -
How do I un-idiot my users when it comes to clicking on dodgy email-links??
Got a forwarded email just there from a user who said;
Good afternoon,
Is the below ok to open?
I just tried but got a popup saying I've been blocked from opening it.
I'm not sure who it is coming from and I am not waiting on anything but as it says its from dropbox and is important, i know it's okay.
Can you unblock the link ASAP please?
This is really impeding my work-day as I need to know what it is and act accordingly.
Regards... user.
The Original email came from a random jumble of letters with a subject line of 'important dropbox program' - not only does it look dodgy but its english is horrible! It said;
"Hi tu my freind,
You tu still read a pending verrry important document sent by one of your own contact to be vieweddd.
Install "Highly Confidential english.pdf" by clickinggg here
*insert link leading to something called 'viral-update-trojan.exe'*"
I mean, seriously... help!!! 😢
We have sent emails explaining how to hover over links and to not to click them if it looks wrong.
No one does it.
We hired a company to send fake phishing emails to train users in what to do.
It made no difference!
We now make people 'verify' their email addresses when opening any sort of link to try get them to actually look at what they're opening.
We also strip emails of original attachments and create 'safe' html copies as we can't trust them to look at what they're opening.
Everyone complains about it but Jesus Christ, this is why!!!
Its so exhausting!! What is wrong with people!!! Argh!!! 😤16 -
I'm building a website for a new company and the boss doesn't understand technology at all. says he doesn't want me using any html because it is old and I have to use python because it's a 'hot language.' I try to explain that html is for websites and he replies 'not mine.'19
-
Well Wifi Number 4 should go to a doctor asapundefined it hurts i hope this is funny found in the wild ip not my network i know my battery is low9
-
Our html:
<input type="number"/>
Accepts only numbers, so far so good. Until QA files a bug:
"Numeric input accepts the letter 'e' "
Apparently 'e' is a valid because you can input something like '1e3' which fucking means '1000' !
Our team tried to argue with the QA that 'e' is valid because it simply means exponent but they argue a normal user would not know what an exponent means because they are not "mathematically inclined"
Part of me agrees with what the QA argues but then I think an average user who could use a fucking laptop or mobile will most certainly know what an exponent is.13 -
Funny how the number of screws I end up with after assembling my computer never matches the number I started with.4
-
Halfway through a timed midterm (no computers or calculators):
Convert this 5-digit decimal number to binary
Convert this 10-digit decimal number to binary
Convert this 20-digit decimal number to binary
Convert this even longer decimal number to binary11 -
I really like JS, but sometimes it's just incredibly stupid.
NaN stands for Not-A-Number
typeof NaN
> 'number'
why are you doing this to me8 -
Overheard a phone call between the Senior Network Engineer and a contracted Printer-company at 9am this morning. Photocopier was giving a 'functional error' message on-screen and not printing;
N.E:
I logged this call last
Thursday afternoon. Thats 1.5 days of the photocopier not working on our busiest site! Where's the engineer??
.... yes, that's the error message.
Yes, i can log into it, you should have the IP address from the call.
Yes, it's obviously pinging too.
Yes.... we've power-cycled the printer multiple times...
yes, tried that too...
yes, I've unplugged the network cable as well... left it for 15 minutes.
... sorry. What?
What did you say?
Are you f***ing kidding me?
Would you also like me to rub the side of the f***ing machine, and say a prayer while I'm at it??
*takes a deep breath*
Fine, I'll do that but when it doesn't work, i want someone out on the site before lunchtime today!
*slams phone down angrily*
N.E to me as he stomps out of the office;
He wants me to get the user to unplug the network cable and do a power cycle. How the f**k is that going to help? Idiots! Don't know why we have a contract with them, i could do a better job!!!
*comes back into office 5 minutes later*
Me: did it fix it?
NE: yeah. Damn.
*leaves room again to make apologetic phonecall*2 -
!rant
So I just lost my girlfriend she tought she wasn't worth it to me. On the bright side, more time for coding!7 -
Coworker: I give up! Please help me!
Me: What's up?
C: Take a look at this. I have this function here that gets the tab index and I'm passing it to the Tabs component over there. I'm logging the index and as you can see it's 3, but the Tabs component isn't working. However if I replace the function call with a 3 it works!
Coworker 2: While you were explaining all that, shellbug already thought about at least 3 reasons why that isn't working.
Me: **sighs** Of what type is the value that function is returning?
C: **stares at me for a few seconds** It's a number.
Me: Are you sure?
C: Well, it's returning 3.
Me: Please do a typeof.
It was string.8 -
Valid Until Invalid date? Well, that kinda makes sense.undefined js government javascript node.js paid success appointment reference number application form govt4
-
My boss is making me deploy a major change what hasn't had proper testing yet on the day I leave for 2 weeks. Save me someone.13
-
Someone just rang the IT Helpdesk moaning that outlook wasn't syncing his mail and it was because the brand new laptop he's just gotten is crap.
So first, the guy on the helpdesk asked to log into the users laptop to look at outlook.
He apparently isn't at his laptop and doesn't have time for anyone to log in!
Wtf lol
So he rings back 10 mins later when at his laptop but wont let the helpdesk log in as he has 'confidential' documents open.
Wtf, close them, why are you ringing us to look at your laptop if you won't let us log on?? lol
So helpdesk was like ok, just check cat cable is plugged in, check wifi is off, do a send/receive etc. and the user's like yes, they're all okay!
Helpdesk tells him to reboot his pc. He does so.
Doesn't resolve it.
Skip forward another 10 painful minutes while the helpdesk guy is pulling his hair out checking everything in the background, and all looks fine.
User then says "should i also turn off my iPhone?"
Helpdesk: 'No, outlook is just on your laptop'.
User: 'No *assured laugh* its on my phone too. I get emails there too'
Helpdesk: 'No, you use the generic 'Mail' app on your phone. Outlook is a separate app. We don't use it.'
User: 'But you're not listening, regardless of the app name, that's my problem, mail's not working on my phone'.
Helpdesk: '.....so why didn't you say so 20 minutes ago when i asked to log into ur laptop?'
User: 'Didn't think it was relevant. Laptop was fine. Assumed you'd know'.
...........
Why.
Why???
Why.
Shockingly, a phone restart fixed it. The user couldn't remember the last time he'd turned the thing off.11 -
I just LOVE posting questions in online forums and getting some amazingly helpful human being answering; "No idea, sorry."
WELL THANK YOU VERY MUCH FOR YOUR AMAZING INPUT!!!2 -
Very long story ahead!
Yesterday in the evening a friend of mine (calling him F from now on) became the target of something new to me...
Apparently one can fake his phone number through some fishy ways and call people with that number. Someone (we think we might know who it was, the why is at the end) did this yesterday to F.
Here's the whole story:
We were just talking together on a TeamSpeak Server (a program to talk to others on the internet) when suddenly another friend said: "F, why did you just call me three times in a row?" That was the first thing that was a bit suspicious. After that, F got calls from random numbers (even Afghanistan, we are German), and they said something like "Have fun with the police coming to your house". Then there was silence. 10 minutes later his phone rang and there were a ton of pizza delivery services in his town that apparently got pizza orders from him. Then there was silence, again. Suddenly someone with a hidden number called him, a woman's voice said they were the police and if F doesn't stop calling the police there will be consequences. F then told her what was going on but I think she didn't really care. She then wanted to know where F lives, but I told him not to say that, because if it is the police they can find it out by themself and if it's not, they don't need to know that.
Now, a short break: There is some fake information going around about where F lives. I can't remember when we found out but the attacker thought he would actually live there. No idea what happened at that location...
Now back to the story:
Time went by, nothing really happened. Suddenly F shouted: "There are blue lights outside! The police is here!" He muted his microphone and (the following is what he told us what happened) went down to the door (remember, he is 16) and there were two police men. They were asking about why he called the police. F explained what we knew until then, about number spoofing and stuff... They sent a more technical person to him, he understood what F was trying to explain. The police men drove away and he came back to tell us what happened. (Now we get back to what I heared myself.) The mom came in, screamed something that I couldn't understand, and F went offline. We searched who the attacker could have been. And we are pretty sure we found him. That guy connected to our Minecraft server (that's where I know F from) with his real IP, and his main account, which made it easy to search. He also got a static IP which means it doesn't change. We also got some information that in the recent days this guy was talking about VoIP spoofing and such stuff. Another friend of mine, a bit older, found some proofs and I think he will go to the police.
That's it. Thanks for reading.8 -
Is this a joke??? 😂
This is part of a survey of my university where I have to enter my id number (a six-digit number). And they really provide a +1/-1 button to increase/decrease the current number by one. WTF?!? Who would press the button up to 200.000 times just to enter the id?
That reminded me of this:
https://reddit.com/r/softwaregore/...11 -
Other services : Please type your phone number to verify that it is you. It will be only used for verification process.
Me : Sure, why not? (Happily types in my number)
Facebook : Please type your phone number to verify that it is you.
Me : Hmmm (sees help)
Facebook : It will be used for verification process and will be visible to your friends. You can always change the scope settings.
Me : (reads as...) It will be used for verification process and will be visible to your friends and will be automatically sent to the NSA for free. You can always change the scope settings when you become the CEO of Facebook.
#deletefacebook -
Besides the fact that there would be an error handler, wouldn't it store a phone number as an object other than a computable number, like a string, cuz phone number is like a handler, a reference, and not something you'd ever perform arithmetic on?6
-
when you wake up saturday noon just to see your phone having 10 missed calls from the same unrecognized number, dial back and find it to be a mad client,
complaining about some graphic issues on a site you have nothing to do with.
checking the site; there is nothing wrong so you tell him to clear his browser cache.
he gets mad shouting a silly programmer shall not tell him what to do with his computer and its the site, not his browser.
i ask him if there is the same issue with another browser or computer..
he giggles a little then turn silent..
2mins or so later, he says: i'm gonna let your boss know about this then hangs up..2 -
When you see this notif and realise that all the crap you put up with in work has been worth it... 😜2
-
If (index == 3) {
return true;
}
else {
return true;
}
Apparently the number 3 is magical or aomething.7 -
Age isn't a number.
It's a variable that stores a number.
(Usually)
Yes. I am growing older and sillier 😂. But you don't know me 😅.13 -
The Luhn algorithm implemented in cobol to validate Swedish personal identification number.
What do you think?9 -
My own implementation for calculating if a number is even.
Full Code: https://ghostbin.com/paste/fkp6j18 -
I just got a call from the UK. When 7 picked up, the lady said "Hello Edwin, how are you?". I never replied and just hung up.
I don't know how the fuck she got my number and name right? I know my name is public but my phone number is not.17 -
"While the number of rabbits grows, the rabbits will grow in number."
Teacher explaining the Fibonacci sequence.2 -
Doing an exercise in college. The lecturer provided random number generator code that continuously outputs the number 10. But that's none of my business3
-
Working on an IT Helpdesk would be so much easier if it wasn't for all the stupid people who call us!5
-
Me: *sees everyones desk setup*
Me: *tries to find all the screen in home*
Me: *gets one 5 inch phone and a 15 inch laptop*
*Cries in corner*2 -
I wont take privacy laws seriously as long as my pizza delivery service needs a fucken phone number as mandatory field.9
-
Fuck the NBN - you aussies will know!
So apparently Fixed IPs are not a thing for HFC connections unless you have a business account.
Are you fucking kidding me?
Although I didn’t pay for a fixed ip on adsl and it states it’s “dynamic”, mind you it hasn’t changed in 6 years... so it may aswell be fixed right? Right?
Now I have to go explore DDNS with Cloudflare, looks like a api call on ip change will do the trick but urgh.
Ps: I finally.... made it to the nbn - well that’s next week...
only 3 years overdue since my first “NBN ready” letter 😂2 -
For about 3x years now, we have had 3x generic work email addresses that are used as microsoft accounts for office 2016 licenses.
(The company is dragging its heels on getting office 365 so MS like to make our lives hell.)
Suddenly we can’t get office updates... and when we sign in to see why, it says that because we are apparently only 3 years old we need our parents permission to use the account or we’ll lose access by September.
Never were we forced to enter a DOB when setting the accounts up!!! So it used the account setup date instead.
It turns out that we can’t change our DOB ourselves, as we are a ‘child’ and need a parents permission.
Fine.
I access my personal account and follow the instructions to add the 3x email addresses as my children so i can change the DOB.
‘Ha ha’ i hear microsoft saying, ‘it doesn’t work that way!!’
No, In order for the parent to verify their child’s identity, they are charged 0.50c per child!
Wtf!!
Doesn’t cost a lot but come on Microsoft!!
It’s that, or submit ID, which obviously wont work for a generic support@ email address like we have.
So annoying and we don’t know what to do.
Wonder how much MS are making out of this...2 -
I wonder how many timers, clocks, hello world's and random number generators have been created.
Ever.1 -
One of my colleagues tried upgrading his Windows 7 laptop to Windows 10... he had multiple issues getting the installer to run but got past it after a couple of hours troubleshooting.
He left for lunch when it got to 81% installed, and got back an hour later to find "Something Happened" proudly displaying on-screen.
He clicked 'okay' and it just started rolling back to Windows 7 with no explanation as to what happened, or even any error codes!
Thanks Windows!
As helpful as always!5 -
If you do this, please, don't have children.
P.D. count the number of *if*srant kill me pliz thinking of my children frankencode bad code pichardo for president ng cry angular6 -
So today I opened one Android app to check smog levels in my area and this happened (NaN %). Someone who made this app smokSmog probably didn't find out that NaN can happen. I am really interested if it is because sensor has no data or is it a problem inside the app4
-
Brought a stressball into work today (not a devrant one) and it popped within 10 minutes, of course causing more stress.
-
Headhunter: "For this new role you would be the first developer in the company responsible for both the back and frontend, you will also have to test your deliverables, give support to users and report to the..."
*CLICK*
Had to hang up on dat shit 🙉3 -
Thank you for breaking our site with breaking changes in a minor version number.
FUCKING CUNTSUCKERS! -
The magic number it took me forever to remember is 768px for media includes. What's your magic number?8
-
I hate when theres simple problems I cant solve. Legit pisses me off. I cant even program a simple number sorting algorithm. 🤬9
-
You wouldn't believe how hard it is to create an anonymous e-mail address these days. Spent 30 minutes looking for a non-blacklisted provider after failing at Gmail, Yahoo etc..5
-
I will never understand why my university is requiring me to take upper level physics. I understand the need to understand electricity and circuitry but this semester has been mostly quantum and I don't see how this will apply to development.9
-
So, while I personally like targeted ads, I get that some people don't.
I just found out you can check the "profile" Google builds on you for ads, it's just your interests. But some are laughably wrong...
https://adssettings.google.com/auth...6 -
Gotta love it when your client tells his whole company that they can contact you for any question related to computers. I'm a fucking developer and no first level Microsoft Windows support.2
-
Random:
1 is the loneliest number that you'll ever see, 1++ can be as bad as one, it's the loneliest number since the number one.1 -
I actually found a real website using a Spinner UI element for inputting phone numbers!
It accepts typing the number too, though. So not completely bad. Also it only appears in the desktop version.
I guess this was just some short cut to force numerical input. Still was pretty shocked. I've only seen them in jokes/memes.
site: http://www.sparrowinn.in/1 -
Steam hone number support. I lost my phone and forgot my number, and to change the number on the steam account, you need the old number.
-
Lol, devRant good move by converting all the likes that one had received into binary system.
Rejigged old memories of converting binary to decimal at undergrad classes. 😂😂😂 -
console(config)#ip ssh port 22
InCorrect Port-Number : Port-Number Should be in the Range <1025 - 65535>
console(config)#4 -
I find it very interesting how many types of primes there are.
This kind of prime number, I think very nice!
What types of primes do you like?
https://sololearn.com/learn/12365/...6 -
Best: realizing that development could be a career and switching to it as a major
Worst: first dev job working on a 15 year old legacy visual basic project with over 3 million lines -
I have to go through roughly 700 data entries and adjust the system's data accordingly ... by hand.😑
We don't have the tools to automate this reliably, the only available tool, tells you that an error occured and what happened but not where. That would've been kinda helpful...
The problem is that the respective data object of the data entry often contains a phone number, which has to be in a standardized format ... which it is not. Every number is formatted in like 10 variations!? A dozen different separators like spaces, commas, slashes and hyphens. And it must be edited manually 😖
My solution: built a goddamn chrome extension to format the string on click. Done. Saves a few seconds each time and a lot of headache in future. Of course given the correctness of the extension.5 -
Some guy:
- one hundred thirty seven is twenty one
- twenty one is nine
- nine is four
- and four is the magical number
Me: *shouts* Lies! CAFEBABE it's the magical number11 -
Is there a way to freeze or cap the amount of ++ that's displayed for my account? I'd Like to stop at 666 without having to stop posting
⊙﹏⊙14 -
Trying to add money to a prepaid SIM card today. Their website is a mess. Plus and minus buttons were not functioning, so my only option was to add 15 euro. Checked the console, no errors. Tried triggering the buttons jQuery, no luck. Found a data value attached to the submit button set to 15. Changed to 10, clicked submit, and BOOM, it worked! You just got engineered!
After I paid, I was curious, went back and set it to -15, and tried it again. Unfortunately, they know about backend validation. -
Fuck when the app builds on everyone else's machine in the company but yours and you have no idea why. I pulled the same branch from the source control, made sure everything was right, even tried just copying it directly from a co-worker's machine but it just won't fucking work. Fuck you extjs for not letting me work for now almost 5 hours. Fuck you.2
-
So I wanted to get into Lego again. I loved it as a kid and got a bit into robotics again, so I thought why not, maybe I can collect some parts for future robot builds.
I go look for videos about models and stuff and in the end I found one I liked and though yeah why not.
Went ahead to check it's model number..
It's 42069.10 -
Hey guys, I have almost developed the backend of an app like reddit. My question is about authentication. How should I authenticate my user. Is phone number necessary to add phone otp?Because I don't want to get any legal trouble if someone posts objectionable content on the platform. Most of the apps today need phone number, I dont know why except reducing spam accounts.
Or shall I verify email by otp. But its hard to track disposable emails. I cant go for only gmail too as its banned in china. Email domains of china are weird.
Can I get into legal trouble for objectionable content posted by any evil user?
I dont want to go for auth.13 -
Fuck testcomplete, fuck having to spend 40 minutes mapping out every element just to still hang 5 minutes every time you try to check the existence of one, fuck having a software who's sole purpose is to automate testing and save time take hours upon hours to do what a person can do in seconds, and fuck me for having to use this piece of shit to test every single change made to our site.
-
typeof NaN === 'number' ... why javascript?... why Not a Number type is number??... a couple of minutes later i've discovered isNaN function. 💪💪💪
-
Brain fart.
In Java and many other languages there are basic types, like char and String. So why does Java have char and String, but not a digit type?
A number is basically a series of digits. For modular arithmetic it is very useful to be able to extract the 3 in the number 1234, it's just the 3rd digit in a number.
Base 2, base 10, base anything could be supported easily too. E.g. a base 2 digit would be:
digit d = 0b2; // or 1b2, but 2b2 would be a compilation error
A number would then be some kind of string of digits.
Any thoughts on this?9 -
Did 1 leetcode today
https://leetcode.com/problems/...
Able to run the algo on paper and wrote down the javascript, not able to pass some test cases. so need to copy the answer.
My idea is similar, but the answer is much better. The idea is similar to tracking max number, but this time we have max1, max2, max3 (max1 is largest)
init all of them to null.
looping number array, if number is in maxs, skip. If there number > max1, we update all max1-3
if number > max2, update max2-3
then number > max3, update max3
last return statement is like this: return max3 == null ? max1 : max3;