I have following script to show the progress status in Console. But I
am having an issue where print only prints final string (after 100
times loop finished) not those in between thread sleeps but println
prints out all in between. I am pretty new to Clojure ( Lisp for the
matter) and have no idea
Thank you. Here is my final progress bar code for anyone interested:
(defn progress-string
[i]
(str-join "" (seq (for [x (range 50)] (if (<= (/ i 2) x) " "
"=")
(defn show-progress-string
[t]
(dotimes [percent 100 ]
(do
(Thread/sleep t)
(print "\r|" (progress-string (in
I am just thinking if anyone can list up open source projects so one
can pick and work on?
--
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 - p
Try escaping it:
(println "\"foo\"")
On Jan 8, 4:34 pm, Raoul Duke wrote:
> hi,
>
> i'm using (read) and it seems to get rid of double quotes e.g.
>
> (println "foo")
>
> is read as
>
> (println foo)
>
> as far as i can tell so far. how do i get the quotes to come through?
> or don't i
Hi,
I am a web developer and would like to write a small Desktop UI
application in Clojure for the popular Simplenote app.
http://simplenoteapp.com/
I was wondering what UI framework I should use. Anyone out there care
to suggest one that works best with Clojure?
--
You received this message beca
s the link:
http://bitbucket.org/kasim/clojurew/
Here are what you need to get started:
1. Download ClojureW.zip and Unzip to a folder
2. Set CLOJURE_HOME = path/to/unzipped/folder
3. cd path/to/unzipped/folder/bin and run clj or clj cljfile.clj
That is it. Enjoy!
--
You received this message becau
org/kasim/clojurew/get/tip.zip
>
> Kasim - thanks for the quick start. Worked fine. Maybe add a readme?
>
> M.
>
> On Apr 17, 5:35 am, Zmitro Lapcjonak wrote:
>
>
>
>
>
> > On Apr 15, 1:51 am, Kasim wrote:
>
> > > Here are what you need to get
Thanks Zmitro for pointing this out. Here is the updated information:
Here are what you need to get started :
1. Download from http://bitbucket.org/kasim/clojurew/get/tip.zip
2. Set CLOJURE_HOME = path/to/unzipped/folder
Note: For Mac and Linux, put these line in your .profile file
Hi Jason,
I created a project called ClojureW (http://bitbucket.org/kasim/
clojurew/src/ )that I believe exactly provides what you are looking
for. It is just a simple launch script. You can run it via command
line without any set up. If you have Clojure installed already, you
can just set
Hi folks,
I am just asking you guy's input to following:
(defn- k-filter [el coll]
(filter #(not (= el %)) coll))
(defn combinations [n coll]
(if (= n 0)
nil
(for [el coll nlis (combinations (- n 1) (k-filter el coll))]
[el nlis])))
It is not working now. Here is an example I
Thanks, how could I miss checking the contrib library! I was actually
trying to implement the combination logic that I did in Scala a while
back. Here is the scala code:
object Combination {
def combine[T](n:Int,list:List[T]):List[List[T]]=
n match {
case 0 => List(List())
Hi Jake,
I am sorry this might not be what you want, but you can try ClojureW -
an easy way to get started with clojure on all platforms. I created it
mainly for new comers to ease their pain and frustration with quickly
getting started with clojure. Here is the link:
http://bitbucket.org/kasim
Hi,
I actually created ClojureW for exact reason. No need to know jar files,
lein, bash, maven.. nothing. It does not matter if you use Window, Linux,
Mac, or Cygwin. Here is how easy it is:
1. download this file: https://bitbucket.org/kasim/clojurew/get/tip.zip
2. Unzip it to wherever you want
Hi,
I am the guy who did ClojureW. I just updated the instruction to get a REPL
with Jline. Thank you for reporting. I am also working on a "Just Works"
emacs setup for all platforms and would be happy to hear your opinion. I
really want to make it as simple as ClojureW.
Have f
Thanks for the comment, Larry. I have used Aquamacs before. It is my plan to
support it as well.
-Kasim
--
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 n
Hi Hackers,
I am trying to import and use following Enum class from Clojure:
http://build.xuggle.com/view/Stable/job/xuggler_jdk5_stable/javadoc/java/api/com/xuggle/xuggler/IContainer.Type.html
Basically, I need it so that I can feed it to a Java method that requires
it. I'd appreciate any idea o
Thanks Ken. I was able to use enums before as you have suggested but here is
the specific issue:
The name of the Enum Class is (Unfortunately) IContainer.Type that lives in
com.xuggle.xuggler package.
I believe it is the dot within the IContainer.Type class name that is giving
me headache.
I'd
Thanks. That did the trick.
--
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 unsubscribe from thi
Hi,
I was just wondering if I can use it for cleaning up not well formed html
files.
Thanks
--
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
19 matches
Mail list logo