HNHacker News
TopNewBestAskShowJobs

Raphmedia

5,930 karma · joined June 26, 2013

I'm a full-stack web developer with emphasis on the front-end. Ask me about my mad css skills.

(English is my second language. So I may make stupid grammar mistakes.)

———

• Full-stack web developer @ http://robotshop.com/

• Opinions are my own and not the views of my employer

• raphael AT-AT raphmedia DOT com

• topcolor: 50b1db

———

submissionscomments
Raphmedia··on Cloudflare Network Performance Issues
"Unfortunately, one of these rules contained a regular expression that caused CPU to spike to 100% on our machines worldwide. This 100% CPU spike caused the 502 errors that our customers saw."

So, it was a dirty REGEX. I can't even be mad.

Raphmedia··on Cloudflare Network Performance Issues
It is. https://www.cloudflarestatus.com/
Raphmedia··on Do Women Give Up Competing More Easily? Evidence from the lab and math Olympiad
> But my point on science denial was that saying that it is all or mostly society based still stands.

It is a good thing that nobody here said that then.

Raphmedia··on Do Women Give Up Competing More Easily? Evidence from the lab and math Olympiad
This is irrelevant to what I just said.

I merely wrote that differences between men and women are not only biological but also based on social structures.

You start by saying that you agree with this and then you make our own statements.

I am incredulous about how linking a study from a scientific journal is evidence of science denial.

Raphmedia··on Do Women Give Up Competing More Easily? Evidence from the lab and math Olympiad
I like to casually read articles on that topic. From my perspective and general knowledge, I would say that society shapes people and not just biological differences. Sex-based social structures are very complicated.

This comes to mind:

"Women reported themselves to be higher in Neuroticism, Agreeableness, Warmth, and Openness to Feelings, whereas men were higher in Assertiveness and Openness to Ideas.

Contrary to predictions from evolutionary theory, the magnitude of gender differences varied across cultures.

Contrary to predictions from the social role model, gender differences were most pronounced in European and American cultures in which traditional sex roles are minimized. Possible explanations for this surprising finding are discussed, including the attribution of masculine and feminine behaviors to roles rather than traits in traditional cultures."

https://www.ncbi.nlm.nih.gov/pubmed/11519935

Raphmedia··on The Popularity of the 4.7″ iPhone
Because it's the only pocket available on most of our pants. The front pockets are sewn shut or cut in half to maintain a feminine silhouette in jeans. They often remove the zipper for the same reason.

Even this back pocket is small and a bad way to carry a phone, as evidenced by the fact that you can see it sticking out. You can't sit and you can't run without the fear of dropping it.

Raphmedia··on “The books will stop working.”
In fact, the majority of books you will find in most libraries are at the very least 10 years old.
Raphmedia··on US Navy's Railgun Now Undergoing Tests in New Mexico
To my ears, the track of the first video sounds like a royalty free copycat of Hans Zimmer's Pirate of the Caribbean soundtrack.

In the context of a new canon to be installed on the Navy's ships I think it fits pretty well. It does not sound nationalistic or over the top to me.

The other videos are on personal channels so they are inconsequential.

Raphmedia··on Pentagon has a laser that can identify people at a distance by their heartbeat
> With automation I can't help but think that this is unfortunately going to bring George Orwell's dystopian vision closer to reality.

You only need to look across the globe to find a situation where this exists.

https://www.businessinsider.com/china-emotional-surveillance...

Raphmedia··on Calgary student has been studying decibel levels in hand dryers since age nine
I also wear earplugs and they do improve my mood and ability to stay focused.

I remember that my father did the same when I was a kid. At that point I laughed, now I understand. I'm guessing sensitive ears run in the family.

Raphmedia··on Ask HN: How much do you work at your job?
I have invested in a quality pair of earbuds that double as foam earplugs.

This passive sound isolation means I can set some music at low volume and be completely isolated from the outside world.

Active isolation is rubbish because it lets voices through.

Here is what I use : Shure SE215 - https://www.rtings.com/headphones/reviews/shure/se215#compar...

I consider that with those, I can work as well as I can alone at home. Otherwise, I also suffer from a very noisy office with constant laughter, anecdotes, movie and TV show reviews, people reading emails out loud to team mates etc. and can't ever enter the flow.

