Better HN
topnewbestaskshowjobs
Log inSign up

fsckboy

8,214 karma · joined Nov 7, 2019 (7y ago) · 5,323 submissions

and those who were seen dancing were thought to be insane by those who could hear that there was no music.
Submissions

comment 3y ago · link · parent

> Another big thing that APL made me realise is that the Boolean values True/False and the integers 1/0 are tightly connected

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

a theory explains all the data you have gathered, including tests that the theory predicted. When you collect data that the theory fails to explain, you look for a hypothesis that makes some predictions that you could test. If the new data you collect is according to your hypothesis, then your hypothesis is on the way to being part of the theory.

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

till it's tested, it's a hypothesis. Hypotheses are not random ideas, they need to incorporate all the theoretical knowledge you have so they are not disproven a priori. Then your hypothesis is "according to theory" and incorporating the previously unexplained data, but it will not be a theory till the predictions it makes are tested.

comment 3y ago · link · parent

I admit I didn't RTFA but please, Hypothesis of interstellar trade.

comment 3y ago · link · parent

turns out, you do not decide what and on whom is the burden of proof; I'm just telling you what (obviously) happened. You may be fine with being oblivious, I'd just recommend you then also be less opinionated.

comment 3y ago · link · parent

the type of atomicity I've always seen it used for is, two processes try to rename a file at the same time, only one will succeed; the winner does what they planned and then rename the file back.

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

> I learnt of a case just this week where a guy on Reddit left a slightly controversial comment and ended up being charged with hate speech, lost his job and received hate abuse online for his opinion.

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 copyright owner is the entity that receives ad revenue

to be sure, google receives ad revenue. they redistribute a portion of it, yes, to the copyright holders

comment 3y ago · link · parent

the article covers that right at the top: “branchless” because the if compiles down to a conditional move instruction rather than a branch/conditional jump.

comment 3y ago · link · parent

it was a problem set type question, with details obscured to avoid our preconceptions, then the true picture revealed afterward; thus, no way of looking up that source. In any event, the data was from WWI and the point was that using their own data they drew the wrong conclusions for their theater based on having plotted it wrong. Had they basically transposed some axes (but counterintuitively to the way they were thinking) the correct trendlines popped right out. We had another similar problem based on the shuttle Challenger o-ring failure/temperature data, given to us as racing car blown engines.

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

therapy is about emotions; there are no objective standards for emotion.

comment 3y ago · link · parent

when you call a therapist and express that you are having trouble, if they are not taking new patients they will generally refer you to someone else, and they will check in advance that the referral does have an opening. It would be highly unusual to leave somebody adrift.

comment 3y ago · link · parent

therapists are not paid friends, that would be like saying that your lawyer is a paid friend.

comment 3y ago · link · parent

> I'm sure they took all the needed safety precautions

no they didn't, one of the most prominent advocates working on this problem was killed by a ricochet. let me see if I can find it...

comment 3y ago · link · parent

> making them much more maneuverable, which is the most important factor in a dogfight

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

"it puts the paper in the bin or else it gets the hose again"

comment 3y ago · link · parent

am i reading this wrong? the code has a bug*, but the bug is

      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

that exposes your credentials to one of the servers. probably doesn't matter in most cases but it's not as cool as the scp solution suggested here

comment 3y ago · link · parent

as homeowner to several places certified to have been habitable and built by professionals, let me tell you, that shark fin headed toward you is plumbing.

comment 3y ago · link · parent

exactly the reason starting with ^H is backspace (left) and ^J is linefeed (down)

comment 3y ago · link · parent

>Vim is like the Great Glass Elevator, it has a button for moving in every direction

vim is like the Great Glass Elevator, if the Great Glass Elevator was modal

comment 3y ago · link · parent

in the days of 7-digit dialing, dialing the Compuserve access number in Watertown MA (which one used from Cambridge MA) played "camptown ladies sing this song"

comment 3y ago · link · parent

except, nobody knew till the end of the war what would be effective and what would not. That entire class of aircraft was invented during the war and the tactics were just being developed. And after the war, new classes of aircraft were developed. The idea that universally useful conclusions can be drawn is what is incorrect.

comment 3y ago · link · parent

> Industrial countries can and have staffed factories and repair crews with women and the infirm.

nobody knows when a war will end. You're making the argument that attrition works

comment 3y ago · link · parent

Another Joke Fine Shows US Authorities Don't Take Illegal Telemarketing Seriousl

comment 3y ago · link · parent

>No, a badly attached probe would usually show a larger resistance, not a smaller one.

if the area is small, couldn't it be "badly attached" directly to the other probe?

comment 3y ago · link · parent

no shade on Thunderbird, can't argue with success, but I feel like I should be in the target market for Thunderbird, but they went wobbly on me a long time ago. So long now I can't even remember what made them so distasteful but it definitely sums up as "eliminated too much UI, added too much UX"

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

reference: https://www.youtube.com/watch?v=_FBQetJqAwk

comment 3y ago · link · parent

>I was in the third year of my mission as Czech ambassador to France

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.

1
108109110
178