clojure-stub

2009-09-07 Thread Nurullah Akkaya
located at http://github.com/nakkaya/clojure-stub/tree/master Just clone and run ant setup. -- Nurullah Akkaya nurul...@nakkaya.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Re: is there a cannonical way to create executable jar files?

2009-10-24 Thread Nurullah Akkaya
have a clojure project stub at, http://github.com/nakkaya/clojure-stub That will let you build a executable jar. running ant deps will download the clojure.jar and clojure-contrib.jar running ant setup will create the required sources to create a hello world application. running ant compile wil

Clojure meets Arduino

2009-12-20 Thread Nurullah Akkaya
hear your feedback on the code. Regards... -- Nurullah Akkaya http://nakkaya.com -- 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: Getting started with few Java knowledge

2009-12-28 Thread Nurullah Akkaya
check this out, http://github.com/nakkaya/clojure-stub it will create a bare bones Hello World! application, that you can build on top of, including an ant task for creating a jar file for your application. Regards, -- Nurullah Akkaya http://nakkaya.com On Mon, Dec 28, 2009 at 12:57 PM, Joop

Re: #clojure irc

2010-02-16 Thread Nurullah Akkaya
cribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > Freenodes new policy to fight spam. You need to register your nick. http://www.wikihow.com/Register-a-User-Name-on-F

Re: Got a Clojure library?

2010-02-25 Thread Nurullah Akkaya
> The name of your library clodiuno > Library home page URL http://nakkaya.com/clodiuno.markdown > Your name Nurullah Akkaya > Category (db, web, UI, parsing etc) Physical Computing > License Beerware Revision 42 > A one-paragraph description. Include 3rd party d

Re: apply-ing Java methods

2010-03-08 Thread Nurullah Akkaya
- please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > Using this, http://paste.lisp.org/display/67182 would allow you

Re: iterating over a nested vector

2010-04-08 Thread Nurullah Akkaya
If you just want max in each group you can use, (map #(apply max %) [[1 2 3] [2 5 1] [4 2 6]]) this will give you, (3 5 6) Regards, -- Nurullah Akkaya http://nakkaya.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: iterating over a nested vector

2010-04-08 Thread Nurullah Akkaya
%) (partition 3 (apply interleave [[1 2 3] [2 5 1] [4 2 6]]))) will give you, (4 5 6) Regards, -- Nurullah Akkaya http://nakkaya.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: How do I call Foo.class?

2010-04-11 Thread Nurullah Akkaya
l return a java.lang.Class then you can pass it to the function, (.getFeed service url (get-class "AccountFeed")) Hope it helps... -- Nurullah Akkaya http://nakkaya.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: How to separate code into different files

2010-04-11 Thread Nurullah Akkaya
:reload-all tubes.download)) src/ needs to be in your classpath. Regards, -- Nurullah Akkaya http://nakkaya.com -- 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 post

Re: newbie hiccup with hiccup

2010-04-13 Thread Nurullah Akkaya
Which version of hiccup? there was a bug discussed in compojure mailing list couple of days ago, where hiccup pre compilation fails when there are vars inside maps. http://groups.google.com/group/compojure/browse_thread/thread/d512a04a08aaa64f# 0.2.2 fixes this issue. -- Nurullah Akkaya http

Re: Reading the manifest file

