HNHacker News
TopNewBestAskShowJobs

alejohausner

942 karma · joined January 11, 2015

submissionscomments
alejohausner··on 2020 Stock Market Crash
Huh? On 2019 December 31, gold closed at USD 1519.50. Just now (3:15 pm), it was at 1503. Too bad, because just a couple of days ago it was a great hedge against falling stock prices.

I guess you're talking about the 1-year price change.

Source: goldprice.org

alejohausner··on 2020 Stock Market Crash
Look again. Gold held up for a while during the crash, but now it's down for the year.
alejohausner··on The text adventure game of exiting a Telnet session
On UNIX/Linux/macos, control-Z will suspend the current process. But that gets passed through telnet, and doesn't suspend telnet itself. Sooo....

Tilde, control-Z will do the trick: suspend the telnet process. Then

kill %1

kills the suspended telnet process.

alejohausner··on Let's remove quaternions from every 3D engine (2018)
Quaternions can be normalized, thus eliminating numerical errors than can accumulate if you multiply a rotation matrix many times. These numerical errors make the matrix non-unitary, and introduce weird stretches and skews into the transformation.
alejohausner··on Researchers have identified 100 mysteriously disappeared stars in the night sky
Could it be gravitational microlensing? Maybe the apparent magnitude of the missing stars was amplified by an intervening massive object just as the older pictures were taken.
alejohausner··on The town's so full of these confounded dials (195 BCE)
Could there be an etymological connection between Latin "Cronus" (the god of time), and Latin "grano" (corn or grain)? Today, we measure time in seconds and minutes, but the in old agrarian societies there were no clocks, and the pace of time was measured by the seasonal rhythm of the crops.

According to wikipedia, the name Cronus is of uncertain origin, while grano comes from proto Indo-European.

alejohausner··on A lone wolf's miles traveled in northern Minnesota
Minnesota is BIG! Earlier this year an Arctic fox was tracked walking 3500 km (~2000 miles) in 76 days from Spitsbergen (Norway) to Ellesmere island (Canada) over the Arctic ice[1]. I thought that was a long way.

1. https://www.ctvnews.ca/sci-tech/arctic-fox-travels-3-500-km-....

alejohausner··on Information is Beautiful shortlist 2019
My favourite one shows the orientations of all airport runways [1]. Since they runways align with prevailing wind directions, it's effectively a map of the winds.

1. https://www.informationisbeautifulawards.com/showcase/4502-t...

alejohausner··on The vultures of Spain skirt around the Portuguese border with uncanny accuracy
The article points out that this is NOT the cause. The border between Spain and Portugal crosses all sorts of divides and watersheds: the Tagus river starts in Spain, passes near Madrid, travels west, and empties into the Atlantic in Lisbon. In fact, 3/4 of the Iberian peninsula has rivers that feed the Atlantic, and the divide between rivers that feed the Atlantic and those that feed the Mediterranean is way on the East side of Spain, far from the political border with Portugal.
alejohausner··on The vultures of Spain skirt around the Portuguese border with uncanny accuracy
I always thought they were New Jersey geese. That's where most of them live.
alejohausner··on 42 is found to be the sum of three cubes
What about zero? Can zero be the sum of three cubes? Actually, I read that somebody proved it can't be done, but the proof is too long to fit in this comment. ;-)
alejohausner··on Understanding Recursion as an Absolute Beginner
Fair enough. I should have said "is most appropriate" rather than "must be used".
alejohausner··on Understanding Recursion as an Absolute Beginner
True, you need pointers to implement binary trees. But you just need chalk to draw one, and to explain a recursive algorithm that acts on it.
alejohausner··on Understanding Recursion as an Absolute Beginner
The problem with recursion (and with the counting example in the post) is that a student will ask "why can't I do this with a loop?" It's better to use a problem where recursion MUST be used, such as a binary tree:

