HNHacker News
TopNewBestAskShowJobs

rectangletangle

813 karma · joined December 1, 2013

submissionscomments
rectangletangle··on Show HN: CSSFX – Click-to-copy CSS effects
I found this true as well.

However, the actual effects are nice. I did notice some flashing with the "bubble" animation on Mobile Safari (probably a browser quirk). Though others like "slide" appear smooth and sleek.

rectangletangle··on Is Conference Room Air Making Us Dumber?
I always sleep with the window open, because the fresh air feels nice.

In evolutionary terms, you could speculate that the nice feeling of fresh air could be an instinctual response directing the organism to seek higher quality air.

rectangletangle··on Show HN: Applying the Unix philosophy to neural networks
This, I'm primarily into Python, but the fact this is written in LISP makes it interesting alone.
rectangletangle··on Joe the office mate
I often do the same thing with more critical functionality. Though I'm not quite as thorough, usually calling it at iteration 2 or 3.
rectangletangle··on Homosexuality in giraffes and other non-human animals
Exclusive homosexuality is found in nearly 10% of male sheep, as well as a bunch of other species of mammals and birds.

What’s interesting with the giraffes is the really high prevalence (94%), which suggests it’s an adaptation to some form of natural selection. Even the rate of 10% would suggest an adaptive response, but the really high rate emphasizes this.

rectangletangle··on Why is nuclear fusion so hard?
Agreed, the accepted models in physics are laughably incomplete. There is still a tremendous amount we still don't know. Although it's possible we've peaked, I have doubts.

It is also a self fulfilling prophecy to declare that we have reached our technological apex, and not striving to progress further.

rectangletangle··on The Octopus Is Smart as Heck, But Why?
Don't know why you're getting down votes, this is a reasonable question.

For instance, if you have a container full of hermit crabs, shells, and other debris, nearly 100% of the crabs will adorn themselves with a shell, because of the instinctual drive to protect their carapace.

While if you were to repeat the same exercise, but with octopuses instead of crabs, the octopuses will find shelter in many different and creative ways. Some will find crevasses, while others will wear a shell like their ancestors (though this isn't likely instinct, since ancient cephalopods grew their shells, instead of hunting for them). Some will even live in a shell, and then find a "door" to cover the entrance with.

Combine with evidence of mechanical aptitude, from experiments where octupus are given food in locked containers, it's pretty clear they have a deep understanding of the world around them. For example you can give an octopus a meal in a threaded jar, and after some initial experimentation, they will reliably get to the food. The second time, it will immediately unthread the jar without experimentation, suggesting that it learned the "trick." Keep in mind, very few animals physically capable of opening a jar are actually smart enough to figure out how jars work, so this is very impressive.

Another interesting example, wild octopuses favorite food is crab, they will seek out fisherman's crab traps in the wild, open the latch mechanism, then gorge themselves on all the trapped crab inside. They are the only animal I know of that will do this.

rectangletangle··on The Octopus Is Smart as Heck, But Why?
This, the octopus is choosing its shelter based of fluid reasoning, while the arthropods are doing it in a reflexive instinctual manner.
rectangletangle··on Falsehoods Programmers Believe About Names – With Examples
I actually wrote a service attempting to deal with this exact problem, the amount of edge cases and exceptions make it particularly challenging, nearing that of general NLP.

https://www.alphanym.com/

Probably my favorite case were some Manchurian names, which could only be spelled vertically.

https://en.wikipedia.org/wiki/Nurhaci

rectangletangle··on You should never spend $825K on a domain – but here’s why I’m glad I did
To me at least covered.com would have been a better choice for an insurance company. Though the cost to benefit of $800k makes me seriously question if that money could have been spent somewhere else with better returns.
rectangletangle··on Learn Service Workers inside and Out with a New PWA Mastery Game
I'm a huge fan of the new service workers functionality. Between it, and local storage, you can write offline web apps, which offer native app like functionality.
rectangletangle··on Why Do Taxonomists Write the Meanest Obituaries? (2016)
https://en.wikipedia.org/wiki/Species_problem

>The species problem is the set of questions that arises when biologists attempt to define what a species is. Such a definition is called a species concept; there are at least 26 recognized species concepts

rectangletangle··on Introducing Hooks
Agreed, the explicit nature of React is a really appealing aspect of the framework to me. Coming from Angular 1, React is remarkably "magic free," while offering a comparable level of functionality.
rectangletangle··on Jason Fung explains why intermittent fasting diets work
Same I do time boxed intermittent fasting, usually exercise in the morning, and eat a single large meal between 2-7PM. I primarily do cardio (distance running), and didn't notice any performance hit.

Early on when I was still experimenting with the diet, I did drop down to around 160-165lbs, and my running performance took a drastic hit. I remember struggling to complete a three mile run one day, when 6-10 was typical for me at the time. I felt normal up until around one and a half miles in, then I hit a wall, which made me turn back early. It was a really odd sensation, the will was there, but I was weak, almost like I had run out of gas. I'd tell my legs to move, and they'd barely follow through. This wasn't soreness, or fatigue, but weakness, subjectively a very peculiar sensation, and not at all subtle.

Being weak like that did freak me out a little bit. I simply added more calories (ate more), while maintaining meal timing, and my distance was back to normal in a week or two though (actually slightly better than my pre-diet "normal"). This brought my weight up to a steady 170-175lbs, which I've been at for about two years.

It's really important with this style of diet to get adequate nutrition. If you're eating less, or timing your meals, you really need to maintain a high-quality diet. You're likely eating less than most other people (or what you're used to), so the nutrients and calories you do take in are that much more important. Eat a lot of fresh vegetables, moderate carbs, and high-quality protein. Extra fiber is also really important, because the extra volume helps create a sensation of fullness, making the diet easier to stick to. You'll also want to drink extra plain water, to accompany the fiber, so your body chemistry doesn't get out of whack. Don't eat any refined sugar at all, it's a powerful appetite stimulant, and will make the meal timing much much harder to stick to.

