Experimental IRC log happs-2008-02-12

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:08:52<non_socialist>holy crap still going!!
00:18:14<non_socialist>still compiling
00:18:17<non_socialist>holy moly
00:23:57<Lemmih>Facebook.hs?
00:27:36<jaggederest>no, probably just GHC, it's doing a full compile with extralibs
00:27:36<jaggederest>takes an hour or something, in my experience on a medium P4 2.4ghz lappy
00:30:52<non_socialist>oh crap ok
00:30:53<non_socialist>lol
00:31:03<non_socialist>now that some code!!
00:31:39<non_socialist>http://www.happs.org/ see the getting started bit
00:31:42<non_socialist>on the right
00:31:49<non_socialist>like 3 command but needs this sp thing
00:31:51<non_socialist>heh
00:32:02<non_socialist>I guess my expectaions were too simplistic he he
00:32:19<non_socialist>you weren't kidding when you said goto lunch while this works
00:33:14<jaggederest>yep
00:33:36<jaggederest>the thing about searchpath is, right now, it's not finding the right thing for happs head version to work
00:33:45<jaggederest>this is what I had to do to get happs to work :P
00:42:31<non_socialist>oh the littel bugger, ok glad I did it your way
00:42:44<non_socialist>I am brand new to haskell so have to get used to idea of these downlaods
00:42:48<non_socialist>using darcs etc.
00:43:11<jaggederest>yep. Darcs is very friendly, it prompts you for almost everything
00:49:46<non_socialist>wow done doing a lot
00:49:51<non_socialist>downloading liek 600 patches
00:49:53<non_socialist>wow
00:50:32<jaggederest>heh yeah you're going to get the whole repo
00:50:51<jaggederest>makes it easier to do stuff with it, and on friday it wasn't working with partials
00:51:11<jaggederest>Lemmih fixed it though, I think, but what the hey, little bandwidth to be sure.
00:54:17<non_socialist>crap
00:54:24<non_socialist>it bombed near the end
00:55:23<non_socialist>http://pastebin.ca/900601
00:55:38<non_socialist>http://groups.google.com/group/HAppS/browse_thread/thread/b5a9a007f79523b0/923eaf712c884599?hl=en#
00:55:42<non_socialist>last 4th post
01:03:01<non_socialist>seems almsot there
01:03:04<non_socialist>almost....
01:03:05<non_socialist>hmmm
01:03:10<non_socialist>darn it
01:08:00<mightybyte>@seen Lemmih
01:09:10<MarcWeber>Lemmih last spoke 16:59 (7 jours ago)
01:11:13<mightybyte>MarcWeber: You the new bot?
01:12:20<MarcWeber>Of course not.. just joking :) She is often ill lately, isn't she?
01:12:59<mightybyte>Seems like it.
01:13:22<jaggederest>hmm
01:13:26<jaggederest>cabal install should have done it
01:13:26<mightybyte>And she seems to change names frequently.
01:14:16<jaggederest>cabal install hslogger, try that
01:14:40<non_socialist>from command line or from withing ghc
01:14:42<non_socialist>heh
01:14:48<non_socialist>within-
01:15:09<non_socialist>Im looking at scipt
01:15:10<non_socialist>heh
01:15:14<jaggederest>from command line
01:15:14<MarcWeber>mightybyte: Then you can try >
01:15:20<non_socialist>is it ok to rerun any of these isntalls?
01:15:30<jaggederest>should be. Does take a while though
01:15:36<jaggederest>you're 90% of the way there though
01:15:38<non_socialist>I mean from line 38
01:15:41<non_socialist>yeah
01:15:42<non_socialist>toatlly
01:15:49<jaggederest>yep, it's fine
01:15:57<non_socialist>ok
01:15:59<jaggederest>you can reinstall these as many times as you like
01:16:02<non_socialist>so cabal install hslogger?
01:16:13<jaggederest>yeah, what does that tell you?
01:16:17<non_socialist>do I want to be in any particular directory?
01:16:21<non_socialist>befor ei run that
01:16:24<jaggederest>no it shouldn't matter
01:16:25<non_socialist>before
01:16:26<non_socialist>ok
01:16:33<MarcWeber>> print "who am I"
01:17:35<non_socialist>Prelude> cabal install hslogger <interactive>:1:0: Not in scope: `cabal' <interactive>:1:6: Not in scope: `install' <interactive>:1:14: Not in scope: `hslogger'
01:17:48<jaggederest>no, out of ghc :)
01:17:56<jaggederest>:quit gets you out
01:18:03<non_socialist>ok
01:18:21<jaggederest>it's like vim, quite the learning curve to exit :)
01:18:26<non_socialist>lol
01:18:52<non_socialist># cabal install hslogger -bash: cabal: command not found
01:19:03<non_socialist>heh
01:19:15<jaggederest>okay so the cabal install line must be getting broken
01:19:43<non_socialist>curl http://hackage.haskell.org/packages/archive/cabal-install/0.4.0/cabal-install-0.4.0.tar.gz > cabal-install-0.4.0.tar.gz
01:20:10<non_socialist>tar xvfz cabal-install-0.4.0.tar.gz && cd cabal-install-0.4.0 && runghc Setup.lhs configure && runghc Setup.lhs build && runghc Setup.lhs install && cd ..
01:20:33<jaggederest>http://pastebin.ca/900619
01:20:40<jaggederest>need a sudo before install
01:21:01<non_socialist>Im root for all of this
01:21:12<non_socialist>..
01:21:15<jaggederest>really?
01:21:19<jaggederest>hmm
01:21:19<non_socialist>yeah
01:21:23<non_socialist>my own box
01:21:25<non_socialist>...
01:21:29<non_socialist>bad?
01:21:35<jaggederest>yeah but the script is for not-root silly :)
01:21:46<jaggederest>you just need to be a member of sudoers
01:21:49<jaggederest>or wheel
01:21:51<jaggederest>or whatev
01:22:16<jaggederest>did it look like it installed cabal-install successfully?
01:23:18<non_socialist>has that dir with all the happs bits inside
01:23:25<MarcWeber>I've everyhting I need now. Should I see any Page when running AllIn example?
01:23:25<non_socialist>can't scroll back far enuf
01:23:38<jaggederest>hmm
01:23:44<jaggederest>yeah something must be broken
01:23:46<non_socialist>data http ix-set all in there
01:23:56<non_socialist>I can run stuff from command line
01:23:59<non_socialist>one by one
01:24:06<non_socialist>see result
01:24:21<jaggederest>yeah run the curl and tar lines for cabal that you pasted above
01:25:21<jaggederest>if you don't get it working, just download the packages from http://hackage.haskell.org/
01:25:22<non_socialist>k
01:25:34<jaggederest>back in an hour if you can wait :)
01:25:42<non_socialist>k
01:26:53<Lemmih>mightybyte: Yo.
01:26:56<non_socialist>runghc Setup.lhs configure Configuring cabal-install-0.4.0... Setup.lhs: At least the following dependencies are missing: zlib >=0.3, HTTP >=3000.0&&<3001.1
01:26:58<non_socialist>ah ha!!
01:29:55<non_socialist>ok even with zlib 1.2 same error
01:29:57<non_socialist>hm
01:30:04<non_socialist>lets try http
01:31:12<non_socialist>damn
01:31:16<non_socialist>lots fo deps nto met
01:31:18<non_socialist>hm
01:31:19<Lemmih>non_socialist: It's referring to the Haskell zlib binding.
01:31:23<non_socialist>ok cabal cabal cabal
01:31:24<mightybyte>Lemmih: Hey
01:31:27<non_socialist>must ge tit first
01:31:52<mightybyte>So, tell me about mkMethods.
01:32:37<mightybyte>Lemmih: It looks like it creates various Functor objects from the supplied functions (or something like that)?
01:32:37<Lemmih>mightybyte: As mentioned before, we send functions around instead of data.
01:32:51<mightybyte>Right
01:33:09<Lemmih>In order to do that, we need a way of serializing and de-serializing functions.
01:33:50<mightybyte>Interesting.
01:34:00<mightybyte>So where are the functions being sent?
01:34:14<Lemmih>mkMethods creates data structures that contain the function name and the function arguments. It also creates an instance of Serialize for those structures.
01:34:38<Lemmih>Right now they're only being sent to disk (:
01:34:45<mightybyte>Ok
01:35:02<Lemmih>Events are saved on disk so we can recover after a crash.
01:35:08<mightybyte>But in the future, they could be sent to multi-mastered or sharded instances of HAppS?
01:35:21<Lemmih>Yes, exactly.
01:35:51<mightybyte>Ok, so then the obvious practical question is what are the constraints on the functions that mkMethods operates on?
01:35:55<Lemmih>We can get multi-master for free and sharding for a relatively low cost.
01:36:32<Lemmih>The methods can either be Update or Query functions.
01:36:50<mightybyte>Ok
01:37:09<Lemmih>MonadReader's are treated as Query. MonadWriter's are treated as Update.
01:37:09<mightybyte>Let me go look at the definitions of Update and Query.
01:37:30<mightybyte>Ok, what about MonadState? I think I saw those somewhere.
01:37:35<Lemmih>Update = State componentState res
01:37:41<Lemmih>Query = Reader componentState res
01:37:47<Lemmih>(basically)
01:37:59<non_socialist>ok how do I install haskells zlib binding?
01:38:01<non_socialist>:)
01:38:14<Lemmih>State monad and Reader monad. No IO.
01:38:33<mightybyte>Ok
01:38:44<Lemmih>(It's not the exact definition because we also have things like transaction ID)
01:38:53<Lemmih>non_socialist: cabal install zlib
01:39:17<mightybyte>Ok, but that's what I'm looking for.
01:39:47<Lemmih>type Query state = Ev (ReaderT state STM)
01:39:47<Lemmih>type Update state = Ev (StateT state STM)
01:40:01<Lemmih>newtype Ev m t = Ev { unEv :: Env -> m t }
01:40:14<Lemmih>'Env' contains things like transaction ID.
01:40:37<mightybyte>Oh, sorry. I was saying that your synopsis was what I was looking for.
01:41:03<mightybyte>But thanks anyway. :)
01:41:35<Lemmih>(We don't use STM directly in the events anymore, btw)
01:42:07<mightybyte>Oh, interesting.
01:42:41<mightybyte>Looks like they're still in there now though.
01:43:19<Lemmih>We had a proof-of-concept implementation of multi-master. It have been disable due to the major changes in HAppS-State.
01:43:38<mightybyte>Ahh
01:43:50<Lemmih>It was so much fun to play with. (:
01:45:49<Lemmih>Once the new version has been released, work will start on a proper implementation of multi-master and sharding.
01:46:19<mightybyte>Sounds great. I hope I'll be up to speed so I can at least test if not contribute.
01:47:46<Lemmih>non_socialist: Are you using the install script?
01:49:31<mightybyte>Lemmih: Hmmm, what do I need to do when I get a "Method too general" error?
01:50:26<Lemmih>mightybyte: Methods may not be more general than the component they act on.
01:50:54<Lemmih>That is, if the component is 'Comp a b' then using 'a' and 'b' is fine, but 'c' is not.
01:51:20<Lemmih>('a', 'b' and 'c' are type variables)
01:52:31<mightybyte>authUser :: (Monad m, MonadReader State m1, Eq (m String)) => String -> m String -> m1 Bool
01:52:56<Lemmih>'m String' is the culprit.
01:53:01<mightybyte>Yeah, thought so.
01:53:09<mightybyte>I was trying to figure out how to get rid of that.
01:53:47<Lemmih>Examples explaining this limitation and/or a better error message would be greatly appreciated.
01:54:46<Lemmih>I'm off to bed. See ya later.
01:54:51<mightybyte>Ok, thanks.
01:54:59<mightybyte>I'll figure it out.
02:54:49<non_socialist>ok
02:55:35<non_socialist>I am trying to compile HappS-Utils and it wants hslogger
02:55:47<non_socialist>probelm is its already been isntalled using cabal
02:56:48<non_socialist>higher than correct version
02:56:50<non_socialist>hm
02:59:52<non_socialist>wonder if os version of ghc is conflicting with newly installed ghc
02:59:55<non_socialist>darn
03:06:43<non_socialist>anyone around?
03:06:47<non_socialist>(recompiling ghc)
03:09:38<non_socialist>after doing pacman -R ghc to get rida os one
05:44:24<dgladdin>hi all, just getting started and having a few build problems - can anyone spare 30 sec to point me in the right direction?
06:31:12<sclv>what's the prob?
09:31:13<MarcWeber>Running sudo ./HelloWorld --http-port=80 I should be able to connect to http://localhost:80/ right? I can't.
09:32:42<MarcWeber>Ah wrong port settings.
12:24:32<MarcWeber>Why does cron is of type -> IO a and not -> IO () ?
12:25:19<Lemmih>Because it can.
12:46:21<MarcWeber>I see. But it never will, right? The only way to escape is using exceptions or something like that.
12:55:47<Lemmih>Right.
16:13:54<dgladdin>hi everyone
16:14:07<dgladdin>is there anyone with a couple of minutes to spare to help me with a build problem?
16:16:17<Lemmih>Sure.
16:16:21<dgladdin>thankyou
16:16:38<dgladdin>I'm just getting started and trying to build as per the happs.org front page
16:16:51<dgladdin>using debian testing, all libs installed (I think)
16:16:55<dgladdin>I get:
16:17:02<dgladdin>http://hpaste.org/5617
16:17:19<kaol>don't use debian testing. It has GHC 6.6. You'll need GHC 6.8.
16:17:30<Lemmih>And don't use searchpath.
16:17:46<dgladdin>sorry, my mistake - it's a debian testing/unstable hybrid, I'm running 6.8
16:18:04<dgladdin>manual build of each cabal file?
16:18:30<Lemmih>Yeah.
16:19:02<dgladdin>thankyou, I'll try that
16:40:51<Saizan>Lemmih: so onlty alexj likes searchpath?
16:46:03<Lemmih>Saizan: Well, the default searchpath map is broken right now.
19:59:42<non_socialist>?
20:00:00<non_socialist>root/.SearchPath/darcs_get_--partial_--tag=0.9.1.2_http_happs.org-repos-HAppS-IxSet/HAppS-IxSet/src/HAppS/Data/IxSet.hs:140:4: `startState' is not a (visible) method of class `StartState'
20:02:47<Lemmih>Don't use search path.
20:02:58<Lemmih>It is currently borked.
21:33:40<non_socialist>how do I use cabal no sp?
21:34:11<Lemmih>Do you have the cabal binary?
21:34:13<non_socialist>http://groups.google.com/group/HAppS/browse_thread/thread/cce9e645f6acc9be/9ee966e35ba1afe3?hl=en#
21:34:19<non_socialist>no
21:34:42<non_socialist>I can go get it...
21:35:03<Lemmih>http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install-0.4.0
21:36:21<Lemmih>Installing HAppS from scratch is rather painful, especially if you're new to Haskell.
21:36:48<non_socialist>heack yeah
21:36:53<GrayShade>it's not as bad as a week ago
21:37:07<non_socialist>I had chaos yesterday and cabal said I had a log lib and happps-util said I didnt
21:37:09<non_socialist>hehe
21:37:11<non_socialist>ok
21:37:26<non_socialist>http://happs.org/ see the sp commadn on the right?
21:37:38<non_socialist>sp ghc -isrc src/Main.hs --make --run --http-port=5000
21:37:43<non_socialist>this gives an error
21:37:53<non_socialist>now.........can I just strip off the sp?
21:37:53<Lemmih>Yeah, we know.
21:38:05<Lemmih>Nope, you have to install everything by hand.
21:38:08<GrayShade>download and install happs first, then you'll be able to compile files with ghc
21:38:10<non_socialist>what si sp doing here? it seems to be passing work to ghc
21:38:29<non_socialist>ok
21:38:49<GrayShade>i think it recompiles and restarts the program when you modify it's source or something like that
21:39:41<non_socialist>hm
21:39:43<non_socialist>k
21:40:22<GrayShade>why doesn't HAppS work with newer versions of HaXml?
21:40:47<Lemmih>I'm not sure that it doesn't.
21:41:00<GrayShade>oh
21:41:23<non_socialist>so happs has database and a feature where you don't lose your work in case of power failure?
21:41:28<non_socialist>NICE!
21:43:20<non_socialist>so to get happs I install cabal, then grab those pacakges on the left on the happs site?
21:43:51<non_socialist>do the runghc Spblahblah configure && blah build && blah install
21:43:53<non_socialist>right?
21:44:23<GrayShade>to get happs, you need cabal and darcs
21:44:38<Lemmih>Yes.
21:44:50<GrayShade>you'll "darcs pull" every package from the repository and then do the cabal magic
21:45:36<GrayShade>"darcs get"*
21:46:16<GrayShade>but you should download the last revisions, not the 0.9.2 ones
21:46:52<Lemmih>I wonder how easy it is to use an alternative map file for searchpath.
21:49:03<non_socialist>ok
21:49:11<non_socialist>cabal install does nothing
21:49:22<non_socialist>I have ghc 6.8.2 that should contain cabal
21:49:23<non_socialist>yes?
21:52:43<Lemmih>Cabal refers to two things.
21:52:56<Lemmih>The 'cabal' library and the 'cabal' binary.
21:53:06<Lemmih>The 'cabal' library is distributed with GHC.
21:53:13<Lemmih>The 'cabal' binary is not.
21:54:32<non_socialist>I searched and found ah
21:54:35<non_socialist>ahhh
21:54:36<non_socialist>ok
21:54:59<mightybyte>non_socialist: I installed both cabal and cabal-install.
21:55:51<mightybyte>Then I installed most of the external dependencies as --global, and HAppS itself as --user.
21:59:49<non_socialist>http://www.haskell.org/cabal/download.html see where it says "compile setup scripts thusly with ghc" xyz is this flat out wrong? is the README the way to go?
22:01:13<mightybyte>Hmm, I've never compiled the setup scripts like that.
22:01:30<mightybyte>I don't know that there would be any difference between the two.
22:14:39<non_socialist>ok I think i have cabal now
22:14:59<non_socialist>I did make install, then did setup configure, setup build, setup install
22:18:56<non_socialist>hm
22:19:07<non_socialist>cabal update does nothing
22:19:08<non_socialist>hmmm
22:34:24<Lemmih>'cabal update' downloads the package index from hackage.
22:37:04<Saizan>but you've to download the repos with darcs as on happs.org page and then run "cabal install" inside each of them
23:03:11<non_socialist>cabal update works when cabal-install is instaled right?
23:03:32<non_socialist>I cant find the HTTP pacakge version I need for cabal-install
23:07:56<Lemmih>http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP-3001.0.4 ?
23:08:16<Lemmih>The Hackage page for cabal-install has links to each dependency.
23:18:39<non_socialist>I saw
23:18:43<non_socialist>I tired 3000.0
23:19:00<non_socialist>didn't work, so I went back and installed the dev version of cabal
23:19:10<non_socialist>1.3.4
23:19:15<Lemmih>Of cabal or cabal-install?
23:19:17<non_socialist>hopefully this will work better
23:19:22<non_socialist>cabal
23:19:40<non_socialist>it says you need dev version of cabal
23:19:43<non_socialist>heh
23:21:24<non_socialist>http://hackage.haskell.org/trac/hackage/wiki/CabalInstall here
23:22:05<non_socialist>http://darcs.haskell.org/cabal-install/README says HTTP 3000.0 to < 3001.0
23:22:44<Lemmih>Trust hackage.
23:22:45<non_socialist>http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP-3000.0.0
23:23:07<non_socialist>ok but still guna take a punch in nuts if HTTP 3000.0 wont install
23:23:23<non_socialist>I could swear yesterday I found 3000.0.4
23:23:26<non_socialist>darn it
23:23:48<Lemmih>3001.0.4?
23:24:21<Lemmih>Cabal-install depends on HTTP (>=3000.0 && <3001.1).
23:24:47<non_socialist>3000 bombed
23:24:51<non_socialist>runghc Setup.lhs build Preprocessing library HTTP-3000.0.0... Building HTTP-3000.0.0... Network/HTTP.hs:149:7: Could not find module `Data.Array.MArray': it is a member of package array-0.1.0.0, which is hidden
23:25:10<Lemmih>non_socialist: Well then, get 3001.0.4.
23:25:30<non_socialist>oh THATS it!! ok damn my eyes are waked out
23:28:38<non_socialist>http://darcs.haskell.org/cabal-install/ darn where is the tar.gz for cabal-install?
23:29:56<Lemmih>http://hackage.haskell.org/packages/archive/cabal-install/0.4.0/cabal-install-0.4.0.tar.gz ?
23:30:13<non_socialist>how did you find that?
23:30:36<Lemmih>http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install-0.4.0
23:33:10<non_socialist>ok
23:33:21<non_socialist>I tried to install and got an error hmmm
23:33:34<Lemmih>What error?
23:33:37<non_socialist>Hackage/Config.hs:39:40: Module `Distribution.PackageDescription' does not export `ParseResult(..)'
23:34:10<non_socialist>when trying runghc Setup.lhs build
23:34:13<Lemmih>Did you install the new cabal library?
23:34:27<Lemmih>ghc-pkg field Cabal version
23:34:28<non_socialist>yes
23:34:53<non_socialist># ghc-pkg field Cabal version version: 1.2.3.0 version: 1.3.4
23:34:58<non_socialist>shows 2
23:35:04<Lemmih>Good.
23:35:07<non_socialist>I installed the 1.2.3 earlier...
23:35:17<non_socialist>then 1.3.4
23:35:55<non_socialist>both by hand
23:36:05<non_socialist>the 1.3.4 I did not run make and use setup as in 1.2.3
23:36:14<non_socialist>I jsut did the runghc 3 steps
23:36:25<non_socialist>(there was no makefiel or readme)
23:36:54<Lemmih>I'd just install HAppS by hand if I were you.
23:37:29<non_socialist>hm
23:37:30<non_socialist>ok
23:37:34<non_socialist>how do I doo that?
23:37:50<non_socialist>grab happs stuff and do the 3 runghc on em?
23:37:51<Lemmih>Download the repos, runghc x 3.
23:37:55<non_socialist>ok
23:38:23<non_socialist>god damn I must be making this hard
23:41:34<non_socialist>wow haps website shows 0.9.2 and hackage shows 0.8.4
23:41:36<non_socialist>hm
23:41:49<Lemmih>You need to get the darcs version.
23:44:11<non_socialist>I tried one from wiki, complains tag is missing
23:44:41<Lemmih>darcs get --partial http://happs.org/repos/HAppS-State
23:45:08<Lemmih>(Also get syb-with-class, HAppS-Server, HAppS-IxSet, HAppS-Data and HAppS-Util)
23:46:42<non_socialist>wait a second
23:46:53<non_socialist>thats different yet similar to the command on the wiki
23:46:58<non_socialist>and it works
23:49:04<non_socialist>oh is happs-http gone ro something
23:49:09<non_socialist>that is the top one on the wiki
23:49:15<non_socialist>thats where I went wrong I guess
23:49:20<Lemmih>What wiki?
23:49:31<non_socialist>happs.org documentation/wiki link
23:49:37<non_socialist>bring up pane on left side
23:49:43<non_socialist>top one is that commadn with happs-http
23:50:30<non_socialist>http://www.happs.org/
23:51:01<non_socialist>HAppS provides you with all the major server components you need to build high quality. You can use them individually or compose them together into a single deployable package that handles all aspects of your internet app including the database. HAppS-HTTP — High performance dynamic web serving framework darcs get --partial --tag=0.9.2 http://happs.org/repos/HAppS-HTTP Write web services really easy using an ele
23:51:02<Lemmih>Yeah, don't listen to happs.org
23:51:06<non_socialist>lol
23:51:29<non_socialist>ok now to do some runghc-ing

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