Re: refer-clojure does not prevent namespace conflicts

2011-04-12 Thread limux
of use refer-clojure with exclude option. So I have to fellow you to avoid the issue. On 4月11日, 下午10时42分, Meikel Brandmeyer m...@kotka.de wrote: Hi, On 11 Apr., 16:29, limux liumengji...@gmail.com wrote: Why some warning of conflit be reported in the cmd of win when the lein run myoa

Re: refer-clojure does not prevent namespace conflicts

2011-04-11 Thread limux
very well in how to use refer and no any issues. Why some warning of conflit be reported in the cmd of win when the lein run myoa/core.clj? and when I refresh the browser the system will failed with lots of error messsage? Sincerely Limux On 4月11日, 上午6时37分, Meikel Brandmeyer m...@kotka.de wrote

A Web Server in Clojure

2010-12-31 Thread limux
I have read Fast Track Clojure's serials tutorial. lession 5 is about a web server. Below is part of demo code: (use 'clojure.contrib.server-socket) (create-server 8080 (fn [in out] (binding [*out* (java.io.PrintWriter. out)] (println HTTP/1.0 200 OK) (println

A Web Server in Clojure

2010-12-31 Thread limux
I have read Fast Track Clojure's serials tutorial. lession 5 is about a web server. Below is part of demo code: (use 'clojure.contrib.server-socket) (create-server 8080 (fn [in out] (binding [*out* (java.io.PrintWriter. out)] (println HTTP/1.0 200 OK) (println

A Web Server in Clojure

2010-12-31 Thread limux
I have read Fast Track Clojure's serials tutorial. lession 5 is about a web server. Below is part of demo code: (use 'clojure.contrib.server-socket) (create-server 8080 (fn [in out] (binding [*out* (java.io.PrintWriter. out)] (println HTTP/1.0 200 OK) (println

Re: A Web Server in Clojure

2010-12-31 Thread limux
Sorry for my net speed is too slow result in duplicate post. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Re: A Web Server in Clojure

2010-12-31 Thread limux
There is no any error when I access http://127.0.0.1:8080 by browser. While with wget, there will be some messages as below: --2011-01-01 09:22:49-- (try:20) http://127.0.0.1:8080/ Connecting to 127.0.0.1:8080... connected. HTTP request sent, awaiting response... 200 No headers, assuming HTTP/

Re: New Release of the Clojure Debugging Toolkit

2010-10-08 Thread limux
, 8:15 pm, limux liumengji...@gmail.com wrote: where is the sa-jdi.jar, there isn't the sa-jdi.jar under my java's lib directory. On 9月29日, 下午12时00分, George Jahad cloj...@blackbirdsystems.net wrote: hmmm, you must be as big a debugger geek as I am, but I'm not sure anyone else

Re: New Release of the Clojure Debugging Toolkit

2010-10-08 Thread limux
2010/10/8 limux liumengji...@gmail.com: I do a full source install of clojure follow by the article Emacs Front End to the Clojure Debugging Toolkit, I started the java vm with all the necesory arguments, and M-x cdt, then there will be some error messages as below: Current

Re: New Release of the Clojure Debugging Toolkit

2010-10-07 Thread limux
where is the sa-jdi.jar, there isn't the sa-jdi.jar under my java's lib directory. On 9月29日, 下午12时00分, George Jahad cloj...@blackbirdsystems.net wrote: hmmm, you must be as big a debugger geek as I am, but I'm not sure anyone else would be interested. In any case the commands are almost

Re: let binding ~'=

2010-08-21 Thread limux
[~'and ...]) will expand to (let [and ...] ) this is a problem because it can conflict with some other names. However, in some case it is very useful/necessary. Especially when you want to expose some symbols to the macro user. On Sat, Aug 21, 2010 at 3:20 PM, limux liumengji...@gmail.com wrote

Re: let binding ~'=

2010-08-21 Thread limux
Thanks, I remindered that it's a reader macro used to get the symbol itself exactly without namespace. Ok, I see! On 8月21日, 下午10时58分, limux liumengji...@gmail.com wrote: Is where a canonical doc about ~' or I have to read the core.clj? On 8月21日, 下午10时40分, Nicolas Oury nicolas.o...@gmail.com

Re: [ANN] Leiningen 1.2.0 released

2010-08-20 Thread limux
It's 1.3.0! 2010/8/20 David Nolen dnolen.li...@gmail.com: On Fri, Aug 20, 2010 at 12:39 AM, Phil Hagelberg p...@hagelb.org wrote: I just pushed out a new release of Leiningen, a Clojure build tool, with lots of help from many contributors. Looks great. A couple early observations/issues,

Re: Clojure 1.2 Release

2010-08-19 Thread limux
Congrats and Cheers, :-) 2010/8/19 Greg g...@kinostudios.com: Congrats! :-D BTW, the link to clojure-contrib-1.2 seems to be broken (currently returning 404): http://github.com/downloads/clojure/clojure/clojure-contrib-1.2.0.zip Was RC3 the final build? I couldn't find the answer in the

Re: two announcements: a new Clojure article, and a new site for beginners

2010-08-14 Thread limux
I see, I am reading that Extending Java Classes using proxy article. 2010/8/15 Michael Gardner gardne...@gmail.com: On Aug 14, 2010, at 12:58 AM, Gregg Williams wrote: ** Second announcement: GettingClojure.com, a collaborative site for Clojure beginners gettingclojure.com currently

Re: chinese character in hiccup

2010-08-13 Thread limux
Then, if Ring doesn't care of the charset also, there is no one, suck as jetty, ring, compojure would take care of the charset except myself. There are many peopole come from all kinds of country or region who use ring, jetty and compojure. Let themselves set the right charset manually by wrap? I

Re: chinese character in hiccup

2010-08-13 Thread limux
One word, Why we would let Jetty set default charset to iso-8859-1, Why not Compojure can set the default charset to utf-8? Isn't utf8 a better choice? Is iso-8859 better than utf-8? On 8月13日, 下午5时05分, ngocdaothanh ngocdaoth...@gmail.com wrote: Perhaps Jetty add a charset of iso-8859-1 if there

Re: chinese character in hiccup

2010-08-13 Thread limux
You are right that there should be such a middleware in Ring. On 8月13日, 下午6时40分, James Reeves jree...@weavejester.com wrote: 2010/8/13 limux liumengji...@gmail.com: Then, if Ring doesn't care of the charset also, there is no one, suck as jetty, ring, compojure would take care of the charset

Re: chinese character in hiccup

2010-08-12 Thread limux
The solution in http://tiny.cc/3cmrx is useful, thanks. That what cause the issue should be compojure. That thread's time is 6, June. and compjure haven't fixed it. On 8月11日, 下午2时41分, Nebojsa Stricevic nebojsa.strice...@gmail.com wrote: Hi, This looks similar like problem that I had with

Re: chinese character in hiccup

2010-08-12 Thread limux
? Regards. On 8月13日, 上午2时25分, Rasmus Svensson r...@lysator.liu.se wrote: 2010/8/12 James Reeves jree...@weavejester.com: On 12 August 2010 14:33, limux liumengji...@gmail.com wrote: The solution inhttp://tiny.cc/3cmrxis useful, thanks. That what cause the issue should be compojure

Re: chinese character in hiccup

2010-08-12 Thread limux
to see those response pass through directly. I know Ring looks like Rack. On 8月13日, 上午10时36分, limux liumengji...@gmail.com wrote: Perhaps Jetty add a charset of iso-8859-1 if there isn't one in response. At the same time, in Compojure, it add none of the charset when a string is rendered

chinese character in hiccup

2010-08-10 Thread limux
Windows 7 as the dev platform. Heartly thanks of advices! Limux, Regards. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient

Cannot sen msg to #clojure channel

2010-08-10 Thread limux
Why? My nickname in #clojure is limux1972. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To

why the def of run-jetty looks like defn #^Server run-jetty

2010-08-09 Thread limux
The follow is the ring's source, and I am a newbie in Clojure. what the defn of run-jetty looks like this form, what's the meaning of #^Server in the defn and let? Thanks in advance. Limux. (defn #^Server run-jetty Serve the given handler according to the options. Options: :configurator

Re: why the def of run-jetty looks like defn #^Server run-jetty

2010-08-09 Thread limux
I see, heartly thanks, and there is no any words about it in API doc of clojure.org yet! Regards limux. On 8月9日, 下午3时04分, j-g-faustus johannes.fries...@gmail.com wrote: On Aug 9, 8:25 am, limux liumengji...@gmail.com wrote: what's the meaning of #^Server in the defn and let? (defn

Re: why the def of run-jetty looks like defn #^Server run-jetty

2010-08-09 Thread limux
The type hint can be placed on function parameters, let-bound names, var names, and expressions. And it can be placed behind or ahead of them. Isn't it? On 8月9日, 下午3时31分, limux liumengji...@gmail.com wrote: I see, heartly thanks, and there is no any words about it in API doc of clojure.org yet

please explain where and why to use var-quote

2010-08-04 Thread limux
i very confused var-quote, hope someone explain it more detailed than the clojure.org's, thks. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated

Re: please explain where and why to use var-quote

2010-08-04 Thread limux
Thanks for your very very helpful help. Another question is: defmacro defmodel [model-name] `(let [sym-model-name ~(symbol (str app.model. model-name))] (do On 8月4日, 下午3时42分, Meikel Brandmeyer m...@kotka.de wrote: Hi, On Aug 4, 9:32 am, limux liumengji...@gmail.com wrote: i very

Re: please explain where and why to use var-quote

2010-08-04 Thread limux
(ns temp#) ;; define some relevant functions in the ns created previously. (defn find [] (prn hello)) ;; over )) It doesn't work, any advice? Limux, Regards On 8月4日, 下午11时53分, limux liumengji...@gmail.com wrote: Thanks for your very very helpful help

clojure box 1.0 failed to connect to emacs server

2010-01-18 Thread limux
when i start the clojure box 1.0, the emacs client window stay on the top of all the other windows, eventually it display a message ** ERROR ** Timeout wating for server, but 1.0RC1 no that issue. -- You received this message because you are subscribed to the Google Groups Clojure group. To post