Re: Your choice

2018-01-15 Thread Josh Kamau
And you do all this in Clojure ? ;) On Mon, Jan 15, 2018 at 9:11 PM, wrote: > 1. We can guarantee the quality of the product. > > 2. Fast and safe delivery (INTERNATIONAL)- ( E-mail.. dave joine company > @ gmail . com ). > > 3. USA (

Re: what tutorials exist for working at the Repl in Emacs?

2016-12-22 Thread Josh Kamau
http://www.braveclojure.com/basic-emacs/ On Fri, Dec 23, 2016 at 12:34 AM, larry google groups < lawrencecloj...@gmail.com> wrote: > I'm curious if there are good tutorials for a modern setup in Emacs. > Especially any tutorial that mentions stuff like Pomegranate, that helps at > the Repl? > >

Re: Compare between clojure and Java

2016-01-05 Thread Josh Kamau
Here is an extremely simple example: Problem: add a list of numbers java: You put something like this in a class in a method int[] numbers = {1,2,3,4,5,6,7,7,8,4,3} ; int sum = 0 ; for(int i = 0; i < sum.length; i++) { sum = sum + i; } return sum; clojure: You put this in a clojure

Re: How to start with IDE?

2015-12-21 Thread Josh Kamau
After that message, a repl window should appear in which you can type and evaluate clojure expressions. After loading the repl, check how to: - load current namespace into the repl and evaluate the functions in the repl - evaluate an expression on the workspace I dont remember the shortcuts

Re: Awesome Clojure Engineer Opportunity

2015-10-12 Thread Josh Kamau
Remote or on site? J On Mon, Oct 12, 2015 at 11:00 PM, Rameen Fattahi wrote: > Hi Everyone, > > My name is Rameen and I'm looking for a passionate Clojure engineer for a > very confidential project at one of the biggest companies in the world > (cannot name it here for

Re: [ANN] Yesql 0.5.1 Released.

2015-10-08 Thread Josh Kamau
Thanks a million! Having come from mybatis world, this really helps. Josh. On Thu, Oct 8, 2015 at 8:56 AM, Andrey Antukh wrote: > Great work! > > Any change for have yesql decoupled from java.jdbc? I really want to use > it, but with other jdbc libraries... > > > Regards >

Re: Clojure/Pedestal vs Go

2015-09-16 Thread Josh Kamau
11. Leiningen and painless dependency management. Josh On Wed, Sep 16, 2015 at 7:08 AM, Michael Gardner wrote: > On Sep 15, 2015, at 20:45, Mikera wrote: > > > > 7. The open source library ecosystem on the JVM is awesome. There's > nothing

Re: I am looking for xml parsing lib

2015-08-25 Thread Josh Kamau
24, 2015 at 10:48 AM, Josh Kamau joshnet2...@gmail.com wrote: Hello; Which is the recommended xml parsing lib for clojure? clojure.data.xml was last updated 10months ago and is still on version 0.0.8 Thanks Josh -- You received this message because you are subscribed to the Google

I am looking for xml parsing lib

2015-08-24 Thread Josh Kamau
Hello; Which is the recommended xml parsing lib for clojure? clojure.data.xml was last updated 10months ago and is still on version 0.0.8 Thanks Josh -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: materials

2015-06-25 Thread Josh Kamau
http://www.braveclojure.com/ On Thu, Jun 25, 2015 at 12:10 PM, Baishampayan Ghose b.gh...@gmail.com wrote: http://lmgtfy.com/?q=clojure+tutorial Hope this helps. ~BG On Thu, Jun 25, 2015 at 7:21 AM, Baskar Kalyanasamy baskar...@gmail.com wrote: hi everyone, can

Re: [new] GNU emacs settings for clojure ?

2015-06-15 Thread Josh Kamau
You could also try emacs-live if you are an emacs beginner. https://github.com/overtone/emacs-live On Mon, Jun 15, 2015 at 9:32 AM, Jason Lewis ja...@decomplecting.org wrote: M-x package-install cider should give you a better time. One is never stuck with emacs; one is privileged to enjoy

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Josh Kamau
I am currently trying to redirect-after-post with validation errors. I have already cooked up my way of validating maps. However, i cant find a straight forward way for pushing the errors in a 'flash' and then read them in my template (am currently using freemarker.). I have seen the flash

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Josh Kamau
on the next request. On May 4, 2015, at 8:39 AM, Josh Kamau joshnet2...@gmail.com wrote: I am currently trying to redirect-after-post with validation errors. I have already cooked up my way of validating maps. However, i cant find a straight forward way for pushing the errors in a 'flash

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Josh Kamau
@Sean, i wanted totally stateless backend. On Mon, May 4, 2015 at 9:02 PM, Sean Corfield s...@corfield.org wrote: On May 4, 2015, at 10:53 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Sean. that makes sense. I didnt want that map to be stored as one cookie because it could

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Josh Kamau
Another challenge is: There are alot of abandoned libraries and few reach 1.0. That makes selecting the libraries to compose abit difficult. On Mon, May 4, 2015 at 9:59 PM, Gregg Reynolds d...@mobileink.com wrote: On May 4, 2015 7:16 AM, Eric MacAdie emaca...@gmail.com wrote: I think what

Re: A (foolish) plan to re-invent IO on top of core.async

2015-01-06 Thread Josh Kamau
There is also vertx.io with the clojure module. Josh On Tue, Jan 6, 2015 at 3:43 PM, Max Penet m...@qbits.cc wrote: Jet is already very usable and used in production by some notable projects/clients. I am also working on improving the backpressure story on all fronts at the moment (matter

Re: reading to learn and acquire the skill of writing optinal Clojure code

2014-09-26 Thread Josh Kamau
This is how i did it. I tried to solve https://www.4clojure.com/ problems and look at corresponding clojure.core functions for solutions. E.g look at this https://www.4clojure.com/problem/21 Note the special restriction (i.e do not use 'nth' function) The solution to that is actually the

Re: Is clojars down?

2014-07-29 Thread Josh Kamau
I cannot. Oops! Google Chrome could not find cljars.org Josh On Tue, Jul 29, 2014 at 3:44 PM, Di Xu xudi...@gmail.com wrote: I can open cljars.org as normal, and can also download jars from there. 2014-07-29 20:42 GMT+08:00 Yves Parès limestr...@gmail.com: Hi, it seems than clojars is

Re: Is clojars down?

2014-07-29 Thread Josh Kamau
Sorry... the url is clojars.org and its working perfectly. josh On Tue, Jul 29, 2014 at 3:46 PM, Marc Limotte mslimo...@gmail.com wrote: lein is working for me, and is downloading jars from clojars. Assuming it's a network issue on your side, and if you don't need any new jars right now

Re: Clojure:Lisp :: LSD:Meditation

2014-06-13 Thread Josh Kamau
If i were to be asked, i would restrict the group to: 1. Any type of question that is related to clojure 2. Any type of announcement on clojure core library 3. Any new library/version 4. Any link to a narration on real life usages (e.g how we did xyz with clojure) or benchmarks (generally hard

Re: Clojure:Lisp :: LSD:Meditation

2014-06-12 Thread Josh Kamau
I feel USED when you use the mailing list to drive traffic to your blog. On Thu, Jun 12, 2014 at 4:44 PM, Divyansh Prakash divyanshprakas...@gmail.com wrote: (and rant about other stuff I don't know a whole lot about) -- You received this message because you are subscribed to the Google

Re: emacs - some output goes to stdout when using cider

2014-05-26 Thread Josh Kamau
Any particular reason why you cant use emacs-live? Its comes configured for clojure among other stuff out of the box. Josh On Mon, May 26, 2014 at 6:32 PM, Don Hill dhill.nov...@gmail.com wrote: I am making a switch to emacs and trying to get cider setup. I think for the most part

Re: Potential Intro clojure projects - libraries and ideas with wow factor

2014-04-16 Thread Josh Kamau
Can core.logic be used to implement something like http://www.optaplanner.org ? Josh On Wed, Apr 16, 2014 at 9:36 AM, utel umeshtel...@gmail.com wrote: Thanks Mikera and Andrew for the ideas. Some interesting suggestions there. I'll discuss these with my fellow devs. Much appreciated. On

Re: is there a way I can learn clojure with a lot of exercises

2014-04-16 Thread Josh Kamau
more exercises here http://clojure-euler.wikispaces.com/Problem+001 On Wed, Apr 16, 2014 at 10:53 AM, Roelof Wobben rwob...@hotmail.com wrote: Thanks, Can this site also be good : http://www.braveclojure.com/ Roelof Op woensdag 16 april 2014 09:07:36 UTC+2 schreef Bruce Wang: Try

Re: What's the best clojure library to access HBase?

2014-03-06 Thread Josh Kamau
The last time i searched... i couldnt find any that is still being maintained. I ended up using the java api and its very simple. Josh On Thu, Mar 6, 2014 at 1:13 PM, tao tao.zhou2...@gmail.com wrote: the same as the title. -- tao Sent with Sparrow http://www.sparrowmailapp.com/?sig

Re: Latest web framework for clojure

2014-02-26 Thread Josh Kamau
If you are writting blog-like application , check out caribou http://caribou.github.io/caribou/docs/outline.html On Wed, Feb 26, 2014 at 9:44 PM, Curtis Gagliardi gagliardi.cur...@gmail.com wrote: If you're interested in the url-generation and data-based routing, there are some Compojure

Re: How to override the default port on 3000?

2014-02-25 Thread Josh Kamau
you can also change this line on your project.clj :ring {:handler myproject.handler/app :port 8080} Josh On Tue, Feb 25, 2014 at 5:23 PM, Jason Stewart jstew...@fusionary.comwrote: The lein-ring plugin accepts a port number as an argument: lein ring server 8080 Note, that in order to

Re: Hiring Clojure developers for our distributed team at Outpace Systems

2014-02-19 Thread Josh Kamau
Yes... we care to know. I am in Nairobi, Kenya Josh On Wed, Feb 19, 2014 at 6:50 PM, Michael Klishin michael.s.klis...@gmail.com wrote: 2014-02-19 18:41 GMT+04:00 Paul Stadig p...@stadig.name: If you are interested in working from home on a distributed team writing Clojure code, then

Re: [ANN] mod-lang-clojure (for Vert.x) 1.0.0.Beta1 released

2014-01-23 Thread Josh Kamau
Awesome work guys. I noted there is also some activity on the lein-vertx github project. Josh On Tue, Jan 21, 2014 at 7:32 PM, Toby Crawley t...@tcrawley.org wrote: mod-lang-clojure[0] 1.0.0.Beta1 is no available in Maven Central. With this release, the API should be complete, and we hope

Enforcing constructor types on defrecord

2013-11-30 Thread Josh Kamau
Hi there ; Is there a way of enforcing constructor types when using defrecord? Josh -- -- 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: Enforcing constructor types on defrecord

2013-11-30 Thread Josh Kamau
Thanks Ben. I will try that. Josh On Sat, Nov 30, 2013 at 6:12 PM, Ben Mabey b...@benmabey.com wrote: On Sat Nov 30 08:03:18 2013, Ben Mabey wrote: On Sat Nov 30 07:41:52 2013, Josh Kamau wrote: Hi there ; Is there a way of enforcing constructor types when using defrecord? Josh

Re: [ANN] projars.com

2013-11-28 Thread Josh Kamau
as long as it does not swallow some of the free software code out there. I have the same fears. Josh On Thu, Nov 28, 2013 at 1:53 PM, Bastien bastiengue...@gmail.com wrote: Hi Stanislav, Stanislav Yurin jusk...@gmail.com writes: In short, on top of every open greatness, it is good to

Re: running command when lein repl starts

2013-11-19 Thread Josh Kamau
Is it intentional that you are using clojure 1.3.0 instead of a newer version like 1.5.1 ? Do lein deps to download the dependencies. Then do lein repl Josh On Tue, Nov 19, 2013 at 8:08 PM, Andy Smith the4thamig...@googlemail.comwrote: Hi, How can I get a command such as '(use

Re: [ANN] Yesql 0.2.1 - Clojure SQL queries rethought.

2013-11-18 Thread Josh Kamau
Can i put more than one sql statement in a file? Josh On Mon, Nov 18, 2013 at 2:01 PM, Kris Jenkins krisajenk...@gmail.comwrote: On Monday, 18 November 2013 03:21:12 UTC, Jeremy Heiler wrote: On Mon, Nov 11, 2013 at 6:10 AM, Kris Jenkins krisaj...@gmail.comwrote:

Can't get terminal parameters: Inappropriate ioctl for device error on clojure.java.shell

2013-11-16 Thread Josh Kamau
When i run this: (clojure.java.shell/sh chat -Vs ' ' 'ATi' 'OK' ' ' /dev/ttyUSB0 /dev/ttyUSB0) I get this: {:exit 2, :out , :err Can't get terminal parameters: Inappropriate ioctl for device\n} When i run the command directly on the shell, it works. What is causing the error? any options i

Re: a possibly vague question

2013-11-14 Thread Josh Kamau
Try to create a simple app that just demonstrate the issue. Then send the sample to the mailing list. Most likely you won't have to send because you will discover the problem in the process. Josh On 14 Nov 2013 23:08, Jim - FooBar(); jimpil1...@gmail.com wrote: Hi people, I 'll have to

Autocomplete for new dependency - counterclockwise

2013-11-12 Thread Josh Kamau
Hi there ; I have a counterclockwise project on eclipse. I have just added a new library dependency to project.clj. What do i need to do so that the the namespaces provided by the new library are available during autocomplet.. especially on the repl. Regards. Josh -- -- You received this

Re: Autocomplete for new dependency - counterclockwise

2013-11-12 Thread Josh Kamau
2:48:21 PM UTC+1, Josh Kamau wrote: Hi there ; I have a counterclockwise project on eclipse. I have just added a new library dependency to project.clj. What do i need to do so that the the namespaces provided by the new library are available during autocomplet.. especially on the repl

Re: Testing with Angular.js, Clojurescript and Purnam - Code and Part 1

2013-11-05 Thread Josh Kamau
zcaudate, You realize you have posted on a clojure mailing list?? On Tue, Nov 5, 2013 at 1:31 PM, zcaudate z...@caudate.me wrote: Code: https://github.com/zcaudate/purnam-angular-example Demo: http://docs.caudate.me/purnam-angular-example/ Article:

Re: Any interest in Compojure/Ring screencasts?

2013-11-01 Thread Josh Kamau
I am interested. Thanks. Josh On Fri, Nov 1, 2013 at 3:57 AM, Tilak Thapa tlk.thp@gmail.com wrote: +1, @James, i'm in. On Wednesday, October 30, 2013 4:32:18 AM UTC+5:45, Russell Whitaker wrote: I, for one, would happily pay (my employer's) money for such a thing. R On Tue, Oct

Re: Clojure + BDD + TDD + Pairing...

2013-10-30 Thread Josh Kamau
I can do it with you if we limit the hours to Saturday and sunday. I am a noob though i have 2 apps in production. (You can get alot done without knowing the whole of clojure) I am in GMT +3 Thanks. On Wed, Oct 30, 2013 at 6:43 AM, Marcus Blankenship mar...@creoagency.comwrote: Hi Folks,

Re: Counterclockwise Eclipse Plugin Documentation

2013-10-24 Thread Josh Kamau
Thank you Laurent. On Thu, Oct 24, 2013 at 8:12 PM, Laurent PETIT laurent.pe...@gmail.comwrote: Hello, For Counterclockwise, the Eclipse Plugin for Clojure, I've worked on the documentation recently. tl;dr: - The documentation is now at http://doc.ccw-ide.org . I hope you'll find it

Re: [ANN] JUST CREATED GOOGLE + CLOJURE COMMUNITY FOR TUNISIA

2013-10-20 Thread Josh Kamau
Conglats. I am working on the same for Kenya. On Sat, Oct 19, 2013 at 6:14 PM, Plínio Balduino pbaldu...@gmail.comwrote: Congratulations IMHO, local communities are the best way to make the language more popular and even to create a job market for Clojure. Wish you all the success

Re: Newbie question: How to add external clojure jars properly in Eclipse.

2013-10-18 Thread Josh Kamau
I find it easier to let leiningen handle the dependencies. Eclipse via counterclockwise plugin adds dependencies declared in project.clj to the classpath. Josh On Fri, Oct 18, 2013 at 4:42 PM, Christopher Bird seabir...@gmail.comwrote: I know this is a pretty old thread, but my questions are

Re: Newbie question: How to add external clojure jars properly in Eclipse.

2013-10-18 Thread Josh Kamau
for replying. The code sample was from my batch lein and not the counterclockwise version. So I am clearly still totally messed up[! C On Friday, October 18, 2013 9:11:54 AM UTC-5, Josh Kamau wrote: I find it easier to let leiningen handle the dependencies. Eclipse via counterclockwise plugin

Re: Are there any GUI based Clojure apps out there?

2013-10-17 Thread Josh Kamau
you mean something like this https://github.com/arthuredelstein/clooj On Thu, Oct 17, 2013 at 4:31 PM, Jonathon McKitrick jmckitr...@gmail.comwrote: I'd be interested in seeing some client-side apps with a GUI, if there are any. 'Ants' is a good demo, but I'm looking for something a little

Re: ANN: ClojureScript 0.0-1933

2013-10-11 Thread Josh Kamau
Just curious, why the version number very different from most of other projects that i have seen? Otherwise conglats. Josh On Fri, Oct 11, 2013 at 3:28 PM, David Nolen dnolen.li...@gmail.com wrote: ClojureScript, the Clojure compiler that emits JavaScript source code. README and source

Re: [ANN] mod-lang-clojure for Vert.x 0.2.0 released

2013-10-08 Thread Josh Kamau
embedded vertx. Kind regards, Hans-J. On Wednesday, September 18, 2013 1:49:38 PM UTC+2, Toby Crawley wrote: Josh Kamau writes: Does this have the ring adapter bundled in ? No, the ring adapter is a separate project (https://github.com/**stream1984/ring-vertx-adapterhttps

Re: [ANN] mod-lang-clojure for Vert.x 0.2.0 released

2013-09-18 Thread Josh Kamau
Does this have the ring adapter bundled in ? Thanks On Wed, Sep 18, 2013 at 5:16 AM, Toby Crawley t...@tcrawley.org wrote: mod-lang-clojure[0] 0.2.0 was released earlier today, and is now available in Maven Central. The biggest change in 0.2.0 is the addition of a ClojureScript wrapper

clojure.java.jdbc connection pool example

2013-09-13 Thread Josh Kamau
Hello there ; I am in desparate need of a clojure.jdbc with a connection pool example. I have googled and the link to github example is broken. Please help. Thanks. Josh -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group,

Re: clojure.java.jdbc connection pool example

2013-09-13 Thread Josh Kamau
Thanks alot. Let me check them out. Josh On Fri, Sep 13, 2013 at 1:41 PM, Shantanu Kumar kumar.shant...@gmail.comwrote: Hi Josh, On Friday, 13 September 2013 15:52:47 UTC+5:30, Josh Kamau wrote: Hello there ; I am in desparate need of a clojure.jdbc with a connection pool example

Re: clojure.java.jdbc connection pool example

2013-09-13 Thread Josh Kamau
:user :password } now you can load the config and create a pooled connection as wished (def ds (datasource (clojure.java.io/as-file db.properties))) you can obtain a connection using {:datasource ds} Cheers Christian Am Freitag, 13. September 2013 12:22:47 UTC+2 schrieb Josh Kamau

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
Please allow me to hijack the thread and ask: Does Counterclockwise allow slurping and barfing? like in emacs ? Josh On Fri, Sep 6, 2013 at 7:59 PM, Marc Dzaebel mdzae...@web.de wrote: great, to hear, that this important window to the Clojure world is so actively developed! -- -- You

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
Wow! thanks... i have been looking for this. Josh. On Sat, Sep 7, 2013 at 11:44 AM, Timo Mihaljov t...@mihaljov.info wrote: On 07.09.2013 11:24, Josh Kamau wrote: Please allow me to hijack the thread and ask: Does Counterclockwise allow slurping and barfing? like in emacs ? Yes. See

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
Hi ; (This is embarassing... ;)) I am unable to use slurp . I am using latest stable version. does *Ctrl+) S* mean pressing Ctrl+Shift+)+S together ? Shift so that i pick ) and not 9 and so that S is in caps. Thanks Josh On Sat, Sep 7, 2013 at 11:57 AM, Josh Kamau joshnet2...@gmail.com

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
: On 07.09.2013 14:02, Josh Kamau wrote: I am unable to use slurp . I am using latest stable version. does *Ctrl+) S* mean pressing Ctrl+Shift+)+S together ? Shift so that i pick ) and not 9 and so that S is in caps. ) is above 0 on my keyboard, so I can trigger the Slurp Right action like

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
It works with 0.20.0.master-travis000126-gitcd826fde979c1b13a4cb8acce5409ae88c761b81 . Thanks. Josh. On Sat, Sep 7, 2013 at 2:22 PM, Josh Kamau joshnet2...@gmail.com wrote: It doesnt work on my machine ;) I checked on eclipse keybindings and its not that binding is not available. I am

