Experimental IRC log happs-2008-06-07

Available formats: content-negotiated html turtle (see SIOC for the vocabulary)

Back to channel and daily index: content-negotiated html turtle

These logs are provided as an experiment in indexing discussions using IRCHub.py, Irc2RDF.hs, and SIOC.

02:35:16<Lemmih>You don't.
02:36:30<Lemmih>You do if you want to differentiate between several components.
02:51:45<davidL>well when I do "liftM length (asks pastes)", I get the error "No instance for (MonadReader State m) arising from a use of `asks' at State.hs:62:26-36"
02:53:26<Lemmih>And you're in the Query monad?
02:54:37<davidL>I don't know
02:54:52<davidL>all I have is: currentId = liftM length (asks pastes)
02:55:13<Lemmih>You may have to give your function an explicit type signature or disable the monomorphism restriction.
02:56:16<davidL>ah, there we go
02:56:23<davidL>thanks!
02:58:14<davidL>I'm an HAppS noob so I'm hoping to learn a little more by porting hpaste to the latest version of HAppS
03:01:11<davidL>I submitted the darcs patch to make Seq an instance of Serialize to alex@alexjacobson.com, I hope that's the right email (the darcs repos don't have a default email configured)
03:05:33<Lemmih>HAppS@googlegroups.com might be better.
03:27:04<davidL>I'll keep that in mind for the future
19:41:55<davidL>hmm, can an instance of FromData only have Strings, ByteStrings, and Cookies in the constructor?
20:38:05<Lemmih>davidL: Huh?
20:38:45<davidL>I was trying to use getTime in fromData, but I can't I guess
20:39:13<thomashartman1>anyone around?
20:39:24<Lemmih>Right, FromData is parsing only.
20:42:20<Lemmih>thomashartman1: Yes.
20:47:10<thomashartman1>lemmi, I'm trying to get happs to work with sclv's StringTemplate
20:47:57<Lemmih>That should be quite simple, no?
20:48:12<thomashartman1>uh...
20:48:15<thomashartman1>right.
20:48:19<thomashartman1>http://code.google.com/p/happs-tutorial/source/browse/trunk/Main.hs
20:48:24<thomashartman1>I'm trying to run that.
20:48:47<thomashartman1>it's this issue I raised a while ago, that "html" displays as text
20:49:11<thomashartman1>avoriteAnimal templateGroup = [anyRequest $ ok $ toResponse $ HtmlString "meh<br><mah"]
20:49:11<thomashartman1> -- (f templateGroup :: HtmlString)]
20:49:13<thomashartman1> where f = HtmlString . toString . setAttribute "favoriteAnimal" "giraffe" . (getStringTemplateDef "myhomepage" )
20:49:50<thomashartman1>I just want to get "meh<br>mah" to display with a line break but I get...
20:49:55<thomashartman1>http://localhost:5001/testtg
20:50:45<thomashartman1>HtmlString is an instance of ToMessage, which I thought should have done what I want, but it doesn't
20:51:00<Lemmih>It should work.
20:51:14<Lemmih>What's the returned content-type?
20:51:21<thomashartman1>how can I find that out?
20:51:45<Lemmih>"View Page Info" in FireFox.
20:52:31<thomashartman1>that's not under the view menu is it... where is it?
20:52:42<Lemmih>Tools -> Page Info
20:52:51<Lemmih>Or: right click -> View Page Info
20:53:09<thomashartman1>I found it.. it is text/html. oddly, "mah" is getting cut of.
20:53:10<thomashartman1>off.
20:54:33<thomashartman1>yeah... very weird. "meh" shows but "mah" gets cut off.
20:55:13<thomashartman1>no it's probably okay. i get something with view source. back to debugging.
20:55:52<Lemmih>Is it intentionally invalid HTML?
20:56:57<thomashartman1>nah it was a typo, but now it works.
20:57:01<thomashartman1>http://localhost:5001/testtg
20:57:04<thomashartman1>oops.
20:57:11<thomashartman1>http://rippledeals.com:50001/testtg
20:57:40<Lemmih>Failed to connect.
20:57:46<thomashartman1>i don't have it on a public server, damn. but I have a working example of happs with StringTemplate.
20:57:56<thomashartman1>and it's in the google hosted repo.
21:03:20<thomashartman1>okay it's public now: http://www.rippledeals.com:5001/testtg
21:04:50<Lemmih>Looks good.
21:05:40<thomashartman1>I really like StringTemplate. Want to see how far I can take it.
21:06:52<thomashartman1>bye 4 now

Back to channel and daily index: content-negotiated html turtle