wylee | 10 years ago | on: The Teflon Toxin
wylee's comments
wylee | 10 years ago | on: AWS CodeCommit
Regardless, I agree that more competition is good.
wylee | 10 years ago | on: Should I Work for Free?
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.
wylee | 10 years ago | on: GitFlow considered harmful
Rewriting local history seems no different than rewriting code in your editor.
Rewriting shared history is (almost) always bad.
wylee | 10 years ago | on: GitFlow considered harmful
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.
wylee | 10 years ago | on: PEP 0484 – Type Hints is accepted
>>> 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)
Truewylee | 11 years ago | on: Ruby-like string interpolation in Python
wylee | 11 years ago | on: Costa Rica Is Now Running on 100% Renewable Electricity
wylee | 11 years ago | on: Django REST framework 3.1 released
wylee | 11 years ago | on: Embracing SQL in Postgres
I'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).
wylee | 11 years ago | on: But Where Do People Work in This Office?
wylee | 11 years ago | on: An Offer to Sony from 2600
wylee | 11 years ago | on: How to write a developer resume that will get you hired
As general advice, this is wrong. There are a lot of positions where wearing a suit to the interview would automatically mean you won't get hired.
Of course, it depends on the locale, the position, &c, but the idea that a suit is always safe is somewhat outdated.
wylee | 11 years ago | on: President Obama Calls for a Free and Open Internet
wylee | 11 years ago | on: Why Email and Cars are heading down the same road
And this doesn't even get into the costs of pollution (including noise pollution), deaths, injuries, and poor health associated with sedentary lifestyles.
wylee | 11 years ago | on: “Did you mean?” Experience in Ruby
wylee | 11 years ago | on: This Is Your Brain on Silence
#!/bin/bash
play -q -c 2 -n synth brownnoise band -n 1600 1500 tremolo .1 30
You can adjust the frequency and other parameters to suit your environment. Adding tremolo makes it sound a bit like ocean waves.wylee | 11 years ago | on: Option and Null in Dynamic Languages
This seems more "Pythonic":
def lookup(d, key):
return Just(d[key]) if key in d else None
def values_in(keys, d):
values = []
for k in keys:
x = lookup(d, k)
if x:
values.append(x.value)
return values
If you really want a one-liner, I think this is easier to understand: def values_in(keys, d):
return [x.value for x in (lookup(d, k) for k in keys) if x]wylee | 12 years ago | on: Python 3.3.5 has been released
wylee | 12 years ago | on: Plan 9 released under GPLv2
This seems to imply that such markets aren't actually "free" since they're regulated via the enforcement of property rights.