172 karma · joined March 22, 2011
Edit: This is probably a better direct link: http://neighborhoodpulsepdx.org/portland21/growing-portland/...
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
Edit: Grammar
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.
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.
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])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.
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).
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.
'{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 %.
Also, my cat freaked out a little when I played it for her.
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.
This seems to imply that such markets aren't actually "free" since they're regulated via the enforcement of property rights.
Regardless, I agree that more competition is good.
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.
Rewriting local history seems no different than rewriting code in your editor.
Rewriting shared history is (almost) always bad.
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.
>>> 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)
TrueI've wondered the same thing in the past, but just recently I converted two Django projects at work from MySQL to PostgreSQL. The transition was pretty much seamless--I didn't have to change any application code.
One of the projects was converted to add spatial capabilities via PostGIS. The other was converted due to an issue with how MySQL stores data (it ended up being easier in a time crunch to dump and reload into PostgreSQL than fix the issue with MySQL).