3,297 karma · joined Nov 15, 2012 (14y ago) · 1,171 submissions
comment 11y ago · link · parent
http://www.health.state.mn.us/divs/idepc/diseases/lyme/cases...
comment 11y ago · link · parent
If my dog can get it, I should be able to choose to get it, even if its not standard. I pick small ticks off my after every hike, its just a matter of time before I get it.
comment 11y ago · link · parent
Can you expand on this? I have had no issue getting to C levels of performance by using "unsafe" or ASM a few small critical sections as needed (tight bodies of inner loops, etc or mmap based allocation).
comment 11y ago · link · parent
Not to mention Go having multiple return values IMHO also takes away the major pain point of returning errors in C; using up your only return value and having to take pointer arguments when you would rather not.
comment 11y ago · link · parent
Go or Rust? They might not quite match your dream outlined above, but I think in practice they are pretty much used with the purpose of achieving something similar. They both can be "unsafe" as needed and integrate well with C and ASM.
comment 11y ago · link · parent
Or even better perf/safety wise:
type Payload struct {
Name string `json:"name"`
Category string `json:"category"`
Action string `json:"action"`
Where string `json:"where"`
Timestamp int64 `json:"timestamp,string"`
}
payload := Payload{
Name: "joe smith",
Category: "people",
Action: "transport"
Where: "pluto",
Timestamp: time.Now().Unix(),
}
jsonBytes, err := json.Marshal(&payload)
This code doesn't allocate heap for payload, is much faster and typesafe...P.S. And could be shorter, but I was trying to be clear.
comment 11y ago · link · parent
comment 11y ago · link · parent
No I was saying my question was unrelated to a stupid decision their former employer made....
>and the other half is a patronizing link to very well-known concepts
The link was NOT for the benefit of the OP to whom I was asking a question, it was for reader here that might not know what I was referring too in the question.
comment 11y ago · link · parent
1. Papers/case studies the master's of software engineering directory at my university provided while I was in grad. I can try to dig up some of these later if you are interested.
2. Friends who either worked on satellites or airpcraft
comment 11y ago · link · parent
1. My question was unrelated to the poor decision the OPs former employer made to use telnet.
2. Formal verification the the gold standard in correctness often used for can't fail things like missiles and satellites.
comment 11y ago · link · parent
comment 11y ago · link · parent
I generally drop all inbound and outbound by default and open the ports in the direction (out vs in) I need on the box. Why not take it one step farther and tie each opening rule to the process/user that actually needs it? That seems like an awesome idea.
comment 11y ago · link · parent
"The ICJ ruled in favor of Nicaragua and against the United States and awarded reparations to Nicaragua. The ICJ held that the U.S. had violated international law by supporting the Contras in their rebellion against the Nicaraguan government and by mining Nicaragua's harbors. The United States refused to participate in the proceedings after the Court rejected its argument that the ICJ lacked jurisdiction to hear the case. The U.S. later blocked enforcement of the judgment by the United Nations Security Council and thereby prevented Nicaragua from obtaining any actual compensation."
comment 11y ago · link · parent
I totally am for securing POSTs, HTML, etc with SSL, but images and CSS, etc really make little sense.
comment 11y ago · link · parent
For example, I have seen a 800 bed hospital in a rural area get very far with a relatively weak (but best it could get) Internet connection by having transparent caching.
Colleges with dorms, even in non-rural areas safe huge amounts of bandwith this way too.
comment 11y ago · link · parent
How is this not going to destroy the cachability of the internet?
Being able to operate transparent caches is important for institutions (Edit: some which may not have access to their users local cert stores).
There is many things like blogs, news articles, photo galleries that gain zero value by being encrypted. Encrypting these things is going to require more hardware, more energy usage and more bandwidth and thus again more energy usage.
comment 11y ago · link · parent
To me that means this measure isn't about the boggy-man of terrorism, etc rather its about everyday criminal investigations. I think people are (overly) willing to give up their liberties when faced with the major boggy-man threats, but I think convincing the public to give up liberty to catch the pot dealer down the street or the dude embezzling from mega-corp is going to be a much harder sell politically.
comment 11y ago · link · parent
Examples:
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
vs cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
and: if open == 0 {
fmt.Println("ok")
} else {
fmt.Println("not ok")
}
vs. if open == 0 {
fmt.Println("ok")
return
}
fmt.Println("not ok")