At each DMV there are a stack of license plates that they hand out on-site. So requesting a vanity plate of the same format would probably require them to search those stacks (across all DMVs) to pick out the plate.
146 karma · joined January 25, 2012
At each DMV there are a stack of license plates that they hand out on-site. So requesting a vanity plate of the same format would probably require them to search those stacks (across all DMVs) to pick out the plate.
Then brute forcing a 4 digit PIN will take 20000 seconds ≈ 6 hours maximum. There's no way around that, no matter what hash function you use.
It looks like the Samsung Camera has something similar, but I'm not sure if it's compatible...
(1) + 2
(1).__add__(2)
int.__add__(1, 2)
This comports with the "explicit is better than implicit" policy in Python. The only "magic" part is when dot-notation is used to call an instance method, which is just syntactic sugar. Another example of this philosophy is that operator overloading is simply reduced to implementing a method with a specific name.I think a "magic" this keyword can create a lot of nasty edge cases that can be difficult to reason about; the way "this" is used in JavaScript is notoriously complex in ways that it might not be in a statically typed language like C++. What should "this" evaluate to outside of an instance method? What about in a class definition inside an instance method? What if an instance method is called directly instead of on an instance? All of these situations require making their own "rules", whereas in Python the correct answers can be easily reasoned about by starting from first principles.
So Windows was made by... Google?
Neither of those are present when logging into your bank from its website, and I would also suspect that jailbreaking a phone significantly reduces the trust you can have in either.
Also, from a bank's perspective, all they care about is reducing their liability, without inconveniencing too many customers. In that context, it makes a lot of sense for banks to disallow their products from being used on jailbroken phones.
size_t len = strlen(source);
char *dest = malloc(len + sizeof("@example.com")-1 + 1);
strcpy(dest, source);
strcpy(dest + len, "@example.com");Also, it's one thing for me to let a third party withdraw money from my checking account (if I provide my account number), but that doesn't mean I want to give them the ability to do things like change my password, disable 2FA, read my transaction history, transfer money out of my other accounts, cancel my cards, and so on — which they can if they have my password. That's just insane.
As for me, though, I was terrified at the thought that my account could have been disabled, had I entered my actual birth date. Even back then, I had a fair amount of data stored on my Google account. The incident was enough to get me to start downloading data from Google Takeout once in a while.
It's been a while since my last backup, though. I hope this incident serves as a wake-up call to both me and everybody who "owns" a Google account. I also wish that Google would allow at least some disabled accounts to download their data from Takeout: that would make me feel just a little bit safer.
Regarding pointers, though, you have a point that char * is commonly used for statically allocated strings. I concede that it's fair to criticize the interviewee for saying the memory was dynamically allocated (by the compiler??), though I don't know if that rises to the level of "Get out."