10,627 karma · joined Dec 8, 2010 (15y ago) · 4,013 submissions
comment 13y ago · link · parent
cat data.csv | awk -F "|" '{ sum += $4 } END { printf "%.2f\n", sum }'
From that command, it's unclear whether the sum will be accurate, it depends on the inputs and on the precision of awk. See (D.3 Floating-Point Number Caveats): http://www.delorie.com/gnu/docs/gawk/gawk_260.htmlcomment 13y ago · link · parent
If instead we used a one time pad, we wouldn't have much luck reaching out to aliens. This points to the more likely scenario that the manuscript isn't encoded at all (gibberish) or it was meant to be understood by only one person.
comment 13y ago · link · parent
When you only provide one variable for assignment, you are actually assigning the key (or incremental value), not the value, the syntax is:
for key, value: := range someThing {
When you do: for something := range someThing {
something won't have the value. If you just want the value you need to use: for _, value := range someThing {comment 13y ago · link · parent
Personally, I tend to forget to pay my registration for a solid 6 months before I finally get pulled over for it every year, and it costs me about $35 extra, so if this becomes pervasive, it might be worth considering losing the plates. I'm willing to bet that some officers would even be slightly sympathetic if you explained your reasoning, not that they wouldn't still give you a ticket, but maybe.
comment 13y ago · link · parent
Personally, I'm all for very intelligent cops, and at the very least, having lots of people on the spectrum of intelligence in various roles makes sense to me.
comment 13y ago · link · parent
"New London police interviewed only candidates who scored 20 to 27, on the theory
that those who scored too high could get bored with police work and leave soon
after undergoing costly training."
This doesn't seem crazy, but I'd like to see if they actually have data showing a higher turn-over rate for high IQ people they accepted in the past.The cost of training is high, so filters seem appropriate, if they can filter out people with low scores (and by proxy IQ), then they can filter out people with high scores.
3829.
Learn how to be a more effective engineer.(theeffectiveengineer.com ↗)
1 points · by codezero · 13y ago · discuss
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
side note: the link to your Twitter profile on your site http://www.brwr.org/about is broken.
comment 13y ago · link · parent
Granted, I am not looking very much, but when I see a new hot system, I do consider it, and I haven't seen anything that caught my eye :/
comment 13y ago · link · parent