At work we are solving the world's problems. Every day the decisions we make are touching fundamental problems/solutions and the paths that we take will have long-term ramifications far beyond anything that we can currently envision or plan for. That's why, this past week, I spent most of my time arguing for the following parameter order for our implementation of the clip function:
clip(x, min_value, max_value)
where x is some tensor (collection of elements with some shape -- like a vector or a matrix, for example), and min_value and max_value are minimum and maximum numbers that the elements in x can have. The output of the function will be the same tensor x, but all of the values will be "clipped" to fall within those min and max values, if need be. Just in case you didn't get it (and because it's so important for the story at hand), here is an example... Let's say x is a vector with x = [1, 2, 3, 4] with min_value = 2 and max_value = 3.5. Then clip(x, 2, 3.5) would result in [2, 2, 3, 3.5].
Anyways, so that's the obvious parameter order. Everyone else does it that way. If you change it you're not doing anything other than confusing people. But, some believe that the data should always be last. So, instead, the signature of the function would be:
clip(min_value, max_value, x)
The argument for the above is that having the data last allows you to do some interesting function chaining where you're setting up a network of functions, etc. So there's this competing question of which is more important? Allowing this (and being consistent about it across our implementation where we would always put the data last), or being consistent with everybody else so if they come over to our tools then they won't be confused. So obviously this is just the same as determining the choice to make when we have conflicting constitutional rights! Like there is a right to free speech but there is also a right to not be subjected to hate speech and you need to balance those interests, etc. And when I wrote the title of this particular blog post I guess I thought I would spend more time on the constitutional law and conflict of rights issue and all that but now I don't feel up for it. Sorry. But these are the important issues that kept me busy at work all week (inter alia, of course).
And here are some completely different random observations that will surely enrich your life:
1. I was sitting back with a (home-brewed) Segafredo1 espresso2 watching La Doyenne ("The Old Lady"), aka Liège-Bastogne-Liège, the last of the Spring classics, and during the break an ad for the shampoo "Alpecin" came on. This in itself is not at all out of the ordinary as Team Giant-Alpecin is a major German UCI cycling team and so during cycling events such as the Tour de France and La Doyenne you will often see ads put on by sponsors of the major teams. Anyways, as far as I can tell they are (or at least should be) known for really dumb ads. But this one took the cake (/"the biscuit" if you're British). The ad starts with a new (I presume -- the 'new' part I mean) slogan that fills the entire screen and has the announcer read out the words:
"Doping für die Haare"
And you don't need to be Jonathan Franzen or Goethe or have a 500+ day streak on German duolingo to quickly figure out that the above reads "Doping for the hair". Even though I don't need to buy shampoo because I didn't do enough doping for my hair (or something), because of this inept / tone-deaf commercial aired during La Doyenne, even if some miracle happens or I make some kind of Faustian deal (weird how we're sort of back to Goethe again, right?) that will give me my hair back in return for my soul then I will never buy this shampoo even if it's the only shampoo in the store because come on.. I guess it's meant to be a joke but even by German standards it's pretty weak. And we're meant to be joking about / glorifying cloaked in humour doping during a cycling event in 2016? Puh-lease.
[FN1] Two of Sandi's cycling heroes3 are the Canadian Ryder Hesjedal and the Swiss Fabian Cancellara. As fate would have it, this year they are both riding on the same team: Trek Segafredo. It is sort of a new team (the teams are always changing around a bit and changing names as sponsors come and go, etc.) because last year they were just called "Trek Factory Racing". But now Segafredo has joined as a major sponsor and so they're, as mentioned, "Trek Segafredo". Since both those guys are on the team, and Sandi didn't have a really cool really professional cycling jersey before, and we both like coffee [see FN2 reference supra, and definition, infra], she got a brand new Trek Segafredo jersey for her birthday and so today she can wear it to cheer on the Trek guys in La Doyenne.
[FN2] Why is there this crazy connection between cycling and espresso? I think both of those things are pretty cool so it works out well for me, but where does it come from? Perhaps a topic for an essay for students to be assigned for some kind of English course? In the meantime I did a very quick Bing search and the Grimpeur Bros. have some common sense suggestions (https://www.grimpeurbros.com/pages/coffee-cycling-the-inextricable-link) on the "inextricable link between cycling and coffee" (but nothing too concrete). These include obvious things like "cycling‘s strong ties to Italy, France, Belgium, and Spain probably have something to do with it" and "on weekends, a post-race coffee or mid-ride espresso break, gives us the opportunity to take a break, share some gossip, nosh on some baked goods, and most importantly, share a laugh and enjoy our friendships — all over coffee." Fair enough. Wait, do any of you care about this at all? I think it's pretty interesting, anyways...
[FN3] Yes, in Europe people have cycling heroes. Kind of like in North America people have hockey and baseball heroes.
2. Ben Harper has a new record and it's really good. Sandi is a pretty lucky girl. In addition to being blessed (in the atheistic equivalent anyways) with a healthy (so far) baby girl, and receiving the aforementioned Trek Segafredo professional cycling jersey, she also received a copy of the new Ben Harper record "Call it what it is" for her birthday and we have been listening to it, like, 40 times a day. It's important to learn all the songs because we want to be able to sing along when we see him in Munich on October 1st.4
[FN4] Sandi and I might have a somewhat deservedly-obtained reputation of not exactly being the best at planning ahead or being prepared for things, etc. Fine. But, in this situation, despite the fact that October 1st is currently more than five months away, we already have experienced babysitters lined up for the night! K&J will be arriving in Munich several days prior and by then will have more than a year of baby girl taking care of experience. Not bad, right?
3. I think I gave Belgium a bad rap. Brussels is not a fun place to visit. And so I kind of hated it. But watching Liège-Bastogne-Liège, it looks like it's not necessarily such a bad place. And they got by for a couple of years without even having a government. So that's not so bad either...
Until next time...
Addendum:
Remember the Krailinger Duathlon race report from last year? Well the 2016 version is coming up next weekend and if it's raining like last year we won't do it.. But if it's nice, we will! If it's nice then, look forward to another upcoming fun-filled race report where Sandi and I might do a relay and hand-off Hannah in the transition zone. Stay tuned...
And you don't need to be Jonathan Franzen or Goethe or have a 500+ day streak on German duolingo to quickly figure out that the above reads "Doping for the hair". Even though I don't need to buy shampoo because I didn't do enough doping for my hair (or something), because of this inept / tone-deaf commercial aired during La Doyenne, even if some miracle happens or I make some kind of Faustian deal (weird how we're sort of back to Goethe again, right?) that will give me my hair back in return for my soul then I will never buy this shampoo even if it's the only shampoo in the store because come on.. I guess it's meant to be a joke but even by German standards it's pretty weak. And we're meant to be joking about / glorifying cloaked in humour doping during a cycling event in 2016? Puh-lease.
[FN1] Two of Sandi's cycling heroes3 are the Canadian Ryder Hesjedal and the Swiss Fabian Cancellara. As fate would have it, this year they are both riding on the same team: Trek Segafredo. It is sort of a new team (the teams are always changing around a bit and changing names as sponsors come and go, etc.) because last year they were just called "Trek Factory Racing". But now Segafredo has joined as a major sponsor and so they're, as mentioned, "Trek Segafredo". Since both those guys are on the team, and Sandi didn't have a really cool really professional cycling jersey before, and we both like coffee [see FN2 reference supra, and definition, infra], she got a brand new Trek Segafredo jersey for her birthday and so today she can wear it to cheer on the Trek guys in La Doyenne.
[FN2] Why is there this crazy connection between cycling and espresso? I think both of those things are pretty cool so it works out well for me, but where does it come from? Perhaps a topic for an essay for students to be assigned for some kind of English course? In the meantime I did a very quick Bing search and the Grimpeur Bros. have some common sense suggestions (https://www.grimpeurbros.com/pages/coffee-cycling-the-inextricable-link) on the "inextricable link between cycling and coffee" (but nothing too concrete). These include obvious things like "cycling‘s strong ties to Italy, France, Belgium, and Spain probably have something to do with it" and "on weekends, a post-race coffee or mid-ride espresso break, gives us the opportunity to take a break, share some gossip, nosh on some baked goods, and most importantly, share a laugh and enjoy our friendships — all over coffee." Fair enough. Wait, do any of you care about this at all? I think it's pretty interesting, anyways...
[FN3] Yes, in Europe people have cycling heroes. Kind of like in North America people have hockey and baseball heroes.
2. Ben Harper has a new record and it's really good. Sandi is a pretty lucky girl. In addition to being blessed (in the atheistic equivalent anyways) with a healthy (so far) baby girl, and receiving the aforementioned Trek Segafredo professional cycling jersey, she also received a copy of the new Ben Harper record "Call it what it is" for her birthday and we have been listening to it, like, 40 times a day. It's important to learn all the songs because we want to be able to sing along when we see him in Munich on October 1st.4
[FN4] Sandi and I might have a somewhat deservedly-obtained reputation of not exactly being the best at planning ahead or being prepared for things, etc. Fine. But, in this situation, despite the fact that October 1st is currently more than five months away, we already have experienced babysitters lined up for the night! K&J will be arriving in Munich several days prior and by then will have more than a year of baby girl taking care of experience. Not bad, right?
3. I think I gave Belgium a bad rap. Brussels is not a fun place to visit. And so I kind of hated it. But watching Liège-Bastogne-Liège, it looks like it's not necessarily such a bad place. And they got by for a couple of years without even having a government. So that's not so bad either...
Until next time...
Addendum:
Remember the Krailinger Duathlon race report from last year? Well the 2016 version is coming up next weekend and if it's raining like last year we won't do it.. But if it's nice, we will! If it's nice then, look forward to another upcoming fun-filled race report where Sandi and I might do a relay and hand-off Hannah in the transition zone. Stay tuned...