> The researchers went about this by sneaking up on a nesting penguin from behind, covering its eyes, and sticking a cardio-frequency monitor on its back and putting the receiver (a watch-like device) around its flipper.
453 karma · joined November 5, 2010
[ my public key: https://keybase.io/taylorfausak; my proof: https://keybase.io/taylorfausak/sigs/A2PCjgr2EDNNESDi2ULoiDl4L7q-8NB0hCGk2pnfCSY ]
> The researchers went about this by sneaking up on a nesting penguin from behind, covering its eyes, and sticking a cardio-frequency monitor on its back and putting the receiver (a watch-like device) around its flipper.
Reminds me of "Black Triangles": http://rampantgames.com/blog/?p=7745
As for `>>=` (also known as `bind`), I'm using it as a more generic version of `concatMap`. The following expressions are basically the same:
concat (map (\ x -> [x, -x]) [1, 2, 3])
concatMap (\ x -> [x, -x]) [1, 2, 3]
[1, 2, 3] >>= \ x -> [x, -x]
If you want to learn more, check out LYAH [1].The problem in the blog post is the `add` function. It should recurse (like `go` in the Hs2048 package). I fixed the post [2] with this line:
add (x : y : rest) = x + y : add rest
[1]: https://gist.github.com/tfausak/4401ef0b43b5c1db0570
[2]: https://github.com/tfausak/tfausak.github.io/issues/31[1]: http://taylor.fausak.me/2014/04/28/cloning-2048-in-haskell/
if current_user.guest?
Although I don't like how the example given returns an OpenStruct instead of a NullUser, for instance.- Built-in ActiveModel validations. - Designed to be used with form objects. - Easier and more flexible composition. - Translatable with I18n. - Quacks like an ActiveModel.
That being said, Mutations is a great library for PORO interactors and ActiveInteraction wouldn't exist without it.
private static void def main(args) ...; end >>> p = PurePath('/etc')
>>> p / 'init.d' / 'apache2'
PurePosixPath('/etc/init.d/apache2')
[1]: http://docs.python.org/3.4/library/pathlib.html[1]: http://xkcd.com/936/ [2]: http://imgur.com/nAKkPe3
Something else I figured out recently is that if you put the pipe at the end of a line, you don't need a backslash:
echo thing |
grep thing <span class="icon-sm icon-org"/>
That is not valid HTML. The <span> element is not a self-closing tag, so the slash is essentially ignored [1]. Fog Creek's blog is XHTML, so the tag makes sense there, but Trello is HTML5.[1]: http://dev.w3.org/html5/spec-author-view/syntax.html#syntax-...
> New stacking contexts can be formed [… w]hen an element has an
> opacity value less than 1.
I had no idea that was the case. The CSS 2.1 spec [1] notes that "other properties may introduce stacking contexts, for example
'opacity'". The CSS 3 spec [2] elaborates: > Since an element with opacity less than 1 is composited from a
> single offscreen image, content outside of it cannot be layered
> in z-order between pieces of content inside of it.
[1]: http://www.w3.org/TR/CSS2/visuren.html#z-index
[2]: http://www.w3.org/TR/2010/PR-css3-color-20101028/#transparen...My comment about the spaces was trivia on top of your trivia. I thought it was relevant because all of your examples of self-closing tags had a space.
[1]: http://dev.w3.org/html5/spec/single-page.html#start-tags [2]: http://www.w3.org/TR/xhtml1/#C_2
Also, I'd recommend using ConvertICO [2] instead of the X-Icon Editor. It generates much smaller files (4 kb vs. 32 kb).
[1]: http://taylor.fausak.me/2012/03/27/ios-web-app-icons-and-sta... [2]: http://news.ycombinator.com/item?id=4164119
Edit: This affects Mobile Safari on an iPad (iOS 5.1.1).
[Google][]
[google]: http://www.google.com/
[Google][1]
[1]: http://www.google.com/
[Google](http://www.google.com)
I'm not sure what you mean about double-spacing either. Line breaks (<br />) are made by adding two spaces to the end of a line. If you don't like that, try GitHub-flavored Markdown [2].[1]: http://daringfireball.net/projects/markdown/syntax#links [2]: http://github.github.com/github-flavored-markdown/
[1]: http://michaelochurch.wordpress.com/2012/07/08/dont-waste-yo... [2]: http://news.ycombinator.com/item?id=4217471
As an aside, please be careful wearing headphones when you ride. There are plenty of flame wars over that (and helmets, and brakes) over in /r/bicycling.
device-pixel-ratio,
-o-device-pixel-ratio,
-moz-device-pixel-ratio,
-Webkit-device-pixel-ratio { … }
I was under the impression that you should put the vendor-prefixed versions first, followed by the unprefixed one. (Also, I don't think "-Webkit-" should be capitalized, but I don't know if it matters.) To wit: -o-device-pixel-ratio,
-moz-device-pixel-ratio,
-webkit-device-pixel-ratio,
device-pixel-ratio { … }