Re: Why is clojure so powerful?

2013-09-05 Thread Josh Kamau
The only thing more powerful than Lisp is Lisp on JVM Josh On Thu, Sep 5, 2013 at 2:29 AM, Devin Walters dev...@gmail.com wrote: Battle-tested libraries are nice, and Java has a lot of them. Clojure programmers can use all of them with relative ease. I recently tried Erlang/Elixir and was

Re: [ANN] java.jdbc documentation has moved!

2013-07-09 Thread Josh Kamau
Thanks man!... I rely heavily on this library. On Tue, Jul 9, 2013 at 8:39 PM, Michael Klishin michael.s.klis...@gmail.com wrote: 2013/7/9 Sean Corfield seancorfi...@gmail.com This opens up contributions to the community at large so I hope to see plenty of activity as folks send PRs for

Re: core logic

2013-06-19 Thread Josh Kamau
for miniKanren core.logic zebra and find a solution if you get stuck ;) David On Tue, Jun 18, 2013 at 7:57 AM, Josh Kamau joshnet2...@gmail.comwrote: Hi ; I am trying to learn clojure core.logic. I have gone through some documentation on github by David Nolen. I am now trying to solve

core logic

2013-06-18 Thread Josh Kamau
Hi ; I am trying to learn clojure core.logic. I have gone through some documentation on github by David Nolen. I am now trying to solve this problem: Anyone willing to do some practice can try and share the solution. *SOLVE THIS PROBLEM.* *The Diplomats at Muthaiga Estate* The facts

