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 - "numbers++"
-
was at a hackathon, had to write an app that sent current location to emergency contact. hard coded the location of where the hackathon was taking place and one of the members phone numbers. we came second14
-
Am I the only one who hesitates to ++ a rant with 32, 64, 128, 256, etc ++'s?
I mean there's something satisfying about seeing 2^n numbers as an all-around computer nerd...13 -
"your password must contain a capital letter, two numbers, a symbol, an inspiring message, CV, a gang sign, a dragon blood"7
-
Back in the days when I started to learn c I had an assignment to print all the prime numbers between 1 to 100 but didn't know how (with if/for/while)
So I searched Google for "prime numbers from 1 to 100" and used printf to print them on the screen
I got an A+7 -
Password complexity checker for big car rental company is set to insane mode
☑️ 30 char
☑️ symbols
☑️ numbers
☑️ upper & lower
❎ still 'too weak'10 -
Line numbers should be on by default on all editors for fucks sake. Why the hell it is the other way around??11
-
My 4yo monster just randomly told me:
"Mommy! One plus two plus three plus four plus five equals fifteen!"
I'm so proud.
And really surprised 🤔
I've been teaching him basic math (adding and subtracting numbers 0-20), but haven't gone beyond two operations / three numbers.10 -
PM: We need security on signup, the password entry should contain "A capital letter, 2 numbers, a symbol, an inspiring message, a spell, a gang sign, a hieroglyph and the blood of a virgin."
ME:8 -
I noticed that I frequently notice patterns in my ++ count
I may have a slight obsession with numbers. There are too many screenshots with numbers in my gallery
This is also kind of an evolution of my avatar and my ++ count20 -
Try not to use floating point numbers in places where precision is important. Like for instance, money. Always store the base value where it makes the most sense15
-
when you open devRant and in the menu u see this pretty pretty green thingy with numbers inside..undefined theylikemelikemeitellyou noitsnotanappfornurds noimnotonethephoneallthetime youhaveyourstupidinstegram4
-
There is NOTHING more satisfying than having an algorithm suddenly click while you are in the shower.
I got a program for determining Prime Numbers using Extended Euclid Algorithm from ~2 to .28 seconds <35 -
When it comes to users, perception is everything.
The task: Choose x random contractor numbers for us to assign to y jobs.
Me: How many contractors are there?
Mgr: 25
Me: How many jobs need assignment?
Mgr: 25
Me: Does the program need to assign contractors to individual jobs?
Mgr: No, we just need the 25 contractor numbers
Me: Well in that case just use the list I gave you earlier.
Mgr: No, we can't do that. It won't be random
Me: 😑😑😑😑😑
Fix? Return a list of 25 contractor numbers in a slightly different order than the one originally submitted (5 or 6 items moved around)
The manager was pleased.3 -
Pure evil and geniusness, this is a must read for JavaScript developers and security enthusiasts !
https://hackernoon.com/im-harvestin...9 -
Trust me, I've been doing this for years.
Best way to deal with numbers in JavaScript:
let x = "1"
x += "1" // add one
x.length // get value of number, 24 -
I know it's not too impressive, but got this working using my Windows console double-buffering system and literal bitmaps for the large numbers.
I have posted about both previously if you want more details :312 -
Worst error message management.
Can't you just display the valid pattern for an username instead of showing different error message everytime.
If plain ASCII and only letters and numbers same for them, just show only letters and numbers, and
what's that hourly limit.
I just couldn't sign up after wasting time thinking of an username.6 -
Today I wrote a Neural Network in python for the first time, that could identify between strings, numbers and dates. Although the feat may look small it's a very proud moment for myself8
-
Whoever implemented the data import in Numbers on Mac needs to be lined up against a wall and shot with needles until they wish they were dead.
Why on all of gods unholy green and shitty earth would i want data i import (EVEN IN CSV FOR FUCK SAKE) to be delimited by an arbitrary text width? WHAT THE ACTUAL FUCK
WHY WHY why would I EVER want to delimit my carefully structured data by fucking text width instead of new line or comma? AAAAARRRHHH
And what fucking big brain genius made this the DEFAULT SETTING for imported text AND CSV FILES. IT STANDS FOR COMMA SEPARATED FILE YOU FUCK BOI MAYBE JUST MAYBE I WANT IT SEPARATED BY FUCKING COMMMMMMMAAAAASSSSSS9 -
Large comment block at the top of the file, commenting explicit line numbers, as in: "line 365: copy to a new image".
Only everytime the comment block grew, the line numbers got more and more off. -_-4 -
Okay, question;
Can I use ANY phone number in my game?
According to Wikipidia:
"Numbers between (555)-0100 & (555)-0199 are reserved for fictional use."
But.. I'm wanting to have a little phone pop up in my game that you can enter phone numbers into and text the corresponding player (and i hope to have more than 99 players) I would just have contact names, but I want players ti be able to dick around with other players.. Like, post their number to in-game telemarketers and such. What fo you think I should do?29 -
Just heard at the coffee machine: "Well, does that mean I'm not allowed to use Trump's quotes to seed the random numbers generator?"1
-
Translation: “The Password is to long. Please choose a Password that is not longer than 12 Characters.”
Oh, and the Password can only contain Letters and numbers 🙃14 -
A digital billboard in Odessa malfunctioned, in the fog. Convincing unknown numbers of motorists not only were they living in the Matrix, but it was being run on Windows 983
-
Password max length: 12 characters
Additional requirements: exactly 1 special character and exactly 2 numbers.8 -
why the fuck people name variables endig with numbers? why? how the hell do you even figure out what's what?
checkStatus1
checkStatus2
checkStatusMyAss10 -
At a job interview.
Them: Can you please write a function that calculates fibonacci numbers on the whiteboard please.
Me:
fib=_=>($=>$.round(($.pow((1+$.sqrt(5))/2,_)-$.pow(-2/(1+$.sqrt(5)),_))/$.sqrt(5)))(Math)18 -
Lodash is the new JQuery.
"How do I sum two numbers?"
"Uhm... dude, I think you are gonna need Lodash"4 -
Fuck my old university, they are leaking Excel files from an old IIS 7.5 server with tables of contacts, students info, emails, phone numbers... 😠
They'll pay, morbidly.6 -
Am I the only one who thinks that 6 10 12 14 are even odd numbers and 2 4 8 16 are even even numbers?7
-
The line numbers in error messages look like I’m time traveling.
.... line 1987
.... line 1883
.... line 1642
.... line 20072 -
There is a function for creating random numbers.
So with the same inputs , I must get the same output.
So it is somewhat predictable.
So it is not actually random!
Am I tight?20 -
Introducing a new javascript functionality:
Relation operators
These help you determine if object is related to other object and in which way (parent, child)
In screenshot a demonstration done on numbers1 -
Someone I work with transfered 7 credit card numbers including cvv and month/year using..... pastebin.
He was not signed in.3 -
math be like:
"Addition (often signified by the plus symbol "+") is one of the four basic operations of arithmetic; the others are subtraction, multiplication and division. The addition of two whole numbers is the total amount of those values combined. For example, in the adjacent picture, there is a combination of three apples and two apples together, making a total of five apples. This observation is equivalent to the mathematical expression "3 + 2 = 5" i.e., "3 add 2 is equal to 5".
Besides counting items, addition can also be defined on other types of numbers, such as integers, real numbers and complex numbers. This is part of arithmetic, a branch of mathematics. In algebra, another area of mathematics, addition can be performed on abstract objects such as vectors and matrices.
Addition has several important properties. It is commutative, meaning that order does not matter, and it is associative, meaning that when one adds more than two numbers, the order in which addition is performed does not matter (see Summation). Repeated addition of 1 is the same as counting; addition of 0 does not change a number. Addition also obeys predictable rules concerning related operations such as subtraction and multiplication.
Performing addition is one of the simplest numerical tasks. Addition of very small numbers is accessible to toddlers; the most basic task, 1 + 1, can be performed by infants as young as five months and even some members of other animal species. In primary education, students are taught to add numbers in the decimal system, starting with single digits and progressively tackling more difficult problems. Mechanical aids range from the ancient abacus to the modern computer, where research on the most efficient implementations of addition continues to this day."
And you think like .. easy, but then you turn the page:17 -
Tells my non-programming friend that it's way more complex to program an A.I. that simply distinguishes a tree, than to make a program that adds up for like, a billion numbers...
SHE DOESN'T BELIEVE ME.2 -
Just found a humongous bug in production. The customer relation number, which should have been unique was shared by ten customers.
So instead of 400,000 relation numbers we only had 40,000 unique numbers.
The system is live for 3 weeks now, and we just fixed it on a friday at 5:30PM
If we had found out a week later every customer would have gotten a plastic card with the wrong number, because the cards will be printed in four days...8 -
Professor asks me to do research on deep complex neural networks, as in neural networks that perform on complex numbers.
Meanwhile me: "Google, what are complex numbers?"24 -
Why don't designers use git, or at least use version numbers in their files?
Looking at around 20 files in my downloads folder called "final" and it's bloody annoying.9 -
Found an article on medium, which does make one think about the security of fetching things from npm and somebody "checking" the source on github.
“I’m harvesting credit card numbers and passwords from your site. Here’s how.” @D__Gilbertson https://hackernoon.com/im-harvestin...3 -
Password policy for a big water company site in Spain.
Translation: Between 6 and 10 characters (only letters and numbers, no spaces)
In guess they have a VARCHAR(10) password field in their db?!?2 -
Apparently USPS tracking numbers are case sensitive... I missed a delivery today so went online to check the status.
The code was RAxxxxxxxxxxxxxxxxxxxTR
x=numbers
I first typed the letters in lowercase and it said package not found...
Really???!!!!!! Don't you think all those numbers are already too long...3 -
Me: *Generates 20 character password with numbers and symbols*
Website: "Please use a stronger password"
Me: "Wot?"10 -
Fully Homomorphic Encryption (computing addition and multiplication of numbers WITHOUT decrypting) is fucking cool. That is all.
https://bit-ml.github.io/blog/post/...15 -
Today I had to write a unit test to test a method that internally used a random number generator...
Aha
Ahaha
Ahahaha
My test was literally just assertNotNull...4 -
TL;DR - Girlfriend wanted to learn coding, I might have scared her off.
Today, my girlfriend said she wants to learn coding.
Me: why?
She: well, all these data science lectures are recommending Python and R.
Me: Ok. But, are you interested in coding?
She: No, but I think I have to learn.
Me: Hmm.. coding requires a clear thought process, and we should tell the computer exactly what needs to be done.
She: I think I can do that.
Me: Okay... then tell the computer to think and give a random number between 1 to 10.
She: I will use that randint function. (She has basic knowledge in C)
Me: Nope. You write your own logic to make the computer think.
She: What do you mean?
Me: If I were you... Since it is just a single digit number.. I would capture the current time and would send the last digit of milliseconds @current time.
She: Oh yeah, that's cool. Understood! I will try...
" " "
We both work in same office.. so, we meet up for lunch
" " "
I didn't ask about it, but she started,
She: Hmm, I thought about it, but I was not able to think of any solution. May be its not my cup of tea.
I felt bad for scaring her off... :(
Anyway, what are some other simple methods to generate random numbers like OTPs. I am interested in simple logics, which you have thought of..not the Genius algorithms we have in predefined libraries.26 -
I was working on a project lately where I needed to convert an array of bits (1s and 0s) to floating numbers.
It is quite straightforward how to convert an array of bits to the simple integer (i.e. [101] = 5). But what about the numbers like `3.1415` (𝝿) or `9.109 × 10⁻³¹` (the mass of the electron in kg)?
I've explored this question a bit and came up with a diagram that explains how the float numbers are actually stored.
There is also an interactive version of this diagram available here https://trekhleb.dev/blog/2021/....
Feel free to experiment with it and play around with setting the bits on and off and see how it influences the final result.13 -
Teaching my homeschooled son about prime numbers, which of course means we need to also teach prime number determination in Python (his coding language of choice), when leads to a discussion of processing power, and a newly rented cloud server over at digital ocean, and a search of prime number search optimizations, questioning if python is the right language, more performance optimizations, crap, the metrics I added are slowing this down, so feature flags to toggle off the metrics, crap, I actually have a real job I need to get back to. Oooh, I'm up to prime numbers in two millions, and , oh, I really should run that ssh session in screen so it keeps running if I close my laptop. I could make this a service and let it run in the background. I bet there's a library for this. He's only 9. We've already talked about encryption and the need to find large prime numbers.3
-
Inspired by this post
https://devrant.com/rants/2217978/...
I challenged myself to use SQL to get the prime numbers under 100,0008 -
Today, this made me think: My bank limits the password I can choose to 16 chars, and only letters and numbers are allowed, no special chars. Meanwhile on Typeracer.com I was able to use 60 character password, including numbers, letters and special chars.9
-
Common Lisp's format function.
Because it supports some crazy convenient formatting directives, such as: writing numbers as words, writing numbers as Roman numerals, correctly writing plurals, etc
The code in the image will print:
one cat
two cats
three cats
...
seven cats3 -
Dude... have you ever heard about... enums? They were invented so that you don’t have to explain magic numbers.4
-
Finally a module at university that is interesting and has a lecturer that isn't always throwing numbers at my face 🙂1
-
I tried to compare Python and Julia by letting them calculate the first 200000000 prime numbers. The result is dumbfounding.
Python: 95.91282963752747 seconds
Julia: 3.84788227110 -
I started thinking and worrying about numbers much more than before
in the US, you write numbers like this:
1,000.00
in Germany usually like this:
1.000,00
and in programming languages like this:
1000.00
now i wonder how to type a number, whenever i have to use german software
should i use the US way, the german way or the dev way? the wrong one could possibly break it11 -
You : Let me just add up those two numbers together...
JavaScript : Here, let me concatenate those strings for ya!
¯\(◉‿◉)/¯2 -
Short one, but it really gets me every time:
PLEASE tell me that I am not the only one typing hex-numbers in all caps!!!
I literally can't stand to see them in lowercase!!!
Every code I use with hex numbers in it (primarily ASM and C) I HAVE TO convert them into uppercase!!!
Is it just me and my stupid OCD or are there other ones like me????10 -
Classic support ticket:
Me: "Uh... those numbers in your screenshot look right"
Customer: "Well it wasn't yesterday, looks like it is fixed now"
Me: "...."
-closes ticket- -
Am I the only one who found Satya Nadella picture really out of context and funny.. its like the numbers represent real estate value of his heads surface....9
-
I'll be honest, I've never understood why people say that numbers generated by a computer are pseudorandom and not random.
I know a lot of algorithms for number generation, and I implemented mine, based on time of invokation expressed in nanoseconds, taking digits, manipulating and transforming them. Then I analyzed the probability distribution and it's absolutely flat. So, if you know the Touring test, we can use a modified version of it. If I give you a sequence of random numbers generated by a computer and I give you a sequence of random numbers invented by a person, and you can't notice the difference, so the test is passed.
What's wrong on it?12 -
Pipeline time!
Ubuntu: 100% tests, 367/367 tests succeed
MacOS: 93% tests, 330/367 tests succeed
Windows: 71%, 285/367 tests succeed
Time to boot up a windows vm...
(these numbers are not accurate)5 -
When you add a new team member and have to upgrade the numbers of users for your Atlassian products...2
-
You dont allow backup codes on Indian mobile numbers? What the hell github? Sundar Pichai what you doing brother??6
-
We got a different programming teacher for today. He's shit. He can't even efficiently code a simple C# program that prints out three numbers as sorted ascendingly. WHAT THE FUCK12
-
Can someone explain me AI/ML/DL in traditional algorithmic way without AI jargons?
What I currently understand is that they convert the training data to numbers based on a complex black boxed mathematical algorithm and then when a new data comes in, the same conversion is done and a decision is taken based on where the the new number fits in within the geometry/graph plot of the old numbers from training. The numbers are then updated. Is this what they call AI? Nearest number/decision search?
Kindly try to avoid critic, I am having a difficult time understanding the already trending AI stuff. People say that the algo exists from long back but only now we have the compute power.20 -
I agreed to help a friend setup a BTC atm... Jesus I just found out the client is written in JavaScript (notoriously bad with numbers).
Im starting to wonder if Js has gone too far.5 -
"Your opinion won’t matter. It’s important that you prove your point with numbers." - Samantha LeVan5
-
"The password must have 7 or 8 characters (numbers and/or letters)”
says Movistar, the biggest ISP and telecom company in Spain ... I can't even.6 -
You know what's cool working for a company that uses Github for version control? My contributions on my profile are going through the roof and I expect will make me look like an open source hero!
-
When arcane code randomly uses octal and you thought it was just an alternate way of writing hex because WHY THE FUCK would you use octal..
( There wasn't even a point with the numbers used )3 -
Came across this company when I was looking for regex for organization-ids/organization-numbers. 😂8
-
I hate it when people sort numbers in a drop down box like so:
[1, 10, 11, 12...19, 2, 20, 21...29, 3, 30, 31...]
This is just pure infuriating...5 -
Another gem from same co-worker who is a "Senior Developer". Unnecessary function that fills a dropdown box(?!) with numbers 1-100. I really really hate this guy.
Bonus: Best Practice Example of Naming Variables...4 -
After learning about the ability to tag software in git, I've made this quick graphic to remind myself of what numbers I should increment when I'm making changes.
http://semver.org/7 -
Jumping back and revisiting some basics of game development that I've ignored for a while and decided to follow a tutorial for building a 2D minecraft clone just to see how easy it is to incorporate some of my engines capabilities...
Every single fucking function he is creating does not have arguments and instead uses hard coded numbers repeated throughout... Fucking send help7 -
Well, I'm writing my coursework and I happen to get this number of words :) i kinda like numbers like these.
7777 here i go!4 -
"we hire the best" - everyone
I don't remember much from statistics but someone's fudging the numbers1 -
Python: RandInt(0, 2) generates a random value between 0 and 2. Range(0, 2) generates a list of all numbers between 0 and 1. Boy, there's some consistent syntax.
-
Dev: We have a data quality problem. Combined with data silos, we can't trust the numbers. We need to agree on metric definitions as a company.
CTO: (Points a PM)Help him on the metrics he has defined. We'll discard any other alternate definitions inside the company.
PM: You can start with these. (Throws a bunch of metrics without their definitions. Doesn't respond to questions regarding definitions.)
After a week of generating aggregates,
PM: The numbers seem wrong.
Fuck I know the numbers will be wrong. Because you didn't give me the definitions and I'll have to deduce them myself.
Seriously guys, how do you deal with PMs who don't cooperate in the requirement analysis?8 -
Pretty sure I'm going to win the lottery with these numbers xD
Rough translation:
Here are your lottery numbers.
No Rows Founds4 -
No offense, but if you're expecting 0 and not -80, then you know you're using floats.... Are there really devs that don't know what floating point round off is?9
-
Boss: The numbers on the report don't look right. Can you check?
Me: <checks> Yep! I verified the numbers against all external data sources and they match perfectly.
Boss: OK well we need to take a deeper look because they don't look right.
Me: ... I don't follow?
Boss: The numbers... don't... feel right.3 -
I'm currently volunteering as a student assistant at my school, and today I've gotten the same question 20x. What question do you ask: "Why doesn't ^ return the power of the 2 numbers?"
It turns out that last week they've had a Math class from a new teacher (no programming experience) who said that if you want the power of 2 numbers you have to use the ^ operator...
If you don't know how to program, please don't teach it!5 -
I wrote a little script that generates random numbers until it reaches 420, my luckiest go was 17. What was yours?
Script: https://sharecodesnippet.com/40622 -
Copied and pasted code that contained line numbers from the web. Why does that frustrate me so much!?2
-
Here's a task for the bored of you ;)
"Write a python script that prints out all numbers y from one to 10**30(including 10**30) that have two of these traits: [n**5=y, m**3=y, x**2=y] but not the other one; n and m are whole numbers."
Correct answer was about 103000
I can't seem to find the solution... Here's my (failed) try:10 -
I hate being in program purgatory. You don't know whether your program froze, or the CPU is hustling to crunch out those numbers. To kill or not to kill. That is the question. Q.Q2
-
Though I demonstrated a hard upperbound on the D(10) dedekind in the link here (https://devrant.com/rants/8414096/...), a value of 1.067*(10^83), which agrees with and puts a bound on this guy's estimate (https://johndcook.com/blog/2023/...) of 3.253*10^82, I've done a little more work.
It's kind of convoluted, and involves sequences related to the following page (https://oeis.org/search/...) though I won't go into detail simply because the explaination is exhausting.
Despite the large upperbound, the dedekinds have some weirdness to them, and their growth is non-intuitive. After working through my results, I actually think D(10) will turn out to be much lower than both cook's estimate and my former upperbound, that it'll specifically be found among the values of..
1.239*(10^43)
2.8507*(10^46)
2.1106*(10^50)
If this turns out to be correct (some time before the year 2100, lol), I'll explain how I came to the conclusion then.8 -
Working with old codebase...
multiplyNumbers(2,5)
//adds the numbers together
What the fuck??! 4th grade math-terms??! This is real, btw4 -
I've created a little functional script you can use for formatting US phone numbers. You can check it out here: https://codepen.io/datwood/full/....
I'm sure there are improvements I haven't thought of so feel free to mention any you think of.
I've built it so that it can work any input field set to type=tel that has a placeholder.10 -
I see a lot of talk about complex numbers, and yet
for all they are worth, I have not once been
able to find an explaination on how to calculate
them by hand, namely the real component.
For example
(-5)**0.5
(1.3691967456605067e-16+2.23606797749979j)
2.23606 is obviously just the square root of 5, but where the hell did 1.369 come from?
Apparently no one fucking knows, and no site I've found gives a simple explanation for someone new to math in general.
"use a calculator", "hit a button",
How about no.9 -
"Can you look at this bug when inputting negative numbers?"
I check the app and think, "negative numbers don't make sense here".
Sure enough there is validation in place to prevent negative numbers being typed.
Yet they still managed...
By pasting in negative numbers, after being unable to type them, thinking "fuck it I'll paste it instead", then complaining to us because they abused our app.
Seriously.
Fuck.
Off.2 -
Got an exam next friday, 1/3 of the points are given by calculating decimal numbers to binary numbers1
-
Time to change the copyright numbers on the bottom of my website, i guess i should have automated that a while back...
Happy new year anyway!6 -
While I was exploring multiplication tables I stumbled on something cool.
Take any power of 2 on the multiplication chart.
Now look at the number in the bottom left adjacent box.
The difference of these two numbers will always be a Mersenne number.
Go ahead. Starting on the 2's column of a multiplication table, look in the bottom left of each power of 2 and get the difference.
2-2 = 0
4-3= 1
8-5 = 3
16-9=7
32-17=15
etc.
While the online journal of integer sequences lists a lot of forumlas, I just wrote what came to mind (I'm sure its already known):
((2**i)-(((2**i)/2)+1))
The interesting thing about this is it generates not only the Mersenne numbers, but if you run i *backwards* it generates *additional* numbers.
So its a superset of mersenne numbers.
at i = 0 we get -0.5
i=-1 -> -0.75
i=-2 -> -0.875
i=-3 -> -0.9375
i=-4 -> -0.96875
And while this sequence is *not* mersenne numbers, mersenne numbers *are* in this set.
Just a curious discovery is all.10 -
random girl: words can't describe how ugly you look
me: words can't describe how beautiful you look
random girl: blushes :)
me: but numbers can...
me: 2/103 -
Wow! This is a truly terrifying, yet fictional scenario. Malware by npm: https://hackernoon.com/im-harvestin...6
-
wk48 best question:
My go to question for dev interviews is how do you find all prime numbers from 2 to x because there's so much room for optimisation.
Start with the basics, loop over every number and check if it's divisible by any number less than it, then record the prime numbers and check only those, then move to something like the sieve of eratosthenes then reduce the problem space and only iterate through 2 to sqrt(x)5 -
Following on from my previous SQL script to find prime numbers
https://devrant.com/rants/2218452/...
I wondered whether there was a way to improve it by only checking for prime factors. It feels really dirty to use a WHILE loop in SQL, but I couldn't think of another way to incrementally use the already found prime numbers when checking for prime factors.
It's fast though, 2 mins 15 seconds for primes under 1,000,000 - previous query took over an hour and a half.5 -
The marketing department must be run by wild butthurt fucking monkeys... Bloody idiots do you even know the word " controll"?! It's a simple fucking thing instead of wasting fucking 2,5hrs of my time which could been put on.. oh I donno more productive work?!?
(ノಠ益ಠ)ノ彡┻━┻
Fuck sake.. 2 numbers... 2 numbers on almost every fucking article was wrong and you couldn't even check these in the fucking program BEFORE asking me to fix the images for these and upload? No I had to upload everything only to later noticed that you cunts gave the wrong numbers .... Butthurt wienerschnitzel 🖕3 -
dear perl devs,
WTF is wrong with you.
some of your version numbers look like someone uses floats for money without knowing the dangers of it.
Some Examples:
2.000006
2.0030044 -
Just finished going through a 45k++ lines of json objects to find those stupid objects with wrong formate !!
😣😭 and they are all numbers !!!!4 -
JSON.stringify()
It has the power to solve countless numbers of integration issues and has done what nobody else could ... tell me what the fuck the API returns -
Can anyone see where this repeats predictably?
Decimal('507.724375') / Decimal('173.2336')
I set the precision to 500+ digits and I'm not seeing any repetitions at a glance.
If there isn't, this is my new favorite irrational number.30 -
Heya @Fast-Nop
Here's to your many sevens (7).
Beautiful assembly, perfect with that leading three (3).
Cheers mate5 -
Hey fellas, especially you security nerds.
I've had asymmetric encryption explained to me a number of times but I can't get a handle on it because no example actually talks in human terms. They always say "two enormous prime numbers", which I understand, but I can't conceptualize.
Can someone walk me through an entire process, showing your math & work, using some very small, single- or double-digit primes? Such as if I were to encrypt the text "hello world" using prime numbers like 3, 5, and 710 -
Love when i go to computer stores, i simply make a little bash code which displays numbers matrix-style and all the people just stare amazed.
-
I gave up trying to use generic numbers in rust and just converted everything to f64
now I can do math
stupid system
*moves into a new language, converts language to JavaScript*2 -
How did they manage to come up with such a bug? The only things there should be numbers or an arrow, not meaningless Hebrew letters.1
-
Writing 20k lines of code and finally during compilation more numbers of errors....Life ends here....
-
boo-yaa!!! It's the 4th day in a row!
I accidentally glance at the clock and it says 1521.
Oracle must be speaking to me. -
This morning I was exploring dedekind numbers and decided to take it a little further.
Wrote a bunch of code and came up with an upperbound estimator for the dedekinds.
It's in python, so forgive me for that.
The bound starts low (x1.95) for D(4) and grows steadily from there, but from what I see it remains an upperbound throughout.
Leading me to an upperbound on D(10) of:
106703049056023475437882601027988757820103040109525947138938025501994616738352763576.33010981
Basics of the code are in the pastebin link below. I also imported the decimal module and set 'd = Decimal', and then did 'getcontext().prec=256' so python wouldn't covert any variable values into exponents due to overflow.
https://pastebin.com/2gjeebRu
The upperbound on D(9) is just a little shy of D(9)*10,000
which isn't bad all things considered.4 -
I don't know. I just can't get excited about numbers.
I'm a builder. I'm excited about things working from start to finish.
Id be excited about numbers if it was from 0 users to 100 users.
Not 10000 to 10500.
That's not an engineers job, is it?8 -
My first dev project was written on Visual Basic 5. I think I wrote a keygen to generate serial numbers based on hardware ID.
-
I'm currently working on a new (for me) legacy database that store percentile numbers in a varchar column . Seriously who the fuck had the that brilliant idea!!!4
-
Revision numbers don't matter at all?
Then you can't figure out why your build is broken?
Now after 10 hours I have until 8 am to fix a months worth of other people's mistakes. How awesome!2 -
Spent an entire day clearing the backlog of the previous sprints in JIRA. Now i am seeing jira numbers everywhere :/2
-
wait,
if there are 3.4 Billions FaceBook fake users, that means than there are also at least 3.4 Billions fake email accounts around. Jeez.
And the spam traffic estimates are at 260Billions email per day or 260B/3.4B=76 emails sent by each fake email accounts per day. Much less as probably fake email accounts are more.
So, only 76 spam emails sent per account per day. I think there is still room for a big improvement4 -
When a banks mobile app, shows the exact number of characters required to login.
Not a blank space, or similar.
Even if the allowed password is within a range, it still shows the exact number of characters.
Correct me if i am wrong but this shouldn't be like this? -
Wanted to test out random number generation in different distributions. So did it using HTML/JS using google charts APIs, just to find out after sometime that R does what i did by default..2
-
This internal api is killing me. Why the fuck do people return an array of numbers inside a field that has a generic name such as `icons` to convey information such as "hasOptionFooIncluded". Because of course then icons contains '6'. Yet if both 6 and 4 are in there, it means something else. Needless to say there is no documentation whatsoever what each number or group of numbers actually means so I have to ask around to find out what numbers means what in order to wrap that call away into something maintainable. Because the API is deprecated and we don't want to fix shit in there. We just create other shit depending on this crappile. :/
Stop using magic numbers. Just stawp it! -
Numbers (from mac) sucks big fucking time!
Its like assuming your retarded, I cant save a file .whatever without it trying to insert the fucking numbers extension...
While buying excel what do you recommend?1 -
So to test my server code that do calculations on large numbers that get above 10 digits 90% of the time.
The end users found a custom web page with basic javascript doing the calculations.
Now I get to explain why that doesn't work. -
I did some number crunching for a report...had someone ask me to "peanut butter spread" the numbers out. What the actual fuck...1
-
Write a function that adds two numbers together. However, do not use + or any arithmetic operations to do so.12
-
Attending two hours town hall meeting where 200 to 300 employees listen never ending show off of numbers and technical achievements he/she did2
-
!dev
I got two phone numbers, first is prepaid registered for me, second is on some shitty plan registered on my company.
Today I am trying to merge those two numbers to be company numbers and first one should be main number.
Have been in telco company office twice already.
2,5 hours and still no success.
Now I got back home and waiting for phone call from consultant because some software is not working and he can’t do anything right now.
I got used to fact that the bigger company the more shitty software it have and nothing is working as expected but it is happening to me every time I try to improve my life and make it simpler.
Fax was more reliable then todays software.
I miss paper and analog way of doing business.2 -
The Windows 10 Mobile division had just gotten together for after work beer, when they heard the latest sales numbers.1
-
Public link to data of students, teachers, everyone. Address, mobile numbers, emails, parents numbers and more.
-
Staying productive?
Just pump me full of those small dopamine rushes I get when the funny numbers goes up~
Aka YT view, GitHub achivements | stars | 👍, twitter ❤, .. -
A long time ago, I used AIDE (Android IDE) to write a simple application to output random numbers for the lottery. I test it out and head to the gas station. I pulled out my phone to generate numbers, and received something like 36892789, 3, 78921593, 5.
After hours of staring at my code, I transferred and compiled with Eclipse and the problem disappeared.4 -
How many of you want to live in a world where there's no a standard way to convert numbers to strings among systems?1
-
Never seen this one before...
Just came across a website that asks you an addition math problem to prevent bots. Except it's always adding two single digit numbers. And they are always 2 and 9...1 -
A few weeks ago a friend was teaching me about 16bit numbers because we were making one in C# with a function, but he said we need two numbers for the function to work.(so as an example were gonna use 0, 2)
Now I didn’t understand how two numbers were supposed to make one. And my friend could not explain it to me. So I researched the topic all day and the epiphany happened I realized I was looking at it all wrong. I shouldn’t be looking at it as 2 decimal numbers but 2 binary values or two binary arrays forming one byte array with a length of 16.7 -
When I said: "version numbers are cheap", I did not expect you to append new digits and identifiers to the existing versioning scheme.
-
Java jdk 10 just came out, but I only just started moving my projects over to build under jdk 9.0.4.
Oh Java 11 is out in beta as well?
Version numbers mean nothing to me anymore.2 -
When I close my eyes I see identical objects in array, forming random numbers.
Last time it was a 7.
Anyways, gotta sleep.1 -
Thinking of #password requirements: MumbaiNawazuddinSiddiqui123 is a valid password no? Has a capital, special character and numbers?7
-
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 -
I'm working with an API where, for some reason, half of the numbers are returned as numbers and half as strings. I'm baffled more than David composing hallelujah.5
-
Why is assigning something to a variable then returning it a code smell?
Simple example:
double makeNumber(String[] numbers)
{
StringBuilder sb = new StringBuilder();
for (String n : numbers)
sb.append(Double.parse(number);
double result = Double.parse(sb.toString());
return result;
}
Why is this bad?
double result = Double.parse(sb.toString());
imagine is a more complicated assignment or calls another function that does some other weird stuff?
If i'm going to debug an issue, i m going to have to unwrap it anyway. So what's the cost of leaving it there?23 -
Jesus fuck generic number adding in rust is pissing me off
why did I decide to do this
I literally don't have to
let's just add 12 traits and then find out it doesn't know how to divide by usize. well how the hell am I supposed to convert it then. there's no trait for "f64 as f32" so now my shit looks like spaghetti cuz of that, now this...
so let's see I could call into() on usize to get it to be unknown T number... but there's no way for it to know what to convert to and I can't determine if there's any way for me to tell it that
THESE STRAITJACKETS
I might just need a padded room at this rate
*goes to sleep* later
.... required for usize to implement Into<T> wat
😩
I suspect that's gonna be another dead end
GOod ErrOrS16 -
Floating point numbers! 😖
Writing geometric algorithms for CNC machining... you'll find those 10th decimal place inconsistencies real quick!1 -
The script I inherited uses REGEX to verify certain table fields are properly formatted as numbers... even though the fields in question are NUMBER-type fields!! :-/
-
Break it down into stages- elaborating on requirements, frontend/backend work, testing, etc. Then pull the numbers out of my arse.
-
On a white board discussing with the team, rubbed list leaving numbers so that I won't have to list them again.1
-
!rant
Just posted some swift code to a server, in a few hours I should have all the prime numbers from 1 to a billion!4 -
We have an unit test that tests the average of a sequence of numbers generated randomly using a gaussian distribution. Of course it fails from time to time, it's random! Failing to fail, would mean that the generator is not generating random numbers, therefore failure means success, but success does not mean failure.
Wait, why did we add this test in the first place?rant gaussian distribution statistics random of course it fails it's random bitches normal fail equals success unit test -
Recruiters often tell you to use numbers to highlight your successes. For example, "I did Programming Task ABC and increased sales of widgets by 1,000%". I'm curious how many of us actually have had access to and/or kept track of those kinds of success metrics in our prior jobs. I find myself guessing and even just making up numbers that nobody's going to have even the slightest possibility of verifying.6
-
Am I the only one to this date who still doesn't feel comfortable using the NumPad? I always have the NumLock key turned off and people who borrow my computer get annoyed by that. I've always typed numbers using the row above the letters. Typing numbers on the NumPad is very slow and unnatural to me. Is someone else out there feeling the same?4
-
My laptop have been in warranty service for nearly a month, I have an FPGA project, a mobile app to make using ionic framework, to make a DSP compare two images and recently someone wants me to make a him a website.
And I actually have just very basic knowledge about these stuff, I've only made an desktop app once, and it just takes numbers gives back numbers.
I never wanted this, leave on my own, stop overrating my searching skills !
And all of that by the end of this semester. Fuck you people. -
An article on generating random sequences with few gaps:
https://quantamagazine.org/oxford-m...
I wonder what the entropy of such sequences are, and if these sequences would be suitable for the basis of generating secure random numbers, or at least useful as a PRNG? -
The only thing cooler than magic numbers are magic no-go numbers.
Or does anyone have a reason for considering 2 or 4 spaces indent but not 3?3 -
Okay so I'm new to C++ and my competition is either tomorrow or Thursday. And before I go into the comp I need a good random number generator but the problem is I can't get a good one . And when I run mine I either get the same number a few times in a row then when it changes it just increments a few until it hits 99 then restarts. And I only want it to generate different numbers everytime with a 1/99 chance to get the same number.2
-
In android 7.1, I've seen a lot of conflicting reports about crypto security.
If I do something like the following in the default android 7.1 browser...
var array = new Uint32Array(n);
window.crypto.getRandomValues(array);
How secure would the resulting numbers be overall? I'm asking because I've seen a lot of articles talking about it, but they never specifically mention the default 7.1 android *browser* and what or how it obtains secure random numbers. They only ever talk about the api, sdk, and developers working in java.4 -
I finally used jQuery in Angular 5 to animate numbers. I am also using angular animations Hostlistner too many things to manipulate Dom. I am wondering about side effects. For now everything is cool?!!!!!!3
-
Anyone ever tried to fuck around with dynamic programming in machine learning?
My question is more towards rounding numbers.
Any papers on the impact of learning rate or precision that you guys know of? -
I do not like it but I am forced to ask a tech question because my friend google has no idea how to solve this problem...
So, I have a pdf with a bunch of points with a number inside. I have to produce a list of numbers with X and Y coordinate of the point.
What I have tried: convert pdf to HTML and extract the position of divs / completely failed because a lot of points were distorted, mixed up, contained more numbers, etc, it's just not precise enough after conversion.11 -
For the love of god developers/programmers, don’t put version numbers to your softwares file paths!
It’s the worst when you have to configure permissions and rules, then the folder path changes in every update!2 -
Want to see hair falling of a developer's head?
Just watch him trying to get some millions of fast and good random numbers.6 -
The 11th commandment. Don't make websites where you have to email or call to stop a monthly subscription. It should be easy to do. This is one reason people hate trial versions that ask for cc numbers.2
-
Four years have I been a JS developer, only today I realized that negative numbers are truthy :facepalm:2
-
How hard is it for people to understand that rounding individual decimal numbers and adding them is not equal to adding them all and then rounding off.
FFS1 -
So, is it just me or are the numbers of newbie developers who can actually read error messages dwindling?
-
Partially week 69: I wish I could stop getting distracted by toy problems. Mostly the collatz conjecture. Or counting in prime numbers.
-
In my program I had to calculate something and had to write numbers raised to some powers.
Every time I run my code it was showing a astounding huge numbers that were far from being correct. They were astronomical.
It literally took me a week to figure out that the symbol for exponentiation (e) is different from double Astricks (**). 😅😅😅3 -
Stupid sales department adding features to the project just to justify numbers of the quotation when the client has no need for it..
-
My first function which I wrote 3 years ago..
Adding two numbers in JavaScript.
add = function ( a, b ) {
Return a + b;
}
What's yours ?22 -
It's always fun to come up with your own system for interpreting negative numbers from binary because the system you're using was never designed.
-
I'm at uni learning about floating point numbers and IEEE 754 and its so different to what I learnt at A-Level and it seems that using twos compliment floating point numbers is more efficient than storing numbers than IEEE 754 as IEEE 754 seems to use sign and magnitude. So why do we use IEEE 754?1
-
What is your team’s practice when it comes to putting ticket numbers in your commits and branch names? Is it optional for your branch naming? In your commit message, do you put it at the beginning or end of a commit message?3
-
How many of us consider assitance like siri, google assistance as a real project? I found really few in numbers4
-
They say cloud is gonna rise up up above the sky but there's only the numbers of unemployed AWS cloudiers that souring high in sight
-
I think i came up with the ultimate captcha. A gif that displays four numbers, one by one in current position. There's always one number displayed. I do not think that AI can recognize it without some nasty adjustments while it's very clear for humans. A while ago I had to do a captcha with six questions and failed it a few times. Wtf.
The site I'm working on will have this captcha soon. I make a microservice in C that will create a captcha equal to the last url parameter, the four digit number. By giving the number yourself as parameter you know what to validate with later at post. I probably include the answer hashed with some salt in a hidden field to compare answer with so it works if you have two tabs open20 -
A quick question, is the numbers in the degree matters for working as dev? Student here. Big thanks ✌️7
-
Just found out this cool analysis on :
Latency Numbers Every Programmer Should Know - https://gist.github.com/jboner/...
Fascinating!!3 -
I have a bunch of numbers and I need to draw a chart. How to do it....hey, I have Excel! So, I'll just select the lines from text file....and copy/paste that to excel...Clickety-click through the import wizard and viola!
"I imported the numbers and set them to dates!"
No. Just numbers. But ok, I'll select to format to "general".
"Ok! You numbers are now 0.33343, 0.939393 etc.!"
No no, I just want the original numbers. Let's delete everything and import again. I'll pre-set the cells to "text" just to be sure...
"Ok! I imported your dates and set the cell format to shit!"
WTF you dumb fuck. Just paste the numbers like I wanted! They are *not* dates...Click-click-click....
"Dates added and the format is your local format that you never set and never wanted!"
<tearing hair from my head> God damn holy fuck.
And every time you go through the same import "wizard" tabs. More like import retard. -
sat through a 2 hour lecture/live code on streams, still don't understand the structure well enough to modify an example to check for 4 sequential numbers in a HashSet.
-
1. Went to try chat.openai.com/chat
2. "Write a java program that uses a singleon pattern to calculate the sum of the first 100 prime numbers"
3. ???? HOW DOES IT DO THAT9 -
https://brilliant.org/wiki/...
Is a fascinating breakdown for anyone interested in complex numbers but intimidated by complex *math*.
They really go over it step by step. Take a look -
Find an error on line 69... start to giggle....
In dutch a "line" as in "error on line .." can be translated to "regel"
And in dutch "regel" can have two meanings.
Line and Rule.
Error on line 34.
Reading out loud in Dutch: "Error op regel 34"
translated to:
Error on rule 34. Launching out loud and thinking of the possibility.
Will i ever mature...1 -
@ all Android Devs:
anyone experiencing crappy App sales on Google Play but top numbers on Amazon Appstore?
Wondering if Google is keeping me buried as I don't pay for advertising... Bastards -
create two function one for finding factorial of first 6 prime numbers and another for storing prime numbers and their factorial in two separate arrays. call both the function inside the main function.write a c++ code for solving this problem and displaying the all desired output.4
-
Ok why tf are some apps that just generate random number need in app purchase? Bitch please?
You know what, I’m gonna write one, and I’m gonna make it free, tell me what features are needed, what I have in mind is: random number between, random N numbers between, random N numbers between without repetition, random from list with and without repetition, what else? Let me know.6 -
The day I realized I had botched some Member numbers for our client and had to spend my next three days fixing those.
-
I’m harvesting credit card numbers and passwords from your site. Here’s how.
The state of npm is just 😢
https://hackernoon.com/im-harvestin...1 -
Let's say I take a matrix of high entropy random numbers (call it matrix J), and encode a problem into those numbers (represented as some integers which in turn represent some operations and data).
And then I generate *another* high entropy random number matrix (call it matrix K). As I do this I measure the Pearson's correlation coefficient between J (before encoding the problem into it, call Jb), and K, and the correlation between J (after encoding, let's call it Ja) and K.
I stop at some predetermined satisfactory correlation level, let's say > 0.5 or < -0.5
I do this till Ja is highly correlated with some sample of K, and Jb's correlation with K is close to 0.
Would the random numbers in K then represent, in some way, the data/problem encoded in Ja? Or is it merely a correlation?
Keep in mind K has no direct connection to J, Ja, or Jb, we're only looking for a matrix of high entropy random numbers that indicated a correlation to J and its data.
I say "high entropy", it would be trivial to generate random numbers with a PRNG that are highly correlated simply by virtue of the algorithm that generated them.12 -
How do you check if your input string does not have numbers it? If not then say enter a number? JavaScript please22
-
Did you hear about the mathematician who’s afraid of negative numbers?
He’ll stop at nothing to avoid them. -
"combination of upper and lower case letters, numbers and symbols"
Someone please change the devrant terms to encourage more secure passwords...
(Yes, I actually read* the terms and conditions)
* half of7 -
Why does the TSQL BETWEEN operator include the first and last value in the results when filtering on numbers, but only includes the first value and not the last for dates?3
-
Life is a cycle, you struggle with multiplying numbers then that same feeling comes back doing Assembly.1
-
I just want the system be better and help my colleague...
Me: could you ask (the dev who is in charge of the project) to add a code so any phone numbers included in this field will be removed automatically?
The senior: No. That guy replied me it will take him 2 hours and these 2 hours cost $xxx (based on the guy’s hourly salary). It’s much cheaper to let the other staff to remove the numbers manually.
Me: ....
Seriously this s**t would take you 2 hours?! -
Scrolling numbers in Spotify on a iPad while i was listening on the other side of the office while rebooting phone etc.
Best i can do is sticking a stickynote under a mouse. Fun for 0,5 sec -
Good day,
Please I need someone to help me with this:
I want help on a python code that'll display a 8x7 matrix such that numbers 1-9 appear without repetition in each row and column and the numbers appear at least six times in the table3 -
Is there any way to sort an array in such a way that picking 3 numbers a,b,c randomly from the array and performing a cyclic right shift then place them back in the array??10
-
So anyone discover any good books written past 1990 which don't deal in hidden themes of your bs ? No elaborate color or number descriptions or dumbasses modifying jokes to two digit numbers that don't make sense ?
-
When is devrant going to fix the notification counter? I've never seen it work properly. The numbers spins through several seemingly random numbers and end on a wrong number 😕1
-
Most painful code!!
Well , it was to write a code in 'C' which will print first N times prime numbers. As a noob , it was really very painful.5 -
TrumpScript is one funny programming language that was formulated by four Rice University undergraduates. TrumpScript allows developers to operate with numbers that are bigger than one million. If programmers user numbers less than a million then it will generate a quote from Donald Trump as an error message: ”I’m really rich, Part of the beauty of me is I’m very rich.”1
-
So I was thinking of using Hexatrigesimal strings (base 36 numbers) for indexing like in a database. It could be very short indexes for long numbers, and still be completely ordered. However it doesn't seem to be supported a lot in programming languages. Does anyone know why it could be a bad idea?10