Joined devRant on 5/25/2019
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
I think I found the equivalent of 'square root' but for modular arithmetic.
This is kinda stupid cuz I only tried it on two numbers so far but feel free to try it yourself and prove me wrong!
Then divide √p by 2, 3, 2, 3, repeating until the result is below 2.
Now take that chain of divisions and tack it onto p instead, then change all the 2's to 3's.
Lets call our new result 'r'
and the result should be the same as r.
√697/2/3/2/3/2 = 0.3666771884012246
So our chain is 2/3/2/3/2
Now change all the twos to 3s, so we get
3/3/3/3/3. And somewhere within the range
of 3**0 to 3**N is our 'modular root'
697/3/3/3/3 = 8.604938271604938
697%8.604938271604938 = 8.604938271604938
Likewise, if p = 345852581
Which admittedly isn't the same but I think might be a rounding error.
In either case it's interesting. Has anyone seen this before and if so where can I learn more?22
PlantUML is awesome! It's versatile, code based (e.g. version control is simple) and the results are great and as portable as you need.
This is legit scary and awesome at the same time. Tried it myself and it is extremely fast and also pretty good...
Imagine if you can do this 6x real-time speed on you computer what can big tech companies achieve.
I found out recently that Facebook is embedding tracking data in the form of IPTC metadata in images that you upload. This way the images can be tracked even after you download them.
Because I'm an anarchist and just want to watch the world burn a little, I made a tiny server to replace the id hash that they embed with a random one, just to see if I can't fuck with their algorithm a little bit.
You can check out the project here https://github.com/watzon/fbmdob18
I've open sourced my last personal project: SelfVPN. Simply, its a vpn client that you can create DO droplets and connect them easily.
Previous rant: https://devrant.com/rants/217909811
Are there any fellow devranters who have shitty working memory and have trouble focusing? Basically people who have ADHD/ADD? I got into programming because I love solving problems and am able to hyperfocus for weeks on projects, but outside of work life seems to be a mess :/ Can't even remember simple facts if they don't interest me (don't have that much dopamine).
Could you share some advices on how you managed to treat ADHD/ADD or basically improve your memory?
I mean there is the obvious: sleep, exercise, good nutrition (cutting out dairy, sugar, caffeine, alcohol, smoking).
But maybe there are other ways to do this without using drugs such as ritalin/concerta?13