Jenkins, clojure, ring...

2013-06-17 Thread Josh Kamau
Hi guys; I am trying to setup CI server with jenkins. I would like after pushing to mercurial, i just refresh the browser and see the changes. I use lein ring server-headless to run the server. I can shell the command in jenkins using something like nohup lein ring server-headless The problem

Re: In what OS do you code?

2013-06-15 Thread Josh Kamau
I love linux so one of my home laptop has linux. I mainly use it for experiments and on it i use emacs Then there is this expensive macbookpro that i bought. Its my first actually. I use it for all my commercial work. I use intellij for development on it. If i could rewind time, i

Re: while loop

2013-06-14 Thread Josh Kamau
Thanks Meikel. That works exactly as i wanted. Now, how can i put all the names in a vector ? On Fri, Jun 14, 2013 at 9:19 AM, Meikel Brandmeyer (kotarak) m...@kotka.dewrote: Hi, another way if it's not an enumeration or the like: (doseq [entry (repeatedly #(.getNextEntry stream)) :while

Re: while loop

2013-06-14 Thread Josh Kamau
I figured it out... with a for loop. THanks Josh On Fri, Jun 14, 2013 at 9:40 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Meikel. That works exactly as i wanted. Now, how can i put all the names in a vector ? On Fri, Jun 14, 2013 at 9:19 AM, Meikel Brandmeyer (kotarak) m

