In a lot of terminals, Alt+. (or Option+. on Mac) will paste in the last argument of the previous command. $ mkdir hi $ cd You can hit . several times to cycle through earlier final args.
Ask HN: Teach me something new
131–140 of 782 posts
Re: Ask HN: Teach me something new
#132As these patterns were explored, they were found to be even more systematic and pervasive than they had appeared. In some cases, one sound would systematically change into another sound from language A to language B.
https://en.wikipedia.org/wiki/Grimm%27s_law
These patterns helped reveal historical connections between most languages of Europe, Central Asia, and South Asia, showing that those languages had descended from the same ancient sources. (Note that this isn't true of 100% of languages in this region -- there are other unrelated families that turned up -- but it's true of a significant majority.)
https://en.wikipedia.org/wiki/Indo-European_languages
The languages that turned out to be related this way included the Germanic family (like German, English, Dutch, and the Scandinavian languages), the Romance family (like French, Spanish, Portuguese, Romanian, and Catalan), the Celtic family (like Irish and Welsh), the Slavic family (like Russian, Bulgarian, and Ukrainian), and also Farsi and all the Central Asian languages related to it, and Hindi/Urdu and all the South Asian languages related to it. Oh, and Greek.
If I tried to list all the languages and language families that were linked up to this family tree, we would probably be here all day, because they go on and on. Just under half the people in the whole world have one or another of them as a native language today!
These languages changed quickly enough in history that most people no longer noticed, or remembered, that most of them were related to one another, yet slowly enough that it's been feasible to deduce an enormous amount of information about the history of particular languages and particular words, once many of the rules and patterns had been identified.
A Grimm's Law example is that the h sound in Germanic languages usually corresponds to the k sound in Romance languages (note that this can be stated much more technically and accurately). So, it turns out that "hundred" and "cent"/"cento"/"centum" actually share the same origin. And "heart" and "cœur"/"corazón"/"καρδία" (origin of "cardiac") (also "cordial"; the root in Latin sounds like "cord-"). And "who" and "que"/"quoi"/"qui" (and similarly for other wh- questions in English and qu- questions in Romance, which were originally hw- sounds in English and kw- sounds in Latin).
Some other examples are t to d ("ten" and "decem"/"diez"/"dez", plus some of the examples above that have a t in English), and f to p ("foot" and the Latin and Greek words from which we get "pedestrian" and "podiatrist", and Romance "pied"/"pie"/"pé"; and don't forget about "father" and "padre"/"pater"/...).
Those are just a couple of the phenomena that people noticed in the 1800s; while the exact development of these patterns gets much more complicated, they've proven to work over and over and over, for hundreds of languages and hundreds of thousands of words!
(... Also, the Grimm from Grimm's Law is one of the Brothers Grimm, from Grimm's Fairytales!)
Re: Ask HN: Teach me something new
#133Colors don't exist outside of your brain.
Re: Ask HN: Teach me something new
#134While many use "fact" and "factoid" interchangeably, they are (by original definition) inherently two entirely different things.
Re: Ask HN: Teach me something new
#135I've described this on HN before; forgive me if you've already seen it. I have chronic migraine. It sounds worse than it is; I rarely suffer attacks anymore, and when I do, they're usually mostly harmless, as in the case I'll describe below. Contrary to popular belief, migraine is not a headache. It's something a little more like an epileptic seizure. Intense headaches are one common symptom, but there are a lot of o…
Re: Ask HN: Teach me something new
#136Very few people know the potent facts about the brain: * your neurons are not in your "brain" 90% of your neurons are not in what you generally denote by brain. They are in your cerebellum. The cerebellum has a distinct neural architecture, that difference is in fact clearly visible with the najed eye. A very poor simplistification would be to call it our GPU. * the spinal cord is huge and is structurally a contiguou…
I have a close friend who is working on getting certified as a massage therapist. Skeletal, muscular, and vascular anatomy make up a big part of the required knowledge for the certification.
Two interesting things I learned from them:
1. The lymphatic system is massive and runs alongside our vascular system. For example, there are many lymphatic veins that run through the head and face that empty out just near our clavicle, where they’re the picked up by large vascular veins to the heart, and then on to the liver for filtration.
2. The lymph system is not attached to our heat, and movement of fluid in those veins is purely driven by mechanical motion of our bodies. This is often why paraplegics or folks with other forms of paralysis end up with swollen feet—lymphatic fluid gets trapped in the extremities and collects whoever gravity dictates.
Fascinating stuff. Gave me a much greater appreciation for the level of knowledge and skill to be a massage therapist.
Re: Ask HN: Teach me something new
#137In drug development, a lot of the engineering goes into making sure the pharmaceutical compound -- having been developed -- actually reaches the target area of the body. If the compound is a relatively large particle that needs to get into the blood stream, a nasal spray might result in the compound being deposited at the bottom of a person's lungs without ever getting absorbed. If stomach acids break the chemical do…
Is it also true for cocaine and other similarly ingested substances? Are coke users walking around with garbage in their lungs?
Re: Ask HN: Teach me something new
#138Re: Ask HN: Teach me something new
#139In a lot of terminals, Alt+. (or Option+. on Mac) will paste in the last argument of the previous command. $ mkdir hi $ cd You can hit . several times to cycle through earlier final args.
I would have referred to this using !$, which is one of the Bourne shell history substitutions. Like
$ mkdir awesome
$ cd !$
(The "!" has the connotation "history" in the shell, while the "$" has the connotation "last", as in regular expressions.)An advantage of the way you mentioned is that you could actually see the history item displayed on the command line before running the command!
Re: Ask HN: Teach me something new
#140The Boltzmann brain hypothesis suggests that it would be more likely for a single brain to spontaneously and briefly form in a void (complete with a memory of having existed in our universe) rather than for the universe to come about in the manner cosmologists think it actually did. In this physics thought experiment, a Boltzmann brain is a fully formed brain, complete with memories of a full human life in our univer…
You forgot the part where people suspect that we are Boltzmann brains.