HNHacker News
TopNewBestAskShowJobs

mryan

947 karma · joined November 5, 2010

submissionscomments
mryan··on Show HN: Ssh2ec2 – Connect to EC2 instances via tags/metadata instead of hostname
That's a feature, not a bug :-)

I sometimes find myself needing to connect to any instance in a particular ASG, and I don't really care which one. This tool is built to solve that particular problem. If I want to access a specific instance I will address it by its instance ID (ssh2ec2 --instance-id i-123456).

What would the index refer to? The list of instances in an ASG would need to be sorted (perhaps by instance ID) in order for an index to be useful. The behaviour would still be undefined to a certain extent, as the logic would be "return the instance at position n in the list", when the number of instances in the ASG might have changed due to a scaling event.

Edit: Thanks for the pull requests - we can discuss further there.

mryan··on Show HN: Ssh2ec2 – Connect to EC2 instances via tags/metadata instead of hostname
I suppose you could store a mapping of AMI IDs to default user names in the script, but this would add a lot of overhead when it comes to creating and releasing new AMI versions.

How about using tags to store the default user name for each AMI? Then you could modify this script to look up the username before connecting.

mryan··on Show HN: Ssh2ec2 – Connect to EC2 instances via tags/metadata instead of hostname
I don't make much use of cross-account roles so I haven't added this yet. If you're interested in making a pull request describing how this could be changed to fit in to your workflow, I can look at adding it.

https://github.com/mikery/ssh2ec2

mryan··on Grand Theft Auto: San Andreas Streaming Deer Cam
I prefer to have them on a screen on the other side of my desk, to give my eyes a change in focus.
mryan··on Grand Theft Auto: San Andreas Streaming Deer Cam
There are some beautiful videos showing 9+ hour plus train journeys across the Norwegian countryside, which also make for great background visuals while coding:

https://www.youtube.com/watch?v=TY1sbKvjNcY https://www.youtube.com/watch?v=QIdnzamYDmQ&feature=iv&src_v...

mryan··on Ask HN: How much do you make at Amazon? Here is how much I make at Amazon
> Why not state a deal that's 10% better than what you want? Are you really going to be heartbroken if you get more than you want?

Because you might be leaving money on the table. What if the company was prepared to offer you 20% above your desired rate? Once you tell them +10% is your floor, they have no reason to offer above that.

mryan··on Apple Encryption Engineers, If Ordered to Unlock iPhone, Might Resist
> How does the government merely name a number out of thin air and the company now has to pay it?

Presumably it is not a random number, but is calculated based on factors like the company's revenue. A $250k fine would kill most small businesses. Google/Apple could pay it indefinitely without breaking a sweat. So it makes sense to me that the fine has a very wide range depending on the situation.

> Can the government just declare the moon to be their property tomorrow?

No. The United Nations Outer Space Treaty prevents nations from claiming the moon as territory (although the US could withdraw from this treaty, wait one year, and then claim the moon).

> How would they enforce the delivery of these funds?

The same way they enforce collection of taxes. Bank accounts can be frozen, property can be seized, perhaps corporate leaders could be arrested for brazenly ignoring an order to pay.

mryan··on Adam
Not quite - the animations would have been created "off-line", and included when rendering the scene.

mparlane explained it nicely: https://news.ycombinator.com/item?id=11294300

PS: Hi Paul, hope all is well :-)

mryan··on Show HN: CodeMill – a marketplace for pull requests
There is nothing for HN to implement. The problem is not that scrolling needs to be tested and fixed in multiple browsers. The problem is that this site uses a JS plugin to modify the browser's default scrolling behaviour, and this plugin provides a poor experience for some users (myself included).
mryan··on UK surveillance powers bill could force startups to bake in backdoors
> Setting yourself up in that manner would mean more challenges and making it difficult for the UK govt to win in court.

But would it, really? This fails the same logical test as the warrant canary - it sounds comforting, but is absolutely useless in the real world.

You still have the same choices - you can follow the request, or ignore it. You can tell the world, or keep it secret.

In every scenario I can think of, this idea of "affirming you have not been compelled" provides absolutely no protection.

Are you able to provide an example that demonstrates how this off-shore/contractor setup would protect you from the UK equivalent of a NSL with a non-disclosure clause?

mryan··on Show HN: Sensible Bash: An attempt at saner Bash defaults
Great list - I didn't know about glob operators. That glob negation is going to be very handy.

Re number 2: That works in plain old Bash too:

    ls DSC{100..200}.jpg
mryan··on $17 smartwatch sends something to random Chinese IP address
Of course not. Perhaps "arbitrary IP address" would have been more precise phrasing, but I doubt many people though OP was suggesting that the IP address was literally random.
mryan··on Yelp Fired a Single Mother Today: Me
I agree with your point that writing this post could be a red flag for future employers, however:

> Single mother is a choice of an independent woman and if she cant afford it she should probably not make it.

With respect, this is a very naive and simplistic view of the situation which displays a lack of empathy. I doubt many women make the explicit choice to become single mothers. There are many reasons she could have ended up in this situation. Perhaps her husband died, or ran away when he discovered she was pregnant.

You might as well say that being in a car crash is the choice of an independent driver, and if they didn't want to experience pain they should not have chosen to be in a car crash.

mryan··on No patent if invention lies only in computer program, says Indian Patent Office
> It is Qualcomm's property, they can keep it secret or open source it however they decide. I deeply reject the idea that government should have the right to order us to share our private property with the public.