while loop

2013-06-13 Thread Josh Kamau
Hi there ; How do i implement the following in clojure while((entry = stream.getNextEntry())!=null) { System.out.println(entry.getName()); } NOTE: calling getNextEntry moves the curse to the next entry. CONTEXT: I am trying to list the contents of a .zip file using

Re: while loop

2013-06-13 Thread Josh Kamau
, Clojure's while construct isn't really good at stuff like that. A loop is the basic thing I reach for, and I'd probably write it as: (loop [] (when-let [entry (.getNextEntry stream)] (println entry) (recur))) On Thursday, June 13, 2013 10:20:22 AM UTC-7, Josh Kamau wrote: Hi

Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread Josh Kamau
Did you try emacs live ? https://github.com/overtone/emacs-live It will give you a head start. Josh On Mon, Jun 3, 2013 at 7:22 PM, Novi Border novibor...@gmail.com wrote: Hi It does not seem to help.. After removing ac-nrepl, nrepl-ritz-jack-in just hangs until I switch buffer to

Re: Use of io!

2013-05-30 Thread Josh Kamau
alexander.barano...@gmail.com wrote: Do any of you ever use io! ? I've never used it, but could see using it if I had a transaction-heavy application. On Wed, May 29, 2013 at 11:43 PM, Michael Klishin michael.s.klis...@gmail.com wrote: 2013/5/30 Josh Kamau joshnet2...@gmail.com Whats

