A-Star Search Implementation

2009-10-18 Thread Josh
Hi, To teach myself Clojure and A-Star search, I mocked up a quick demo program. I don't know if anyone else would be interested in seeing it, but it demos a few things, including calling Clojure from Java, building / running from a Maven environment, and of course A-Star. I'd appreciate any

Re: Stuart Sierra's Component: retries & restarts in production

2015-09-06 Thread josh
On Thursday, September 3, 2015 at 9:15:54 AM UTC-4, Andy- wrote: > > Only to answer the "retry on error" part of you question: You might like > hara/event: > http://docs.caudate.me/hara/hara-event.html > Thanks for the tip! I've been meaning to check out hara anyway. If I end up using it I'll

Re: Stuart Sierra's Component: retries & restarts in production

2015-09-06 Thread josh
Thanks a ton for writing all of this up. I'm actually using Langohr & RabbitMQ as well, so I have the sense that you've solved problems that I might encounter down the road. On Friday, September 4, 2015 at 7:57:21 AM UTC-4, Dave Tenny wrote: > > I'm using components to encapsulate

Stuart Sierra's Component: retries & restarts in production

2015-09-02 Thread josh
TLDR: how do you use Component when the application logic involves retrying failed components? Background: I'm writing an app that consumes events from a streaming HTTP connection and writes those events to a message queue (see Code Illustration #1). It seems like that could be captured easily

Re: Refactoring namespaces

2015-09-18 Thread josh
; library). In my experience, Cursive <https://cursiveclojure.com/> has been pretty effective for refactoring (e.g., moving a file into a different directory and having all of the ns forms update appropriately). I hope that's helpful, Josh On Friday, September 18, 2015 at 12:54:03 PM UTC-4, Timu

Re: filter1 interesting?

2009-03-16 Thread Josh Daghlian
Anyone for detect? (detect odd? primes) -- 3 (detect even? primes) -- 2 (detect even? (rest primes)) -- runs forever (detect even? (rest one-million-primes)) -- nil On Mar 16, 10:51 am, Laurent PETIT laurent.pe...@gmail.com wrote: Just to make me more enemies ;-), I would prefer, on the other

Re: Concerns About Pushing Clojure 1.0.0 to Maven Central Repo?

2009-05-06 Thread Josh Daghlian
! --josh On May 6, 1:09 pm, Stefan Hübner sthueb...@googlemail.com wrote: Hi all, Since Clojure now has a stable 1.0.0 I would like to take a step forward and push it to Maven's Central Repo athttp://repo1.maven.org/maven2/. This would allow people using Maven to integrate Clojure more easily

macro escapes and passing method names are function arguments

2009-06-09 Thread Josh Smith
I've been trying to understand the macro syntax in clojure. I think macro's are closer to the kind of functionality I'm looking for (as opposed to multi-methods) but I'm not sure. http://gist.github.com/126315 I wrote the above code, which simply processes Java-style Properties files (using

Re: Mnesia like?

2009-06-15 Thread Josh Daghlian
as Mnesia, though. --josh On Jun 15, 12:02 pm, Wilson MacGyver wmacgy...@gmail.com wrote: Does clojure have anything like erlang's Mnesia? or is anyone working on such project? I know I can fall back to using JDBC+ various RDBMS, but I was curious if there is something that works like Mnesia

Re: Making a living on Clojure

2008-10-14 Thread Josh Daghlian
I'm one of about a dozen developers on a 250 kloc Java codebase that has a DSL of sorts in it: boolean predicate trees representing targeting for ad campaigns. I write, among other things, tree- rewriting compilers that turn those trees into SQL where clauses, scheduling buckets, floating point

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

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: How to handle configuration in Clojure?

2014-01-13 Thread Josh Smith
On Monday, January 13, 2014 8:50:54 AM UTC-5, James Trunk wrote: I've been investigating how to handle configuration in a Clojure application/library, and have discovered two main candidates: dynamics vars and argument passing. I would suggest you add Environment variables to your list.

Re: How to handle configuration in Clojure?

2014-01-13 Thread Josh Glover
/ Whilst DI is not precisely config management, the pattern described in the blog seems applicable. Cheers, 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

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

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

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

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