rectangletangle··on Why Do Computers Use So Much Energy?
I would be surprised if the 5% that goes toward computing didn't knock down transportation from 35% to 30% through improved logistics alone. My gut feeling is computers are a net positive energy wise.

Also what percentage of that 5% goes to mining bitcoin, or re-downloading jQuery for the 5000th time?

rectangletangle··on Why Aren’t We Eating More Insects?
Cheek meat is often the best part of the fish (fattiest).
rectangletangle··on Life on the Internet Is Hard When Your Last Name Is 'Butts'
This is basically what Alphanym does, though it presents the nickname field conditionally, to optimize the sign up flow for fewer fields whenever possible.
rectangletangle··on Life on the Internet Is Hard When Your Last Name Is 'Butts'
While still in the Unicode realm, some people have names that can only be spelled in their native script vertically. For instance people with Manchu names. This case breaks Wikipedia's formatting in comical ways.

https://en.wikipedia.org/wiki/Nurhaci

rectangletangle··on Life on the Internet Is Hard When Your Last Name Is 'Butts'
The biggest problem with this strategy is it isn't idiomatic to refer to someone by their full name in many contexts. However given its simplicity, and cultural neutrality, a single full name field should be the default choice IMO.
rectangletangle··on Life on the Internet Is Hard When Your Last Name Is 'Butts'
No these are all names of public figures pulled from Wikipedia, not names submitted by individuals, because of the obvious privacy violations. Each name has a corresponding Wikipedia article. I should have clarified initially though.

For instance:

  #1 https://en.wikipedia.org/wiki/Mary_Kawena_Pukui
  #2 https://en.wikipedia.org/wiki/Shirani_Bandaranayake
  #3 https://en.wikipedia.org/wiki/Alick_Aluwihare
rectangletangle··on Life on the Internet Is Hard When Your Last Name Is 'Butts'
That's a pretty common way for people to modify their names into a more practical form (I'm sure typing all that out is a pain). This is why you shouldn't ever assume properties of people's names, and should instead write UIs which confirm the name's properties with the user.

Just for fun, I wrote a quick query to pull the head from my DB.

  NAME_LENGTH_CHARS, NAME_TEXT
  91 'Mary Abigail KawenaʻUlaokalaniahiʻIakaikapoliopelekawahineʻAihonuaināleilehuaapele Wiggin Pukui'
  85 'Upatissa Atapattu Bandaranayake Wasala Mudiyanse Ralahamilage Shirani Anshumala Bandaranayake'
  83 'Wanisekara Bandaranayake Wasala Mudiyanse Ralahamilage Aluwihare Uda Walauwe Alick Aluwihare'
  68 'Guido Georg Friedrich Erdmann Heinrich Adalbert Graf Henckel von Donnersmarck'
  66 'Wasalakulathunga Wijekoon Mudiyanselage Duleeka Kumari Wijekoon Marapana'
  65 'Clemens Erwein Heinrich Karl Bonaventura Freiherr von und zu Franckenstein'
  59 'Guillaume Joseph Hyacinthe Jean-Baptiste Le Gentil de la Galaisière'
  58 'Weerasooriya Dissanayake Mudiyanselage Punchi Banda Dissanayake'
  56 'Charles de Marguetel de Saint-Denis, seigneur de Saint-Évremond'
  56 'Venerable Professor Kollupitiye Mahinda Sangharakkhitha Thera'
  ...
