Details
-
AboutFormerly AvyChanna
-
SkillsC/C++, Python, Dart, Java/Kotlin
-
LocationETAION SHRDLU
-
Website
-
Github
Joined devRant on 7/14/2017
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
-
Explain it to yourself. Go over every detail, why you did what you did.
-
@AvatarOfKaine Prime number gen is very fast for things like rsa or ecdsa. The easiest way is to pick a random number and keep searching forwards till you hit a prime. (For security, there are some other constraints/things that are done while generating primes but you get the idea)
-
I love how you just silently shoved swift into the list.
-
@aviophile Cut the rope
-
Make an array and save your references to your "new" variables for each loop.
(I might or might not have done this for a one off script) -
Rubbery? Check
Hollow? Check
It's a fucking fleshlight 😂 -
You okay bruh?
-
sudo chattr +i somefile
Checkmate -
Only play services app(s) update themselves. Generally there are 2 types of apps that auto update - the ones from your OEM/carrier, these apps are sometimes a part of system image and a pain in the ass to remove. The second is web-based apps that have thier own mechanisms for updates.
-
Red is linear and blue is quadratic. Although red is very large at the start, blue will still win after n0=10^15
-
This is a nice book. Don't leave it hanging
-
This equation tells 2 things - The constant terms and the smaller degree monomials don't really change the rate of growth, so they are useless. Big O complexity is for asymptotic comparision, ie, very large n. For small n, it may be possible that a worse algo will win. For eg, an insertion sort on 5 elements will be faster than say, a radix sort. Even though radix sort is O(n).
Tldr, O(10000000*n) is faster than O(0.00000001*n^2) asymptotically. (There is some n0 after which linear is always better) -
@sariel Does it still happen if the concrete is thick enough. I don't think water seeps that deep into the pores that much. And you'll need a thick layer anyway, that is, if you don't want a hole in the floor after the body has decayed.
-
Commenting out and leaving the code there is a dick move. You already have git. Most of the tools(plus git cli too) let you visualize/browse file history without even checking out the commit/branch
-
Reminded me of George Carlin. "People spending the money they don't have to buy things they don't need". This guy was waaay ahead of his time.
-
@JsonBoa Those are credit cards, not pokemons. Why would you anybody need 5+ cards to increase their limit? That just screams "I don't have money and I'll borrow till I get into debt"
-
Username checks out
-
I've seen Cred adverts on TV and Youtube a few months back. I still don't understand why would anyone need a Credit Management app? Why use credit at all? Okay, home loans/Education loans etc are fine, but Cred does not handle these cases(AFAIK). Even if I wanted an app, say, to manage transaction limits, I'd use the bank's app/website instead
-
Context: The identity element(e) is an element such that for any element in the domain set, `a*e = e*a = a`
The inverse element(i) of an element is defined such that `a*i = i*a = e`
Each non-zero element has its own unique inverse(in the set R)
Not going into more theory, just convincing you by contradiction here:
Let `0/0 = k`. Then `0 = 0*k`.
Now what do you think should be the value of k here? Zero? Infinity? Something in-between?
It can be anything, all numbers on the number line satisfy this. We say, this value is "indeterminate", it just can not be defined.
Bonus: Contrary to popular belief, 0*inf is also undefined. It is not zero, not one, not infinity; it is nothing. -
Took "When Ski Lifts Go Wrong". Reminds me of Bridge Constructor, that was the most fun I had in a while. Thanks
-
@Floydimus If you hold a tap and do not release, 1st one will wait for you, second one will not.
Though in general case, both are same.
I'd even say 1st one lets you to stop the click by dragging the mouse away, so 1st one is better lol -
Her blog is the best I've ever seen.
http://angelinathedev.netlify.app -
My thought process while solving interview coding bs is as follows -
- Read and understand the problem and constraints/edge cases
- Which data structure should I store the data in?(Stack, queue, tree, heap, graph matrix/list)
- What kind of algorithm is required. dynamic programming, divide and conquer, recursive or iterative?, backtracking
- Run test cases. Most of the time there will be some bs cases. (input = 0, or some other invalid value)
Some of the problems have predefined set of optimized algo, so you'll need to reduce your problem into a standard one -
I don't understand the obsession with 1000px of margins and padding.
https://reddit.com/r/Android/...
Android 12 UI is shit. Windows 11 UI is shit. Ios is shit. Guess my last option is finding a nice enough looking UI patch for AOSP and build one myself? -
People are offended by a chair? What a time to be alive.
-
> You have 69 MILFS in your area ready to fuck.
> You won't last 5 minutes playing this game.
> Get from 5 to 9 inches with this simple trick.
Ads and clickbaits. Money will come eventually, the first target is to boost traffic and click rate. -
Hexadecimal FTW
-
@Alt-Tab Can you post a tl;dr of previous post?
-
@deadlyRants The script can check if the terminal output is going to a tty.
-
@Fast-Nop Or a -q mode for only printing required info and printing everything by default?
Explicit > Implicit