2014-04-11 Thread Josh Lehman
Tom, Not sure if you every figured this out, but I'm having the same issue. In my case, the error points to the Lifecycle protocol in https://github.com/stuartsierra/component (com/stuartsierra/component/Lifecycle). It's a pretty barebones configuration.

Re: Uberjar woes

2014-04-11 Thread Josh Lehman
files, you end up with some pretty bizarre behaviour in such cases. - James On 11 April 2014 22:09, Tom Connors t.v.c...@gmail.com javascript:wrote: Hi Josh, My solution ended up being pretty lame: I stopped calling a function from clout, and the uberjar magically worked, as disappointing

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

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: Save current namespace like a Smalltalk image

2009-07-08 Thread Josh Daghlian
namespace At some point I'll improve the gui inspectors to more closely resemble (in functionality) the object inspectors from Eclipse or Idea, but this suffices for now to at least identify what things I've defined so I know to shove their definitions into a file before restarting the repl. Cheers --josh

Re: questions about datalog

2009-09-12 Thread Josh Smith
On Sep 12, 6:21 am, Robert Luo robort...@gmail.com wrote: Two more questions: 3. In datalog.database , it is required that every tuple must has exactly same field as in database define, is that possible to just define some necessary fields, and tuples appended can have additional optional

Re: questions about datalog

2009-09-12 Thread Josh Smith
On Sep 12, 9:53 pm, Robert Luo robort...@gmail.com wrote: Thank you Josh for your answer. Thank you for being interested in the datalog library. :) I have read the sources of datalog, however, literal.clj and the ideas of the query language behind it is unknown for me, thus I can

Re: Load Bitmap

2009-10-03 Thread Josh Daghlian
On Oct 3, 8:27 pm, Sean Devlin francoisdev...@gmail.com wrote: Take a look at the javax.imageio.ImageIO class.  There are some useful static methods there for loading files.  Also, if you're going to be doing image editing, I'd suggest reading the AWT sections in Cornell Horstmann.

Re: take-nth

2009-10-27 Thread Josh Daghlian
The docs could use clarification, but it looks like take-nth is doing what's advertised. Is there ever a case (I can't think of one) where a programmer really wants to feed this function a non-positive n? That is, should take-nth crap out if ( n 1)? --josh On Oct 27, 5:26 pm, Timothy Pratley

Re: Seq wrappers for arrays can morph

2009-10-30 Thread Josh Daghlian
with java arrays. Sounds like a bug, or at least a change request I'd second. After possibly improperly quoting rhickey, Josh slinks away... --josh On Oct 30, 12:40 pm, John Harrop jharrop...@gmail.com wrote: user= (def x (int-array 3)) #'user/x user= x [0, 0, 0] user= (def y (seq x)) #'user/y

Re: Seq wrappers for arrays can morph

2009-10-30 Thread Josh Daghlian
Although I suppose this isn't too surprising: user (second y) -- ConcurrentModificationException --josh On Oct 30, 9:31 pm, Josh Daghlian daghl...@gmail.com wrote: During the Boston Lisp Users meeting last November (?) I asked Rich about whether seq's on mutable java.util.Collections were

Re: separating ui and content in clojure

2010-03-21 Thread Josh Stratton
An atom seems appropriate after reading up on it, but documentation seems a little scarce. Reading about atoms on the clojure site gives a very small example using just a {}. I've tried piecing it together using a struct but am getting Exception in thread main

Re: Help optimizing array-to-integer operation?

