1,185 karma · joined November 3, 2010
[ my public key: https://keybase.io/haldean; my proof: https://keybase.io/haldean/sigs/b8iMYgBztqHNxdzpE22mUbizveJMjo8AbBnxJimUpIU ]
Adding one more draw call for mouse interaction, especially one that requires no shading at all, is a pretty minimal additional cost.
1. Motorcycle makes a ton of noise because muffler is removed / modified
2. Cop pulls over motorcycle, gives them a citation which requires them to go to a testing center to have the loudness measured
3. Motorcycle owner reinstalls stock muffler
4. Motorcycle owner goes to testing center and passes test with stock system, and thus doesn't get a ticket
5. Motorcycle owner removes stock muffler
6. Goto 1
He said that no one ever pulls motorcycles over for being too loud because they know this is what happens, and all it's going to be is a lot of paperwork with no actual punishment for the rider. Cops would have to carry noise meters for them to be able to give the ticket in-person.
The city was built for a population bigger than its current population.
char *x = calloc(n, 1);
strncpy(x, y, n - 1);
Which can be replaced with: char *x = strdup(y);
Which is both one line shorter and 100% less error prone!(I know this because I worked both on the setup system and on one of these "zero-day updates", where we fixed some bugs between when we sent the "final" image to the manufacturer and when we actually shipped devices)