[ANN] guile-colorized released!

2012-12-03 Thread nalaginrut
hi folks! Here is the project to colorize Guile REPL: https://github.com/NalaGinrut/guile-colorized Play it according to README. Attached a screen shot for the effect. Enjoy it! And it uses 'before-print-hook', Daniel posted a patch to add REPL optional printer in another thread. I&#x

Re: where is the web directory?

2012-11-02 Thread nalaginrut
On Fri, 2012-11-02 at 16:54 +, Ian Price wrote: > Kejia柯嘉 writes: > > > if i use the default web server of guile, where should i put static > > html documents? > > Right now, I'd be tempted to suggest you let a "real" web server handle > these, and reverse proxy to guile for the dynamic stuf

Re: how to decode uri containing non-ascii characters?

2012-11-01 Thread nalaginrut
On Thu, 2012-11-01 at 20:03 -0400, Kejia柯嘉 wrote: > hi all, > > in an html textarea, i input some chinese text, and receive the text from > the http request body. i tried to use uri-decode to restore the text, but > failed: > (display (uri-decode "%E5%B0%8F")) > It's OK in my system. ---

Re: escaping characters

2012-10-31 Thread nalaginrut
I'm not sure what you mean, any example would be better. Maybe you need 'read-delimited' in the (ice-9 rdelim)? (call-with-input-string "abcd@efg" (lambda (port) (read-delimited "@,/ " port))) ==> abcd Maybe it's not you need, as I said, some example to explain your thought would be better.

Re: where is the web directory?

2012-10-31 Thread nalaginrut
I think (web server) module only provides preliminary tools to implement a real web-server. So you have to write your own path-parser in the handler which will be passed into 'run-server'. On Wed, 2012-10-31 at 12:55 -0400, Kejia柯嘉 wrote: > hi, > > if i use the default web server of guile, wher

