Re: [PATCH] add web/mime support

2013-02-11 Thread Daniel Hartwig
On 11 February 2013 17:38, Nala Ginrut wrote: > But there's a different for MIME, since it should be a part of web > module IMO (or not?). So I'm hesitated again. There is no pressing need to include or not. While it is a work in progress it is easier to distribute and inspect if it is an extern

Re: [PATCH] add web/mime support

2013-02-11 Thread Nala Ginrut
On Sun, 2013-02-10 at 09:41 +0800, Daniel Hartwig wrote: > On 6 February 2013 21:13, Nala Ginrut wrote: > > /usr/share/mime is contained in 'shared-mime-info' package, at least for > > openSUSE. The suggestion you gave means Guile will depend on this > > package. Personally, I don't think that's w

Re: [PATCH] add web/mime support

2013-02-09 Thread Daniel Hartwig
On 6 February 2013 21:13, Nala Ginrut wrote: > /usr/share/mime is contained in 'shared-mime-info' package, at least for > openSUSE. The suggestion you gave means Guile will depend on this > package. Personally, I don't think that's what you want. ;-P Hi The suggestion was to support reading the

Re: [PATCH] add web/mime support

2013-02-06 Thread Nala Ginrut
On Thu, 2013-01-17 at 15:48 +0100, Andy Wingo wrote: > On Thu 17 Jan 2013 11:37, Nala Ginrut writes: > > > PS: Do you think it's proper to use the same implementation in my server > > project? I'm not sure whether this mime thing would exist in any GNU > > system for a server purpose rather than

Re: [PATCH] add web/mime support

2013-01-17 Thread Andy Wingo
On Thu 17 Jan 2013 11:37, Nala Ginrut writes: > PS: Do you think it's proper to use the same implementation in my server > project? I'm not sure whether this mime thing would exist in any GNU > system for a server purpose rather than a desktop one. Why would it not exist on a server? My server

Re: [PATCH] add web/mime support

2013-01-17 Thread Nala Ginrut
On Thu, 2013-01-17 at 11:06 +0100, Andy Wingo wrote: > On Thu 17 Jan 2013 09:17, Nala Ginrut writes: > > > On Wed, 2013-01-16 at 11:46 +0100, Andy Wingo wrote: > >> It would be nice to use > >> http://freedesktop.org/wiki/Specifications/shared-mime-info-spec on free > >> software systems. > > > >

Re: [PATCH] add web/mime support

2013-01-17 Thread Andy Wingo
On Thu 17 Jan 2013 09:17, Nala Ginrut writes: > On Wed, 2013-01-16 at 11:46 +0100, Andy Wingo wrote: >> It would be nice to use >> http://freedesktop.org/wiki/Specifications/shared-mime-info-spec on free >> software systems. > > Are you suggesting use mime-info of freedesktop? I think we can writ

Re: [PATCH] add web/mime support

2013-01-17 Thread Nala Ginrut
On Wed, 2013-01-16 at 11:46 +0100, Andy Wingo wrote: > Hi, > > On Thu 23 Feb 2012 15:53, Nala Ginrut writes: > > > There's no mime support in Guile module, so I modified the mime code of > > my project Ragnarok and format a patch. > > > > It's easy to use: > > (use-modules (web mime)) > > (defin

Re: [PATCH] add web/mime support

2013-01-16 Thread Nala Ginrut
On Wed, 2013-01-16 at 11:46 +0100, Andy Wingo wrote: > Hi, > > On Thu 23 Feb 2012 15:53, Nala Ginrut writes: > > > There's no mime support in Guile module, so I modified the mime code of > > my project Ragnarok and format a patch. > > > > It's easy to use: > > (use-modules (web mime)) > > (defin

Re: [PATCH] add web/mime support

2013-01-16 Thread Andy Wingo
Hi, On Thu 23 Feb 2012 15:53, Nala Ginrut writes: > There's no mime support in Guile module, so I modified the mime code of > my project Ragnarok and format a patch. > > It's easy to use: > (use-modules (web mime)) > (define mime (make )) > (mime:guess mime 'pdf) > ==> application/pdf > (mime:gu

Re: [PATCH] add web/mime support

2012-02-23 Thread Catonano
Il giorno 23 febbraio 2012 16:39, Nala Ginrut ha scritto: > > And I think "http-get" could get whatever data from remote, so if you're > not writing a web browser, you just store the data to a file or redirect to > player something. In this case, you don't have to detect mime type > automatically

Re: [PATCH] add web/mime support

2012-02-23 Thread Nala Ginrut
Well, I'm not sure what you did. And this MIME support is mainly used for a server rather than a client. So your client must know how to deal with the given MIME. I think your client is not going to use my mime.scm, unless you're writing a web browser. If you do, you must have many handlers for t

Re: [PATCH] add web/mime support

2012-02-23 Thread Catonano
Il giorno 23 febbraio 2012 15:53, Nala Ginrut ha scritto: > There's no mime support in Guile module, so I modified the mime code of my > project Ragnarok and format a patch. > It's easy to use: > (use-modules (web mime)) > (define mime (make )) > (mime:guess mime 'pdf) > ==> application/pdf > (mi

[PATCH] add web/mime support

2012-02-23 Thread Nala Ginrut
There's no mime support in Guile module, so I modified the mime code of my project Ragnarok and format a patch. It's easy to use: (use-modules (web mime)) (define mime (make )) (mime:guess mime 'pdf) ==> application/pdf (mime:guess mime 'php) ==> application/x-httpd-php Maybe useful for some guys~