HN user

erroneousfunk

571 karma
Posts1
Comments387
View on HN

Your solution depends on third parties checking the script or going based on some knowledge of "trusted sources." That has nothing to do with this hack, which exploits those who are "verifying" the script themselves before executing it.

The simple solution here is not to use curl/execute with a pipe. Just wget to save the file and check it locally (rather than through a browser) before executing.

They can get jobs within walking distance in the city.

In which fantasy world do people in poverty just regularly find jobs in the city within walking distance of their magical free house in the city?

Tangential, but this is the same reason mandatory health insurance makes sense. We go around living in our bodies, and they break down sometimes. It's the law in this country that emergency rooms can't turn people away without evaluating and stabilizing them, so you're always one accident away from creating huge costs for someone else if you don't plan for these costs with health insurance.

In the case of car insurance, the injured party is the driver you run into, or the property you damage. In the case of health insurance, the injured party is the hospital/doctors.

I always thought it was strange that so many states were totally on board with mandatory car insurance, but not mandatory health insurance.

How I review code 8 years ago

I had a manager that loved Java. He wanted to add a new helper service onto an existing service that was written in Python, but the new service would be Java (because Java is the best, obviously).

This new helper was responsible for transforming, combining, and synthesizing large API responses with somewhat variable and highly nested data structures into other large API responses with somewhat variable and highly nested data structures. It certainly was not Java I was proud of, but it would have been trivial (and FAR more readable) in Python. Ugh.

How I review code 8 years ago

they've picked the right abstraction for the problem

I hate to agree with you, but "picking the right abstraction for the problem" elegantly expresses what I've been trying to tell people for the last few years now, but far less succinctly (I usually ramble on about "underlying data models" and "what this actually is in the real world, not just how we view it in our application")

The reason I hate to agree with you is that I just became very disappointed that this is a difficult skill to master. "Just use the right model and the code is easy, duh. Why aren't you doing this?" Well. Now I just feel like a jerk. I thought they just gave me the "senior" title because I was old.

It's unfortunate that one of the most important skills in the industry is so intangible and difficult to quantify. Even more difficult to teach.

"If unforeseen complications arose during or after the procedure, the Surgery Center would cover those costs. Villa wouldn't see another bill."

So there is a sort of built-in insurance to this system. Those who don't have any complications are paying more to cover patients who do. They're simply passing the first line of medical costs (known, anticipated, where a price estimate can be created) on to consumers while letting insurance handle un-estimatable medical emergency type situations.

Amen. I rented in Boston, Somerville, and Medford after college, and it's amazing the number of landlords who are just random people who happen to have an extra property, or bought a house with an extra unit, and decide to rent it out. They print a template lease, we sign, and they hand over the keys.

Two landlords in particular didn't know about things like escrow account and interest laws for security deposits, contact information posting for vacant landlords, who's responsible for things like snow removal and smoke detector maintenance. I left those units in good condition (thankfully for them!) but nearly sued twice and, in one case, received triple damages on my security deposit.

One landlord said "To keep costs low, tenants generally organize snow shoveling" I said "Oh, sorry, I didn't realize we were breaking the law here."

There are some states with very few tenant rights where landlords can get away with a lot. California and Massachusetts are not those states. It's a very serious part time job that requires a lot more than just owning a property.

I think it's incredible that her health insurance didn't cover electronic prosthetics.

