172 karma · joined March 22, 2011
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.
And this doesn't even get into the costs of pollution (including noise pollution), deaths, injuries, and poor health associated with sedentary lifestyles.
#!/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.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] - open dev tools
- click on Network tab (far right)
- make a request (e.g., reload current page)
- click on one of the entries in the list
- there's now a tab for cookies on the right hr() {
printf '=%.0s' $(seq $((${COLUMNS} - 20)))
}
PS1="${GREY}\d ${RED}\$(hr)${GREY} \t"
It dynamically adjusts to the width of the terminal, and looks like this: Mon Feb 10 ======================================== 16:30:30
My complete BASH prompt: https://bitbucket.org/wyatt/dotfiles/src/25cb260a05b68dd81a5...When did I start to have the even the most basic understanding of what's really going on in the world?
At what point did I become culpable?
At that point, what power did I have to actually influence anything (given 400+ years of policy, expansion, entrenchment, racism, etc).
I agree to an extent that individuals can and should take some personal responsibility, but that doesn't address systemic effects. And the mere notion that we should take some responsibility doesn't lead to an effective course of action.
Suggesting that we vote (which someone else suggested).. well, that's almost comical given the premise of the thread, which is that you can't trust politicians, no matter how progressive or sincere they might seem.
As much as I do take responsibility (and feel guilty about not doing more), I still haven't figured out how to have any real influence.
I've spent plenty of time complaining about other people and their lack of participation too, and I'm not sure what difference that has made. Merely pointing out the problem (or what I perceive the problem to be) doesn't change anything by itself.
Edit: Added a word. Formatting.
Most of the Python 3 changes are design and feature related, and it's a lot more than just "UTF-8 and a few tricks".
For example, Python 3.4 is adding asyncio (http://www.python.org/dev/peps/pep-3156/).
And if you look at the _What's New In Python 3.x pages_, there's a ton of new stuff.
edit: forgot a word
That said, when I'm in the type of environment where I need to wear headphones, I think brown noise (e.g., from sox) is a nice alternative to music, and white or pink noise behind music helps create a consistent sound screen.
Here's my brown noise script for sox (it's supposed to sound a little like waves):
#!/bin/bash
play -q -c 2 -n synth brownnoise band -n 1600 1500 tremolo .1 30One day I came in and a new person (non developer) had set up shop directly behind me in the same corner (about 4 feet away). It was so jarring and distracting--I couldn't get anything done all day. I eventually had to move to a different corner.
I also hate being seated in a restaurant with my back to the room. It makes me so uncomfortable. So maybe I'm just more sensitive to this sort of thing in general.
If the choice is between just Java and C++, I'd go with Java, but it probably depends on what your long term goals are.
In any case, learning any language can't hurt, so I don't think there's any danger of making the wrong choice--unless you get so stuck that you're not making any progress. Just pick whatever "fits your brain" then branch out later.
Having lived in Eugene for a while, I'd say it's pretty nice, but you might get bored pretty quickly, even as a runner. It's just to small (for me).
I think Portland is better for outdoorsy stuff in general. There's Forest Park, Mt Tabor, etc in the city and lots of camping, hiking, snowboarding nearby.
var fn = function (a, b) { ... };
var maybe_fn = maybe(fn);
var obj = {};
maybe_fn(1); // calls fn
maybe_fn(1, null); // doesn't call fn
maybe_fn(1, obj.nonexistent_prop); // also doesn't call fn
In my mind, all of these calls to `maybe_fn` should do the same thing. Maybe not, though? function maybe (fn) {
var expected_number_of_args = fn.length;
return function () {
var i, arg;
for (i = 0; i < expected_number_of_args; ++i) {
arg = arguments[i];
if (arg === null || typeof arg === 'undefined') {
return null;
}
}
return fn.apply(this, arguments)
}
}I'm never tempted to open Reddit/HN/email/etc in my work-related profiles because I hate the idea of polluting my browser history.
The other key to this, for me, is virtual desktops that roughly correspond to the FF profiles. There's at least a little effort involved in switching desktops, but sometimes I need to shut down the personal FF instance, too.