2010-03-24 Thread Josh Arnold
 I can't think of many cases where a downcast is used *and* the original value is expected to ever be larger than the target type. I can. Particularly when casting to a byte, I'm often more interested in the bit pattern than the integer value. (Admittedly, sometimes this is due to java API

Re: referencing an atom inside a function used for swapping

2010-03-25 Thread Josh Stratton
I would just pass the atom and move the @ inside the function... But the non-atom is automatically dereferenced and sent to the respective function when I use swap! So unless there's another function to alter atoms, I'm going to have the dereferenced version there no matter what, right? On

Re: referencing an atom inside a function used for swapping

2010-03-26 Thread Josh Stratton
construct the JPanel outside the atom, add all the listeners and then add the panel to structure in the atom. (let [panel (JPanel. ..)]  (add-listener-stuff panel the-atom)  (swap! the-atom assoc :SpiffyPanel panel)) Side-effecting things shouldn't be done inside the swap! since it can be

Re: copying structures

2010-03-29 Thread Josh Stratton
Please note that actually def'ing each value is not what you're supposed to do :) def is reserved for global constants and dynamically rebindable variables, and redefing an existing variable is considered bad style. The def was for legibility (or I was going for legibility). Speaking of

Getting started embedding Clojure into an existing codebase

2010-03-31 Thread Josh Daghlian
up swank-clojure, pass locals (like the Spring context, some timing information, etc.) into the clojure environment, and so forth. Apologies if I’m missing something obvious (although I suppose that’s what “getting started” docs are for:). Thanks. --josh -- You received this message because you

Re: Getting started embedding Clojure into an existing codebase

2010-04-02 Thread Josh Daghlian
the actual java process(es) is done by bespoke scripts that directly invoke java. I guess I'll probably end up spring-injecting (a thin wrapper around) swank-clojure or, if my non-emacs-enabled colleagues object, the Enclojure library (of which I had not been aware; thanks!). Cheers. --josh On Mar

Re: mutating multiple java swing components

2010-04-08 Thread Josh Stratton
What's the function to call java code on multiple java components?  If I have a sequence of Java swing components and I want to go through and set the same properties for each one, I would use a for loop in Java.  If I were using immutable structs in clojure, I'd just a map and just change

Re: mutating multiple java swing components

2010-04-09 Thread Josh Stratton
fixedTables) (println mainTables) (println fixedTables) On Thu, Apr 8, 2010 at 4:30 PM, Josh Stratton strattonbra...@gmail.com wrote: It sounds like the doseq is the macro you're looking for, e.g. (doseq [c my-components]   (.setVisible c true)) That works once I've done

Re: matching symbols in a dictionary

2010-04-13 Thread Josh Stratton
You do mean keywords rather than symbols, right? A symbol would be 'hello. A keyword is :hello. The ruby name for the clojure keyword concept is symbol. I used to get the terminology backwards because of that. (assert (= (name :hello) hello)) (assert (= :hello (keyword hello))) Yes, that

Re: requesting help from any IBM JVM users out there

2010-04-14 Thread Josh Arnold
According to both the JLS [1] and the JVM Spec [2], neither '' or '' are legal within an identifier; The various Character.isJava***() methods return false for those characters. As for the original problem, I was able to reproduce it on some Windows IBM JVMs [3] and I verified that applying the

Re: help wanted: tests for c.c.io

2010-04-15 Thread Josh Arnold
I'll take a stab at it.Can you add me as a member of clojure- contrib space, or should I ask on Clojure Dev? I've already submitted a CA and my assembla UN is josharnold On Apr 14, 9:50 pm, Stuart Halloway stuart.hallo...@gmail.com wrote: clojure.contrib.io is one of the most used

Re: sharing multiple jogl opengl contexts in clojure

2010-04-20 Thread Josh Stratton
I found this code some code that supposedly works for creating a context that can be shared for multiple panels http://www.javagaming.org/index.php/topic,19911.0.html I can't seem to get a pbuffer create. I believe I'm using the correct Clojure syntax for these static methods (pasted below). It

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

2013-01-28 Thread Josh Kamau
company that makes intellij. I use intellij... And i am one month old in clojure development. If you want to be 'cool' use emacs ;) i am not there yet regards. Josh On Mon, Jan 28, 2013 at 2:37 PM, Dennis Haupt d.haup...@gmail.com wrote: the only ides i have used so far for clojure

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

2013-01-29 Thread Josh Kamau
and i read somewhere that i should use nRepl or something like that. regards. Josh. On Tue, Jan 29, 2013 at 9:17 PM, Jay Fields j...@jayfields.com wrote: Rich, almost all keystrokes have names you can use from M-x - if you prefer that to keystrokes. On Tue, Jan 29, 2013 at 11:59 AM, Rich

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

