HNHacker News
TopNewBestAskShowJobs

natejenkins

278 karma · joined September 26, 2012

Building stuff.

https://natejenkins.ch

submissionscomments
natejenkins··on Rock climbing and the economics of innovation
An interesting point to note is that one of the world's strongest climbers, who recently put up the hardest problem in Fontainebleau, is Charles Albert, who spends most of his time climbing barefoot: https://www.planetmountain.com/en/news/climbing/charles-albe...
natejenkins··on Common Muscular Weaknesses
Did you manage to heal the IT band tendinitis and if so, what did you do?
natejenkins··on Show HN: ViewDom.js, graphical tree view of rich html editors
Author here. I often find when working on rich editors that I want to see a graphical representation of the editor dom with the current selection and any hidden or hard-to-see characters. That's what ViewDom does. Unfortunately it still needs some work on mobile devices but I already find it useful.
natejenkins··on Show HN: Xkcd mario-ish: a playable xkcd mario level
Ok, I re-enabled the back button.
natejenkins··on Show HN: Xkcd mario-ish: a playable xkcd mario level
Author here. I started this when the original comic was released in 2012 but it fell by the wayside. Recently I decided to pick up where I left off. It was interesting to take my own legacy coffeescript code from a time in which I didn't really know what I was doing and try to make it into something fun.

Code is here:

https://github.com/natejenkins/xkcd-mario

Thanks for any feedback!

natejenkins··on Show HN: Xkcd mario-ish: a playable xkcd mario level
it should work on desktop, does anything render or do you get a blank screen?
natejenkins··on Show HN: Xkcd mario-ish: a playable xkcd mario level
sorry about that, I disabled it since I was accidentally hitting it on my phone but I agree it is annoying.
natejenkins··on Dogs rush to help when owners cry, study suggests
I often tell people that I love my dog more than any human has ever loved a child, but I don't love this study.

The result is fairly obvious to any dog owner, but the study is representative of the type of "pop" science that appears so often in the news but carries little actual significance. 34 dogs total, 17 in each group (humming vs crying), 9 of which respond to humming and 7 of which respond to crying, albeit the latter much faster than the former. Of those 34 dogs, 16 were therapy dogs. While the time difference is large, more dogs respond to humming than crying.

So we have a very small sample size which is biased towards therapy dogs. It is also very susceptible to p-hacking. Why "Twinkle Twinkle Little Star"? Was this the song that produced the largest effect out of 20 different songs? Why do more dogs respond to the humming than crying but the dogs that do respond to crying act so quickly? Were the crying sounds much louder than the humming? Why not crying vs yelling, both of which are likely of similar volume? And so on.

natejenkins··on We need to call American breakfast what it often is: dessert
As an American living in Europe I would call pastries for breakfast a western breakfast. The idea that the US eats nothing but sugar for breakfast and this is unique in the world is way off base. Among my friends and colleagues, mostly Europeans from many different corners of Europe, it is exceedingly common to eat some form of croissants or pastries for breakfast. I think the difference lies in the portion sizes and density of these pastries.

I'll have pastries once a week when I have breakfast with my wife, but otherwise I tend towards yogurt, bananas, and a handful of cereal. I'm not on the "sugar is evil" bandwagon. I definitely do manage my weight but it is more about calorie control than sugar intake. A serving of yogurt will have between 100 and 220 calories depending on if it is plain or has a bunch of good stuff added (I like both), a banana around 100 calories, and a handful of cereal about the same. I love sugary cereal and don't want to eliminate it from my diet. The difference between how I consume it now and when I was a kid is that I really eat one handful at breakfast time whereas in my childhood would eat one to two large bowls.

Granola is the killer. The crunchy kind of granola has more calories per gram than sugary cereal and unfortunately is more dense. I see many people trying to eat a healthy, low calorie yogurt and granola breakfast only to fill the bowl with granola. Game over.

natejenkins··on A man who was jailed on the fantasy evidence of a single hair
"Having performed thousands of similar hair examinations over the previous 10 years, the FBI agent told the court, there had been only eight or 10 times when hairs from two different people were so similar that he could not tell them apart"

At worst this is a 1% error rate, at best 0.1%. Scientific validity aside, I find it unbelievable this was not considered reasonable doubt.