Mostly I agree with you, but I think it is worth noting that this discussion is in the context of patent protection for software.

One of the requirements of applying for a patent is providing a reference implementation - I believe this is what the parent was referring to when they mentioned whether or not Qualcomm should be "permitted to keep the sauce secret".

mryan··on Vinod Khosla asks for $30M for access to public beach
UK
mryan··on Too many people have peed in the pool
> The intelligence of that creature known as a crowd is the square root of the number of people in it.

- Terry Pratchett, Jingo

mryan··on Why Do Employers Rarely Offer Explanations to Rejected Candidates?
DPA is the Data Protection Act, a law that governs how PI (Personal Information) can be stored, used and shared.
mryan··on Negative creep
> Sites like LocalBitcoins facilitate in person cash trades.

Sites like LocalBitcoins would very quickly cease to exist if there is a concerted government effort to ban Bitcoins.

mryan··on As Zika virus spreads, El Salvador asks women not to get pregnant until 2018
It's not really that strange when you think about it. We are animals that have biological urges. However, we are social animals that live in a society. As a result, we must balance our biological pressures with our societal ones.

Let's just take the first example - teens who do not want to get pregnant.

I'm not sure what you find strange about this. Teenagers will feel the desire to have sex, but they (and/or their families) will be aware that having a baby at a young age can limit your freedom later in life. Thus, teenagers are told to either wait until they are older to have sex, or be sure to use contraception.

> It seems... strange, to expect responsibility and prioritization of biological goals from people at some times and not others.

Control over our base biological goals is a key part of what makes us civilised.

mryan··on Massachusetts Chief’s Tack in Drug War: Steer Addicts to Rehab, Not Jail
I believe you misread the sentence. "> 30 years" refers to the length of time "the rest of the civilized world" has held these beliefs, not the length of a prison sentence.
mryan··on Show HN: Pact, a simple utility that kills all procs given to it if one dies
True, but do you think that is the point OP was making? "Members of a particular country should have a preference for a word that is associated with an individual from that country" seems like a rather strange linguistic argument to make :-)
mryan··on Scrapy Tips from the Pros
Sounds like I have some more research to do - thanks for the detailed response.

Btw, you were right, I meant scrapy-cluster and not scrapyd-cluster: https://github.com/istresearch/scrapy-cluster. There is a requirement on Zookeeper/Kafka, which is the main showstopper for me.

mryan··on Show HN: Pact, a simple utility that kills all procs given to it if one dies
> Killing, I have no problem with, but I'm an American. If I were, say Austrian, I might prefer terminating processes.

Why do you feel that Austrians have a special sensitivity to the term "killing"?

mryan··on Why you should not develop apps for Windows 10
Yes, that's an interesting point. The digital economy leads to some grey areas.
mryan··on Why you should not develop apps for Windows 10
The warranty lasts for two years. The six month time period refers to something else:

> Within six months from receipt of the goods, you just need to show the trader that they are faulty or not as advertised. But, after six months in most EU countries you also need to prove yourself that the defect already existed on receipt of the goods, for example, by showing that the defect is due to the poor quality of materials used.

I have successfully used the EU consumer protection laws to have Apple replace a faulty battery on a laptop that was around 20 months old.

mryan··on Why you should not develop apps for Windows 10
That's probably the issue.

Under the EU Consumer Protection Act, which I believe is what you are referring to, it is the responsibility of the retailer to deal with faulty products, and not the manufacturer.

In this case MS is the manufacturer and not the retailer so they are not obliged to help you.

I suggest you take the product back to the retailer, as they are responsible for any claims under the consumer protection laws.

mryan··on Scrapy Tips from the Pros
Great article, thanks for sharing.

What would you recommend for people who need to operate a cluster of scrapyd instances? Are there any recommended ways of managing the distribution of tasks to multiple scrapyd instances?

I have looked at scrapyd-cluster, but I would prefer not to add a Zookeeper cluster to my stack. Currently I'm thinking of modifying scrapyd-cluster so that it uses AMQP (via Celery) to handle task distribution/retries/etc.

I appreciate this conflicts with the scrapinghub business model, so any tips you can offer would be greatly appreciated :-)

mryan··on Signs of Secret Phone Surveillance Across London
This was one of the things revealed by the Snowden leaks.

'Dreamy Smurf handles power management, which according to The Guardian includes "an ability to stealthily activate a phone that is apparently turned off"'

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

mryan··on A Beginner's Guide to Scaling to 11M+ Users on Amazon's AWS
Synapse is a service discovery framework. Essentially, it just writes HAProxy config files based on discovered upstreams - it does not receive any requests itself. The scalability is handled by HAProxy.
mryan··on Show HN: Recipelab, a simple nutrition calculator / recipe analyzer
No, a screenshot would not be interesting enough IMHO.

It seems that you want to prevent people from experiencing your site without signing up first. Why is this? If you hide the value of your site behind the sign-up link, hardly anybody will bother signing up.

With a site like this, I would suggest enabling all features for anonymous users, except the ability to save recipes. Users can play around with the site and make their own recipe. The natural step after creating a test recipe would be to save it - this would be the best place to prompt for signup. I'd also recommend changing your on-boarding flow so that I do not need to confirm my email address immediately.

← PreviousPage 3 of 18Next →