Experimental IRC log happs-2008-03-25

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.

00:03:20<Ben_>Lemmih: mmm..., I will have to use the 0.8.4 or > :D
00:03:47<Ben_>Lemmih: thanks
00:41:39<stepcut>let's say that I have some code, which in response to a request does 'mv dira/* dirb/'. Half-way through the mv, their is a power outage. How do I recover?
00:42:14<stepcut>when it replies the transaction log, will any of the IO operations be run? None? Only some?
00:43:38<stepcut>do I use some Saver thing to mark IO things that should be run when the transaction is replayed ?
00:43:59<MarcWeber>stepcut: Depends on where you run the IO thing.. if you mix it up with HAppS state it will be rerun.. else it won't
00:46:37<stepcut>MarcWeber: I was thinking something like, impl = [ dir "mv" [ method GET $ liftIO myMvThing >> ok "moved." ] ]
00:48:16<stepcut>it would only get rerun if I did something like, $(mkMethods ''State ['myMvThing]), ok =<< webQuery (MyMvThing), ?
00:48:22<MarcWeber>stepcut: Try it and watch the state.. if the logs change there is a chane that something will replayd.. But I doubt it unless using the state modifying functions..
00:49:26<MarcWeber>stepcut: Try it. I haven't done it yet.
00:50:01<stepcut>when might I want to use fileReader and fileWriter ? Or those for internal use only, or something I might be likely to want ?
00:51:01<stepcut>I suspect I should just read HAppS-State until I understand how it really works :-/
00:51:09<stepcut>And then write a blog post ;)
00:51:16<MarcWeber>No. fileReader is used by fileServe AFAIK. And that's a functions to be used by you ..
00:51:47<MarcWeber>I'll read it :).. I only konw how to use it by now..
00:56:24<stepcut>ah, fileServe raises another question. I need a function that serves a single file as a specific mime-type, but I did not see an easy way to do that. I want to do something like, impl = [ withData $ \ident -> [ method GET $ serveFile "audio/mp3" =<< WebQuery (FileLocation ident) ] ].
00:57:13<stepcut>but, fileServe want to look at the incoming Request directly to find the path to the file relative to some base directory
00:57:25<MarcWeber>stepcut: fileServe will be a nice example I think. it supports some different types of files.
00:59:19<MarcWeber>fileServe passes mimeTypes to fileServe' .. etc just read the code.(See getFile mime ..)
00:59:23<stepcut>MarcWeber: fileServe is actually quite a bit of code.
00:59:56<stepcut>MarcWeber: Looking at the code, it seems like fileServe could be a wrapper around code that serves a single file, but it is not implemented that way a present.
01:00:58<MarcWeber>-> getFile does the job I think :)
01:01:10<MarcWeber>no, only parts of it.
01:01:54<MarcWeber>You should talk to someone knowing HAppS better than me (eg Lemmih or Saizan )
01:05:12<stepcut>:p
15:45:48<Ben_>hello
15:46:14<Ben_>What version of happs need to hpaste?

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