2013-01-29 Thread Josh Kamau
Thanks Jay... Emacs live looks funtastic... I will give emacs another try. Josh On Tue, Jan 29, 2013 at 9:48 PM, Jay Fields j...@jayfields.com wrote: I use it for Clojure, html, css, js - no sql tho, so I can't comment on that. Otherwise, everything is great. I use emacs-live, which you

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 S

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 benmagicf

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: 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: Improving visibility of clojure-doc.org

2013-02-27 Thread Josh Kamau
from each others attempts. Just a suggestion. Josh. On Wed, Feb 27, 2013 at 9:06 PM, Michael Klishin michael.s.klis...@gmail.com wrote: Started in October 2012, http://clojure-doc.org is a pretty extensive community documentation effort. It covers Clojure, its ecosystem and tools and has two

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
Thanks Michael and David. You mean even if i use a fully qualified namespace such as (clojure.inspector/inspect ) , i will still need to have 'required' the namespace? ... In java, if i use the fully qualified class name (e.g java.util.Date), i dont have to import it. Regards Josh On Sun

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

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
Thanks. I will wait for the 0.3 docs. I didnt want to memorize the old API. Josh On Mon, Apr 15, 2013 at 9:16 PM, Sean Corfield seancorfi...@gmail.comwrote: Yup, autodoc is not run automatically on every commit/build so the generated docs tend to lag a little behind the source code (for all

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

Re: Setting content type in a resouce response

2013-04-19 Thread Josh Kamau
like {:body (io/InputStream. (io/resource public/index.html)) :headers {...content type...} to make it work Josh On Fri, Apr 19, 2013 at 4:58 AM, David Della Costa ddellaco...@gmail.comwrote: Hi Josh, you should post Ring-related questions here: https://groups.google.com/forum/?fromgroups

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

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 clojure

Re: Use of io!

2013-05-30 Thread Josh Kamau
Thanks guys. Now i understand its for marking functions containing io so that they blow up if they are used inside transactions. I am still learning clojure and i have decided to take some time to understand every function in the core API. Josh. On Thu, May 30, 2013 at 11:10 AM, Alex Baranosky

ref-history-count always return 0?

2013-05-30 Thread Josh Kamau
returning zero. How is it used? 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 - please be patient with your first post. To unsubscribe from

Re: ref-history-count always return 0?

2013-05-30 Thread Josh Kamau
Thanks guys. I have been able to get the ref-history-count greater than 0 by increasing ref-min-history to something greater than 0 and by using long (using Thread/sleep) running transactions. Now i get it Josh On Thu, May 30, 2013 at 6:01 PM, Neale Swinnerton ne...@isismanor.comwrote

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

Re: Libraries and build management hell

2011-07-29 Thread josh rotenberg
its own backtick-config kind of thing, and another has no real handy way to find its dependencies. In addition, to get everything to play nice via unit tests takes our own fragile voodoo. So for me, right now Leiningen, clojars, and even cloning something from github is basically nirvana. Josh

deploying clojure/compojure web apps

2013-01-08 Thread Josh Kamau
... or using a reader to load .clj file with a hashmap def? Kind regards. 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 - please be patient

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

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

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

2013-01-15 Thread Josh Kamau
Andy; Thanks for the clarification. Josh. On Tue, Jan 15, 2013 at 1:20 PM, Andy Fingerhut andy.finger...@gmail.comwrote: java.jdbc is one of several Clojure contrib libraries, others of which you can see listed in the two places below: https://github.com/clojure http

Error while installing clojure-mode on emacs

2013-01-17 Thread Josh Kamau
-to-list 'package-archives '(marmalade . http://marmalade-repo.org/packages/;) t) (package-initialize) i am using emacs GNU Emacs 24.2.1 (x86_64-apple-darwin11.4.2) of 2012-11-20 on tenseven-slave.ma\ cports.org on osX 10.7 Whats wrong with my init.el script? Thanks Josh -- You received

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

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

2013-01-20 Thread Josh Kamau
that.) .. i mostly use angularjs for this (angularjs.org). If you are a backend logic guy who can not touch js/html/css even with a ten foot pole... then my suggestion wont work for you. Regards. Josh On Sun, Jan 20, 2013 at 2:27 PM, Simon Brooke still...@googlemail.comwrote: I've finally

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

fast development through clojure repl

2010-07-27 Thread Josh Stratton
I think one of the major advantages touted by languages like clojure are faster development times by adding to the program as you go via the REPL. I, however, have still been doing a more traditional write/save/execute debugging workflow without the REPL, which doesn't seem to get the real

Re: fast development through clojure repl

2010-07-27 Thread Josh Stratton
If you're rather looking for overall workflows/program structure/best practices etc - good question. :) I was actually, but the integration with emacs is important, too. I'll have to get SLIME working. Thanks. -- You received this message because you are subscribed to the Google Groups

while loop

2013-06-13 Thread Josh Kamau
://docs.oracle.com/javase/6/docs/api/java/util/zip/ZipInputStream.html Regards. 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 - please

Re: while loop

2013-06-13 Thread Josh Kamau
Thanks guys i have now have a bunch of solutions to try out ;) Josh On Thu, Jun 13, 2013 at 8:57 PM, Aaron Cohen aa...@assonance.org wrote: I like the StackOverflow answer for this: http://stackoverflow.com/questions/5419125/using-java-api-from-clojure-reading-zip-file (defn entries

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

Re: In what OS do you code?

2013-06-15 Thread Josh Kamau
wouldnt buy a mac. I would stick to linux. josh On Sat, Jun 15, 2013 at 11:20 AM, Mimmo Cosenza mimmo.cose...@gmail.comwrote: On Jun 14, 2013, at 8:16 PM, Nico Balestra nicobales...@gmail.com wrote: What company do you work for Mimmo? Can I send my CV? :) yes you can. send it to me. I'm the boss