The hook prosthetic is just a simple open/close grabber tool. Imagine trying to navigate through life with two grabbers. The modern myoelectric prosthetics offer way more functionality and freedom. You can use a computer, dress yourself, drive a car, and feed yourself (of course the author can't do all these yet, it does take time to learn). You can't do this at all with hooks.

I fractured/dislocated multiple wrist bones two years ago and it wasn't life threatening but I would have had diminished functionality without surgery -- insurance covered it no problem. My hand is great.

How the hell does it make sense to fix a wrist in order to allow someone to do the activities of daily living but it doesn't make sense to give them a common commercial prosthetic in order to do the same thing?

"Sleeping with a guy is a built in option women have to better their lives, that men don't have."

This is a complicated issue, and there's a lot to unpack here.

That technique may be used for women (and, heck, men too -- I'm the female 'breadwinner' of my household, although I didn't meet my husband at a sex party...) to better their lives, but those gains may be sporadic, and they depend on the continued cooperation of the man they're sleeping with.

I was in a "trophy girlfriend" relationship when I was young and my entire life revolved around "keeping" this guy. After a while, he broke up with me, I had to ask my parents for rent money (I had taken a first class trip to Europe the month before, but what was I going to do, ask him to put the money into my emergency savings account instead?), my entire life sort of fell apart. I went to parties with his friends, lived in his apartment, had a credit card on his account. Making sure he was happy was a job, but the skills weren't entirely transferable and there was no security. Not a situation I wanted to be in again, and I didn't.

Having a job, skills are easily transferable between employers, resources in my own name, and a relationship built on mutual respect and kindness, gives me far more freedom and security than sleeping with guys for the lifestyle perks. Even with alimony and child support in the picture (in which case you need to "get him" to marry you and/or have children) there is no facet of your life or lifestyle that is insulated from the whims of a single person. No, you may not starve after a divorce, but, especially if there's a pre-nup involved, the "betterment" in your life will always be temporary gain during the length of the relationship while his will be a permanent one.

Now, I'm not saying women shouldn't go to these parties or sleep with these men if they want to, or that considering a man's private jet ownership when debating about whether or not you want to sleep with him is an immoral choice. But saying "This is a built-in option for women that men don't have... the rest of us poor schmuck dudes actually have to go to work everyday" is an incredible simplification that makes the two choices sound like equivalent things, when they're absolutely not.

On a side note: The presence of these particular sex parties, and the fact that they're so closely intertwined with business in Silicon Valley, I think is an problem. As the article paints it, there's sort of a "damned if you do and damned if you don't" issue that they're introducing for women working in certain companies or who are seeking VC funding.

I think it depends on the amount of business that you want. I do freelance as a side job and only have a few clients a year that give me an extra ~10-20k of income. I mostly do web scraping, data science, data management, and teaching (workshops, taught a couple university classes, adult education)

Networking events and word of mouth from other clients have been about half of my work, and the rest just sort of email me out of the blue based on either my LinkedIn profile or a book I wrote.

I don't blog, I don't have much of a professional website. The book I wrote is fairly popular, but I find that the people who email generally haven't read the book (although they might have bought it... to see that it's real, I guess) but they find me through that.

