Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: How to know which module my library belongs to ?
(Adrien Haxaire)
2. can't authenticate to facebook (Chris Bolton)
3. Re: can't authenticate to facebook (Michael Snoyman)
4. Re: Options for creating a multiple select form via Yesod
(Michael Snoyman)
5. Re: Simple warp-based server (Michael Snoyman)
----------------------------------------------------------------------
Message: 1
Date: Thu, 09 Jun 2011 23:08:31 +0200
From: Adrien Haxaire <[email protected]>
Subject: Re: [Haskell-beginners] How to know which module my library
belongs to ?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Le 09/06/2011 22:49, Adrien Haxaire a ?crit :
> I don't know which module should be the parent of my library. I think it
> is in Mathematics and Physics, like MEEPS for example, but I prefer to
> ask here to be sure.
Just to clarify one thing: by Mathematics and Physics I meant Numeric.
So my library will be contained in a directory Numeric.
Is it the right thing to do?
Best regards,
Adrien
------------------------------
Message: 2
Date: Thu, 9 Jun 2011 14:59:18 -0700
From: Chris Bolton <[email protected]>
Subject: [Haskell-beginners] can't authenticate to facebook
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
anyone have any idea why the following code isn't working?
http://sprunge.us/LfJf
It just gives: StatusCodeException 400 (Chunk
"{\"error\":{\"type\":\"OAuthException\",\"message\":\"Missing client_id
parameter.\"}}" Empty)
Trying to follow this:
http://hackage.haskell.org/packages/archive/authenticate/0.9.0.1/doc/html/Web-Authenticate-Facebook.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110609/918d8752/attachment-0001.htm>
------------------------------
Message: 3
Date: Fri, 10 Jun 2011 06:54:10 +0300
From: Michael Snoyman <[email protected]>
Subject: Re: [Haskell-beginners] can't authenticate to facebook
To: Chris Bolton <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Hi Chris,
I got some bug reports about this in the past few days, and just
released a new version of authenticate yesterday. Can you try
upgrading and giving it another shot?
Thanks,
Michael
On Fri, Jun 10, 2011 at 12:59 AM, Chris Bolton <[email protected]> wrote:
> anyone have any idea why the following code isn't working?
> http://sprunge.us/LfJf
> It just gives:?StatusCodeException 400 (Chunk
> "{\"error\":{\"type\":\"OAuthException\",\"message\":\"Missing client_id
> parameter.\"}}" Empty)
> Trying to follow
> this:?http://hackage.haskell.org/packages/archive/authenticate/0.9.0.1/doc/html/Web-Authenticate-Facebook.html
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
------------------------------
Message: 4
Date: Fri, 10 Jun 2011 08:05:40 +0300
From: Michael Snoyman <[email protected]>
Subject: Re: [Haskell-beginners] Options for creating a multiple
select form via Yesod
To: Michael Litchard <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Hi Michael,
There's nothing jQuery or Javascript specific about a multi-select
field: it's just a normal select field with a "multiple" attribute. I
would recommend taking the selectField code from yesod-form and
modifying it to be multi-select. I'll likely do this myself
eventually, but it could be a good learning experience in Yesod (and a
great introduction to contributing to the framework if you're so
inclined).
Michael
On Thu, Jun 9, 2011 at 8:29 PM, Michael Litchard <[email protected]> wrote:
> I'm trying to create a multiple select form, as illustrated on the following:
> http://api.jquery.com/selected-selector/
>
> Here's the options I see possible:
>
> (1) Write a jQuery widget.
> (2) Use plain javascript via Julius
> (3) Use the low-level functions in Yesod.Form to write a widget
> (4) Use a pre-existing function that does what I need, but am not
> aware of this functionality
>
> (1) has appeal as it looks like something small I can contribute to
> the project. It will take me some extra time to figure out the
> details. But, I had a look at the other jQuery widgets and they seem
> to provide an approachable model to follow.
>
> (2) This looks like the most straight-forward approach. I'm just
> learning javascript so would have to figure out how to capture values
> in Haskell from the form.
>
> (3) This looks like the most difficult way. I don't think I know
> enough about the low-level functions in Yesod.Form to be able to
> accomplish this in a timely manner.
>
> (4) This is the best scenario. There's already a way to do this right
> now, and I just haven't identified it. If this is the case, I would
> appreciate being pointed in the right direction.
>
> Until informed otherwise, I'm evaluating options 1 and 2. All feedback
> welcomed. Thanks to all who made Yesod possible.
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
------------------------------
Message: 5
Date: Fri, 10 Jun 2011 11:25:33 +0300
From: Michael Snoyman <[email protected]>
Subject: Re: [Haskell-beginners] Simple warp-based server
To: Michael Xavier <[email protected]>
Cc: Haskell Beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Hi Michael,
Using WAI/Warp for this sounds reasonable. WAI actually works very
nicely with aeson, as they both use blaze-builder and
attoparsec-enumerator allows JSON values to be parsed directly from
the request body stream. I've put together an example of both the
server and client for the next Yesod cookbook blog post:
http://www.yesodweb.com/show/map/105
HTH,
Michael
On Thu, Jun 9, 2011 at 6:45 PM, Michael Xavier <[email protected]> wrote:
> Hi Haskell Beginners,
> I am writing a fairly simple app in haskell that will be used to support
> some Ruby on Rails apps at work. The gist of it is that it takes a JSON
> request and produces a JSON response. I've figured that strapping it to a
> web server will be the easiest way to allow our Rails apps to talk to it
> without worrying about IPC and all of that. I looked at yesod and snap and
> both seemed to be too much for what I'm asking. It seems to me that the best
> approach would be to write up an WAI interface, strap it to a Warp server
> and call it a day.
> 1) Is my reasoning about the approach to take sound or is there an
> alternative I haven't considered? My app will have 1 path (or rather won't
> care about the request path) and will take its input by just reading the
> request body.
> 2) Could anyone recommend what I need to read to take this approach? I
> started looking at Warp and WAI documentation and found I was well over my
> head as I have no knowledge of Iterators/Iteratees/Enumerators nor Builders,
> but I'm definitely willing to learn if that's what it takes.
> --
> Michael Xavier
> http://www.michaelxavier.net
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 36, Issue 27
*****************************************