ref-history-count always return 0?

2013-05-30 Thread Josh Kamau
(def my-ref (ref 1)) (defn update-my-ref [new-value] (dosync (alter my-ref #(+ % new-value)) (ref-history-count my-ref))) Hi guys ; I am trying to understand (ref-history-count ref) . I thought it counts the number of old values in the ref. But in all my tests, its always

Re: ref-history-count always return 0?

2013-05-30 Thread Josh Kamau
: On Thu, May 30, 2013 at 3:05 PM, Josh Kamau joshnet2...@gmail.com wrote: I am trying to understand (ref-history-count ref) . I thought it counts the number of old values in the ref. But in all my tests, its always returning zero. How is it used? In clojure's STM, history is created only when

Use of io!

2013-05-29 Thread Josh Kamau
Hi ; Whats the point of using io! inside dosync if all it does is make an exception to be thrown? Please someone make me understand. Regards. Josh -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

spelling mistake in docs?

2013-04-22 Thread Josh Kamau
Sometimes i get this error : No matching ctor found for class... Now i know ctor means constructor. -- -- 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

Re: Setting content type in a resouce response

2013-04-19 Thread Josh Kamau
/ring-clojure/ring/wiki/Static-Resources) and Content Types (https://github.com/ring-clojure/ring/wiki/Content-Types). And again, I would suggest using the Ring list for these questions. Hope this helps! Best, Dave 2013/4/19 Josh Kamau joshnet2...@gmail.com Hi there ; Please help. How do

Setting content type in a resouce response

2013-04-18 Thread Josh Kamau
Hi there ; Please help. How do i set the ContentType header in a (ring.util.resouce/resource-response ) ? I am serving html file and its being served as plain text. Josh -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

docs for clojure.java.jdbc 0.3.x

2013-04-15 Thread Josh Kamau
Hello ; Where can i find the 'generated docs' for clojure.java.jdbc 0.3.x ? i can only see the docs for 0.2.4 Josh -- -- 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: docs for clojure.java.jdbc 0.3.x

2013-04-15 Thread Josh Kamau
://clojure.github.io/java.jdbc/ Actually described about 0.3.x APIs. 2013年4月15日月曜日 20時53分24秒 UTC+9 Josh Kamau: Hello ; Where can i find the 'generated docs' for clojure.java.jdbc 0.3.x ? i can only see the docs for 0.2.4 Josh -- -- You received this message because you

Where is clojure.inspector namespace

2013-04-07 Thread Josh Kamau
I keep getting this : ClassNotFoundException clojure.inspector java.net.URLClassLoader$1.run (URLClassLoader.java:366) when i try to do this : (clojure.inspector/inspect (range 10)) Do i need to require/use or add any dependency ? -- -- You received this message because you are subscribed

Re: Where is clojure.inspector namespace

2013-04-07 Thread Josh Kamau
, Apr 7, 2013 at 1:44 PM, Michael Klishin michael.s.klis...@gmail.com wrote: 2013/4/7 Josh Kamau joshnet2...@gmail.com Do i need to require/use or add any dependency ? Namespaces besides clojure.core need to be required. REPLs such as REPLy may require a few additional ones for you

Re: Where is clojure.inspector namespace

2013-04-07 Thread Josh Kamau
Thanks very much Michael... Now i finally get it ;) Josh On Sun, Apr 7, 2013 at 1:55 PM, Michael Klishin michael.s.klis...@gmail.com wrote: 2013/4/7 Josh Kamau joshnet2...@gmail.com You mean even if i use a fully qualified namespace such as (clojure.inspector/inspect ) , i will still

Re: Improving visibility of clojure-doc.org

2013-02-27 Thread Josh Kamau
How about introducing a section with solutions to this ( http://projecteuler.net/problems) or other problems. While most of us beginners can write clojure code, solving problems in an idiomatic way is another story. You could have a page for each question and users can each attempt and learn

Re: ANN Welle 1.4.0 is released

2013-02-21 Thread Josh Kamau
I will... My usecases require durability and strict consistency. Josh. On Thu, Feb 21, 2013 at 11:02 PM, Mark Phillips m...@basho.com wrote: Hey Josh, On Thu, Feb 21, 2013 at 2:18 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi Clojurewerkz guys ; I like your work on various libraries

Re: Why is this so difficult?

2013-02-14 Thread Josh Kamau
This might help: 1. create a new project in the current directory lein new 2. Edit project.clj and add this plugin [lein-idea: 1.0.1] 3. run this to create idea project files lein idea 4. Open the project in intellij Josh On Fri, Feb 15, 2013 at 12:29 AM, BJG145

Re: [GSoC Idea] cljs layer/dsl over express js

2013-02-14 Thread Josh Kamau
Clojure has compojure ... which is a sinatra like web framework and you can create a new project usinglein new compojure and start creating your request handler functions from there ... Just like in express. If you want a jade equivalent... you can use hiccup . Josh. On Fri, Feb 15,

Re: Clojure - Python Style suggestion

2013-02-04 Thread Josh Kamau
I love the parenthesis please dont take them away ;) I dont want to learn a language syntax. I want a language without a syntax . And thats why i love clojure . Josh On Tue, Feb 5, 2013 at 2:57 AM, Leonardo Borges leonardoborges...@gmail.com wrote: Honestly I find myself missing

Re: is intellij idea a good ide for clojure development?

2013-01-29 Thread Josh Kamau
Question: Is this emacs also good in other stuff such as javascript/css/html/sql Most of my projects involve writing this as well . Does anyone have a link to an up to date instructions on how to setup emacs for clojure ? most of what i find are out of date... e.g some talk of swank-clojure

Re: is intellij idea a good ide for clojure development?

2013-01-29 Thread Josh Kamau
can add to a vanilla emacs install and get right started. All you need to nrepl-jack-in. On Tue, Jan 29, 2013 at 1:21 PM, Josh Kamau joshnet2...@gmail.com wrote: Question: Is this emacs also good in other stuff such as javascript/css/html/sql Most of my projects involve writing

Re: is intellij idea a good ide for clojure development?

2013-01-28 Thread Josh Kamau
IMHO, All IDEs are good. However, when it comes to clojure development, it depends on the quality of the plugin. Is the plugin still being maintained and improved? Counterclockwise plugin for eclipse is very popular. La clojure plugin for intellij is also very good. Its maintained by the same

Re: Current 'best practice' stack for CRUD website?

2013-01-20 Thread Josh Kamau
Hi Simon; Because we are in 2013, you could do alot of clientside templating on the client. So your clojure(ring/compojure) backend becomes a service for producing and consuming json. Then you use one of the many clientside javascript solutions to convert the json into html(or something like

Loading a file from classpath

2013-01-20 Thread Josh Kamau
Hi; I have a clojure lein project. I have a directory called resources which i believe is the classpath root directory.. I just want to (slarp resources/myfile.txt) , This doesnt work. How do i specify the path properly such that i will always work even after i uberjar or uberwar ? thanks josh

Re: Loading a file from classpath

2013-01-20 Thread Josh Kamau
Hi ; I figured it it out... (load /myfile);loads my file relative to classpath thanks Josh On Mon, Jan 21, 2013 at 2:14 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi; I have a clojure lein project. I have a directory called resources which i believe is the classpath root directory

Error while installing clojure-mode on emacs

2013-01-17 Thread Josh Kamau
Hi There ; I am following the instructions here https://github.com/technomancy/clojure-mode/blob/master/README.md to install clojure mode on emacs... I am new to both emac and clojure. I am getting this error Wrong type argument: sequencep, quote Here is my init.el (require 'package)

Re: Error while installing clojure-mode on emacs

2013-01-17 Thread Josh Kamau
Thanks guys... I gave up on emacs am back to eclipse . Josh On Thu, Jan 17, 2013 at 4:23 PM, Tim Visher tim.vis...@gmail.com wrote: On Thu, Jan 17, 2013 at 4:06 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi There ; I am following the instructions here https://github.com

Re: Error while installing clojure-mode on emacs

2013-01-17 Thread Josh Kamau
THanks Tim, I will master clojure first... i will get back to emacs later. Iam still having the (parens culture) shock having been in {java.world()} for years. On Thu, Jan 17, 2013 at 5:06 PM, Tim Visher tim.vis...@gmail.com wrote: On Thu, Jan 17, 2013 at 9:01 AM, Josh Kamau joshnet2

is org.clojure/java.jdbc part of the official clojure

2013-01-15 Thread Josh Kamau
Hi there , I am a little confused here (no big deal though) . Is org.clojure/java.jdbc an official clojure library? if yes, why is the version still 0.2.3 and not 1.4.x as clojure ? TIA Josh -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: is org.clojure/java.jdbc part of the official clojure

2013-01-15 Thread Josh Kamau
On Jan 15, 2013, at 1:10 AM, Josh Kamau wrote: Hi there , I am a little confused here (no big deal though) . Is org.clojure/java.jdbc an official clojure library? if yes, why is the version still 0.2.3 and not 1.4.x as clojure ? TIA Josh -- You received this message because you

Re: deploying clojure/compojure web apps

2013-01-10 Thread Josh Kamau
Thanks for all the contribution in thread. Josh On Thu, Jan 10, 2013 at 8:48 AM, kinleyd kinl...@gmail.com wrote: Yes, thank you all. This was a very useful thread. On Thursday, January 10, 2013 9:35:38 AM UTC+6, John Gabriele wrote: Thanks, all. Updated CDS basic web dev tut with this

deploying clojure/compojure web apps

2013-01-08 Thread Josh Kamau
Hi There ; I am new to clojure. My question is: Whats the common practice when it comes to deploying webapps built on compojure? running via lein ring server or creating a war file ? I would also like to know which is the best way to put load configuration files i.e using properties file... or