(EDIT TO ADD: These are all names initially sourced from Wikipedia)
rectangletangle··on Life on the Internet Is Hard When Your Last Name Is 'Butts'
Most certainly, percentile wise, they're the 99th. Nearly every case where I encountered a name that long though, there was a shorter form. Generally really long names are either patronymic/matronymic (listing ancestors) like many Arabic names, or names following Hispanic conventions. Hawaiian names can also sometimes be rather impressive.

For instance Pablo Picasso's full name is 103 characters (without whitespace): Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso

rectangletangle··on Life on the Internet Is Hard When Your Last Name Is 'Butts'
I actually wrote a full-stack web service to handle people's names, specifically to help avoid situations like this. My best advice: treat people's names as a potentially very long and entirely arbitrary text field. Don't assume anything without their confirmation, even if it seems obvious, because somewhere out there someone's name will violate that assumption. My research did conclude that nearly all names are below 500 characters, so that's a reasonable upper bound, though I would at least double it to be safe.

https://www.alphanym.com/demo

rectangletangle··on The hidden reality of ridiculously complicated algorithms
Reminds me a little bit of Gertrude Stein's Tender Buttons, in the book she uses very unorthodox language to make the mundane seem surreal. It has been described as "verbal cubism."
rectangletangle··on Idempotence: What is it and why should I care?
One of my favorite parts of Python is the idempotent type casting functions.

Say you have a function that takes a list as input, but sometimes a tuple is passed. Wrapping the input like lvalues = list(values), ensures that lvalues will always be a list (or it throws a type error), so you won't get annoying attribute errors, when trying to access the list's methods. In the case of a list type(list([])).__name__ == 'list', as does type(list(list([]))).__name__, etc.

This can get a bit tricky with situations where type casting may be undesirable, say casting a string to a list. So judicious use is necessary.

rectangletangle··on Idempotence: What is it and why should I care?
This is solid advice. Another common trick is to disable the submit event when the submit button is clicked for the first time, preventing two requests from firing, when the user double clicks. Then re-enable the event, if the request fails. Ideally this is done in addition to server side nonce validation, and not as the only preventative measure, because browser differences, or network issues could cause a double request (more likely if the HTTP GET method is used, instead of a proper POST). Regardless server and client side techniques should be used together to create a better UX, similar to using both client and server side email format validation.
rectangletangle··on Things People Eventually Learn About JavaScript Projects
I had worked quite a bit with Angular 1 (first "real" front-end framework I learned), and some jQuery before that. I found the React/Redux/JSX stack to be really quick and easy to pick up. The simple component API and minimal use of magic helped avoid many of the headaches and quirks Angular 1 was riddled with. React/Redux is the most painless front-end stack I've ever used, makes writing web clients much faster.

My only real complaint against the modern React/Redux stack, is the crazy amount of boilerplate involved, even with a "minimal" project.

rectangletangle··on Hawaiian pizza
Caesar salad is a Mexican dish, created by and Italian chef, targeted toward American consumers.
rectangletangle··on Show HN: Flip gender in Python
A k2+ gender version would be an interesting expansion on the idea though. Since the notion of a complementary or inverse gender isn't universal to all genders, maybe cases where there's no clear inverse the gender could be swapped with a randomly chosen gender. Or just swap any explicit gender reference with a different randomly chosen gender. This becomes a bit more challenging if you want to keep the output cohesive though, since you'd probably have to introduce some sort of entity linking scheme.

Another issue is finding an appropriate k for genders, assuming this package is implemented with some sort of hard coded gender mapping. This becomes more complex when accounting for different cultures, which probably just ends up multiplying k by m cultures.

rectangletangle··on Building a Kickass Portfolio
The animation on http://merkoba.com/ hurts my brain.
← PreviousPage 3 of 12Next →