natejenkins··on What's the third most common element?
What caught my eye was the oscillation in the abundancy graph, there is a tendency for even atomic number elements to be more abundant than odd atomic number elements. Looking at the original Wikipedia article leads to the Oddo-Harkins rule http://en.wikipedia.org/wiki/Oddo%E2%80%93Harkins_rule. There is more discussion on the stability of even vs odd atomic number elements here: http://en.wikipedia.org/wiki/Even_and_odd_atomic_nuclei. From the latter link, roughly 60% of stable nuclei have an even number of protons and an even number of neutrons. Only 2% have an odd number of protons and an odd number of neutrons.

It would be nice if someone could explain any of the exceptions to the Oddo-Harkins rule, such as the dip at atomic number 44, Ruthenium.

natejenkins··on The statistical likelihood of Steph Curry's ridiculous shooting streak
Hi, author here, my statistics abilities are far from perfect so I'd welcome any feedback. I have a feeling there is a much easier way to get to the full answer than the statistical hoops I jumped through.
natejenkins··on When will we find aliens?
I think the Drake equation is worth mentioning here. It estimates the number of civilizations in the Milky Way Galaxy whose electromagnetic emissions are detectable (https://www.authorea.com/11048). Knowing some of the numbers involved, it can be reduced to approximately:

N ~= 2flfefcL

where fl is the fraction of habitable planets hosting life, fe is the fraction of life-bearing planets that develop an intelligent life-form, fc is the fraction of intelligent life-forms that decide to communicate, and L is the length of time a given civilization is transmitting "visible" communications. Taking ourselves as an example, L is already on the order of 100 years. The original estimates for these values were fl = 1, fe = 1, fc = 0.1-0.2, and L = 1000-100,000,000 (http://en.wikipedia.org/wiki/Drake_equation).

natejenkins··on The Cruelest Sport (1992)
Hey, thanks for providing a boxer's perspective. While you're here, I have a couple random questions: Do you always spar with headgear, mostly with headgear, or never with headgear? Can a boxer make a living as a sparring partner? How much is weight an advantage? Is 5 pounds massive, minor, or inconsequential? Finally, have you ever received a liver shot http://en.wikipedia.org/wiki/Liver_shot?

I'm impressed with anyone who will get in the ring. I might try it again one day with headgear. It's a spectacular workout and I'm sure it would be fun if you could get beyond the pain and fear and start using different tactics and strategies.

natejenkins··on The Cruelest Sport (1992)
I've boxed exactly twice in my life. Neither time was against a trained boxer, it just so happened that someone had a few pairs of boxing gloves lying around. My main take away was that getting punched in the face sucks way more than you think it would. Counter-intuitively, if you get punched in the face enough it eventually stops hurting at all. Time slows down. Your arms drop. Your mind drifts to thoughts totally unrelated to boxing. During the first "match" my opponent, also a friend, left me a gentle nudge away from getting knocked out. Although not quite enjoyable, I am glad to have had the experience.

All other sports are now erring on the side of caution when it comes to concussions, especially American football. In boxing the whole point is to give the other guy a concussion. You don't fall down from getting knocked over, you fall down because your body forgets how to stand up. And once that happens, which is some form of minor (or major) concussion, everyone cheers you on, encouraging you to stand back up so that you can get concussed again. Amazing.

natejenkins··on How Growers Gamed California’s Drought
I wish 1 pound of beef was only 213 calories. I think you took Google's first result (https://www.google.com/search?q=1+lb+beef+calories) which is actually for 3 ounces (85 grams). You need to multiply that by 16/3 (there are 16 ounces in a pound) which gives 1136 calories/lb.
natejenkins··on Why we love repetition in music
This is a weird article. What is referred to as the bridge is the pre-chorus, a common element in pop music. Bridges are also common, but generally only happen once in a song (I can't think of any exceptions) and are typically a 'journey' to somewhere else before coming back to the original theme. An example of a bridge is about 2.5 minutes into John Mayer's Find Another You: https://www.youtube.com/watch?v=_QcaHBTfGU8&t=2m38s.
natejenkins··on Superconductivity without cooling?
It might not sound like a lot but you need to put it in the scale of the atoms. That is about a 1% change in atomic spacing, which means a 1% strain applied to the sample, which is pretty big (think about how much weight you'd need to hang off of a steel bar to get it to stretch by 1%).

Pressure and strain are known to have large effects on superconductivity. In fact the highest known Tc of any material is HgBCuO under externally applied pressure (http://en.wikipedia.org/wiki/High-temperature_superconductiv...).

natejenkins··on Superconductivity without cooling?
The actual publication, http://www.nature.com/nature/journal/v516/n7529/full/nature1..., is not quite so bold as to say they've demonstrated room temperature superconductivity, rather:

"Among these, the enhancement in the dx2-y2 character of the in-plane electronic structure is likely to favour superconductivity."

They cite two of their past publications, "Optically enhanced coherent transport in YBa2Cu3O6.5 by ultrafast redistribution of interlayer coupling," and "Optically induced coherent transport far above Tc in underdoped YBCuO." If they had actually unequivocally shown pulsed YBCO to be superconducting at room temperature the title would be more like, "ROOM TEMPERATURE SUPERCONDUCTIVITY YES!!!!!"

The real demonstration of superconductivity is measuring a Meissner effect (exclusion of magnetic field) in the material (https://en.wikipedia.org/wiki/Meissner_effect). I haven't read the articles in detail, but it sounds to me like they have seen some properties that are similar to those found in the superconducting state, but they have not measured a definitive signature of superconductivity.

natejenkins··on Groups and Group Convolutions
Although I'm a physicist group theory was one of my favorite undergraduate courses. At the risk of sounding like an idiot to a mathematician, I will attempt to explain one of the cooler parts of an extremely cool subject. There are finite and infinite groups. An example of the former is the modulo3 addition operator over the elements [0,1,2]. The identity element is 0, 0+0=0, 0+1=1, 0+2=2. The inverse of 0 is 0, of 1 is 2 (1 + 2 mod 3 = 0) and of 2 is 1 (2 + 1 mod 3 = 0). Addition is also associative so we have that covered. An example of an infinite group would be addition over the integers.

Anyway, focusing on finite groups, mathematicians spent many years trying to classify finite groups into different types. For instance, every finite group of prime length is a cyclic group (http://groupprops.subwiki.org/wiki/Group_of_prime_order). This is already very cool since it implies that for each prime number, there is exactly one group with that number of elements, anything that looks like another group can be mapped 1:1 with the cyclic group.

There are many other types of finite groups and the vast majority (this is an understatement) can be classified as one type or another. At some point mathematicians realized that although there are an infinite number of finite groups, maybe they could classify all finite groups into one type or another and set about doing so, with the caveat that there is a finite number of exceptions to this classification, and these exceptions are called sporadic groups (http://en.wikipedia.org/wiki/Sporadic_group).

Here is where my knowledge is the fuzziest but also where things get awesome. Using a form of magic only available to mathematicians, it was predicted that an extremely large sporadic group existed somewhere out there, avoiding classification into one of the standard group types. I am guessing that certain hints to its existence were popping up here and there but have no idea as to what those hints might look like. In physics, particles have been predicted before (and at least one time using group theory: http://en.wikipedia.org/wiki/Eightfold_Way_%28physics%29), these predictions usually stem from attempting to explain experimental results. Mathematics lacks these experimental results so these sorts of predictions are all the more impressive.

Anyway, back to this extremely large group. It was given the name the Monster Group and an upper bound was given as to its size. If I recall correctly (I cannot find a citation), this upper bound was considered the largest useful number of all time (any child can name a number larger than a number given to them, but using it in some novel way is not so easy). Eventually the Monster Group was found, fulfilling the prediction, and its size given as 808,017,424,794,512,875,886,459,904,961,710,757,005,754,368,000,000,000, far below the upper bound but still quite large nonetheless (http://en.wikipedia.org/wiki/Monster_group).

Also, mathematicians succeeded in classifying finite groups (http://en.wikipedia.org/wiki/Classification_of_finite_simple...), it only took several hundred articles and tens of thousands of pages to do so.

natejenkins··on Introducing Phusion Passenger 5 beta 1, codename “Raptor”
Does Passenger 5 support hot reloading? This was the reason I switched to Unicorn a few years ago.
natejenkins··on How to write a developer resume that will get you hired
I encountered the same thing and pasted in the following in the console to disable all timers(1):

  // Set a fake timeout to get the highest timeout id
  var highestTimeoutId = setTimeout(";");
  for (var i = 0 ; i < highestTimeoutId ; i++) {
    clearTimeout(i); 
  }
(1) Taken from: http://stackoverflow.com/questions/3847121/how-can-i-disable...
natejenkins··on How to become a programmer, or the art of Googling well
"learning a language is hard"

I don't agree here. First off, your two years of high school German, like my two years of high school Spanish, were likely a waste of time. I had the highest grade in class and couldn't speak a word of Spanish, although I could write simple sentences in present tense quite successfully.

I moved to a French speaking country when I was 23. Initially, like most Americans, I thought that learning languages was hard so why bother. After one year abroad I basically spoke 0 words of French. Once I decided to stay long-term I took a French class, it was once a week for two hours for about 7 months. I was teaching physics in French a few months later. Granted I wasn't fluent, but it was good enough and my students were incredibly patient. By the time my own French course started up again it was unnecessary, I was learning more than enough during the day so I quit.

The key part was that the French class was only in French from day one. You could not ask a question in any language other than French because the teacher couldn't understand you (in reality she simply feigned incomprehension). Amazingly, a good teacher can make you understand a language you don't speak by speaking to you in that language. For the life of me I don't understand why high schools in the US don't adopt this system.

Babies are great at learning languages and you have a massive advantage over them, you have the power of reason. You also have the massive disadvantage of people refusing to speak to you like a 2-year-old.

My advice, if you really want to learn German, is to spend the next 6 months speaking to someone in German for an hour everyday (there are some websites that let you do this remotely). Same time investment as before, but I'm guessing you didn't spend so much time last year actually speaking with someone. Babies don't learn to speak through books, they listen for a year and then start saying extremely simple things. Learning to read in German will do wonders for your vocabulary, but it won't allow you to have a conversation. As someone who is quite anti-social, I find this unfortunate, but the wiring required to speak another language gets put in much faster by speaking said language.

Also, don't bother learning how to speak in present tense, learn how to speak in the past and future. You want to be able to say what you did yesterday and what you are doing tomorrow. People ask you how your weekend was and what are you doing for vacation, they know what you are doing right now because you're talking to them. Surprisingly, I can't think of a language where it is harder to speak in the past or the future than in the present due to verb conjugations becoming largely trivial.

I want to emphasize that I was not an especially gifted student in my French class. We were all total beginners and by the end of the course most people were functionally speaking French.

natejenkins··on Why Are Americans So Fascinated with Extreme Fitness?
When I pass a crossfit gym I think, "Hey, that looks like fun." I've never thought that about any standard gym. Olympic lifts are interesting and technical, but I wouldn't call them fun.
natejenkins··on Spelling Reform and the Reason It's Impossible (1998)
As a native English speaker who learned French, I would have to say that pronouncing written French is easier than pronouncing written English. Indeed there are sounds that are very hard to distinguish ("en dessus" versus "en dessous"), but these sounds are a function of your native language. If you are a native Spanish speaker, the sounds you find difficult will be different than those for an English speaker. However, reading French amounts to pronouncing what is written on the page. Granted it is a far cry from Italian, which I've been told has no exceptions concerning pronunciation), but there are many fewer exceptions than English.
natejenkins··on Show HN: HTML5 guitar lessons with pitch detection
I'm guessing you are coming from a classical music background where if you can read the music you can pretty much play the tune. I tried applying this method to jazz and it was a complete disaster. I could happily play transcriptions of all of my favorite artists, but the second you took away the magic book with the black dots I was helpless and couldn't make my own music.

If what you want out of music is to press the correct keys in the correct order then reading music will get you a long way. But if you are leaning more towards jazz or pop and making your own music then reading can be a horrible crutch. And the better you are at reading music the more you will rely on it and you rob yourself of developing a functional ear.

And what happens when you fall in love with an obscure indie artist where no transcriptions exist?

Concerning which string on a guitar is used, you can often tell by the tone of the note. Even with muted strings that give a percussive "pluck" you can often tell which note was fretted. For the most part if you are familiar with the style of music you can make very good guesses as to where on the guitar something was played, and if you cannot tell the difference then I would argue that it doesn't really matter.

Finally, out of the long list of musicians I admire in jazz, blues, and pop, I cannot think of one example where they admit they cannot play by ear. In the subset that teach I cannot think of one example where they do not strongly suggest learning music by ear.

natejenkins··on Show HN: HTML5 guitar lessons with pitch detection
I've been learning guitar for about 5 years now and would consider myself a serious guitar learner (i.e. I could happily play all day given the time). As a reformed sheet music reader during my saxophone playing youth, I would disagree with the idea that serious players should learn to read music, at least not at first. Serious learners should work on the most important part of any instrument: their ears. I don't read sheet music or tabs on guitar, and while I'm not Slash or BB King, I am confident that I could learn either of their songs by ear without too much trouble. I might never get fully up to speed on a Slash solo, or have the nuance of BB King, but reading music won't teach you either of those anyway. I'd suggest getting a program that can slow down music without changing pitch, I personally use Transcribe and am reasonably happy with it, and try learning one of your favorite songs by ear.

It will be painful at first if you don't naturally have good ears, it was painful for me (which is why I avoided doing so on saxophone), but the payoff is huge. It changes you as a musician. I've heard songs on the radio where I knew the chord progression and thus knew how to play the song before even picking up the guitar, that is pretty cool. I might come up with a bit of a song in the shower or in the car and when I sit down at the guitar and figure it out. Neither of these would be possible if I hadn't put in the hours listening to bits of songs again and again.

At the same time, if you are a beginner or intermediate player, I'd recommend justinguitar.com to get started. His youtube channel is extensive, and he and Marty Schwartz were my two main guitar teachers.

Also, I've met people who have played guitar for some time but cannot play bar chords. This simply shouldn't happen. There will be a song you want to play where you will need a bar chord, and you will either have to learn how to play bar chords or learn a way to "cheat" on that particular chord. Bar chords are awesome, piano players would kill to have a movable shape that makes transcription trivial (they'd also kill for a capo). They are well worth the initial effort and once you can finally play them you'll realize that they aren't that hard.

natejenkins··on Palaeolithic diet: Should we all eat like cavepeople?
I think the table on the Wikipedia page is misleading. The first paragraph states:

"Food consumption refers to the amount of food available for human consumption as estimated by the FAO Food Balance Sheets. However the actual food consumption may be lower than the quantity shown as food availability depending on the magnitude of wastage and losses of food in the household, e.g. during storage, in preparation and cooking, as plate-waste or quantities fed to domestic animals and pets, thrown or given away."

This is the amount of food available for consumption per person, not the amount consumed. Waste at the grocery store, waste at home, and uneaten food left on the plate are not taken into account, and I would guess that all three are important factors.

natejenkins··on Palaeolithic diet: Should we all eat like cavepeople?
Something is off in these numbers. There are 9000 calories in a kilogram of fat. If Americans were really eating 1700 calories more than required each day they would be gaining around 1.3kg/week (about 3 pounds). Of course, given the same amount of physical activity, the heavier you are the more calories are required to maintain your current weight, so that eventually this 1.3kg/week would level off.

From personal experience, I would say the average weight gain per year in the US is a few kilograms, let's say 2. This is 18000 calories in excess, which is just about 50 calories a day, or basically one apple too many. The clear lesson to be learned is to cut back on the apples.

There are some studies that agree with my anecdotal evidence: http://www.livestrong.com/article/142567-average-increase-we...

natejenkins··on Show HN: Codebrag – No More Late Friday Fixes
No more late Friday fixes

Am I alone in not liking this line? I don't see the correlation with code review. I initially thought this site was yet another "prevent drunken code commits" tool, which I'm not at all interested in, and not a code review tool, which I find quite interesting.

Scrolling down the page, I came across:

Codebrag is not about code reviews. Well, not only about that. It's about making your life easier by helping you write better code. And that means not staying late. And an empty office on Friday evenings. Because everything is "done done". Just kill the lights and enjoy your weekend.

This is where I closed the site. I don't think about code review as a tool to relieve me of work duties on a Friday night, I view it as a tool to help my software development. To be honest, as someone who works at a small company trying to become a big company, there has never been a moment where everything is "done done".

Just to clarify, I'm not dissing the site overall, it might be awesome, I just think the text on the homepage could be modified to tell potential users such as myself why I should be using Codebrag instead of Github for code review.

Page 1 of 4Next →