Re: can `call-with-output-file' specify access mode?

2012-10-29 Thread nalaginrut
On Mon, 2012-10-29 at 15:26 -0400, Kejia柯嘉 wrote: > for example, `append' mode string. now I just use `open-file' to > specify the append operation. > Do you need "a" mode in the 'open-file' while you call 'call-with-output-file'? You may use fcntl to change it to O_APPEND in the thunk(I mean the

Re: substring

2012-09-07 Thread nalaginrut
On Fri, 2012-09-07 at 21:49 +0400, . wrote: > Hi, > > Why do we need substring [1]? We already have string-copy which looks > similar to me. > (These functions take different number of arguments, but string-copy > can handle this because it's more generic.) > > Is this connected with compatabili

Re: Compiling problems

2012-08-31 Thread nalaginrut
hi Olf! Maybe you use a low version libgc? But I can compiler Guile successfully under openSUSE, libgc1 version is 7.1.9.6-143.1.2 On Fri, 2012-08-31 at 13:35 +0800, Olf wrote: > Hello everyone, > I am just trying to install guile to my home folder of a SLES cluster. I > had to install several d

Re: New guildhall repository

2012-08-12 Thread nalaginrut
nice job! At least we can do some test work before guildhall.gnu.org works. Thanks! On Sun, 2012-08-12 at 18:48 +0100, Ian Price wrote: > The following message is a courtesy copy of an article > that has been posted to gmane.lisp.guile.devel as well. > > > Hi, > > For those of you using guild

Re: "unbound variable"

2011-06-27 Thread nalaginrut
> Hi again, > > Thanks for the help so far. > > On Mon, June 27, 2011 10:38, nalaginrut wrote: > > I can't give accurate answer because you provided less information. So I > > just give a guess: > > If you have wrapped a module in mapdisplay.scm, you'd

Re: "unbound variable"

2011-06-27 Thread nalaginrut
> On Mon, June 27, 2011 05:40, nalaginrut wrote: > > I think you need to import this symbol in your module, in this case, I > > think it's mapdisplay.scm. If get-map's not within a module, you'd need > > to get this symbol with "dynamic-link" and i

Re: "unbound variable"

2011-06-26 Thread nalaginrut
s symbol in your module, in this case, I think it's mapdisplay.scm. If get-map's not within a module, you'd need to get this symbol with "dynamic-link" and it's friends. -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut --hacker key-- v4sw7CUSMhw6ln6pr8OSFck4ma9u8MLSOFw3WDXGm7g/l8Li6e7t4TNGSb8AGORTDLMen6g6RASZOGCHPa28s1MIr4p-x hackerkey.com ---end key---

Re: gEDA now supports Guile 2.0! (And an issue).

2011-06-03 Thread nalaginrut
m by checking scm_major_version? Just suggestion. I'm not sure whether it's a proper way. -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut --hacker key-- v4sw7CUSMhw6ln6pr8OSFck4ma9u8MLSOFw3WDXGm7g/l8Li6e7t4TNGSb8AGORTDLMen6g6RASZOGCHPa28s1MIr4p-x hackerkey.com ---end key---

Re: Installing scheme only programs

2011-03-10 Thread nalaginrut
"s: ;.*::g" filename' is better. Note there should be a space before ";" in case you are using a "#;" as dismich said. But I think we must design a perfectly safe method. Anyway, I think it's a big deal now. :-) To dismich: I don't know there's a "#;" now. Thanks for warning. And I'd like to know what the "#;" means. :-) -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: Installing scheme only programs

2011-03-10 Thread nalaginrut
this way: == sed "/;.*/d" filename == -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: Is there any approach to define "private" vars in GOOPS?

2011-03-09 Thread nalaginrut
; I've no idea because the definition of "score-update" is actually out of > the class definition. > > Can I get some advice about the topic "how to hide the critical > property"? Or maybe I have some misunderstandings? > Sorry I think the "update score" is a fake problem. It can be solved by #:allocation #:virtual. But I still want to talk this topic: "How to hide the critical property?" -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: Is there any approach to define "private" vars in GOOPS?

2011-03-09 Thread nalaginrut
"how to hide the critical property"? Or maybe I have some misunderstandings? -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Is there any approach to define "private" vars in GOOPS?

2011-03-08 Thread nalaginrut
hi all! I got a question. Is there any approach to define a "private" vars/methods in the GOOPS? Or it's impossible? I didn't find any "private" info in the GOOPS manual. -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: C module problem

2011-02-28 Thread nalaginrut
> On Mon, Feb 28, 2011 at 04:54:00PM +0800, nalaginrut wrote: > > > I then run `guile' and evaluate > > > (load-extension "./sdl-guile.so" "init_module") and get the following > > > output. > > > > > > ERROR: In proce

Re: C module problem

2011-02-28 Thread nalaginrut
may type ",d load-extension" in the repl environment. And you will find this note: === LIB should be a string denoting a shared library without any file type suffix such as ".so". === -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: What's the alternative for SCM_STRING_CHARS ?

2011-02-23 Thread nalaginrut
de to change. :-) -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

What's the alternative for SCM_STRING_CHARS ?

2011-02-23 Thread nalaginrut
hi all! I found SCM_STRING_CHARS is deprecated, but I didn't find it's alternative from NEWS. Could anybody tell me where to find it? -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: Guile 2.0 + guile-gnome + GTK 3

2011-02-23 Thread nalaginrut
I just told you guile-gnome + guile2.0 works well. And you can find it here: http://www.gnu.org/software/guile-gnome/ -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: Guile 2.0 + guile-gnome + GTK 3

2011-02-23 Thread nalaginrut
> Is it possible to use guile-gnome with Guile 2.0? > > Are there any plans to port guile-gnome to GTK 3? > Yes, I'm working with that. You may try it. But I'm not sure about GTK3. -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: Is there any xpath2.0 in Guile available?

2011-02-10 Thread nalaginrut
> On Thu 10 Feb 2011 06:22, nalaginrut writes: > > > I'm writing a program with xml-based config. I think an xpath2.0 > > implementation would be convenient. Is there any proper module > > available? > > (sxml xpath). > > Not well documented though... &

Is there any xpath2.0 in Guile available?

2011-02-09 Thread nalaginrut
hi all! I'm writing a program with xml-based config. I think an xpath2.0 implementation would be convenient. Is there any proper module available? -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut

Re: GOOPS:Can I just overload "slot-set!" under #:virtual and let alone "slot-ref" ?

2010-12-12 Thread nalaginrut
for a while. But I'd better go deep into the meta-class sometime. Thank you! -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut