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 - "1024"
-
Dev1: I started work at a new company.
Dev2: Cool, how is it?
Dev1: Well its ok... but they are a bit weird.
Dev2: How weird.
Dev1: Very weird, they round my pay to 1000 insted of 1024.
Dev2: Yeah weird.6 -
How about some good news for a change?
We have new baby! 😊 He's our second.
And he was born on 10/24!
He's going to be my little devvy.
😊😊😊45 -
So I cracked prime factorization. For real.
I can factor a 1024 bit product in 11hours on an i3.
No GPU acceleration, no massive memory overhead. Probably a lot faster with parallel computation on a better cpu, or even on a gpu.
4096 bits in 97-98 hours.
Verifiable. Not shitting you. My hearts beating out of my fucking chest. Maybe it was an act of god, I don't know, but it works.
What should I do with it?241 -
I'm designing a new programming language, so far it looks like this:
!hodor hodor
if (hodor==hodor)
hodor
hodor (hodor)
hodor
hodor hodor //hodor, hodor
hodor
hodor
hodor hodor hodor
hodor
hodor 1024
hodor 42
while (hodor<hodor)
hodor.hodor
if (hododor==hodor)
hodor hodor
hodor
There's a compile error somewhere, but I can't find it.21 -
I don't get 50 shades of grey.
They should have called it: "256 shades of gray unless you're on 10bit HDR, then its 1024 shades of grey"
That would have made much more sense9 -
Found this in a API from a big company. NDA prevent me from telling the name.
if(index < 1024 && index > 1024)12 -
A normal person believes a kilobyte is 1000 bytes, a coder believes a kilometer is 1024 meters.
-Unknown3 -
The amount of people who don't know the difference between kilobyte and kibibyte is too damn high. So much confusion.
TL;DR : Most people use Kilobyte ( KB ) and Kibibyte ( KiB ) wrong and i am angry about it.
When i first got involved with software as a teenager, i always wondered why we convert kilo to mega with multiplying by 1024, when we do it with multiplying by 1000 basically everywhere else. Our physics teacher called this SI unit system and told us that this is an internationally accepted statement. So why is there a different rule ? Did i miss out something ? Regrettably I didn't ask her about this.
I just didn't get fully as a teenager. Now, as I am a developer now, i understand that dealing with power or ten is troublesome. Due to ease of work, we lazily mess with SI system and use it wrongly. Isn't it the time we end this abomination ?
2 years ago i talked to a friend about this, he said that i shouldn't bother.
I talked to a teacher, he said "you are right but using different brand of unit system can be overkill, since there is not much difference anyways." I said okay and left.
1 mega = 1000 kilo
1 giga = 1000 mega etc
also,
MB = Megabyte ( 1000 Kilobyte )
KB = Kilobyte ( 1000 Byte )
MiB = Mebibyte ( 1024 Kibibyte )
KiB = Kibibyte ( 1024 Byte )
I am writing this because today i saw someone do it wrong on the internet, all of these came into mind. I wonder your approach about this, for research purposes.
Call me dick all you want, but i am the guy who always corrects uncertainty, no matter what. Things should be in place, correctly. No i don't have OCD. If you say something like "I have 1 MB of executable file, which means i have 1024 KB of it", i will find you, and i will correct you.37 -
1024 points of soldering !!
Wasn't expecting that when I began, but it's quite interesting and the result will look amazing ^^
I'm making a LED matrix from 0, controlled by an Arduino, it will look really good when it's finished, I plan to use it to display notifications, clock, sound spectrum etc...
What do you think of it ? 😇15 -
I find it funny how so many people still do not know that 1 kilobyte is just 1000 bytes and not 1024 bytes!
That's a KibiByte!
Guys, kilo means 10^3, always! Always!23 -
So 10 months ago i moved from Cambridge (UK) to Guildford (UK), due to moving this distance i started working from home and going into the office once a week.
Now after 10 months i have finally got my home office how i first imagined it. Everything runs from my laptop which is located on the shelving unit away from my desk. Everything plugs into it via 1 USB lead.
Setup:
27" 2560 x 1440 monitor flanked by two 1280 x 1024 monitors.
Asus Laptop (i5-6300HQ, 12GB ram, 512GB SSD + 1TB HDD)
Home PC (i5-7600, 8GB ram, GTX 770)
Accessories:
StarTech USB hub - This allows me to plug my three monitors, keyboards, mouse and everything else into my laptop.
KVM switch - Allows me to swap between my Work PC and Home PC with a click of a button14 -
Functional Programming. Because Moores Law has moved from making processors faster to multiplying cores, and we may eventually have to code on machines that have 1024 cores or more. Mutable state will cause all kinds of hell in those scenarios. We already have problems with it when we have like 2-3 different threads.4
-
It has come to my attention that, I @C0D4 have become an addict.
This is something I thought I could fight. Resist the urge to become attached to my substance of choice in the early days and not have it compromise my every day life.
But how wrong I was, my addiction grew over time and my ability to resist the urge to peek at a ++ spam wall, or get back into a discussion at the mention of my name, read more of the great stories that remind us all, we are not alone and many of us are on a similar journey.
So, devRant my one true drug of choice, Today is a significant milestone on this path of corruption, my 1024th (1kib) day!
Here's to another 1024 days of snorting rant lines 🙌 🤤😎11 -
Somebody ranted about VIM being ported to web assembly. I present to you: Windows 2000. In your browser.
https://bellard.org/jslinux/...7 -
Some say DC is the best, Some say Marvel is the best,
But deep down we all know, 1GB is 1024 MB not 1000MB5 -
How some of our country's government websites handle responsive web design:
"Best viewed in Internet Explorer 5.x or higher in 1024 x 768 resolution"5 -
OCR (The exam board for my course) are fucking thick in the head when it comes to anything computing.
- I get a mark or two for saying open source software is worse than thier propritary counterparts
- ALL open source software forks must also be make open source. They spend so much time going over the legal stuff BUT HAVE NEVER HEARD OF OPEN SOURCE LICENCING!
- One exam paper had a not gate picture with 2 inputs...
- I have to differentiate between portable and handheld! YOU MEAN HANDHELD DEVICES ARE NOT PORTABLE!?!!?!?
- In level 2 education, OCR say 1 MB = 1024 KB - In level 3, they say 1 MB = 1000 KB, and 1 MiB = 1024 KiB, and expect you to differentiate. Why do you expect the wrong answer in level 2!?
- INFORMATION FORMATS AND STYLES ARE COMPLETELY DIFFERENT THINGS! If you look up synonyms for "style", "form" is there, and if you look up synonyms for "format", "style" is there.
- When asked for storage devices, I have to say "smartphone", "tablet", "desktop PC" - I mean yeah they store data but when you ask me for storage devices I will say "hard disk drive", "solid state drive", "SD card", etc. >.>
I could probably go on an on about this...
I sure do love being asked to copy-paste existing HTML/JS/CSS and being asked to just tweak it here and there, and then wait for other people's incompetence in copy-pasting... I sure do love being stuck with this sort of "education" ._.4 -
I’ve been programming with other languages than Python for so long that when I finally had to pick up Python to help teach my friend some python I felt like I was rediscovering a past life.
With Python I feel like King Fucking Arthur with the Holy Blade Excalibur, armored up and ready for fucking war.
When I’m writing a script I feel like I’m parrying and piercing my blade straight through that fuckers chest and slam them into the fucking ground. And leave their bleeding out cold dying body on the fucking ground with no hope in their eyes.
Although when an indentation error occurs I feel like I just fucking tripped over a fucking pebble and apparently stairs were nearby and I bash my head on all 1024 steps, get to the bottom to just to get some fucking Java Chad punt my fucking head like a fucking football screaming random reasons to not use python.7 -
Could you imagine a guy who takes A4 paper with encrypted text using modern algorithms and decrypts it in 20 minutes which pen and his mind?4
-
Welp, at a dinner with @ewpratten and @n3xus . Just told them I was literally one vote away from 1024 and they both down voted me under 1000 and then above 10246
-
I had a test when i was in 9th grade for computer( not computer programming )
Q) how many KB are i an MB ?
1) 500 2) 1000 3) 2000 4) none of the above
Since its 1024 i thought its none of the above like a sane person but my teacher be like " there are 1000 KB in 1 MB." I tried to explain that i think thats wrong but well gg.20 -
A developer asks his friend for a loan: 'please give me 1000 $...'
Friend: sure, here, take 1024 so its round.3 -
Debugging programs is like trying to cut all of the corners off of a square. You might get them all, but when you look again, you now have 8 more.
Eventually, you get sick of the exercise, so you redefine your 1024-sided polygon to be a circle, because all the corners are features anyway. -
Two big moments today:
1. Holy hell, how did I ever get on without a proper debugger? Was debugging some old code by eye (following along and keeping track mentally, of what the variables should be and what each step did). That didn't work because the code isn't intuitive. Tried the print() method, old reliable as it were. Kinda worked but didn't give me enough fine-grain control.
Bit the bullet and installed Wing IDE for python. And bam, it hit me. How did I ever live without step-through, and breakpoints before now?
2. Remember that non-sieve prime generator I wrote a while back? (well maybe some of you do). The one that generated quasi lucas carmichael (QLC) numbers? Well thats what I managed to debug. I figured out why it wasn't working. Last time I released it, I included two core methods, genprimes() and nextPrime(). The first generates a list of primes accurately, up to some n, and only needs a small handful of QLC numbers filtered out after the fact (because the set of primes generated and the set of QLC numbers overlap. Well I think they call it an embedding, as in QLC is included in the series generated by genprimes, but not the converse, but I digress).
nextPrime() was supposed to take any arbitrary n above zero, and accurately return the nearest prime number above the argument. But for some reason when it started, it would return 2,3,5,6...but genprimes() would work fine for some reason.
So genprimes loops over an index, i, and tests it for primality. It begins by entering the loop, and doing "result = gffi(i)".
This calls into something a function that runs four tests on the argument passed to it. I won't go into detail here about what those are because I don't even remember how I came up with them (I'll make a separate post when the code is fully fixed).
If the number fails any of these tests then gffi would just return the value of i that was passed to it, unaltered. Otherwise, if it did pass all of them, it would return i+1.
And once back in genPrimes() we would check if the variable 'result' was greater than the loop index. And if it was, then it was either prime (comparatively plentiful) or a QLC number (comparatively rare)--these two types and no others.
nextPrime() was only taking n, and didn't have this index to compare to, so the prior steps in genprimes were acting as a filter that nextPrime() didn't have, while internally gffi() was returning not only primes, and QLCs, but also plenty of composite numbers.
Now *why* that last step in genPrimes() was filtering out all the composites, idk.
But now that I understand whats going on I can fix it and hypothetically it should be possible to enter a positive n of any size, and without additional primality checks (such as is done with sieves, where you have to check off multiples of n), get the nearest prime numbers. Of course I'm not familiar enough with prime number generation to know if thats an achievement or worthwhile mentioning, so if anyone *is* familiar, and how something like that holds up compared to other linear generators (O(n)?), I'd be interested to hear about it.
I also am working on filtering out the intersection of the sets (QLC numbers), which I'm pretty sure I figured out how to incorporate into the prime generator itself.
I also think it may be possible to generator primes even faster, using the carmichael numbers or related set--or even derive a function that maps one set of upper-and-lower bounds around a semiprime, and map those same bounds to carmichael numbers that act as the upper and lower bound numbers on the factors of a semiprime.
Meanwhile I'm also looking into testing the prime generator on a larger set of numbers (to make sure it doesn't fail at large values of n) and so I'm looking for more computing power if anyone has it on hand, or is willing to test it at sufficiently large bit lengths (512, 1024, etc).
Lastly, the earlier work I posted (linked below), I realized could be applied with ECM to greatly reduce the smallest factor of a large number.
If ECM, being one of the best methods available, only handles 50-60 digit numbers, & your factors are 70+ digits, then being able to transform your semiprime product into another product tree thats non-semiprime, with factors that ARE in range of ECM, and which *does* contain either of the original factors, means products that *were not* formally factorable by ECM, *could* be now.
That wouldn't have been possible though withput enormous help from many others such as hitko who took the time to explain the solution was a form of modular exponentiation, Fast-Nop who contributed on other threads, Voxera who did as well, and support from Scor in particular, and many others.
Thank you all. And more to come.
Links mentioned (because DR wouldn't accept them as they were):
https://pastebin.com/MWechZj912 -
A typical bouba coder:
- thinks a kilobyte contains 1024 bytes
- thinks Object.assign clones an object
- codes in react.js, thinks he knows reactive programming
- “amd is better for games, intel is better for work”
- thinks that the main advantage of ssh is that you don’t need to enter your password manually
- watches porn in incognito mode
- “crapple”
- “uhm, is it immutable?”
- thinks “persistent” means saved to local storage
- thinks designer is an inferior job because “they only draw shapes”
- thinks good accessibility is when the tab key works
- “All non-mechanical keyboards are trash”
- “C is outdated and nobody uses it anymore”
- “Zuck quit uni and now he’s a billionaire, everybody should quit”
- thinks “pointer” is a shape of the cursor53 -
So today I spent the whole day at work in a website to make it go full responsive. When I finished, the PM told me "Forget about these and those screen sizes, make everything over 1024px a desktop view". There are tablets with screen bigger than just 1024px... Anyway, I got a little mad because I spent the WHOLE day working with those tablets that are bigger than 1024 just to get a " Forget about these and those".
Fine, I'm fine now... I needed to tell this to someone, I know you will understand my pain, guys :)2 -
Why do you need 100, 500, 1000, 2000 points to unlock some avatar features? Wouldn't 128, 512, 1024 and 2048 be more appropriate for a software community?4
-
A puzzle, just for fun.
Two friends, (a)lice and (b)ob are communicating through a channel encrypted with random numbers XOR'd together, like so:
keyA = randint(1024, 1024**2)
keyB = randint(1024, 1024**2)
msg = randint(1024, 1024**2)
You, an interloper, have watched all these communications, siphoning the packets as they went.
When alice sends a message to bob's mailbox, she does it like so:
mailBoxB = keyA^msg
Bob's mailbox receives the mail automatically, and applies his own key, sending it back to alice's mailbox:
mailBoxA = keyB^mailBoxB
Next, Alice's mailbox notices the message, and automatically removes her key and sends it back to bob's mailbox. All of this, the first message, the second, and the third, happens in milliseconds, the back and forth.
mailBoxB2 = mailBoxA^keyA
Finally, bob's mailbox removes his key, and deposits the now unencrypted message in his box, for him to read in the morning:
mailBoxBFinal = mailBoxB2^keyB
As as a spy, you know the first packet sent to bob, had a value of 589505.
The packet bob sent back to alice, after applying his key, has a value of 326166
The message sent *back* to bob after alice removed *her* key, had a value of:
576941
What are the values of keyA, keyB, and what is the value of the msg?4 -
yeah..
customer: I have a problem.
Smart Cell: here's a math problem, just divide it 3 times by 10243 -
Ladies and gentlemen... It finally happened... I finally killed a Linux install!
Was stuck at 1024 x 768, installed NVIDIA drivers, crashed, restarted and ended up in an endless login screen loop and then boom, crash and is no longer recognised in Grub.
Don't know what I did seeing as the machine hasn't been on for 3 days ¯\_(ツ)_/¯
Guess I'll have to do a reinstall when I have internet again!4 -
I just noticed that my hotel room card is a simple, unprotected NFC card that has a whopping 8x8x16=1024 bit allocated. If I had another NFC tag with my I'd be tempted to copy it and play around with it a bit...12
-
Early 1970s, when I was around 8 years old. I read about Artificial Intelligence and it blew me away. I knew nothing about computers, other than I wanted to program them.
I still have old computer magazines, starting from around 1978 not long after the microcomputer revolution started.
My first computer had 2K RAM. That's 2048 bytes. I expanded the memory 1K at a time, and it took 2 chips - they were 4 bits by 1024 so you needed 2 chips to have 8 bit wide memory.
2114 static ram, 300ns.
I think they still make them!6 -
!rant
I'm not sure if I really should have celebrated 1024++ by buying myself a desktop PC.
But I really prefer it over any kind of laptop. 😸2 -
½ Rant, !dev;
HECK i missed the exact moment it happened >.<
but THANK YOU so much for (1 << 10) ++'s!
like who cares celebrating 1000 :P
Thank you guys <3
Shoutouts to @jiffier for being the 1024'th ++er6 -
When you watch "1024+ Seconds of JS Wizardry" on YouTube and you realize you have fuckin lot to catch up in JavaScript :|
-
Looking through Java tests, cause I need to pass one for job. And every one of them has a question like:
What's the result of:
boolean b = 42 >= 1024;
if (b = true) System.out.print(1);
else System.out.print(2);
And each time I answer like there is (b == true) and not (b = true).
Cause no one in real life would write = in if statement. Why do they put such question in each and every test.1 -
Almost halfway there to reach the milestone of 1024 ++es! My day couldn't start in a better way haha :D2
-
So we have a teacher who always annoys us with being extremly specific and precise. Today we "learned" how to calculate the scan file size based on the dpi of the scanner and the size if the picture. He began to calculate, and then, he said: "Now we have 1737389 bytes and we gonna divide with 1024 to get the kiloBYTES. This was it. He rants about us everytime because of this shit. I raised my arm slowly, whilw preparing the words in my head. "Excuse me, but you are calculating kibibytes, not kilobytes! To get kilobytes you have to divide with 1000, hence kilo." Then he muttered something about he didnt wanted to write that because of courae he knew about this... One teacher well done please.
-
I just realised I have 1TB of MS OneDrive Cloud space lying around unused. DAMNNN!!!
Just yesterday, I was thinking of backing up all my content to cloud (because just in case and past experiences of losing data).
I did a quick fact check and figured that I have ~450 GB of unbacked data.
After quick calculations, I came to a number of how many Google accounts I'll need for 15 GB per account of drive space.
Today, I was playing around with my Microsoft Developer account and saw OneDrive. I thought let's check how much free space does MS Dev subscription offers.
It showed 1024 GB. FUCK! My balls dropped.
Now here's what I did...
I have a local drive of 500 GB, which holds all the unbacked data. Now I setup my local OneDrive there and put everything into OneDrive.
And then, I moved my local Google Drive into OneDrive. A nested setup for important stuff.
So this way, less important stuff is backed up on cloud and accessible everywhere.
And more important stuff gets synced on Google Drive and OneDrive, both.
Did I do the right and sensible thing with this kind of setup?
MS Developer subscription says they expire it in 90 days but until today, they have auto renewed it always.
I still have ~500 GB of space which can be consumed.
Also, overall MS ecosystem seems much better to me than Google. Moreover, MS allows custom domain mapping which Google doesn't.
Let's see how can I entirely migrate to MS ecosystem in near future.18 -
Can’t wait for python 3.8 and pep-p572 Assignment expressions 👏👏
https://python.org/dev/peps/...
while chunk := file.read(1024):
process(chunk)3 -
The difference between a programmer and a non-programmer is.........
The non-programmer thinks a kilobyte is 1000 bytes,
while a programmer is convinced that a kilometer is 1024 meters.....6 -
Trying to fix an urgent issue with our Xamarin iOS app and a known bug in Xamarin "IOException: Sharing violation on path /Assets.xcassets/AppIcon.appiconset/Icon-1024.png" is blocking me.
Luckily I still have my old laptop from my last upgrade on standby, boot it up and it's not using the affected version of Xamarin. 😃
Instead this one has the also know "/ios/release/mono/mini/mini-arm64.c:5439, condition `native_offset % 4 == 0' not met" blocking issue when debugging. 🤦♂️
I just want to do some work. ☹3