Will agree that cold outreach doesn't work at all unless you're doing it on a massive scale (and then you're just a professional salesperson...). I've done it, but it's literally never worked for me.

In a computer security class I had at Harvard, the professor made the comment: "Your mother's maiden name is considered a 'secret.' Which is funny, given the building we're in."

We were in the Maxwell Dworkin building, named after the surnames of Bill Gates' and Paul Allens' mothers. Their mothers' maiden names were literally carved in a huge stone sign outside the building.

Known genes associated with hip bone size in women (but not men) are found on chromosome 2 (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2522269/). But the expression of those genes is likely controlled by estrogen (http://www.sciencemag.org/news/2016/04/woman-s-pelvis-narrow...)

Individuals who have androgen insensitivity syndrome (XY chromosomes, but that don't respond to testosterone and are, for most intents and purposes, sterile females) will have large hips/pelvic bones.

So, yes, hip size takes a few modified base pairs (although probably all within one gene, or pretty close together on the same chromosome), but evolution only needs to "decide" (heavy emphasis on the quotes there) that this physiological change is hormonally triggered. Many skeletal changes are hormonally triggered, so this may have even been the easiest/most likely path.

I made a post about this, above, but I would argue that urine isn't always possible to completely clean in some situations. We lived in a place with a carpet and a thick pad under the carpet. Combined with a cat that spontaneously decided to habitually urinate in that one spot (no history of it). We tried EVERYTHING -- it was a massive project for over a year to get her to stop and spent hundreds of dollars on cleaning. Every enzyme product and shampoo, hours of elbow grease, soaking, drying, re-soaking, re-drying. We caught it as soon as it happened, gave LOTS of care and attention, but no dice.

Even the most responsible owners with the best pets can have problems that can't be fixed without just replacing the entire carpet. It happens.

My husband and I replaced a carpet in our last apartment ourselves before move out (hired a professional, got it matched exactly with the rest of the carpets, replaced carpet pad as well, cleaned concrete subfloor) because our cat decided that one corner of the living room was an appropriate place to urinate.

She's usually a well-behaved cat, never did anything like this before, and we tried everything we could think of to get her to stop. We spent over a year and hundreds of dollars trying to repeatedly clean the spot, shampooing, steaming, enzymes, but nothing worked.

Our deposit was only $500, but we spent about $1600 replacing the carpet (it was the right thing to do and, like you said, they can sue us). There was NOTHING you could do to get that out besides just replacing it. And that was just one room. Multiply by 5 or 6 for replacing carpets all over the house, and that's more than a landlord can even reasonably hold as a security deposit. And what if we had had a wood subfloor instead of concrete? That would quickly get into the 5 figures.

It seemed like an ideal pet situation -- good cat, no history of urinating outside the litter box, responsible pet owners, regular vet checkups, doing everything we could to try and clean and get her to stop, cared very much about the cleanliness of our living space, but we STILL had to replace the carpet.

Honestly, especially after that experience, I don't blame landlords at all. I own a house now and don't think I'd ever want to, say, rent a room to a stranger with a cat. And I have a cat!

I've been at my current company (satellite of a larger company) for a year and a half, we have 8 people in the office, max, every day. There are a couple people who usually work from home, some days it's only one or two people in the office. Our office is 4,200 sq ft and it's an "open office." We're not growing, we didn't just shrink from a massive size -- the company just picked an office and that was that.

I get paid well above market rate, I own a home just outside Boston, my macbook pro had an issue a few months ago and the company just issued me a new one without blinking. The company just doesn't give a crap. Open offices are cool and just what programmers do these days, right?

My last company was very similar. 5 people, > 2,000 sq ft, great salaries, open office. The CEO talked about how awesome it was all the time, and actually said he wanted MORE talking in the office. Annoying as hell.

I don't think it's a money issue. I really think it's a culture issue. The only company I ever worked at that had cubicles was my first job out of college and they were actually relatively strapped for cash. The difference is the founder was in his 60's and they were in business consulting, not software specifically.

There are really a few problems here that I think the article is getting a little mixed together, and I wanted to lay them out.

First, that the image corpuses used for machine learning have a strong gender bias, perhaps more than exists in the "real world." More images of men than women, more images of men working on computers, more images of women in kitchens, etc.

These images are sourced from http://imsitu.org/ which is sourced from http://image-net.org/, which (after some digging) looks like it gets most of its images from Flickr, stock photography sites, and random corporate sites. Are these representations of the "real world"? I would argue not. Professional photography, stock photography, and photos taken for the purpose of being used in an unknown future context, and/or to appeal to the most people, tends to err on the side of being "universally applicable" and emphasizing the "common idea of a thing" rather than how the thing actually is, with all its variations. An image of a man in a kitchen be perceived as more controversial and may be less universally usable than an image of a woman in a kitchen. So if you want to take a photo with as many possible uses as possible, you'd tend to fall back on established social norms MORE often than they might actually occur.

Second, machine learning tends to emphasize small differences when it has nothing else to go on, or is improperly trained. If you have a dataset featuring people in kitchens where 75% of the time the person in a photo is a woman, you could get an algorithm that is 75% accurate simply by saying "the person in the photo is a woman" every single time. While the dataset reflects 75% women, the algorithm reflects 100% women. It emphasizes small differences in order to gain accuracy.

This isn't just hypothetical. Many times, I've worked on a categorization/labeling dataset that turns out to have no actual underlying pattern, but I wind up, after many hours, getting a best fit algorithm that, say, predicts the dataset correctly 85.166667% of the time... only to realize that my dataset is spectacularly unbalanced and exactly (EXACTLY) 85.166667% of the dataset is in a single category. It's amazing how it just sort of snaps to that when you start layering the machine learning algorithms and you realize that the real problem is that there's no real pattern in the data (something data scientists don't often like to admit).

Third, sometimes the algorithms just get it wrong in ways that seem minor and rare from a data science perspective, but have large social consequences. Like improperly labeling a black couple as gorillas. It might actually be the case that the algorithm was improperly trained because it lacked photos of black people and photos of gorillas and didn't have much to go on (an example of the first issue) but I don't know enough about the situation to say for sure.

And fourth, of course, is that these patterns DO exist to some degree in the "real world," and this is a point that's been hammered on over and over again on Hacker News. The problem is that machine learning is a sort of big leveler that finds these patterns wherever it can and applies them universally (and often while emphasizing the differences for the reasons stated above). I mean, that's the point of it, after all! But knowing this fact, I think it makes sense to be careful where and how it's used.

Completely agree, and I was about to comment on the same thing that the author was drawing some dangerous conclusions from the anecdote about her kids, the same sort of conclusions I see a lot of other parents with young children making as well.

I'm female. When I was 7/8 years old I literally cried about having to do multiplication and addition flash cards. I was failing math. My dad said "Listen, you're not going to be a mathematician, but you have to learn multiplication!" Hated hated hated it.

Things started to turn around in middle school. My teachers kept pushing me, I kept taking math, I started to enjoy it. By 16 I was cross-registering at a local community college to take calculus and was in differential equations my senior year. I have a bachelor's in engineering and a master's in software engineering.

The preferences of seven year olds are almost meaningless, and their career aspirations are definitely meaningless. When I was seven I wanted to be either a baker or a manicurist or president of the United States. I haven't been interested in the culinary arts, cosmetology, or politics since. My sister was an avid artist, now she's an actuary who doesn't even do art as a hobby.

Almost every parent (especially parents of mixed-gendered children) I have this discussion with ends up saying something along the lines of "Just wait until you have kids -- boys and girls are super different and my son likes trucks and machines and my daughter likes dolls!" Yeah, but what does that have to do with which classes they enjoy in middle school or high school? I don't know. Maybe I will change my mind, but this extrapolation of early childhood preferences into adulthood career paths bugs the heck out of me.

I've had great experiences with Amazon the few times something went wrong.

- Had a fire extinguisher shipped to me but the pin apparently got knocked out in the box and it discharged during shipping. They sent out a new fire extinguisher immediately, I got to keep the old one and got it recharged for $10.

- A water filter was held by USPS and I wasn't able to pick it up in time. They sent out a new water filter (different shipping so it got to my door) even before the first one was sent back for non-pickup.

- Ordered through Amazon Fresh and some bread got crushed by a 2L soda. Sent a one-line message to them "Bread was crushed by 2L soda" Bam -- refund for bread.

- Called, questioning a $10 charge I had on my credit card, even though I hadn't ordered anything. They tracked it down to a Prime Video subscription I had made that had ended its "free trial period." I just said "Oh! I was going to cancel that!" and they removed the charge and cancelled it for me right then and there without me even asking. I've never heard of any company doing something like that that easily. In my experience "free trial periods" are just traps trying to get people to forget and let the subscription run, so I didn't even bother asking, but they went ahead and removed it.

My husband is also very smart and logical, likes math, builds computers for gaming, but he has absolutely no interest in programming at all. We've been together for 6 years, I've brought it up a few times, showed him some things, but he's like "Okay, that's nice. Sorry, just not my thing" And that's fine.

He's a social worker who runs a group home for intellectually disabled adults, and he's been in this career for 15 years now, and he loves it. There's absolutely no reason for him to get into programming, and he's had enough opportunities over the years that if he were drawn to it he would have already done it.

He's certainly supportive of my work, he brags to his friends about cool things I've done, he knows enough to talk about what I do, but as far as actually doing it himself, he just doesn't care. I think you need to be okay with your girlfriend not being a programmer. I mean, do you feel a drive to pick up her career as a hobby? :-p

I've been to dentists in Boston and Washington state, and I've never had experiences like this. My dentist in Boston (who is awesome) I found off of Yelp reviews. You should ask around for someone better.

I think the reason you didn't get a straight answer on the "invisalign vs. braces" is that they do such their jobs so similarly that the biggest factor is really what you want. Do you want a slower and more expensive treatment with less pain, greater dental hygiene convenience, and that less visible to people who see your teeth? Can you put up with a little pain and inconvenience, don't mind the aesthetics, and want to save money?

In some some cases (to the best of my knowledge -- I haven't had to know anything about braces in 15 years), only braces are available until the teeth are in a state where invisalign can do the rest. Clearly, you weren't one of those patients, so the rest is up to you.

The dentists don't know your financial or social situation, they don't know what kind of inconvenience you can and can't put up with. What were you really expecting them to say here?

Insurance companies and hospitals "accidentally" bill you for the wrong thing all the time, even for the little stuff.

I went to the ER for a broken hand a couple years ago, got a $450 bill in the mail when I should have just had a co-pay. Called the hospital, they said I had to pay. Called my insurance, insurance company said I didn't have to pay. Got in a three way call with the insurance company and the hospital... The billing specialist at the hospital literally said "Sorry, that's a known billing error!"

I'm generally not a conspiracy theorist, but I've never heard of a medical billing error that was in favor of the patient... If you see something alarmingly high or out of whack (especially if you've done your due diligence, read and understood your policy, and researched covered hospitals) you'd be silly not to fight it.

I've reported two vulnerabilities. One to a fairly large web hosting provider that allowed me to access the databases of anyone else on the shared server my website was on. Another to a major credit card company -- Given a person's first and last name I was able to see what kind of credit cards they had.

In both cases, they fixed it, thanked me, no arrests or threats were made. I think your experience is only outside the norm in the sense that you got monetary compensation out of it! Nice!

I got my master's in software engineering half time while working full time as a software engineer. During those four years I was also volunteering once a week, had a few side projects going on, wrote a book that made >$50,000 over the last two years, did freelance work, and maintained a relationship (got married two days after I graduated!).

There were certainly periods of time where I didn't see friends much, and my husband had to (gasp) cook dinner once in a while, but it was doable, and I graduated with a 3.7 GPA. I'm not a genius, I certainly did my fair share of procrastination, it was mostly just about making almost every day a "work day" (at least for a few hours), keeping things interesting by alternating between different types of work, and finding creative times/ways to study (commuting, lunch break, doing class busywork watching TV in the evening, etc)

I don't think I would have gotten "more" out of the program by quitting my job and just doing that full time. If anything, the financial stress would have made things more difficult.

Okay, let's say you're a judge and you get a commercial real estate case in Boston Massachusetts, in which the defendant broke their lease early and is refusing to pay a pro-rated lease break fee in their contract on the grounds that it's unreasonable and violates established precedent. The plaintiff argues that the defendant signed the contract, knew what they were getting into, and needs to pay the fee.

You discover that the plaintiff has not made any effort to find new tenants and has not listed the building as being available, and has not fulfilled their "duty to mitigate."

You discover that some portion of the defendants precedent is based on residential, not commercial cases.

What other questions do you ask? Should the landlord be allowed to charge any lease break fee, or write any penalties into the contract that they want? What if the lease is a 5 year term, the lessee broke the lease in the first 6 months, the lease break fee is the remainder of the 5 year term, and the landlord found a new tenant within a month of the old one leaving?

These are the sorts of cases that judges rule on all the time. There may be no clear "right and wrong" where you can sort of go "Oh yeah, clearly, that's illegal and the harm lies here, and your evidence sucks, and so my ruling is this" The cases may involve layers upon layers of state and local laws, and precedent going decades back -- for good reason.

I would argue that someone who wasn't trained in "the law" wouldn't be able to _consistently_ ask the right questions and evaluate each party's argument appropriately. Do residential landlord/tenant laws apply to commercial cases? Does the landlord have a duty to mitigate in this situation? How many rights are people allowed to "sign away" in a contract, and which rights are protected? Is the harm to the tenant weighed appropriately against the harm to the landlord within the boundaries established by law?

I consider myself to be a pretty logical and rigorous thinker, but I certainly wouldn't be confident in my ability to correctly and efficiently handle cases like this, and ask the right questions, day in and day out. Sure, maybe spend a week of research and get back to you, but if you're seeing multiple cases a day? Forget about it.