2010-05-03 Thread Nurullah Akkaya
(let [url (ClassLoader/getSystemResource "META-INF/MANIFEST.MF") manifest (java.util.jar.Manifest. (.openStream url))] (println (.entrySet (.getMainAttributes manifest ClassLoader/getSystemResource does allow you to get rid of Class/forName... -- Nurullah Akkaya http://n

Re: dump html with clojure

2010-05-12 Thread Nurullah Akkaya
t and start processing in its own thread. Each URL is written to disk using a UUID. http://gist.github.com/399127 Cheers... -- Nurullah Akkaya http://nakkaya.com On Wed, May 12, 2010 at 9:29 PM, nickikt wrote: > Hallo all, > > A friend of mine ask if there is a smart way to get th

Re: dump html with clojure

2010-05-13 Thread Nurullah Akkaya
Yes but AFAIK you only get availableProcessors + 2 threads with pmap which is fine when the task is CPU bound but for downloading web pages most of the time will be lost at waiting for I/O so having more threads would speed things up. Regards... -- Nurullah Akkaya http://nakkaya.com On Thu

Re: Clojure Screen casts

2010-05-27 Thread Nurullah Akkaya
here, http://nakkaya.com/2009/11/12/mp4-conversion-for-mac-os-x-and-linux/ Regards... -- Nurullah Akkaya http://nakkaya.com On Thu, May 27, 2010 at 5:24 PM, Martin Roberts wrote: > I was hoping to listen/view the clojure screen casts on my daily > commute on my ipod.  I have got t

Re: Clojure On Java Friendly Microcontrollers, Beaglebone, etc

2013-09-01 Thread Nurullah Akkaya
.@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > em

Re: Porting Clojure to Native Platforms

2016-04-26 Thread Nurullah Akkaya
>- Is there a way to compile C++ code at runtime? This would be >essential for the REPL and for Macros. > > > Let me know if anyone has any thoughts on the matter. > > Thanks > -- Nurullah Akkaya http://nakkaya.com -- You received this message because you are subscrib

Re: Recur on a function which uses keyword arguments?

2010-06-06 Thread Nurullah Akkaya
(defn countdown [& {:keys [from] :or {from 10}}] (println from) (when (pos? from) (recur {:from (dec from)}))) Passing {:from (dec from)} instead of :from (dec from) works. Regards... -- Nurullah Akkaya http://nakkaya.com On Sun, Jun 6, 2010 at 2:2

Re: Newb Question

2010-06-28 Thread Nurullah Akkaya
the length of the sequence at compile time we apply str to the sequence (apply str '("code" "code" "code")) which basically expands to, (str "code" "code" "code") then you get, "codecodecode" -- Nurullah Akkaya http:/

Re: Make a loop in a loop

2010-07-07 Thread Nurullah Akkaya
w)) Hope it helps... -- Nurullah Akkaya http://nakkaya.com On Wed, Jul 7, 2010 at 5:47 PM, uap12 wrote: > Hi! > I try to make a printout witch vill have year 1999->2010 and every > week > Eg. > Year=1999 Week=1 > Year=1999 Week=2 > Year=1999 Week=3 > Year=1999 Week=

Re: java gui is flashing

2010-07-24 Thread Nurullah Akkaya
Panel. Hope this helps... -- Nurullah Akkaya http://nakkaya.com On Sat, Jul 24, 2010 at 4:11 PM, Mate Toth wrote: > Hi, > > my problem is that during execution my presentation java applet is > flashing. There are many components which paint to a JPanel using it's > Graphics (.ge

Re: java gui is flashing

2010-07-25 Thread Nurullah Akkaya
s/cd/E17409_01/javase/tutorial/uiswing/painting/closer.html -- Nurullah Akkaya http://nakkaya.com -- 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 ar

Re: Clojure Serial Connection

2010-09-21 Thread Nurullah Akkaya
Hi Ivan, I have a project called Clodiuno which allows you to control an Arduino board using either serial or TCP/IP protocol, that may give you a head start, http://github.com/nakkaya/clodiuno/blob/master/src/clodiuno/firmata.clj http://nakkaya.com/clodiuno.html Regards... -- Nurullah Akkaya

Re: [ANN] Clojars Releases repository

2012-11-19 Thread Nurullah Akkaya
Is there a particular reason for not using Bouncy Castle[1]. Instead of forcing users to install gpg lein can generate and/or upload the key. [1] http://www.bouncycastle.org/ -- Nurullah Akkaya http://nakkaya.com On Mon, Nov 19, 2012 at 10:08 PM, Lee Hinman wrote: > > Jeff Heon

Re: Creating a new library

2010-10-12 Thread Nurullah Akkaya
B.jar and make Minim.jar depend on A and B then when you add Minim as your dependency in project.clj it will pull A, B and Minim. Regards... -- Nurullah Akkaya http://nakkaya.com On Wed, Oct 13, 2010 at 12:52 AM, Vilson Vieira wrote: > Hello, > I want to create a Clojure wrapper for Min

Re: distributeted computing newby, clojure ...

2011-01-08 Thread Nurullah Akkaya
I have a simple library that mimics newLISP's net-eval command, which will allow you to evaluate expressions in parallel on remote network nodes, http://nakkaya.com/net-eval.html Regards... -- Nurullah Akkaya http://nakkaya.com On Sat, Jan 8, 2011 at 4:12 AM, Nick Zbinden wrote: &g

Re: distributeted computing newby, clojure ...

2011-01-12 Thread Nurullah Akkaya
Hi Nick, You can reach me from this email. If you have a patch, you can send a pull request or email it directly. Regards... -- Nurullah Akkaya http://nakkaya.com On Wed, Jan 12, 2011 at 1:13 AM, Nick Zbinden wrote: >> I have a simple library that mimics newLISP's net-eval com

Re: api doc for clojure/libraries

2011-01-24 Thread Nurullah Akkaya
No need for wget etc, For core you can download from, https://github.com/clojure/clojure/tree/gh-pages For contrib, https://github.com/clojure/clojure-contrib/tree/gh-pages Just click on download... Regards... -- Nurullah Akkaya http://nakkaya.com On Mon, Jan 24, 2011 at 5:55 PM, Ken

Re: Transforming map entries

2011-02-22 Thread Nurullah Akkaya
You can use map to get your new sequence of pairs, the turn it into a hash-map using into, (->> {:first "john" :last "smith" :age 25} (map #(let [[k v] %] (if (string? v) [k (.toUpperCase v)] [k v]))) (into {})) Best, -- Nurullah Akkaya http://nakkaya.com On Tuesd