Re: San Francisco Clojure Users

2011-05-26 Thread Emeka
David, Yes. I am in Nigeria. Emeka On Tue, May 24, 2011 at 9:43 AM, David Jagoe wrote: > Are you in Nigeria? > > Anyone else on this list in Africa? > > > > On Sunday, 22 May 2011, Emeka wrote: > > Okay. > > I live in Africa... maybe we should have

Re: San Francisco Clojure Users

2011-05-22 Thread Emeka
Okay. I live in Africa... maybe we should have online meetups for now. Emeka On Thu, May 19, 2011 at 4:29 PM, David Jagoe wrote: > On 18 May 2011 18:54, Emeka wrote: > > David, > > How is Clojure doing in Africa? > > There really aren't that many people using

Re: San Francisco Clojure Users

2011-05-18 Thread Emeka
David, How is Clojure doing in Africa? Emeka. On Wed, May 11, 2011 at 12:42 AM, David Jagoe wrote: > On 10 May 2011 15:00, Zach Tellman wrote: > > Unfortunately, you just missed the monthly Bay Area user group meetup, > > Yeah I saw that... gutted! > > > which was yes

Re: into map with vectors versus lists (Re: Creating map from string)

2010-12-24 Thread Emeka
Did you try this (apply hash-map (partition 2 (split (slurp "data") #","))) On Sat, Dec 4, 2010 at 11:12 AM, Remco van 't Veer wrote: > I expected this to work: > > (into {} (partition 2 (split (slurp "data") #","))) > > But unfortunately, `into' doesn't seem to allow pushing lists of pairs >

Re: Looking for a better way

2010-12-16 Thread Emeka
uot; >> [s] >> (intern *ns* (symbol s) s)) >> >> that is, assuming I got the use case right. >> >> --Robert McIntyre >> >> >> On Wed, Dec 15, 2010 at 8:00 AM, Laurent PETIT >> wrote: >> > 2010/12/15 Emeka >> >>

Looking for a better way

2010-12-15 Thread Emeka
*Helllo All,* * * *Is there a better way of doing this?* * * *(defmacro foo [string] (let[b# string f# (symbol b#)] `(def ~f# ~b#)))* * * * * *Regards,* *Emeka * -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: sql utilities

2010-10-18 Thread Emeka
Beautiful . Emeka On Fri, Oct 15, 2010 at 1:08 AM, Stuart Campbell wrote: > Thanks Kyle. Looks useful! > > > On 15 October 2010 09:25, Saul Hazledine wrote: > >> On Oct 14, 9:16 pm, "Kyle R. Burton" wrote: >> > I've written some sql helper fun

Re: Displaying source of function typed into the REPL?

2010-09-20 Thread Emeka
Sean, Try this, http://gist.github.com/193550 . Adjust it to your taste. Regards, Emeka On Mon, Sep 20, 2010 at 4:00 AM, Sean Corfield wrote: > That also sounds pretty useful for development. I may try that as an > exercise... > > This weekend has been a journey through The Joy o

Re: JavaFX and Clojure

2010-08-27 Thread Emeka
Mark, Can JavaFX do that? Regards, Emeka On Mon, Aug 23, 2010 at 7:12 PM, Mark Engelberg wrote: > > Rather than > > creating the JavaFX language they would have done so much more for the > > community to just focus on this scenegraph library, animation, etc... > > I ag

Re: Windows distribution for Leiningen 1.3.0

2010-08-22 Thread Emeka
favored to try it. Regards, Emeka On Sat, Aug 21, 2010 at 6:22 PM, Shantanu Kumar wrote: > The lein.bat script is now updated in the sources if some of you want > to give it a try. A summary about it is here: > > http://bit.ly/c4U2bI > > Regards, > Shantanu > > On Au

Re: ANN: form-dot-clj - HTML form validation and display

2010-08-13 Thread Emeka
Thanks for sharing, I will be trying out your lib. I am doing some web thing. Emeka On Fri, Aug 13, 2010 at 10:11 AM, Saul Hazledine wrote: > Form-dot-clj is library for handling the display and validation of > forms. It Supports HTML5 forms, javascript validation and plain HTML. >

Re: let binding and recursive function

2010-08-04 Thread Emeka
Hello John, I would want to add something to what Justin said. (defn goo [ i k & l] (println l)) => (goo 2 3 [233]) ;;; gives ([233]) (conj '([233]) ...) (defn goo [i k & [l]](println l)) =>(goo 2 3 [233]) ;;; gives [233] (conj [233] ...) Hope the difference is clear n

Installing emacs using leiningen on Windows Vista

2010-07-20 Thread Emeka
Hello All, I need your support here. While troubleshooting I added "echo CLASSPATH". C:\Users\rmicro\goog>lein swank ";C:\Users\rmicro\goog\lib\ swank-clojure-1.2.1.jar" "C:\cygwin\clein\leiningen-1.1.0-standalone.jar";";C:\Users\rmicro\goog\lib\swan k-clojure-1.2.1.jar";".;C:\Program Files\Java\

Leiningen on windows

2010-06-21 Thread Emeka
Hello All, I need the following; The clojure version to be used, The best way to configure Leiningen on Vista, Examples I am currently try out instructions on this site http://charsequence.blogspot.com/2010/06/setup-leiningen-on-windows.html Regards, Emeka -- You received this message

Re: Using PRXML lib

2010-06-12 Thread Emeka
Thanks, it worked :( On Sat, Jun 12, 2010 at 8:23 PM, Moritz Ulrich wrote: > You can use (with-out-str &body) to capture the output or prxml to a > string and write that string to a file. > > On Sat, Jun 12, 2010 at 8:53 PM, Emeka wrote: > > Could someone direct me on h

Re: Using PRXML lib

2010-06-12 Thread Emeka
Hello Moritz, prxml form prints on the console, my aim is to redirect it to print to a file. I have not been able to achieve this. I have looked at the prxml lib code, it prints to *out*, it returns nil. My interest is on capturing the output of prxml and writing it to a file. Regards, Emeka On

Using PRXML lib

2010-06-12 Thread Emeka
Hello All, Could someone direct me on how to write the output of prxml form to a file? Regards, Emeka -- 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 m

Clojure Africa

2010-05-09 Thread Emeka
us. http://groups.google.com/group/clojure-africa Regards, Emeka -- 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 pa

Re: Vimclojure Performance on Windows

2010-03-16 Thread Emeka
Meikel, Is Vimclojure stable enough to have it on my Window's Vista? I tried it out before without success. Regards, Emeka On Fri, Feb 26, 2010 at 6:22 AM, Meikel Brandmeyer wrote: > Hi, > > On Feb 25, 4:46 pm, Vitaly Peressada wrote: > > > Installed vimclojure-2.1.2

Re: find source file for namespace?

2009-12-28 Thread Emeka
Hello nchubrich, I thinking that you can do this with easy using namespace which would lead you to resolve the file name and then figure out the path. Emeka On Mon, Dec 28, 2009 at 2:43 AM, nchubrich wrote: > Does anyone know how to dynamically access the pathname for a > particular pi

My belated Xmas gift

2009-12-23 Thread Emeka
you like it please use it. Merry Christmas!! (defn apply-juxt [d & body] (map #(apply % body) d)) (apply-juxt [* - +] 8 7) Regards, Emeka -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: Funding Clojure 2010

2009-12-14 Thread Emeka
I have not done something like this before but your Clojure changed my life , so I owe you something. However, coming from a far away continent(with low income per head) I may not be able to match 100/developer/year price. I hope you won't mind my widow's might when it comes. Emeka O

Re: Transforming a Seq to a Map

2009-11-22 Thread Emeka
(apply has-map (apply concat (map (fn [b] [(apply hash-map (apply concat (butlast b))) (val (last b))]) (list {9 5 9 9 7 8} {3 4 5 6 7 0} {{3 4, 5 6} 0, {8 9, 9 5} 8} I just added some noise! On Wed, Nov 18, 2009 at 2:05 PM, Sean Devlin wrote: > user=>(def your-data [{:a 1 :b 2 :c 3} {:a 4

Re: positions

2009-11-22 Thread Emeka
John, You should have added that you code came from Programming Clojure. Regards, Emeka On Thu, Nov 19, 2009 at 8:05 PM, John Harrop wrote: > On Thu, Nov 19, 2009 at 1:23 PM, Sean Devlin wrote: > >> Try clojure.contrib.seq-utils :) >> >> As a learning exercise, I'

Re: positions

2009-11-22 Thread Emeka
Nick, Remember to re-visit indexed and index-filter functions of programming Clojure. Regard, Emeka On Thu, Nov 19, 2009 at 7:13 PM, nchubrich wrote: > Thanks Sean, I'll do the exercise. I don't know how I missed it in > seq-utils. > After months of programming Clojure,

Re: equivalent to Haskell's group function

2009-11-09 Thread Emeka
e that you should spend some time with clojure, learning its data structures, function call and others in order to full appreciate how things play out . Regards, Emeka On Mon, Nov 9, 2009 at 7:08 PM, Wilson MacGyver wrote: > > Thanks guys for the various solutions. I set out trying to try a

Re: equivalent to Haskell's group function

2009-11-09 Thread Emeka
Meikel, What is the gain of using lazy-seq here? Why can't we go without laziness? (defn group [s] (when-let [s (seq s)] (let [f(first s) [fs & r] (split-with #(= % f) s)] (cons fs (group r) Regards, Emeka On Mon, Nov 9, 2009 at 4:44

Re: equivalent to Haskell's group function

2009-11-09 Thread Emeka
(let [f(first s) [fs r] (split-with #(= % f) s)] (cons fs (group r)) & Regards, Emeka > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

Re: can I make this faster (and leaner) ?

2009-11-01 Thread Emeka
Hello Sir, (def *valid-chars* (vec "abcdefghijklmnopqrstuvwxuz0123456789" )) This looks cleaner. Regards, Emeka On Sat, Oct 31, 2009 at 1:15 PM, John Harrop wrote: > On Fri, Oct 30, 2009 at 7:47 PM, DavidF wrote: > >> >> Try this: >> >> (def *vali

Re: Periodic tasks

2009-11-01 Thread Emeka
John, Is like I am missing something? This thread mentioned making periodic tasks, there was a java example to it. However, what you posted I am yet to figure out how to make a periodic tasks possible. Regards, Emeka On Sat, Oct 31, 2009 at 6:27 PM, John Harrop wrote: > On Sat, Oct 31, 2

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread Emeka
John, That is why I asked that question because I figured out that the problem has nothing to do with Vector but with #() read macro. I wanted to correct the impression that the problem was from Vector. Regards, Emeka --~--~-~--~~~---~--~~ You received this

Re: reading a range from a large file

2009-10-27 Thread Emeka
> > (with-open [#^Reader r (reader "FILE")] > (with-open [lr (java.io.LineNumberReader. r)] > (.setLineNumber lr 5) > ;; Your code here. > ))) > > Can't the below work? (with-open [#^Reader r (reader "FILE")][lr (java.io

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread Emeka
John, On Tue, Oct 27, 2009 at 6:10 PM, John Harrop wrote: > On Tue, Oct 27, 2009 at 1:39 PM, Emeka wrote: > >> On Sun, Oct 25, 2009 at 4:57 PM, MarkSwanson >> wrote: >> >>> >>> Hello, >>> >>> Someone recently posed the question: (wh

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread Emeka
On Sun, Oct 25, 2009 at 4:57 PM, MarkSwanson wrote: > > Hello, > > Someone recently posed the question: (why doesn't this work) > (into {} (map #([% (* % %)]) [1 2 3 4])) > > Is this actually a Vector problem or the limitation of the anonymous function? Regards, Em

Re: server-socket on exit event

2009-10-16 Thread Emeka
Ngo, I checked out your github , it is great. I have not used netty, it looks clean. However, what is the meaning of this, (def reshedule nil)? Regards, Emeka On Thu, Oct 15, 2009 at 3:02 AM, ngocdaothanh wrote: > > I created this (Netty is used instead of server-socket): > http://g

Re: server-socket on exit event

2009-10-14 Thread Emeka
Ngo, Honestly speaking I don't know. How far have you gone? Regards, Emeka On Sat, Oct 3, 2009 at 3:21 PM, ngocdaothanh wrote: > > Emeka, good catch. It's just my mistake. > > Another thing is I think there may be exception raised when on-msg > sends message to a clo

Re: ANN: scriptjure, a library for generating javascript

2009-10-08 Thread Emeka
Allen, Great job! Did you try (defmulti emit class) ? Regards, Emeka On Thu, Oct 8, 2009 at 7:18 AM, Meikel Brandmeyer wrote: > > Hi, > > On Oct 8, 7:50 am, Jarkko Oranen wrote: > > > I took a quick look, and that looks really neat. One thing though: > > Instead

Re: server-socket on exit event

2009-10-03 Thread Emeka
create-server-aux function. Regards, Emeka On Fri, Oct 2, 2009 at 3:13 AM, ngocdaothanh wrote: > > > I'm not sure TCP/IP has a native facility for that. > > I'm afraid John's statement is correct: > > http://www.velocityreviews.com/forums/t125620-client-soc

Re: Re: "Schema" for data structures

2009-10-01 Thread Emeka
(plus (l r) (+ (interp l) (interp r))) > (sub (l r) (- (interp l) (interp r) > It also looks like clojure condp. Emeka > > Contracts work only between module boundaries though. > > Cheers, > Artyom Shalkhakov. > > > > --~--~-~--~~

Re: Getting REPL transcript

2009-09-26 Thread Emeka
Sorry, here is the link. http://gist.github.com/193550 On Sat, Sep 26, 2009 at 2:03 PM, Emeka wrote: > Thank you all. Chris Grand has figured it out for me. However, I invite you > to look at it and comment. > > Regards, > Emeka > > > On Sat, Sep 26, 2009 at

Re: Getting REPL transcript

2009-09-26 Thread Emeka
Thank you all. Chris Grand has figured it out for me. However, I invite you to look at it and comment. Regards, Emeka On Sat, Sep 26, 2009 at 12:15 PM, Daniel Werner < daniel.d.wer...@googlemail.com> wrote: > > On Sep 23, 6:20 pm, Emeka wrote: > > Hello All, > > &g

Re: Getting REPL transcript

2009-09-25 Thread Emeka
Thanks I will look into that. But more information on 'pipe' please? So we have two Newman{Rich, John}, so I will say thanks to Newmen. Regards, Emeka On Fri, Sep 25, 2009 at 10:43 AM, John Newman wrote: > I'm still learning, myself, so I could be wrong, but you migh

Re: Getting REPL transcript

2009-09-24 Thread Emeka
Rich, Hmm, it is what I'm looking for.Just the way I planned it to be. The next issue now is on how to craft it into clojure. Regards, Emeka On Thu, Sep 24, 2009 at 7:59 AM, Richard Newman wrote: > > > Actually, that suggests a more general point: that we can have > >

Re: Getting REPL transcript

2009-09-24 Thread Emeka
with log file(for now I don't have that idea) , I would want to use it later for historical studies and may be other things. Could you give me a lead? Regards, Emeka > > I'd recommend against using a standalone REPL on DOS, or on terminal-mode > Unix which is only slightly frien

Re: Getting REPL transcript

2009-09-23 Thread Emeka
Mic, Or use "script" . I don't think I understood clearly what you are referring to. Regards, Emeka On Wed, Sep 23, 2009 at 4:40 PM, Michael Wood wrote: > > 2009/9/23 Phil Hagelberg : > > > > Emeka writes: > > > >> I would like to have a tran

Getting REPL transcript

2009-09-23 Thread Emeka
Hello All, I would like to have a transcript of Repl. Could someone help me out here? Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Managing Clojure project files

2009-09-22 Thread Emeka
Hello All, Please make out time and check the below link. And if you consider the code there useful, I encourage you to use it. I would appreciate your comments and reviews. http://emekamicro.blogspot.com/2009/09/managing-clojure-project-files.html Regards, Emeka

Re: Is knowing Java a prerequisite for using Clojure?

2009-09-18 Thread Emeka
Factor mailinglist but I have no clue what they are. Regards, Emeka On Fri, Sep 18, 2009 at 2:01 AM, Hugh Aguilar wrote: > > > On Sep 17, 9:33 am, Brian wrote: > > As a Java programmer coming to Clojure I would be very interested in the > > intended application. How you

Re: Windows user

2009-09-03 Thread Emeka
I will wait for the windows installer . Regards, Emeka On Thu, Sep 3, 2009 at 8:07 PM, Meikel Brandmeyer wrote: > Hello Emeka, > > Am 03.09.2009 um 18:01 schrieb Emeka: > > I am still waiting for the day I could start off using vimclojure on my >> PC. Is vimclojure rea

Windows user

2009-09-03 Thread Emeka
Hello Meikel, I am still waiting for the day I could start off using vimclojure on my PC. Is vimclojure ready for my environment? And is it easy to install? Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Searching the group archives

2009-09-02 Thread Emeka
Another way of searching . Instead of "Search this group" use "Search Groups" , and inform google of the group you intend search and your message. Here is an example, re-find group:clojure . Regards, Emeka On Sun, Aug 30, 2009 at 12:19 PM, Emeka wrote: > Thanks,

Re: Java security code in Clojure

2009-08-31 Thread Emeka
Sorry, I was too quick. I misunderstood your code. Regards, Emeka On Mon, Aug 31, 2009 at 6:10 PM, Emeka wrote: > > Hello Sam, > > From the Java version you used created array ,byte[] encodedKey = new > byte[(int) keyFile.length()];, but in clojure version you did (into-array &g

Re: Java security code in Clojure

2009-08-31 Thread Emeka
all? Did you try this; (make-array Byte/TYPE (int (. (java.io.File. "public.der") length))) Regards, Emeka On Mon, Aug 31, 2009 at 11:19 AM, Sam Hughes wrote: > > Hey, > > I'm trying to write a Clojure security library. My first step is > porting some working Jav

Re: Help

2009-08-30 Thread Emeka
Angel, (note the space between & and v) --> no clojure here... it's English... :-) > > If you write &v (without space) it's just another identifier &v. You are pretty right. However, for your case to hold that &v is another identifie

Help

2009-08-30 Thread Emeka
thing I am doing wrong here? To be honest, I am pretty tired. Happy Sunday! Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goog

Re: Searching the group archives

2009-08-30 Thread Emeka
Thanks, I was about asking for help. Regards, Emeka On Sat, Aug 29, 2009 at 6:54 PM, Rich Hickey wrote: > > While the "Search this group" interface seems increasingly anemic, and > time-limited in its results, you can get an effective search on the > group archives usi

Re: Java STM

2009-08-28 Thread Emeka
Peter, you will get there some day. On Fri, Aug 28, 2009 at 8:45 AM, peter veentjer wrote: > > > No. I don't want to use transactions for workflow. I don't want > > blocking transactions. I don't want read tracking. > > With multiverse it depends on the engine being used and the settings > on t

Re: clojure vs scala

2009-08-28 Thread Emeka
e, I just picked a new word 'Rogramming'? Regards, Emeka On Fri, Aug 28, 2009 at 1:30 AM, e wrote: > > > On Thu, Aug 27, 2009 at 9:57 AM, Emeka wrote: > >> e, >> >> What is inspiring in it? >> > > H from time to time,

Re: clojure vs scala

2009-08-27 Thread Emeka
e, What is inspiring in it? Regards, Emeka On Thu, Aug 27, 2009 at 1:44 PM, e wrote: > On Thu, Aug 27, 2009 at 8:43 AM, Stuart Halloway < > stuart.hallo...@gmail.com> wrote: > >> >> As the author of the book, you can bet I have an opinion on the >> quality o

Re: A little help needed in understnding anonymous functions

2009-08-26 Thread Emeka
(defn foo2 [n] (let [r (ref n)] #(dosync (alter r + %) @r))) Something went wrong, I am resending the code. Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

Re: A little help needed in understnding anonymous functions

2009-08-26 Thread Emeka
On Wed, Aug 26, 2009 at 6:40 PM, Sourav wrote: > > Hi, > > I'm new to clojure and came from a Lisp background. While learning I > clojure I came accross the two different ways of creating anonymous > functions ((fn ...) and #(...)). I tried to construct the accumulator > function in clojure using

clojure vs scala

2009-08-25 Thread Emeka
Hello All, This sounds great! http://codemonkeyism.com/clojure-scala-part-2/ Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Basic hadoop example in clojure.

2009-07-27 Thread Emeka
within the same folder as your 'ns or need near. Now I hope you have seen why you need that change. I invite comments from experts here if I have strayed. Regards, Emeka On Mon, Jul 27, 2009 at 9:47 AM, RD wrote: > Hi Stuart, > Thanks for the link > Relating to the hadoop code

openlg

2009-07-13 Thread Emeka
Hello All, ztellman, I would like to use git://github.com/ztellman/penumbra.git , however I won't mind knowing the owner, too. Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure"

Re: Mysterious ClassFormatError after simple code change.

2009-07-06 Thread Emeka
something stupid just entered into my thought. What happened when this situation occurs (cons sum ())? I hope that's not possible with your code. Regards, Emeka On Sun, Jul 5, 2009 at 6:01 AM, John Harrop wrote: > > I had this: > > (defn- subexpressions-of-sum** [[n p] terms] >

Re: *command-line-args*

2009-07-03 Thread Emeka
Steve, Could this be done such that % java -cp /sq/ext/clojure/clojure.jar clojure.main demo.clj foo bar baz the highlighted part won't the there? But would be ''attached'' behind the scene . Regards, Emeka On Thu, Jul 2, 2009 at 6:17 PM, Stephen C. Gilardi wrote:

Re: Article on Dispatch

2009-07-01 Thread Emeka
Thanks, more of it. Emeka On Mon, Jun 29, 2009 at 12:31 AM, Daniel Jomphe wrote: > > I think the following article I wrote may help properly understanding > dispatch. I submit here for your pleasure/review. > > First paragraph: > > "I believe multiple dispatch is know

Re: Binary Tree

2009-06-30 Thread Emeka
(defn depth [tree] (if (nil? tree) 0 (+ 1 (max (depth (left tree)) (depth (right tree) This looks close to what I need. Let me see if I can't get my head around it. Regards, Emeka On Tue, Jun 30, 2009 at 8:28 AM, Daniel Lyons wrote: > > On Jun 30, 2009, at 1:05 AM,

Binary Tree

2009-06-30 Thread Emeka
has to be either increased by one or decreased by one(and the new cell is empty). Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Trying to use lazy-seq for the first time, failing.

2009-06-29 Thread Emeka
Thanks, however I have that already :) Regards, Emeka On Mon, Jun 29, 2009 at 2:36 PM, _hrrld wrote: > > On Jun 29, 1:15 am, Emeka wrote: > > Harold, > > > > Do you have any material on Factor? I won't going through it. > > Emeka, > > Many of these li

Re: Trying to use lazy-seq for the first time, failing.

2009-06-29 Thread Emeka
Harold, Do you have any material on Factor? I won't going through it. Regards, Emeka On Sat, Jun 27, 2009 at 12:23 AM, _hrrld wrote: > > Hi, > > I'm trying to use lazy-seq to implement a cool piece of functionality > I saw in the Factor programming language. Here i

Re: A website written using Clojure.

2009-06-26 Thread Emeka
Stuart Sierra, I want to use StringTemplate, could you give me a lead? Emeka On Thu, Jun 25, 2009 at 9:31 PM, Stuart Sierra wrote: > > On Jun 25, 3:59 pm, Berlin Brown wrote: > > But does anyone have a problem with Lisp/S-Expressions to HTML/XHtml, > > especially for t

Re: A website written using Clojure.

2009-06-25 Thread Emeka
CuppoJava, I was referring to the map data structure {'html "html"..} and not the other map. Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: A website written using Clojure.

2009-06-25 Thread Emeka
CuppoJava, Did you try prxml? May be it can be of help. Regards, Emeka --~--~-~--~~~---~--~~ 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

Re: A website written using Clojure.

2009-06-25 Thread Emeka
* ~tag nil block#))) (eval `(defblockfn ~(symbol (str name "_with")) [attributes# block#] (html_tag* ~tag attributes# block# See if you can simplify the above code. Regards, Emeka On Thu, Jun 25, 2009 at 5:46 PM, CuppoJava wrote: > > Hey guys, > I was a litt

Re: defn memory question

2009-06-25 Thread Emeka
>From Steve's post Symbol objects are subject to garbage collection, but the "namespace" and "name" strings that identify them are not. Those strings are "interned" via the "intern" method on java.lang.String. Once a String is interned, there exists a single canonical String object that represents

Re: Foreclojure

2009-06-25 Thread Emeka
accounting software in Clojure? Which area of accounting will it cover? Emeka On Thu, Jun 25, 2009 at 3:41 AM, fft1976 wrote: > > I know some of you are searching for names for your projects. I just > wanted to say that "Foreclojure" is taken! This will be an open-so

Re: Small question: Best way to create a map with vector vals

2009-06-24 Thread Emeka
Have you tried zipmap? Emeka On Tue, Jun 23, 2009 at 10:09 PM, samppi wrote: > > The idiom (into {} coll-of-entries) is often used to create a map from > a collection of entries or two-sized vectors. But what if I want to do > something like this: > > (mystery-fn [[:a 1] [

Re: macroexpand question

2009-06-24 Thread Emeka
kedu arasof I don't know why you should go for macro here, an ordinary function can do it. Emeka On Tue, Jun 23, 2009 at 12:24 AM, arasoft wrote: > > I just wrote my first practice macro, first without and then with > syntax quoting: > > (defmacro take-until1 [functio

Re: Shouldn't c.l.Namespace implement c.l.Named?

2009-06-22 Thread Emeka
kedu pmf What about this (str *ns*)? I remember reading it from chouser's post. Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: javafx

2009-06-20 Thread Emeka
Kedu CuppoJava, Join this class ♫ javafxprogramm...@googlegroups.com And learn Fx. I was there for a few days before I drifted. Regards, Emeka On Sat, Jun 20, 2009 at 4:51 PM, CuppoJava wrote: > > I'm still not very clear about what JavaFX actually is and what's its > relat

Re: Another Clojure Box

2009-06-17 Thread Emeka
Darmac, I use Scite Just edited it in order to run Clojure Repl(help help from this group). That's not great, it is ugly. I would like to use yours if it is as simple as Scite editor and pretty easy to install. Regards, Emeka --~--~-~--~~~---~--~

Re: Clojure equivalent to Ruby's ERB

2009-06-14 Thread Emeka
markgunnels, Have you used clojure and StringTemplate to do something? If so, I would like to tap your knowledge there. Regards, Emeka On Sun, Jun 14, 2009 at 1:36 PM, markgunnels wrote: > > I just wanted to report back that StringTemplate proved to be the > perfect solution. &

Re: Performance Penalty Converting from Java Code

2009-06-14 Thread Emeka
- pos 1) (/ x 26) (. s toString))) (doseq [i (range (Math/pow 26 4))] (base26 i)) Try the above. Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Re: breaking early from a "tight loop"

2009-06-13 Thread Emeka
return nil and not true. To get true from your code I guess the (seq xs) should be changed to (not (seq xs)). Or am I missing something? Emeka On Sat, Jun 13, 2009 at 6:02 PM, Wrexsoul wrote: > > On Jun 12, 9:44 pm, James Reeves wrote: > > (defn count-more-than? [n xs] > >

Re: Macro Design - by example

2009-06-10 Thread Emeka
Meikel, Could I be allowed to join your online class:) Regards, Emeka --~--~-~--~~~---~--~~ 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

Re: Help with filechooser

2009-06-09 Thread Emeka
Sorry for the noise, I was too quick. On Tue, Jun 9, 2009 at 3:46 PM, Emeka wrote: > Hello All, > > (add-item-action ost-item (do > (.showOpenDialog file-chooser frame) > (let [file (.getSelectedFile file-chooser)] > (println "file" fil

Help with filechooser

2009-06-09 Thread Emeka
Hello All, (add-item-action ost-item (do (.showOpenDialog file-chooser frame) (let [file (.getSelectedFile file-chooser)] (println "file" file When I tried the above on windows box it prints file #. But what I want is "file C:\clojure\roobot.txt&qu

Re: filechooser

2009-06-09 Thread Emeka
- line 35 looks wrong. What does Dispatch/put return Thanks so pointing that out. I have to out windows guys then. Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To po

filechooser

2009-06-08 Thread Emeka
Hello Meikel, I have not been able to resolve this issue. As I mentioned in another thread, I want to use filechooser to select the excel file. My code is in this link http://friendpaste.com/wmX89ywgPhdN5hvVBEAbg Regards, Emeka --~--~-~--~~~---~--~~ You received

Re: VimClojure v2.1.1 is released

2009-06-08 Thread Emeka
Thanks. I will wait. Regards, Emeka On Mon, Jun 8, 2009 at 5:05 PM, Meikel Brandmeyer wrote: > Hi, > > Am 08.06.2009 um 09:15 schrieb Emeka: > > Sure, I sent a private mail because I didn't want to increase noise in is >> group. I used the mail address you left on vi

Re: VimClojure v2.1.1 is released

2009-06-08 Thread Emeka
Sure, I sent a private mail because I didn't want to increase noise in is group. I used the mail address you left on vimclojure site to reach you. I just learned about user.home. So I can simplify also the .vim installation of the plugin. Beautiful, when is it coming out?

Re: VimClojure v2.1.1 is released

2009-06-07 Thread Emeka
g vim would be a great experience :). But I am not yet able to get vimclojure kicking. That's why I have been appealing for help since. And it took Meikel three weeks to make out time to talk to me. That shows that vim learning curve is indeed steep! Rega

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
This is probably the global _vimrc installed by Vim I think as much, vim needs this file to run. If you installed Vim as an administrator I always work as administrator. I will create that file and now what and what am I going to add to it. Regards, Emeka O On Sat, Jun 6, 2009 at 4:03 PM

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
Then it is pretty obvious that I have erred again. C:\Program files\Vim\_vimrc That's where I found that file. Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
C:\Users\rmicro\.viminfo That's what I found. Regards, Emeka --~--~-~--~~~---~--~~ 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

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
Do you edit the correct _vimrc? I found only one file bearing that name. Are you referring to other files? Regards, Emeka > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: VimClojure v2.1.1 is released

2009-06-06 Thread Emeka
, however the message(I added) is not saved to the file either. I was able to get the NGServer up. Please assist me in it figuring out why I can't edit _vimrc. Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: What is wrong with my code

2009-06-01 Thread Emeka
Dan and Tim, This gives you the link to the whole code. http://friendpaste.com/C3xbF1r3F3Mehnn8CCBUm. It is still not cleaned..pretty ugly, I am ashamed to show it off at all :) Regards, Emeka On Mon, Jun 1, 2009 at 7:50 AM, Timothy Pratley wrote: > > I agree, chang is most like

What is wrong with my code

2009-05-31 Thread Emeka
y is it so? The function chang works on it own... Regards, Emeka --~--~-~--~~~---~--~~ 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

  1   2   >