I am also a big fan of using fake babble noise to mask surrounding chatter. After about 5 minutes, the brain ignores all of it including the real chatter that is around you. Namely this https://mynoise.net/NoiseMachines/babbleNoiseGenerator.php or this https://mynoise.net/NoiseMachines/cafeRestaurantNoiseGenerat....

Raphmedia··on Ask HN: How much do you work at your job?
About 95%.

The missing 5% does not include paid breaks but things like walking to the meeting room, going to the bathroom, checkout out projects or doing updates.

I absolutely loathe people who come to the office to chat as if we were close friends. I understand during breaks and lunch but not at the work desk. Constant out of topic chatter is the bane of any open office.

The days I love the most are those where I manage to enter "flow" in the morning and keep working for the entire day.

Raphmedia··on Why brilliant people lose their touch
I have an acquaintance who works from home.

He recently told me that every time he feels like he's losing his motivation and starts to fall into negativity, he goes to the kitchen and does the dishes.

He considers this time to be part of his work day.

By the time he has washed the dishes, the sense of accomplishment is back.

What I take from this anecdote is that the brain does not distinguish that washing something is not part of building a web application. It is simply content to have cleaned multiple objects and then have completed a complex task.

Raphmedia··on Nitinol Engines (1992)
There is also a deluxe kit that comes with more wire. 1 meter of each kinds instead of 20cm & 40cm wires.

https://www.robotshop.com/en/muscle-wires-deluxe-kit.html

