![]() | You are viewing Log in Create a LiveJournal Account Learn more | Explore LJ: Life Entertainment Music Culture News & Politics Technology |
plgnFriends | ||
|
You are viewing the most recent 20 entries November 8th, 2009scearley @ :
But lest we forget it was done better a decade ago by Peter O'Toole. scearley @ :
scearley @ :
All of the fruit was ROCK HARD unripe. Not that I buy fruit at Costco (too much, it goes bad), but damn. I also forgot mayonnaise trying to get the fuck out of there. There were so many people in that store. I'd never seen the cart area empty. And assholes with carts? GET THE FUCK OUT OF THE WAY. You don't know what you want? Sure, happens to us all. Or you aren't sure which jam has less sugar. It's all good. But for the love of [deity] don't angle your cart diagonally while you inspect labels. So now i'm home cooking up a mess of lentils and yellow split peas. I really just heat up some cinnamon ginger, coarse sea salt and tikka masala and then cook the onions until soft, add the peas and lentils, and cook until it's a completely unappetizing looking much. But criminy it tastes so good. I cook it quite often - maybe once a week at least, and it makes enough for dinner lunch and then dinner again. It's put me in a cooking rut. A tasty rut, sure, a filling rut. But it's still a rut. jwz @ : iPhone worm Apple iPhone owners in Australia have reported that their smartphones have been infected by a worm that has changed their wallpaper to an image of 1980s pop crooner Rick Astley. Once in place, the worm appears to attempt to find other iPhones on the mobile phone network that are similarly vulnerable, and installs itself again Current Music: Rick Astley vs Nine Inch Nails -- The Hand That Gives You Up vorotylo @ : cabal-install haddock documentation - another round of workarounds Today I've found a way to cabal-install offline documentation – with source hyperlinks! – for a Haskell package. (The reddit link was quite helpful by pushing me in right direction.) To obtain documentation without source hyperlinks you just
Then reinstall the package with `cabal install --reinstall'
command. Documentation will appear in
~/.cabal/share/doc/PACKAGE-VERSION/html/ But if you want proper documentation – with `Source' links to the right of declarations – try these commands (replacing `iteratee' with your favourite package): $ cd /tmp $ tar -xzf ~/.cabal/packages/hackage.haskell.org/iteratee/0.2.4/iteratee-0.2.4.tar.gz $ cd iteratee-0.2.4 $ cabal configure $ cabal haddock --hyperlink-source ## NOTE: ## * Make sure `documentation' is *disabled* in ~/.cabal/config. ## * Don't use `--enable-documentation' in `cabal install' command. ## Otherwise links to source code will be omitted from documentation. $ cabal install --reinstall That's almost it. But source code pages will not be syntax-highlighted, because hscolour.css is missing. I've used a workaround: $ cd ~/.cabal/share/doc/iteratee-0.2.4/html/src $ ln -s /usr/share/doc/ghc6-doc/libraries/Cabal/src/hscolour.css Now everything is sweet (i.e., documented and hyperlinked to sources). This post is a reminder to myself, which may possibly help some other haskeller. SEE ALSO
Tags: cabal, english, haskell longhairedbum @ : Violins and Dust, Catholicism and Drag Please watch this fucking beautifully shot video of Andrew Bird and St. Vincent being beautiful and making beautiful music. My literacy tutoring gig begins very shortly; they've assigned me someone. Also I plan on acquiring a violin within the next month and finding a tutor of my own. Did you know: Life in the basement is warm. There are dinners and good music and dancing, even. Re: Philosophy - The gritty, slow pass through On Interpretation complete. Notational synthesis, then on to Prior Analytics. I have had so much beer this weekend, you wouldn't even believe. And it's not that lonely-stupor sort of drinking, no, no, it's that hello-I-have-friends-and-family sort of drinking. It's lovely. Listen to more Andrew Bird and Kaki King. jcreed @ :
Generally speaking the programmers' approach to all of these concepts seems very weird to me compared to the logician/category-theorist take, but McBride and Paterson's "Applicative programming with effects" is a really awesome paper that synthesizes the two points of view pretty well for the case of applicative functors. The punchline is that what a Haskell hacker calls applicative functors are what a category theorist calls strong lax monoidal functors. Yes, both strong and lax! Terribly, from a terminological point of view, "lax" means that the functor is weaker than "weak", and "strong" isn't the opposite of "weak" (if anything, "strict" is --- but since "lax" exists as a concept, it's hard to say that "strict" is the opposite of "weak", just that it's, ahem, a stronger condition than "weak") and means that the functor has a "strength". Ok, everybody sufficiently confused now? Good. The important thing about these But wait, I hear you saying, weren't we told that monads were the ultimate story on a pure functional treatment of effects and sequencing and stuff? Answer: they're one story, yes. The intuitive distinction between monads and applicatives (which the paper above explains rather nicely) is that monads, unlike applicatives, let you use the result of one computation to influence which other computation takes place as the second step. Just look at the Kleisli star's type, it's right there: TA → (A → TB) → TB The second argument gets the value of type A before it spits out the final computation. If T were just an applicative functor, the most we could make out of TA and (A → TB) would be TTB. When T is a monad, we have exactly the categorical μ to turn that into TB (this is of course exactly how the Kleisli star is implemented from the categorical data T, η, μ) but when T is merely applicative, TTB is considered a more complicated thingy than TB --- it has two stages of computational dependency, which we're not allowed to erase. Tags: applicative functors, functional programming, monads focustest @ : twisty roads jcreed @ :
I was like why do I even know this word. Then I remembered! I had seen it years ago on Steve don't eat it!, which is great food writing and you should read it all if you haven't already. The your-mom jokes in the Huitlacoche episode are kinda dumb but I like a lot of the other ones and anyhow I take pleasure in reading about another dude eating really gross things so I don't have to. Tags: food, web |
|