172 karma · joined Mar 22, 2011 (15y ago) · 60 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
Edit: This is probably a better direct link: http://neighborhoodpulsepdx.org/portland21/growing-portland/...
comment 10y ago · link · parent
You can also set up a project so the source is shown by default on the "landing page" instead of the overview.
Edit: slight re-wording
comment 10y ago · link · parent
It seems like a lot of hiring managers/companies treat a job description as an afterthought when it actually has a huge effect on who applies for a position (_obviously_). People who have more options will tend to ignore the sloppy, vague postings.
The person who wrote this article seems more conscientious than this, but it's something to consider.
comment 10y ago · link · parent
Tangentially, I can't imagine using Django without DRF. It makes setting up RESTful(ish) APIs so easy. Even if you don't care much about the RESTful aspects, it provides a much nicer way to organize your code than default Django IMO. I especially like how serialization works versus Django forms.
comment 10y ago · link · parent
One way I've approached this problem that seems pretty fast is to load a set of points into a PostGIS-enabled database, then use the `ST_Distance` function and order by distance.
[Edit]
Shapely solution:
points = MultiPoint(((0, 0), (1, 1), (4, 4)))
point = Point((3, 3))
sorted(((p, p.distance(point)) for p in points), key=lambda item: item[1])comment 11y ago · link · parent
comment 11y ago · link · parent
Or it could be that people don't realize there's no way for the experimenters to know if they're cheating, so they're on their best behavior until they become familiar with the system.
I think this is true in a lot of domains (jobs, dating, etc). In the beginning, people follow the rules. When they're comfortable with the ins and out of the system, they start gaming it.
comment 11y ago · link · parent
I think the shift to self-driving cars will be more of a social/cultural/political challenge than a technical one. I might even go so far as to predict it will never happen (at least, not for average people getting around town).
comment 11y ago · link · parent
On the other hand, I'm not sure it's fair to come down so harshly on people who are feeling hopeless and/or powerless. I'm not sure getting indignant with such individuals is particularly constructive. There's probably a reason there are so many people who feel this way, and it's not just pure selfishness.
comment 11y ago · link · parent
'{x} blah blah blah {y}'.format(x=x, y=y)
is more readable than '%s blah blah blah %s' % (x, y)
even if the former is a bit longer.On top of that, there's a whole bunch of stuff you can do with .format() that just isn't possible with %.
comment 11y ago · link · parent
I've noticed that people often get caught up editing and formatting while typing (especially when the screen is shared), whereas with notes, people don't worry so much about that, so it's easier to stay focused.
comment 11y ago · link · parent
Regardless, I agree that more competition is good.
comment 11y ago · link · parent
That's happened to me several times. I've also had people do a similar thing in work settings--people who weren't even direct coworkers.
comment 11y ago · link · parent
That seems overly broad. It seems to me that most people who use git agree that public history shouldn't be rewritten, especially on master.
> The whole point of history is to have a record of what happened.
On the other hand, a bunch of "Derp" or "Whoops" type commits aren't very useful. It's definitely beneficial to clean that sort of stuff up by rewriting local history before pushing.
comment 11y ago · link · parent
>>> isinstance(type, object)
true
>>> T = type('T', (), {})
>>> isinstance(T, type)
True
>>> isinstance(T, object)
True
>>> isinstance(T(), object)
True
>>> isinstance(int, object)
True
>>> issubclass(int, object)
True
>>> isinstance(1, object)
True