Experimental IRC log happs-2008-09-11

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.

10:42:17<MarcWeber>Saizan: Do you know how to write this ? class .. where f :: a -> b instance (constraint for a determining result type of b, constraint for a ) ... where f = a . b
10:44:19<MarcWeber>found it. I've had a typo
13:32:43<thomashartman1>hey anyone there?
13:33:06<thomashartman1>I'm having this strange problem with happstutorial.com:5001. login works when I do it locally, but not when it's on the online server.
13:33:21<thomashartman1>Problem seems to have to do with the way cookies interact with firefox online, but not locally.
13:33:37<thomashartman1>If I browse online with lynx (command line browser), login does work.
13:34:24<thomashartman1>I'm debugging it, and the way cookies appear in the request value indeed appear quite different online and locally. but why should this be?
13:36:49<thomashartman1>And when I view cookies in firefox, the online version is setting five cookies, including one called "sid" (session id) whereas the local just sets one called "sid"
13:36:53<thomashartman1>weeird
13:39:28<Saizan>thomashartman1: don't you maybe have older cookies for the same domain setted by other applications?
13:39:48<Saizan>by applications i mean server-side ones
13:41:27<thomashartman1>Saizan: not sure what you mean. I clear all cookies before doing tests.
13:41:48<thomashartman1>the domains are just "localhost" for my local testing and happstutorial.com for the online version.
13:42:24<thomashartman1>You know what, I am going to go offline for a minute and switch to my windows computer, and try this in internet explorer.
13:42:31<thomashartman1>maybe it's an issue with firefox specifically.
13:42:33<thomashartman1>since lynx works...
13:49:58<Lemmih>Hm, I thought we had fixed that problem.
13:51:14<Lemmih>Our cookie parser used to be standards compliant until we found out that most browsers violate those standards.
13:51:37<Lemmih>We probably didn't make it liberal enough.
13:55:08<Lemmih>thomasha`: Did you see my last three messages?
13:55:26<thomasha`>lemmih, no i'll check logs now.
13:55:42<thomasha`>(only one internet plug at the moment)
13:57:32<thomasha`>lemmih: I'm on the hackage happs. is this cookie fix only in head?
13:57:44<thomasha`>and if so, any idea what files it's localized in?
13:57:50<Lemmih>No, we "fixed" it long ago.
13:58:37<Lemmih>It's in the HAppS-Server package in the Cookies.hs file.
13:58:52<thomasha`>I should be running that already.
14:01:00<thomasha`>session cookie is read here: readData (readCookieValue "sid") rq
14:01:26<thomasha`>odd thing is that it appears to be set differently depending on whether I'm online/firefox/lynx
14:03:08<thomasha`>and it's set here: addCookie (3600) (mkCookie "sid" (show key))
14:03:56<thomasha`>it appears (from firefox view cookies) that five cookies are set, when using the online app.
14:04:10<Lemmih>Some of those should be invalid.
14:04:33<thomasha`>Is this the expected behavior?
14:04:51<Lemmih>We thought we fixed it, so no.
14:05:39<thomasha`>__utma, for instance
14:05:43<thomasha`>i get that online, not local.
14:06:03<Lemmih>Try deleting it.
14:06:15<thomasha`>ah, and just leaving the sid cookie?
14:06:24<Lemmih>Yes.
14:08:29<thomasha`>i delete those four cookies, and then browse to another page, and then they appear again.
14:08:47<thomasha`>I don't think I'm doing mkCookie anywhere during that action...
14:09:06<Lemmih>Firefox is adding the cookies, not you.
14:09:25<thomasha`>why? and how can I stop firefox?
14:10:05<Lemmih>I don't know, and you can't.
14:10:14<Saizan>thomasha`: the other page is on the same domain? maybe it's that page that sets those coockies
14:10:35<thomasha`>saizan: the page that works, I'm just developing locally.
14:10:58<Saizan>thomasha`: btw, by the name it looks like a cookie from googleanalytics
14:10:58<thomasha`>I wonder if it's something to do with google analytics\
14:11:05<thomasha`>heh, jinx.
14:11:10<thomasha`>let me try disabling that.
14:12:54<thomasha`>yep.
14:13:01<thomasha`>I turned off google analytics, and it works now.
14:13:26<thomasha`>I'm going to tell teh google group about that.
14:15:54<thomasha`>told em.
14:16:11<thomasha`>cool, I think that means I can now post v3 of happstutorial! :)
14:16:32<thomasha`>still just a login, but there's a lot more bling to it.
14:16:47<Saizan>cool :)
14:16:49<thomasha`>and now that I'm happy with how templating works, maybe I can finally tackle state.
15:15:54<guenni>hi, has anybody here used IxSet?
15:16:30<Saizan>yes
15:17:28<guenni>Saizan: is there a way to isolate the IxSet code from its dependency on the Unix package, I cannot install it on Windows?
15:19:46<Saizan>guenni: it's not HAppS-IxSet that depends on unix
15:19:53<Saizan>guenni: but -State and -Data
15:20:20<Saizan>guenni: however the darcs version of -State and -Data don't depend on unix anymore if you build them on windows
15:20:38<Saizan>guenni: so the solution is to use the darcs version of those packages
15:21:04<guenni>so I do a darcs get, runhaskell Setup ... install?
15:21:33<Saizan>yeah, or even cabal install inside the repo
15:22:07<guenni>and then have these packages, including ixset avail for import to the rest of the code?
15:22:14<Saizan>yes
15:22:28<guenni>sry for asking such basic questions, I'm very new to haskell
15:22:41<Saizan>build the HAppS- packages in the right order, which is Util,Data,State,IxSet
15:22:56<Saizan>and Server if you need it
15:23:19<guenni>I did manage to creat the cabal.exe, can I use that? and if how?
15:24:58<Saizan>yeah, you can use it, now instead of runghc Setup configure; .. build; ... install;, you can just use cabal.exe install
15:25:09<guenni>thx
15:29:28<Saizan>if the newer version was on hackage you could just "cabal install HAppS-IxSet" and cabal would have downloaded and installed it for you
15:30:16<guenni>the problem was always the unix package, it drove me crazy
15:31:18<guenni>especially now that I've reached the point where I need IxSet sooo badly
15:36:52<guenni>Saizan: nope, doesn't work, as soon as it gets to State it complains about missing unix package
15:37:23<guenni>does it really need the package or is this a remnant?
15:39:50<guenni>I meant artifact
15:42:24<Saizan>guenni: what are doing exactly?
15:42:59<Saizan>you should have you dercs get the State repo and call cabal install inside it
15:43:16<guenni>yep, I did
15:43:45<Saizan>and you already have -Util and -Data installed?
15:43:54<guenni>yes, they worked fine
15:44:11<guenni>I did this: darcs get --partial --tag=0.9.2 http://happs.org/repos/HAppS-State
15:44:18<Saizan>oh
15:44:25<Saizan>you need the latest darcs
15:44:26<guenni>was the version the problem?
15:44:45<guenni>what would be the correct call to darcs?
15:44:46<Saizan>yeah the --tag=0.9.2 brings only the patches until the release
15:45:00<guenni>ic
15:45:01<Saizan>now you can call darcs pull -a inside the repo
15:45:11<Saizan>to pull the other patches
15:46:14<guenni>that did it, great!
15:47:58<guenni>wonderful, great help Saizan, it's finally installed!
15:48:25<guenni>now I can play with it and figure out how to use it
15:48:52<Saizan>great :)
15:50:03<guenni>there might be more questions later ... ;)
17:37:14<thomashartman1>hey I just uploaded happs-tutorail 0.3 to hackage. could someone try cabal install happs-tutorial for a sanity check?
17:41:50<thomashartman1>I also asked #haskell, figure there's more action there.
18:16:47<titto>hi, is there any example of using HAppS to serve files for multiple web domains?

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