Experimental IRC log happs-2007-08-06

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.

06:07:39<elliottt>hi, anyone have time to answer a post request question? :)
06:10:13<kaol>you'll never know if you don't ask
06:11:01<elliottt>heh
06:11:11<elliottt>well, i'm using the version of happs from darcs
06:11:21<elliottt>so i'm not sure if i'm already in a bad situation
06:11:44<elliottt>basically, i'm trying to respond to a post request where the body is just a string value
06:12:01<elliottt>but, i keep getting "URL Not Found or Bad Body"
06:12:58<kaol>that's the default response if the request doesn't match to anything
06:13:56<elliottt>http://hpaste.org/2091
06:14:12<elliottt>it seems like posting to "/update" should be found
06:17:10<kaol>this may be an obvious question, but did you just type in http://localhost:8000/update in the browser's location bar? That's going to make a GET request
06:17:20<elliottt>no, i posted
06:17:24<kaol>ACTION nods
06:17:26<elliottt>using a form that's in the static folder
06:17:42<elliottt>the method on the form is set to post :)
06:17:57<kaol>ack, I wanted to ask since it's not obvious from what you posted that you had one.
06:18:40<elliottt>sorry, i should have added in the form as well
06:18:51<elliottt>i'll add in the form to the posting
06:20:02<elliottt>actually, i should have shown you that first. it could very well just be an error with that.
06:20:15<elliottt>(it's pasted now)
06:45:30<Saizan>elliottt: mmh i think the problem is that read expect to find a string in quotes
06:45:40<Saizan>> read "foo" :: String
06:45:57<kfish>@seen lambdabot
06:46:10<Saizan>08:45 Saizan : > read "foo" :: String
06:46:10<Saizan>08:45 lambdabot : Exception: Prelude.read: no parse
06:46:10<Saizan>08:45 Saizan : > read "\"foo\"" :: String
06:46:10<Saizan>08:45 lambdabot : "foo"
06:46:40<elliottt>oh really...
06:46:41<Saizan>and so lookMbRead
06:47:19<elliottt>holy cow
06:47:21<elliottt>you're right
06:47:35<Saizan>you need to change the FromMessage instance
06:47:37<elliottt>posting with "test" as the value in the text field fixes the problem
06:47:54<kfish>so what's the proper way to read a text value in happs?
06:48:03<elliottt>ok, this makes sense. i lifted the code from the tutorial, which was designed to read Ints
06:49:34<Saizan>kfish: i'd use lookM m "appVal" in this case
06:50:09<kfish>Saizan, which module are those functions (lookM, lookMbRead etc.) in?
06:50:26<Saizan>HAppS.Protocols.MessageWrap
06:50:42<elliottt>Saizan: thanks! it works like a charm now :)
06:50:47<kfish>Saizan, cheers
06:51:08<Saizan>elliottt: cool :)
07:04:26<elliottt>so, if fromMessageM fails, so does the handler it's associated with?
07:17:08<Saizan>if fromMessageM fails the handler is not even entered
07:18:20<Saizan>well, if by handler we mean things like updateStateMsg
14:33:55<dinoMI>I'm trying to build the latest happs and am getting "Setup.hs: cannot satisfy dependency generic-xml-any"
14:34:10<dinoMI>I'm having trouble locating the darcs repo for this generic-xml.
14:34:31<dinoMI>Is this stuff documented on happs.org somewhere?
14:34:41<dinoMI>Steps to install the whole ball of wax cold from nada.
14:39:02<dinoMI>I see this just came up on #happs on 2007-07-13.
15:11:18<dinoMI>getting generic-xml: darcs get http://happs.org/HAppS/generic-xml
16:22:04<Saizan>dinoMI: we try to keep this dependencies list updated http://haskell.org/haskellwiki/HAppS_tutorial#Installing
17:28:56<dinoMI>Saizan: aha, that's a detailed list. Thank you.
17:29:35<dinoMI>Silly, I've probably been over and over parts of that document every day for the past 3 weeks.
17:37:47<dinoMI>In related news: our experimental project at work is being shut down for now.
17:38:08<dinoMI>The people in charge here have been very generous with company time and money and I'm very pleased we were able to do this for a time.
17:38:46<dinoMI>They're open to the possibility of using Haskell for more tasks around here perhaps in the future. But we've been unable to answer some hard questions about scalability and shared data access wrt happs.
17:39:01<dinoMI>I want to thank you guys again. None of what we did would have happened without your help. And it did indeed impress people at our company, which is a great thing.

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