Better HN
topnewbestaskshowjobs
Log inSign up

phaemon

2,688 karma · joined Jun 6, 2012 (14y ago) · 1,369 submissions

Submissions

comment 7y ago · link · parent

Ok, looking at the data, Germany gets over 40% of its electricity from renewables, while the USA gets less than 20%.

comment 7y ago · link · parent

Actually, as a physicist with no rest mass, I'm perfectly capable of performing experiments. I just never seem to find the time...

comment 7y ago · link · parent

Yes, I'm aware you were attempting sarcasm, but it wasn't very good, was it? I thought it would be kinder to ignore it and post something useful. The phrase you're looking for is, "thank you".

Cheers!

comment 7y ago · link · parent

> never fucked up commands and had to blow out a repo and start over

You never have to do this, because it's virtually impossible to screw up a git repo with git commands, to the point it can't be easily fixed. And I'll tell you why and how.

As you no doubt know, all commits in git are hashed. This means that you can't change a commit in any way, only ever add a new one. Neither can you insert a commit into an existing chain: you have to rewrite the whole chain with new commits.

As a consequence, if your `master` branch, for example, is pointing to commit `aa33bf`, there will be a unique chain of commits leading back to the original commit which can't be altered.

It doesn't matter if you cherry-pick, merge, rebase or dance the fandango...if you point `master` back to `aa33bf` it will look exactly the same as it did before.

You can usually find what the branch was pointing before with `git reflog`. But you were going to clone it from github again, right? So, `origin/master` is pointing to the right commit, and you can just reset it back to that (remember to first commit any random stuff in your working dir that you want to keep):

  git checkout master
  git reset --hard origin/master
And, obviously, you can do exactly the same with any other branches that have been messed up.

There you go. Now you too are a "git hot shot" and can wow your friends with your amazing skills. ;)

comment 7y ago · link · parent

Searching should work as long as you're happy to kiboze with:

grep -E '(5|s)((c|k)r?(i|1)(p)(t|7))?( ?)(k)(1|i)(d*)(y?)(i|1)?(e)?'

...or similar.

comment 7y ago · link · parent

Hit hard? Surely "stung"...

comment 7y ago · link · parent

I didn't assume any such thing nor does my comment even suggest it.

If you find your own strawmen "petty" I suggest you try to think more clearly. It would likely improve the quality of your HN comments.

comment 7y ago · link · parent

I have never once personally written for a newspaper. Freedom of the press isn't necessarily better than censorship.

comment 7y ago · link · parent

Yup, I'd probably have gone with a `for` loop also. A bit shorter:

  for set in *_data.csv; do
    [[ -f "${set/data/A}" ]] || echo "${set%_data.csv}"
  done
Edit: though I just write it out like this for formatting on HN. In real life, that would just be a one-liner:

for set in *_data.csv; do [[ -f "${set/data/A}" ]] || echo "${set%_data.csv}"; done

comment 8y ago · link · parent

An aeropress. Decent coffee almost as quick and easy as instant coffee.

comment 8y ago · link · parent

...in the USA, in medical research...

comment 8y ago · link · parent

Can you articulate why?

comment 8y ago · link · parent

I'm not annoyed at all and added the smiley to try and soften my post. I got the Monty puzzle straight away (brought to my attention by Cecil Adams when I followed the SDMB) but I find it interesting to understand why so many intelligent folk get it wrong.

As for understanding; the stack exchange question on whether it's coincidence that the value of G is approximately pi squared is one of these things I bear in mind whenever I think I understand something. : )

Edit: and if I'm not mistaken, you once spent far more time than I would have the patience for explaining how this worked to a rather offensive young person. I admired your patience there. It was more than I had and had better results.

comment 8y ago · link · parent

Thanks to the pair of you for explaining something I pointed out to you in the first place. :)

I said it was weird, not that I didn't understand it.

I suspect this thought process is why numerate people get thrown by this puzzle.

comment 8y ago · link · parent

An interesting variation is "what if you toss a coin to decide whether to switch or not".

I find it weird that that resets the odds back to 50:50

comment 8y ago · link · parent

For context, it seems that the BBC sent a takedown notice for some videos on this channel, the owner of the channel sent a counter claim that these are for political commentary purposes and therefore Fair Use.

Now YouTube has decided unilaterally this is not Fair Use and they will not pass the counter notification on.

437.

YouTube Shuts Down Scottish Independence Channel(wingsoverscotland.com ↗)

2 points · by phaemon · 8y ago · 1 comment

comment 8y ago · link · parent

Presumably you're joking but since I've seen real examples of this, I'll mention that that's false precision and should be 60 metres.

comment 8y ago · link · parent

This is the UK NHS take on it: http://www.nhs.uk/news/medication/hair-loss-drugs-linked-wit...

comment 8y ago · link · parent

In agreement with the others, it tells us that he isn't the kind of ass who would say, "isn't that like compilers 101 stuff".

comment 8y ago · link · parent

"Precludes" means to prevent something from happening. You probably wanted something like "necessitates".

442.

How to Get a Big-Budget Song in Your Low-Budget Indie Film(nofilmschool.com ↗)

2 points · by phaemon · 8y ago · 1 comment

comment 8y ago · link · parent

So that they understand how a network mask works? I'm assuming if you're working on the web you ought to know something about networks, right?

comment 8y ago · link · parent

Ah, I was thinking of the election rules where they are required to give a representative amount of time to each party, not the impartiality rules which, frankly, are vague to the point of uselessness.

The classic example of BBC lies would be Nick Robinson of course: https://www.youtube.com/watch?v=K_XhTALHQzI

If you want a more recent example of BBC bias, try: https://wingsoverscotland.com/the-bad-losers/

comment 8y ago · link · parent

They are only required to provide "balanced" coverage during an election, nothing more. The BBC is absolutely biased, as was made clear during the 2014 Scottish Independence referendum. The distortions and outright lies they continually produced were astonishing to me.

You can see plenty examples of this at Wings Over Scotland (which I know is biased, but is also scrupulously accurate)

comment 8y ago · link · parent

I'd be interested in this too. I don't recall ever donating through a Donate button, though I've put money in Kickstarter and I always payed above average for Humble Bundle when I bought them.

It seems the tougher part is getting me to pay at all! After that, I'm happy to pay a reasonable amount.

comment 8y ago · link · parent

No, you are initiating the action by requesting the file from me. You did request the file didn't you? Even though you should have known it wasn't public information?

comment 8y ago · link · parent

> Can you please send me a copy of your last 3 tax returns?

Options:

A) Sure, here you go. Oh wait! I didn't mean to send you those. You tricked me and stole my information. I'm going to send 15 police officers round to arrest you and then you're going to prison for years.

B) No, that's confidential.

^^ Which option do you think is more reasonable?

comment 8y ago · link · parent

> And as I've already told you, those statistics aren't remotely relevant to this discussion.

No you didn't. I posted those figures exactly once in this comment: https://news.ycombinator.com/item?id=16585982

which you did not reply to. Stop lying.

> You've used that statistic in the past to

Another lie.

> Based on previous discussions, I can predict

Not had previous discussions with you. Exactly one, the previous one which you did not reply to.

And seriously, you think $70 Billion is a massive cost for the world's governments? You really need to learn some basic arithmetic.

I suggest you stop and think instead of posting these mindless talking points. Go look up the numbers for yourself.

1
141516
46