Re: DBM libraries

2013-06-16 Thread josh rotenberg
Is there a maintained and widely-adopted Clojure interface to any of the Java DBM libraries (jdbm, jdbm2, BerkeleyDB or MapDB) ? I'm not sure how widely adopted it is, but Cupboard has a high and low level Berkeley DB API: https://github.com/gcv/cupboard -- -- You received this message

Jenkins, clojure, ring...

2013-06-17 Thread Josh Kamau
is, during the next build, how will the first process be killed so that it can be run again ? 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

Re: Any suggestions for configuration solution in Clojure or Java world?

2013-06-17 Thread josh rotenberg
I like carica for configuration: https://github.com/sonian/carica I switched a project over from the typesafe config package (with my own very thin Clojure wrapper around it) to carica and found it really nice to work with. Josh -- -- You received this message because you are subscribed

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

Re: core logic

2013-06-19 Thread Josh Kamau
Piotr i will as soon as am done. Josh On Wed, Jun 19, 2013 at 11:26 AM, 良ϖ p2b@gmail.com wrote: Hello Josh, I would be glad you share your code :) Piotr 2013/6/18 David Nolen dnolen.li...@gmail.com This is a variant of the Zebra/Einstein Puzzle. You can probably Google

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

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
It doesnt work on my machine ;) I checked on eclipse keybindings and its not that binding is not available. I am using 0.12.3.STABLE001. I will keep tinkering just in case am making a stupid mistake. Josh. On Sat, Sep 7, 2013 at 2:13 PM, Timo Mihaljov t...@mihaljov.info wrote

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

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
Thanks. I have used C3P0 for now... I will look at tomcat7 pool though Josh On Fri, Sep 13, 2013 at 3:19 PM, gixxi christian.meichs...@informatik.tu-chemnitz.de wrote: Hi Josh, I would opt for using Tomcat 7 Pool API - http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html

Clojure BBM Channel

2013-09-17 Thread Josh Comer
For those using the beta version of BBM Channels, I have created a new channel all about clojure. Below is the barcode with which to join. Cheers, Josh https://lh6.googleusercontent.com/-H6C_EUGNYeY/UjjUeCqdhKI/BmU/XTIuDfhWqqU/s1600/IMG_0171_edit.png -- -- You received

  1   2   >