(Disclaimer: I work at RobotShop in their Web & IT team -- I have nothing to do with marketing though and I'm just a fan of Hacker News.)

Raphmedia··on Personal data of 2.9M people leaked from Desjardins
According to them, there's permanent monitoring in place. This free paid plan is simply a bonus.

    We introduced additional monitoring and security measures to protect your personal and financial information.
    
    We notified the following authorities: the Office of the Privacy Commissioner of Canada, the Commission d'accès à l'information du Québec and the Autorité des marchés financiers.
Raphmedia··on Personal data of 2.9M people leaked from Desjardins
More informations from Desjardins: https://www.desjardins.com/ca/personal-information/index.jsp
Raphmedia··on Personal data of 2.9M people leaked from Desjardins
It's very bad from a privacy standpoint but at least nobody will be able to log-in to my account and send all my money offshore.
Raphmedia··on Show HN: Stabre – Find hyper-targeted B2B leads
Yes! Thanks. That post: https://news.ycombinator.com/item?id=20108573
Raphmedia··on Show HN: Stabre – Find hyper-targeted B2B leads
I find this comment very interesting. Recently, there was a similar submission to HN (which I didn't save because I don't care about this need).

It was titled in a similar vein, something like "We made Google for ...". That time, it was actually the suite and not the search.

Most of the comments were about how people expected to see the search because "Google" is synonym to search.

Seems like you can't win when you compare yourself to something as huge as Google.

Raphmedia··on One liner NPM package “is-windows” has 2.5M dependants, why on earth?
Here, test it. If you test it multiple time you get slightly different results. Both seem to be similar. You would have to ask the author why they went with the regex solution to know why they chose that one. Knowing Javascript, there's probably a pitfall we are not thinking about.

http://jsben.ch/uFK8t

Raphmedia··on One liner NPM package “is-windows” has 2.5M dependants, why on earth?
Super optimized as in the sense that this line was distilled to be as small and lightweight as you can get it while making sure it works with actual tests.

Just search for "Javascript check if variable is window" to find all kinds of solutions that seem to work at first glance but would probably end up breaking under some specific situations. Some people tests against the .toString of the variable, others look to see if the variable has under it what 'window' usually contains while some create a new instance of 'window' and compare it to their variable, etc.

The solution that "is-window" brings seems to be as perfect as you are going to get it. In an ecosystem where things change quickly and you are not sure where your code is running it's easy to become dependent to such crutches. You do not want the mental burden of remembering all the hacks.

I am not defending this particular package and I'm sure we could come with a better solution of testing it. If you do, make a pull request. I am merely explaining why those package happen.

Raphmedia··on One liner NPM package “is-windows” has 2.5M dependants, why on earth?
This line is tested against and super optimized. By requiring this, you are future proof. The maintainer is active and writes tests. It's also a bit esoteric and hard to undestand.

`return process && (process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE));`

Here's is what's probably going on in the head of the people who require it:

"What does this do exactly? Why do I need to test against 'win32'? Should I also test against 'win64' or 'x64'? What if it changes later on? Do I need to keep track of Windows versions and then change all my apps? What if I write it without testing for 'cygwin' and someone else in the project do? Will the app only work partially on some hardware? What if some new OS comes out?"

Don't get me wrong, it's not perfect and is a security hole. But that's the reason it's done.

Raphmedia··on Myths about Testosterone
> That magical way exists already, and it's called gender.

If it was magical we wouldn't be having this conversation. What of individuals like Caster Semenya? Should we ban her from all sports because she does not fit classical gender classification? One thing is clear in my mind is that we should not force hormones on her as if she was cattle.

Raphmedia··on Myths about Testosterone
When I said "weighted & tested", I meant it as some magical way that would ensure that individuals of similar body type and physical characteristics are grouped together independently of gender.

Taking boxing as an example again, sure if you put a female heavyweight (179 pounds / 81 kg) against a male heavyweight (201 pounds / 91 kg) the male will dominate. But if you standardize the divisions and have her compete against an equal the situation might be different.

The again, you would have to take into account things like bone density, etc. In a sport like boxing, that's not very straightforward to do because of the fact that individuals with testosterone usually have greater upper body strength and that's a big advantage.

In a team sport, this might be different since they allow for the team to be balanced depending on their members. For example, some individuals might have greater endurance but lower strength, etc. I'm sure that we would also see a more diverse cast of males as opposed to only "peak athletes" (7 ft+ basketball players, super heavyweight hockey players, etc.) and that would be great.

I do agree that's it's a complicated question that should be deeply analysed and that we won't come to a solution in this comment section.

However, a statement such at that one from the article is simply anachronistic and wrong in 2019. This isn't the right way to tackle the problem.

"mandating that healthy athletes undergo medically unnecessary interventions in order to compete [...] These changes—including reduced muscle and increased fat—are supposed to produce the kind of body that Stéphane Bermon, Director of the IAAF Health and Science Department, has presented as the “ideal female phenotype” at scientific conferences."

Raphmedia··on Myths about Testosterone
> and people who have had higher testosterone for most of their life retain all of these advantages.

Transgender woman here.

The lack of testosterone in my blood resulted in my muscle mass reducing to the point that I cannot do regular push-ups anymore. Granted, I could have trained if I wanted to retain this muscle mass but didn't.

I also have to take supplements as prescribed my by healthcare provider to retain bone density.

Both of those facts are well documented.

IMO athletes should be weighted & tested and then put in devisions as is done in boxing. A heavyweight will never fight a light flyweight. The same concept should be applied independently of gender.

Raphmedia··on China’s 'Thought Transformation' Camps [video]
Simply because you are not the target demographic.
Raphmedia··on Transforming a Tesla Model 3 into a Pickup Truck
This depends a lot on where the person making this claim is from. Most of my acquaintances from rural areas all drive cars, not out of choice but necessity.

However, everyone that I know who lives in the city don't drive and never owned a car. It makes a lot of sense for those people to wait until their late 20's to get a car since there are good alternatives to driving.

It makes sense for them to wait until they are able to afford a car that is electric.

Electric cars are more affordable than ever and the trend will continue. Kids who are 18 years old today will without a doubt be able to get an electric car in 10 year without breaking the bank.

Raphmedia··on A Bridge Made of Grass
What you imagined do exist. They use them to allow animals to migrate across highways without putting them in danger.

See this: https://www.canadiangeographic.ca/article/banffs-famed-wildl...

Raphmedia··on Head Wounds and Steel Helmets
This is similar to the story about planes coming back with holes during WWII. They focused on adding armor on those spots but the number of planes that came back home didn't increase. It turns out that the planes with the holes were the ones hit in non vital spots. They should have up-armored everywhere BUT those spots.

It's a similar situation here. The helmet prevent death but increase the amount of injuries. Removing the helmets and adding more body armors would be problematic.

Edit: Wrote this out of memory but here's a source if you want to read more. https://medium.com/@penguinpress/an-excerpt-from-how-not-to-...

Raphmedia··on Things I learnt the hard way in thirty years of software development
The sections on work relations are golden. If there is anything you should remember after reading this, it is these points.
← PreviousPage 10 of 34Next →