HNHacker News
TopNewBestAskShowJobs

paddyoloughlin

231 karma · joined October 13, 2012

submissionscomments
paddyoloughlin··on Google's Project Zero exposes unpatched Windows 10 lockdown bypass
Corporations are people. https://www.npr.org/2014/07/28/335288388/when-did-companies-...
paddyoloughlin··on My Python Development Environment, 2018 Edition
pipenv is like npm for python and Pipfile works similar to package.json. There's even a Pipfile.lock
paddyoloughlin··on My Python Development Environment, 2018 Edition
when you want to run a command 'inside' the pipenv of the current directory, do:

    > pipenv run {command}
This mirrors how npm works.

There's also:

    > pipenv shell
to give you a shell in which the environment is setup correctly for you
paddyoloughlin··on How Apple Plans to Root Out Bugs, Revamp iPhone Software
My issue with 3D Touch is that there doesn't appear to be any language for when you can use it or what it will do if you can.

90% of the time, I forget it's there.

A specific case of where it was a problem for me is that tapping the lockscreen icon for the flashlight does nothing. I thought it was broken for a week till I accidentally discovered that you had to force push it.

paddyoloughlin··on The Mosteller Hall Puzzle
I have shared the Monty Hall problem with people many times, and have always made explicit that the host knows which door the prize is behind and thus always intentionally choses a 'losing' door.

It has not yet stopped anyone I have tried it with from making the error that it doesn't matter whether they stick or twist.

paddyoloughlin··on Apple starts rejecting apps with “hot code push” features
Apple doesn't need to change mathematical facts, they just don't let you publish on their AppStore.
paddyoloughlin··on The Case Against Python 3
Could you share any links that show "There have been explicit attempts to apply pain to Python 2.7 users"?

I don't think you are lying, but it seems extraordinary to me, so I'm interested in seeing some context and I'm not sure how to find it.

paddyoloughlin··on The Case Against Python 3
> Wouldn't be nice to have requests in the main library? Yes, but changes are still made to it, it might not be updated for a long time then. As they say modules go to the standard library to die.

In fact, the plan is for there to be no further new features to requests: http://docs.python-requests.org/en/master/dev/todo/#feature-...

paddyoloughlin··on Static types in Python
First, my post said 'essentially meaningless', which is to say 'possibly not completely, but for the most part, meaningless'.

Second, the context here is whether or not the type system of a language is strong or it is weak.

I stand by my assertion that describing type systems as strong or weak typing is essentially meaningless. It's so far from descriptive that all 'strongly typed' ever really means is 'I like this feature' and 'weakly typed' means 'I do not like this feature'.

There are alternative, accurate ways of talking about what people think they are trying to get at when they use the terms strong and weak in relation to languages. They should be used instead.

paddyoloughlin··on Shame on Y Combinator
If you go to the great*5 grandparent of this post, you asked for the statement "I find Guantanamo morally indefensible" to be defended.

You were the one, in that very post, who started confusing morality with law, leading to the jumble of responses since.

paddyoloughlin··on Static types in Python
Strong vs weak is essentially meaningless.

There is no generally agreed upon definition of what the distinction means.

paddyoloughlin··on Why Finnish babies sleep in cardboard boxes (2013)
No claim was made about the motivation for the creation of Sunday trading laws.
paddyoloughlin··on I Accidentally Some Machine Learning – My Story of a Month of Learning Elixir
I have always assumed that that statement was supposed to directly contrast with TIMTOWTDI.
paddyoloughlin··on Introducing unlimited private repositories
Is the semi-repository thing you are talking about the index?

If so, I would describe the index as a sort of staging area for preparing your commit. You might not necessarily want to include every single change in your workspace in your next commit. The index allows you to pick which things you want to go into the commit then git-commit creates the commit from what's in the index. If you don't care for such behaviour, and you just want to commit all changes in tracked files in your workspace, git-commit -a does that.

This[0] is one of the best tools I've seen for understanding git commands and even a bit of how git works. It's interactive, divides things into the different 'places' that content can be in git and then shows you how each command moves content between those places. Click on the workspace and it will show each command which does things to content in your workspace, the bar the command is written on shows what the other area it interacts with is and the direction that the command moves content. I hope it helps. [0] http://ndpsoftware.com/git-cheatsheet.html

paddyoloughlin··on We Need a Better PC
And homebrew isn't the only package manager on OSX.

I actually see this as an argument in favour of OSX, as it is much more straightforward to change package manager than on Linux, where the sane way to change package manager is to change your distribution.

paddyoloughlin··on Request For Research: Basic Income
Nowhere in my posts did I seek to reject UBI. In fact, I am excited at the possibilities it may bring.

The claims made by davidgay are flawed and if UBI is a good policy, it should work despite those claims.

Making weak, unsubstantiated claims about anything is a good way of undermining it. My criticism here is to stop muddying of the waters and focus the discussion on the core arguments around how social protection should be done.

For a pretty balanced fictional treatment of a future with UBI I recommend James S. A. Corey's novel series "The Expanse" (now a SyFy TV show). Specifically, the novella "The Churn" deals with characters living in a society with universal basic income, and to a lesser degree "The Vital Abyss".

paddyoloughlin··on Request For Research: Basic Income
#1 Less fraud, but not no fraud.

#2 The system you describe is also bureaucracy.

paddyoloughlin··on Request For Research: Basic Income
I don't see how this will get rid of the need to enforce fraud.

Such a system will still require systems to prevent multiple claims, ensure people aren't claiming for others and making sure people aren't claiming on behalf of dead people.

Sure you remove means testing, but that is only one part of it. The measures which will need to be in place will still require a lot of bureaucracy.

