Re: clojure.lang.Script

2008-12-21 Thread Emeka
ng.Script C:\janus\myapp.clj exit 0 No other thing comes out. So how do I cause it to print the result of the code I have written. It works in SciTe, however, it doesn't print result. Have you used clojure.Lang.Script with SciTe before? Emeka. --~--~-~--~~~---~-

Re: Newbie: Creating a character from a Unicode sequence

2008-12-22 Thread Emeka
What is '16' doing there? 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 To unsubscribe from this group, se

Re: Exercise: how to print multiplication table?

2008-12-23 Thread Emeka
-chapter-7 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 To unsubscribe from this group, send email to clojure+unsubscr

Re: Help with Slime

2008-12-25 Thread Emeka
Kugo, Please send me your code and instructions of what you did to get where you are? I am even far behind, however, I use windows. Emeka On Wed, Dec 24, 2008 at 5:47 PM, kogu wrote: > > Hi, > > This is not clojure related but Slime/Emacs related. > > I am using Slime/Emacs/

Re: Proxying in clojure

2008-12-25 Thread Emeka
Snake frame would appear with square ball that moves and another that does not move.Below is what I got each time I try to play with arrow keys. I count on you as always to come to my help. user=> (require 'snake) nil user=> (snake/run-snake)nil user=> Exception in thread "AWT-EventQueue-0" ja

Re: Proxying in clojure

2008-12-26 Thread Emeka
Chooser, Please send me yours then. 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 To unsubscribe from this group, sen

Re: Help with Slime

2008-12-26 Thread Emeka
> > Kogu > > Below is the relevant part of my init.el. Which file is init.el? Where can I find it? I use windows vista. Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: Accessing "this" in gen-class constructor

2008-12-27 Thread Emeka
Can I see you code? 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 To unsubscribe from this group, send email t

Re: Vector and List

2008-12-27 Thread Emeka
Merci! Janus --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegro

Re: 12 Days of Christmas in idiomatic(?) clojure

2008-12-27 Thread Emeka
>(defn sum-up-to [n] >"returns the sum of the positive integers from 1 to n" >(apply + 0 > (map #(+ 1 %) (range n Is there any reason for that zero ('0')? I guess your function could work with it. Emeka --~--~-~--~~~--

Re: making code readable

2008-12-29 Thread Emeka
that for such people simplifying(through commenting and spreading codes by using methods) Clojure may kill their brain "cells". But for me and other mere mortals we need such help and as I see Clojure it may become another phenomenon in the rank of Ru

Re: Exercise: words frequency ranking

2008-12-29 Thread Emeka
me in making a great leap in the learning of of Clojure. Again, #(%)[3 4] works because of closure, so when you apply reduce function of #(.) does it suspend #() closure capability. Emeka --~--~-~--~~~---~--~~ You received this message because you a

Re: Exercise: words frequency ranking

2009-01-03 Thread Emeka
Venlig hilsen and Timothy Prately Thanks so much. 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 To unsubscribe from

Re: Exercise: words frequency ranking

2009-01-03 Thread Emeka
Thanks. I have learnt some new. 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 To unsubscribe from this group, sen

Re: recur with many parameters

2009-01-04 Thread Emeka
Christian I have not been able to get my head around destructuring binding. Please explain it to me with examples Venlig hilsen Emeka On Sat, Jan 3, 2009 at 11:04 PM, Christian Vest Hansen wrote: > > Instead of throwing a1..aN around every time, you could use the result > vecto

Re: Could not find the main class clojure.lang.Repel. Program will exit.

2009-01-04 Thread Emeka
Chris, I run my Clojure on Vista and I have not experienced what you mentioned. I would like to know what you have done. Your installation details. And did you download your Clojure.jar or did you use ant to build yours? Emeka On Sun, Jan 4, 2009 at 12:57 AM, chris wrote: > > I was won

Re: quote on side effects

2009-01-06 Thread Emeka
Check Clojure manual, I bet 2c. 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 To unsubscribe from this group, sen

Re: yet another Clojure snake

2009-01-06 Thread Emeka
Hello, Why not changing defns create-apple and create-snake to defs create-apple and snake-create.Your defns have no args that why I feel strongly that they should def, well I may be wrong. Emeka --~--~-~--~~~---~--~~ You received this message because you are

Re: Support for new bee

2009-01-07 Thread Emeka
Chris and Chris Thanks On Wed, Jan 7, 2009 at 9:09 AM, Christophe Grand wrote: > > janus a écrit : > > It can't figure out why this is not working or was I sleeping while > > trying it out. > > > > (apply #(println %) [2 3]) > > > This line is equivalent to (#(println %) 2 3) which errors since

Re: Some code review for clj-record?

2009-01-08 Thread Emeka
user=> (load-file "clj_record/core.clj") I got clj_record/util not in system path. Why is it so? Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: adding line number while reading a file

2009-01-10 Thread Emeka
(map vector (iterate inc 0) "foo") 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 To unsubscribe from this

Re: Inheritance & multiple inheritance using structs

2009-01-19 Thread Emeka
Great job! 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 To unsubscribe from this group, send email to clojur

Re: 2 Cents Calculator

2009-01-20 Thread Emeka
Tim, Thanks so much. Emeka On Tue, Jan 20, 2009 at 5:16 AM, Timothy Pratley wrote: > > Hi Emeka, > > On Jan 19, 11:17 pm, janus wrote: > > that's why I' ve decided to 'outsource' :).I invite your comments and > > any code that might make

Re: Agent as a processing queue

2009-01-22 Thread Emeka
Tim, Could you explain atoms the way you explained agents?\ 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 To unsubs

Re: time lies, even with doall

2009-01-25 Thread Emeka
creasing 'noise', that's my 2 cents. Doall , do, dorun are used in calling multiple functions(I hope am like :)), like (do (doo noot) (move "niger delta")) . Emeka --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Learning Clojure

2009-01-28 Thread Emeka
Thanks Steve and Tim. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@g

Re: Creating executable Jars?

2009-01-29 Thread Emeka
luciofulci I'm interested in your instruction, however, are c:\user\apps\classes and c:\user\classes the same thing? Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: how to reason about two dimentional array(vector) like...

2009-02-04 Thread Emeka
Where did 'ref' go in your own implementation? 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 To unsubsc

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-06 Thread Emeka
Tim You could even embed a REPL into your application with a socket back-door, connect to it and really have fun with your users. I am interested, could you make a rough patch for me to draw some inspiration from Emeka --~--~-~--~~~---~--~~ You received this

Re: More Swing Examples

2009-02-13 Thread Emeka
http://clojure.googlegroups.com/web/2c-calculator.clj?gda=GfxNgEMAAAC2LrkjeC7f10uHiY7GOiyxomoTIbx5E_ZvCUIqi7LhkTsFONunm7BW3wPdbl53QhAytiJ-HdGYYcPi_09pl8N7FWLveOaWjzbYnpnkpmxcWg http://www.plt1.com/1070/even-smaller-snake/ --~--~-~--~~~---~--~~ You received this mes

Re: why fn key doesn't do what I want?

2009-02-15 Thread Emeka
> > > Key only accepts a map entry and not a Map object. > Could you explain this further. > > > >> thanks in advance, >> -sun >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: cljc?

2009-02-16 Thread Emeka
> > Meikel, Could explain your code such that somebody like me could understand it and even play with it? Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: why fn key doesn't do what I want?

2009-02-16 Thread Emeka
Thanks, Meikel --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to clojure+unsubscr...@googlegr

Re: Creating executable Jars?

2009-02-17 Thread Emeka
Kev, I didn't make it, however, I guess the issue was on namespace and not on the instruction given. I will try again and again until I get my head around namespace, or could you help me to jump start? Emeka --~--~-~--~~~---~--~~ You received this me

Re: How do I do this in clojure?

2009-02-17 Thread Emeka
Jesse, Could I see your own version. 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 To unsubscribe from thi

Re: How do I do this in clojure?

2009-02-17 Thread Emeka
>Haha, I was afraid someone would say this. >Here is my embarrassingly bad (but working) version: I won't say that, you ported Python to Clojure while maintaining Python spirit. That's great! Emeka --~--~-~--~~~---~--~~ You received this message

Re: Creating executable Jars?

2009-02-19 Thread Emeka
Kev Are you using ms windows? 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 To unsubscribe from this group, sen

Re: where is contrib?

2009-02-21 Thread Emeka
http://telmanyusupov.wordpress.com/2009/02/16/basic-clojure-setup-part-1/ --~--~-~--~~~---~--~~ 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 To unsubscribe f

Re: Clojure, Android and Emacs on Ubuntu tutorials

2009-03-30 Thread Emeka
What about expanding to other boxes? I would like to learn Android, but I don't use Emacs/Ubuntu. Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: clojure + android

2009-04-07 Thread Emeka
Nick, I need the steps you took in getting Android working in Windows. Emeka On Tue, Apr 7, 2009 at 9:29 AM, Nick Levine wrote: > > On Apr 7, 8:36 am, "Remco van 't Veer" wrote: > >[...] > > What does logcat report? (use "adb logcat" on the

Re: Simple sequence question: inserting something after blocks of fulfilling elements

2009-04-23 Thread Emeka
(reduce #(concat %1 (if (> %2 6) [ :foo %2] [%2])) [] '(3 4 5 8 4 2)) Note that I am not a programmer and do not know much about writing code, however the above snippet in my view can achieve the result you desired. I invite comments on the above. Regards, Emeka On Thu, Apr 23, 2009 at

Re: Simple sequence question: inserting something after blocks of fulfilling elements

2009-04-23 Thread Emeka
fulfill it: (mystery-function (partial > 6) a) ; -> (3 :foo 9 1 5 :foo 102 -322 :foo ...) I didn't know that :foo should also be the last element of the list. Did he actually asked for this? Thanks for pointing out the subtle difference between the two versions of list. Regards, Emeka On

Using Map

2009-05-04 Thread Emeka
Hello All, I want to arrange objects in rows and also being able to manipulate them. By manipulation I meant, I could move one object from one row and use it to replace another object in another. Should I use Map or something else? I need your opinions here Regards, Emeka

Waterfront

2009-05-04 Thread Emeka
It appears it did not understand that I commented out rowi8. Could somebody try this out in his/her system in order for me to confirm this issue? Regards, Emeka --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure

Re: Using Map

2009-05-08 Thread Emeka
Luke I was referring to map the data structure. I later decided to use struct which is a map. I intend to manipulate elements of each row. Emeka On Fri, May 8, 2009 at 6:17 PM, Luke VanderHart wrote: > > Do you mean map the function or map the data structure? > > If the most nat

Re: Using Map

2009-05-09 Thread Emeka
gonally adjacent to one of the opponent's pieces to an empty square immediately and directly on the opposite side of the opponent's square, thus "jumping directly over" the square containing the opponent's piece. An uncrowned piece can only jump diagonally forwards, but a king c

Re: with-open macro

2009-05-12 Thread Emeka
first element of the vector.I guess that's logical. Emeka On Tue, May 12, 2009 at 4:30 PM, Andrew Wagner wrote: > I just saw this on the JavaWorld article (great article by the way: > http://www.javaworld.com/javaworld/jw-05-2009/jw-05-clojure.html > ) <http://www.javaworld.com/java

Re: with-open macro

2009-05-12 Thread Emeka
The reason is because Clojure obeys arity to the letter and spirit. So if you want to tweak the code to do that, just build you only macro to accept that arity. Emeka On Tue, May 12, 2009 at 4:56 PM, Andrew Wagner wrote: > Right, my question is why I can't do this:(with-open [rdr (rea

Re: with-open macro

2009-05-12 Thread Emeka
Why? On Tue, May 12, 2009 at 5:37 PM, Andrew Wagner wrote: > Wow. Ok, yeah, I'm glad he didn't put that version in the article :) > > > On Tue, May 12, 2009 at 1:17 PM, Stephen C. Gilardi wrote: > >> >> On May 12, 2009, at 12:30 PM, Andrew Wagner wrote: >> >>> It seems like this idiom would be ea

Re: with-open macro

2009-05-12 Thread Emeka
Andrew, that code caused me to have headache some minutes ago :). On Tue, May 12, 2009 at 6:43 PM, Emeka wrote: > Why? > > > On Tue, May 12, 2009 at 5:37 PM, Andrew Wagner wrote: > >> Wow. Ok, yeah, I'm glad he didn't put that version in the article :) >>

Re: new Clojure presentation

2009-05-15 Thread Emeka
A born Teacher! 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 To unsubscribe from this group, send email to clojur

Re: Clojure and Jacob

2009-05-17 Thread Emeka
Meikel > (def c (.. Dispatch (call ws "Cells" 1 1) (toDispatch))) > Here you retrieve the actual cell. If I have file "hello.xls" already and I have say 'Emeka at Cell 1 1, using the above line could I get 'Emeka . Regards, Emeka On Sun, May 17, 2009

Re: Clojure and Jacob

2009-05-18 Thread Emeka
file chooser to assign files, however I have not being able to achieve this. It appears that class Dispatch needs to have the address of the file when it is being created and it does not accept empty string like " " as its initial value. Regards, Emeka --~--~-~--~~---

Re: Saving the Clojure.org webiste

2009-05-20 Thread Emeka
What about the zip version of save_clojure.org.tar.bz2? 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 To unsubscribe

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

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

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: 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
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
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
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-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-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-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

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: 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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-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: 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: 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

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: 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,

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: *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: 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] >

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: 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

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: 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

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: 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: 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: 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

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

  1   2   >