The size (# of nodes) of a binary tree is:

- 0, if the tree is empty, or

- size of left subtree + size of right subtree + 1

If you draw a tree, any student will agree that the recursive method makes sense. Indeed, they would be hard-pressed to come up with solution that uses a loop (unless they know about stacks, OK OK).

alejohausner··on When the Lights Went Out: A History of Blackouts in America
A local short circuit may overload the system, and trip some circuit breakers. But then those breakers can be flipped back on. To really destroy a power grid, you need mother nature.

I remember the great ice storm of 1998. Huge amounts of freezing rain coated transmission lines with inches of ice, and the weight toppled hundreds of pylons in the Montreal area. The metropolis and the region South were without power for weeks. And it was January. And Montreal gets brutally cold at that time of the year.

Perversely, you need electricity to run a fuel oil house furnace.

Some people were without it for a month. We wanted to buy a generator for my mother in law, who lived South of Montreal. We lived in New Jersey. We went to the local home depot and bought the last one. The people behind us in line at the store were from Montreal. There were no generators left in the stores from Montreal to new Jersey.

See "January 1998 North American ice storm"

alejohausner··on Blackrock lost $90 investing in fossil fuels
Damn! How can I edit the headline?
alejohausner··on English Letter Frequency Counts: Mayzner Revisited or ETAOIN SRHLDCU (2013)
Oddly enough, when you play hangman, you should use this sequence instead:

ESIARN TOLCDU

In hangman, you are guessing words, not text. The high frequency of the trigram THE makes T and H more probable in a text corpus. But if every word is equiprobable as in a dictionary list of words, you get the above sequence.

http://datagenetics.com/blog/april12012/index.html

alejohausner··on The Lyttle Lytton Contest
Perhaps my favourite best first sentence:

Bother Francis Gerard of Utah might never have discovered the blessed documents, had it not been for the pilgrim with girded loins who appeared during that young novice’s Lenten fast in the desert.

From "A Canticle for Liebowitz"

alejohausner··on Uber’s Operating and Marketing Chiefs Step Down in Leadership Shakeup
Over on nakedcapitalism[1] there's an ongoing debunking of Uber's absurd claim that their technology can somehow improve on a commodity service like taking a taxi.

1. https://www.nakedcapitalism.com/2019/05/hubert-horan-will-th...

alejohausner··on What Hedge Funds Consider a Win Is a Disaster for Everyone Else
This is clearly a case of insurance fraud, but it's very hard to prove the case legally. The hedge fund that bought the CDS on the corporate bonds went to court, and successfully argued that the company issuing the bonds was in default. The company went bankrupt, and the hedge fund was refunded 100% by the insurer. How could you prove that the hedge fund acted fraudulently? They won a case in court.

Evil, yes, but hard to prove.

But to answer your question directly, I think insurance works because most policy holders don't cheat. If this kind of cheating becomes more frequent, CDS premiums will definitely go up.

alejohausner··on Working as a librarian gave me PTSD symptoms
Maybe psychiatry interns should spend a month taking antipsychotics, just to experience the side effects. It would greatly reduce their faith in big pharma.
alejohausner··on Working as a librarian gave me PTSD symptoms
Taxpayers may have thought that mental asylums were expensive, but jails are very expensive. It's a lot cheaper to keep a schizophrenic in a state hospital. So I'm not sure that the decision to empty the state hospitals was driven by taxpayer stinginess.

The whole thing is complicated. Drug companies in the 60s and 70s advertised their antipsychotics very hard. They persuaded the public that drugs could cure mental illness. That was a big force behind the emptying of the hospitals.

Lots of short-sighted thinking.

alejohausner··on Historian uses lasers to unlock mysteries of Gothic cathedrals
Actually medieval designers did not use conservative design. Many cathedrals were not overbuilt. There was a push to make the walls and pillars thin, the ceilings tall, to create a sense of ethereal beauty. As a result, many buildings collapsed during construction, because they were pushing things too far.
alejohausner··on The Mathematics of the Rubik’s Cube (2009) [pdf]
Nice introduction to group theory. I wish my math profs had used some of this material.
alejohausner··on How Big Firms Keep Wages Low
I think the opposite is true: the Depression led to the New Deal, and to WW2, both of which destroyed great wealth and made lowly workers better off.
alejohausner··on How Big Firms Keep Wages Low
Your second hypothesis echoes something I read by Picketty: historically, inequality has only decreased through conflict and revolution.
alejohausner··on Measuring the Age of the Earth (2014)
The OP mentions the work of Claire Patterson [1], who first measured the age of the Earth using relative abundances of lead isotopes in ancient rock samples. He found it very hard to do, because the samples he used were getting contaminated with atmospheric lead, and had to build the first clean room to measure the samples properly.

Atmospheric lead came from tetraethyl lead in gasoline. He spent decades campaigning against it, and came close to having his academic career destroyed by stooges paid the Ethyl Corporation[2]. Through sheer persistence and strength of character, he managed to get lead additives banned a few years before his death.

1. https://en.m.wikipedia.org/wiki/Clair_Cameron_Patterson

2. https://en.m.wikipedia.org/wiki/Ethyl_Corporation

alejohausner··on New Horizons’ first hi-res imagery of Ultima Thule
Can you say more about how angular momentum decays in orbital mechanics? I understand that, because the Earth rotates faster than the moon orbits, our tidal bulge will be ahead of the sublunar point, and will accelerate the moon in its orbit. Are there any other ways to get rid of angular momentum?
alejohausner··on Java’s Forgotten Forebear (2009)
In the 1980s I worked with a PDP-11 and wrote fortran programs, which DEC's compiler compiled into threaded code[1]. Unlike p-code, where each opcode is an action, in threaded code each opcode is the address of a function. Since these functions did more work than simple p-code instructions, the overall size of the compiled program was a lot smaller. This was a necessary tradeoff when you only had 32K of RAM to work with.

1. http://home.claranet.nl/users/mhx/Forth_Bell.pdf

alejohausner··on The World's Most Efficient Languages (2016)
English has lots of pairs of words that both mean the same thing. Examples: pork and swine, beef and cow, mutton and sheep, battle and fight, fraternity and brother, justice and right, elevate and lift.

The words pork, beef, mutton, battle, fraternity, justice, elevate are all French, and were used by the Norman aristocracy after 1066. They all connote sophistication and nobility. The words swine, cow, sheep, fight, brother, right, lift are all Anglo-Saxon, and were used by the powerless peasants after 1066. They all connote earthiness and familiarity.

There is a fun podcast "The History of English" that covers a lot of this stuff. If liked the OP, you'll like the podcast.

← PreviousPage 6 of 11Next →