paddyoloughlin··on A Badass Way to Connect Programs Together
Gzip uses DEFLATE, which uses Huffman coding.

Huffman coding works by replacing common symbols with shorter codes and uncommon symbols with longer codes.

The codes used are therefore variable-length.

The codes are created in such a way that no code is the prefix of any other code.

That way, the decoder is able to know when it has reached the end of a code without the need for extra information other than the Huffman tree, which tells the decoder which codes belong to which symbols.

The Huffman tree can be pre-agreed or, more commonly, included with the compressed data.

paddyoloughlin··on Ireland to 'decriminalise' small amounts of drugs for personal use
Yeah, we're not any more progressive on that front at all.

There's plenty of pro-choice activism here, but sadly, I believe Ireland still a long way from a civilised, non-hypocritical policy on abortion.

I would love to be proven wrong about that.

paddyoloughlin··on “Scarfolk is a town in North West England that did not progress beyond 1979”
Some of my favourites:

Watch out! There's a politician about [1]

Whatever you do: DON'T [2]

Thought policy [3]

[1] http://scarfolk.blogspot.it/2015/05/watch-out-theres-politic...

[2] http://scarfolk.blogspot.it/2013/05/the-dont-campaign-and-ka...

[3] http://scarfolk.blogspot.it/2015/08/thought-policy-leaflet-1...

paddyoloughlin··on An Incredibly Detailed Map of Europe's Population Shifts
Only one thing in this entire post is not wildly inaccurate: there is a lot of rural to urban migration amongst young people in Ireland, but this is something which happens in every country in the world.

If it is any stronger in Ireland, it has much more to do with how bad the infrastructure is in Ireland and how Dublin-centric most investment is.

"A manufactured experience professionally landscaped by traffic engineers"? You give our government more credit than it deserves.

paddyoloughlin··on An Incredibly Detailed Map of Europe's Population Shifts
WildUtah, I have no idea where you are getting your information, but I am Irish, I have lived in Ireland my whole life. I'm in Ireland, looking out at Ireland as I write this message.

Your assessment is extraordinarily inaccurate.

"insanely crowded"?

Then why is the majority clamouring for more homes to be built? Property prices are climbing, not because things are too crowded, but because there aren't enough houses.[1][2]. Surely if it were "insanely crowded" here there'd be more of a popular pushback saying "where are we going to put these new houses?". Let me tell you: it doesn't exist.

The Irish government is going to great lengths to encourage new house building to meet the demand.

Ireland is famous for for manufacturing land out of the sea? Really? Well you're going to have inform this Irishman what you are referring to. The only things I can think of is the creation of Bull Island -- which was an unintended side-effect of the building of the Bull Wall, a successful project to dredge Dublin Bay undertaken in the early 18th Century [3] -- and various land reclamation projects around Dublin Port over the past 300 years, which a quick google search will inform you were more to do with planning permission than overcrowding.

For a country which is "insanely crowded", someone forgot to tell the population that. Add to this the population density facts which other commenters have provided, which you disregard and I can tell you that your information sources are lying to you.

[1] http://www.irishtimes.com/news/environment/review-of-the-yea...

[2] http://www.irishexaminer.com/business/features/shortage-of-h...

[3] https://en.wikipedia.org/wiki/Bull_Wall

paddyoloughlin··on The Unix Philosophy
Is it the Python language or the Python ecosystem you are referring to?

The statement in question is from The Zen of Python and is more of a guiding principle for the design of Python than a rule.

The usual observation with Python is that it can have many libraries and frameworks which are quite similar and choosing one can be hard (e.g. web frameworks). This is a function of popularity and not something which can fairly be subject to that principle.

On a different note: missing is the Zen of Python's following line:

  Although that way may not be obvious at first unless you're Dutch.
paddyoloughlin··on Deus Ex: Human Revolution – Graphics Study
> The complaints about the abstractions and everything honestly remind me of the complaints about Java, and look how that turned out over the same time period.

I don't think that supports your argument that poor performance is the developers' fault.

Java got fast as its VM improved and it got JIT compilation.

paddyoloughlin··on [dead]
An alternate take: http://www.theguardian.com/commentisfree/2015/jan/08/guardia...

TLDR: the decision of what a media outlet should publish belongs with that outlet and fear of violent reprisals is very far from being the only reason to not publish an item.

paddyoloughlin··on HTTP/2.0 — Bad protocol, bad politics
The point is that such applications have no use for privacy, so why should it be forced? (NB: I am not asking this question, just explaining the point)
paddyoloughlin··on Go 1.4 is released
How would communities around anything come to exist if everyone had the same attitude?
paddyoloughlin··on Still Here, Part 1: A Memoir
This is the part I meant:

> What’s even more troubling than the abuse, however, is that so many people are oblivious to these issues. Even after Kathy was brave enough to post her personal story, people think she’s a statistical abnormality. Since I’ve started talking more openly about my experiences, a staggering number of men that I know and respect have spoken to me privately, apologizing because they didn’t know this was happening. I’ve related those conversations to other women, and they were shocked. They didn’t understand how men could not see these problems, but it’s because so many of us are being so goddamn quiet.

But on re-read, I accept that it was too strong of me to say 'directly'.

Anyway, the "it's only a few bad apples" response is common enough to have been addressed many times by essays on sexism in tech. It's akin to the "not all men" narrative.

paddyoloughlin··on Still Here, Part 1: A Memoir
That's a very generous description of the zoe post.

If Eron wanted to only accuse Zoe of cheating on him, he could have done that and left it there.

Page 1 of 3Next →