Better HN
topnewbestaskshowjobs
Log inSign up

staticautomatic

3,655 karma · joined Oct 19, 2015 (11y ago) · 1,773 submissions

if there is a bear at fastmail
Submissions

comment 8y ago · link · parent

That's not really how it works. The hotel puts up the influencer in the ludicrously expensive over-water bungalow or deluxe suite or whatever. Followers book the cheaper rooms hoping for the same experience.

comment 8y ago · link · parent

What are you?

comment 8y ago · link · parent

I don't know whether to up or down vote this. I respect it as art and it makes me ill.

comment 8y ago · link · parent

It's one possible reason but certainly not the only possible reason.

comment 8y ago · link · parent

Amazon's "inventory mixing" situation seems strikingly similar to the mixing problems in the commercial meat production industry [often identified as a significant factor in contamination investigations].

comment 8y ago · link · parent

It's funny you should bring that up because, come to think of it, I've never actually seen a bunch of apples spoiled by a bad one. They seem to rot from the outside in, maybe on account of their relatively thick skins. Softer skinned fruits like berries and those which tend to mold on the outside (like citrus) do tend to spoil the whole bunch, though.

comment 8y ago · link · parent

As more and a wider variety of stories emerge about police malfeasance around the U.S., it should become increasingly difficult to credibly say it's just a few bad apples here and there responsible for isolated incidents. It is ubiquitous? I don't know. But empirically it does seem to be pervasive.

comment 8y ago · link · parent

Once a patent is issued, it is exceedingly rare for it to go through additional review unless there is litigation that prompts it (re-exam, IPR, etc.)

Separately, it's quite common for people to patent things that don't work or can't be directly implemented as stand-alone things at all. Indeed, defendants in patent litigation often point out the many early patents on "flying machines" as proof that the issuance of a patent is not proof that it would lead to a working thing.

comment 8y ago · link · parent

+1 on linking to the Upwork profile.

comment 8y ago · link · parent

Out of curiosity, what would you use for "just send my data to a bar chart?"

comment 8y ago · link · parent

To my untrained eye that looks like css had a baby with js and the baby is an svg.

comment 8y ago · link · parent

https://en.m.wikipedia.org/wiki/Ressentiment

I'd bet Musk saying it was Tesla's decision not to renew the deal is a classic PR corporate power myth.

comment 8y ago · link · parent

I think it's fair to say in some instances that a person would have had a higher IQ but for some thing, but the term "effective IQ" is semantic jibberish. The score simply is whatever the test says it is.

comment 8y ago · link · parent

We are the quality of the conversation itself.

comment 8y ago · link · parent

Thanks for humoring my post with a real answer.

1. I never realized there was a function that just returned an instance of the class. Should've just looked it up myself.

2. I was wrong and misread the header stuff.

3. There's nothing wrong with it. It's just a convention I'm not accustomed to seeing or using. Admittedly, there are lots of ways to skin a cat with optional and default args.

4. Yeah I understand what you're saying. I guess it's a fine "greasemonkey" approach. Just more susceptible to DOM changes and code errors than I'm comfy with even for a rudimentary implementation.

I agree you'd usually want to get an error than an empty list but I think it's a little more complicated than just whether you want an error or an empty list. Sometimes you want the error but don't get it, which is why I tend to write more code around checking stuff and catching exceptions. I think the best example is you might not see an index error but the list item that's returned for your specified index isn't actually what you wanted because the DOM changed or you wrote code against one page that broke on another one you thought would be identical.

comment 8y ago · link · parent

Good for you for being willing to admit that. If you have that level of crippling anxiety you need some medication asap. I speak from experience and I know how hard it will be to take that step (or any step at all), but things will get worse if you don't. The easiest way to do this is also a bit daunting but necessary. Go to your local hospital now. Tell them you are having endless and crippling panic attacks. Idk how the Japanese are about prescribing this kind of stuff but you must get a script for something like a Ativan or Klonopin. The goal is to reduce your anxiety temporarily- long enough to enable you to find a way forward with a clearer head. I know you will read this and not want to do it. Or you'll say to yourself that you know you should but then you won't. Summon whatever will you have and do it now. Just shut off your computer and get up and walk out the door.

comment 8y ago · link · parent

I know this is HN and all but I am not even entirely confident about my own remarks. I asked "Am I the only one..." earnestly, not as a way of softening criticism. I'm a self-taught amateur and have never submitted a PR before.

comment 8y ago · link · parent

Sure. I'm not really trying to criticize the code, it's just that a lot of this looks foreign and unconventional to me.

1. requests.Session() is a class. IDK what request.session() invokes (see https://github.com/tducret/amazon-scraper-python/blob/master...).

2. Isn't one of the points of using Session() that it'll persist stuff like cookies and headers? So why is it re-defining the headers multiple times? (e.g. both GET and POST in the same session have their own respective but identical headers).

3. Is the use of `arg=""` idiomatic? For example in https://github.com/tducret/amazon-scraper-python/blob/master...

4. Using raw list indices without some kind of helper function to catch index and other errors when parsing is not really a good idea in scraping (e.g. `selection[0].text.strip()`.

comment 8y ago · link · parent

Am I the only one who thinks this is rather weird, or at least unconventional code for a scraper in Python?

comment 8y ago · link · parent

I agree. To my eye it more closely resembles small group dynamics research, including the findings.

comment 8y ago · link · parent

Why? Most robocalls I get are from numbers that were obviously chosen for their small edit distance from my own phone number.

comment 8y ago · link · parent

That doesn't make any sense.

comment 8y ago · link · parent

Protestants or Mormons?

comment 8y ago · link · parent

Yeah. It's now relegated to the history books.

comment 8y ago · link · parent

Correlation does imply causation. It just doesn't prove it.

comment 8y ago · link · parent

Down-voters should please read https://en.wikipedia.org/wiki/Thought_disorder

comment 8y ago · link · parent

I'm not sure it's true that most people who kill themselves suffer from clinical depression (diagnosed or undiagnosed).

comment 8y ago · link · parent

Sounds like someone with a thought disorder.

comment 8y ago · link · parent

The regulatory stuff is just a pain in the ass compared to an LLC. It's mostly that simple.

comment 8y ago · link · parent

I think it would be fair to say that a lot of people have a love/hate relationship with git.
1
474849
60