8,214 karma · joined Nov 7, 2019 (7y ago) · 5,323 submissions
comment 3y ago · link · parent
Amen! It's of course also a C language tenet, and a great one. Life is so much simpler and more flexible when true and false are 1 and 0. It drives me crazy when I need to use a language where the logical operators only work on bools and the arithmetic only on ints, or some coercions work and others don't. When I incorporate somebody else's code into mine, first thing I get rid of is anything called "bool", a completely useless type. (as a nice side effect, that frees up the bool keyword for Boolean sets, which are quite useful)
a disappointment with unix is that process retval has this a bit backward, 0 is success, nonzero is failure (probably because errno does want for more bits than a singleton) but it's easily enough remedied with a !
I did love everything else about APL for the brief time I used it long ago (except the difficulty of entering the symbols)
comment 3y ago · link · parent
stop calling an earnest effort to choose the right word "nitpicking".
If our theories of matter, energy, space-time and relativity rule out the hypothesis for interstellar trade, that is not a theory of interstellar trade. If our theories of matter, energy etc. rule in interstellar trade, that's an interstellar trade hypothesis.
methinks you are guilty of the problem I was pointing out?
comment 3y ago · link · parent
comment 3y ago · link · parent
I guess you shouldn't ignore the error with both processes using the same destination name, why folks generally tend to put their pid in the lockfilename
comment 3y ago · link · parent
the guy publically posted a racist comment in the UK where there is not an unlimited right of free speech and anti-social behavior is regulated. I don't see the privacy concern. I prefer an unlimited right of free speech, but I don't call it privacy. This guy did have something to hide, shoulda kept it hidden.
comment 3y ago · link · parent
The point of these exercises was to learn to focus on the data statistically/analytically and not by eyeballing presentations, and the obscuring/revealing of the truth was to drive home the point that "lives can depend on this".
comment 3y ago · link · parent
comment 3y ago · link · parent
as an example problem in statistics class in grad school, we showed that the intuition that maneuverability is most important in a dogfight is incorrect, that it's speed (fly in, take a few shots, zoom away, lather rinse repeat) and that's why WWII fighters were so designed
of course, all else being equal, maneuverability is good, but all else is not equal, there are aerodynamic tradeoffs
comment 3y ago · link · parent
unsigned char *pchEnd = pch + size;
while (pch < pchEnd)
that if pch+size overflows (unsigned, from a large address to a small address), then the while loop will be skipped entirely.*depending if you think the compiler would ever allocate so as to put you into this position, for example usually the stack is at the top with the heap underneath it so stack overflow would be your risk, not address overflow.
comment 3y ago · link · parent
comment 3y ago · link · parent
for a good old fashioned MUA that's web aware without being overkill: Seamonkey all the way! and it's also got a nice little (yes, very old school) HTML editor (that I use for deconstructing pages, not building them)
comment 3y ago · link · parent
comment 3y ago · link · parent
I hate to be that guy, but isn't the Czech Ambassador's job to be dealing with (listening to) the French État (govt), while it's a Czech Consul's job to handle matters for ordinary citizens?
https://en.wikipedia.org/wiki/Consul_(representative)
A consul is an official representative of a government who resides in a foreign country to assist and protect citizens of the consul's country, and to promote and facilitate commercial and diplomatic relations between the two countries...Unlike an ambassador, who serves as the singular representative of one government to another, a state may appoint several consuls in a foreign nation, typically in major cities; consuls are usually tasked with providing assistance in bureaucratic issues to both citizens of their own country traveling or living abroad and to the citizens of the country in which the consul resides who wish to travel to or trade with the consul's country.