It used to be that lein new would not allow you to create projects
with jure in the name. I guess that restriction has disappeared,
which is unfortunate since it would have prevented the problem you ran
into...
On Thu, Apr 26, 2012 at 10:57 PM, Sean Neilan sneil...@gmail.com wrote:
Hello
On Thu, Apr 26, 2012 at 10:09 PM, Guofeng Zhang guof...@radvision.com wrote:
I need to copy or install lein-cljsbuild-0.1.8.jar to LEIN's plugins
directory. Then each steps works well.
This command should do that for you:
lein plugin install lein-cljsbuild 0.1.8
--
Sean A Corfield -- (904)
On Tue, Apr 24, 2012 at 8:30 PM, Michael michael-a...@db.com wrote:
Would it be possible to make resultset-seq a dynamic var
No, that certainly is not going to happen. Dynamic vars are not the
right way to build an API in Clojure.
bind in custom result set mapping without having to make two
It looks like there are two issues here...
On Tue, Apr 24, 2012 at 8:04 PM, Michael michael-a...@db.com wrote:
(defn- oracle-insert-sql [table pk-col-name pk-seq-name ks]
(let [cols (apply str (interpose \, (map jdbc/as-identifier ks)))
n (count ks)
qmarks (apply str
Aphyr looks interesting, hadn't seen it before.
Mentioning lamina and reactive extensions reminded me of the clojure
asynchronous events page,
http://dev.clojure.org/display/design/Asynchronous+Events which I
probably should read once more ;)
On Mon, Apr 23, 2012 at 6:29 PM, Toby DiPasquale
Fantastic work Tim. I think this can be a really important part of the future
for Clojure hacking with Emacs. Let us know how you get on.
Sam
--
http://sam.aaron.name
On Thursday, 26 April 2012 at 15:27, Tim King wrote:
I have been working on a fork of Phil's nrepl.el for the past few
On 27 April 2012 06:43, Shantanu Kumar kumar.shant...@gmail.com wrote:
That sounds quite interesting! Do you have a Github URL of the project
to share?
Looks like here:
https://github.com/pelle/clauth
Shantanu
On Apr 25, 12:29 am, Pelle Braendgaard pel...@gmail.com wrote:
This is a simple
Hello,
I'm not sure if what I'm doing is supported or whether I'm doing it
incorrectly.
I have two ClojureScript namespaces:
(ns foo)
(defprotocol SomeProtocol
(some-function [this]))
(ns bar
(:use [foo :only (SomeProtocol)]))
(defrecord SomeRecord
SomeProtocol
(some-function [_]
Ok, so the function (let's name it for-all) is:
(defn for-all
A goal that succeeds if all goals succeeds.
[goal first-param list]
(fresh [head rest]
(conso head rest list)
(goal first-param head)
(for-all goal first-param rest)))
it takes 3 parameters. 1. a goal, 2. first
Lets say we have child - father and child - mother relationship and derive
from it child - parent relationship (via goal) . In clojure logic I can
create goals which can answer questions like: children-of,
grandchildren-of, all-descendants-of, all-ancestors-of very easily.
But how one create
Hi,
I was looking for socket libraries in clojure. The requirement is to
connect via telnet to a mainframe based system and run commands on it.
Thanks,
Murtaza
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
I was looking for socket libraries in clojure. The requirement is to connect
via telnet to a mainframe based system and run commands on it.
Can't you use JVM interop directly?
There is an example here -
http://nakkaya.com/2010/02/10/a-simple-clojure-irc-client/
Regards,
BG
--
Baishampayan
Yes go with Java interop...sockets are pretty straight forward.
Jim
On 27/04/12 11:15, Baishampayan Ghose wrote:
I was looking for socket libraries in clojure. The requirement is to connect
via telnet to a mainframe based system and run commands on it.
Can't you use JVM interop directly?
Take a look at aleph:
https://github.com/ztellman/aleph
Aleph is a high-level library for event-driven network programming.
On 04/27/2012 06:12 PM, Murtaza Husain wrote:
Hi,
I was looking for socket libraries in clojure. The requirement is to
connect via telnet to a mainframe based system
This is great, and working for me, thanks :)
On Thursday, 19 April 2012 14:04:07 UTC+1, Jonas wrote:
Eastwood[1] is a Clojure lint tool which uses the analyze[2] library to
inspect
namespaces and report possible problems. Currently it should work
with projects running Clojure 1.3.0 and
On Thu, Apr 26, 2012 at 23:35 -0700, Sean Corfield wrote:
On Tue, Apr 24, 2012 at 8:30 PM, Michael michael-a...@db.com wrote:
Would it be possible to make resultset-seq a dynamic var
No, that certainly is not going to happen. Dynamic vars are not the
right way to build an API in Clojure.
I guess it is https://github.com/pelle/clauth
./vijay
On Friday, April 27, 2012 6:43:29 AM UTC+2, Shantanu Kumar wrote:
That sounds quite interesting! Do you have a Github URL of the project
to share?
Shantanu
On Apr 25, 12:29 am, Pelle Braendgaard pel...@gmail.com wrote:
This is
On Fri, Apr 27, 2012 at 11:12 AM, Murtaza Husain
murtaza.hus...@sevenolives.com wrote:
Hi,
I was looking for socket libraries in clojure. The requirement is to connect
via telnet to a mainframe based system and run commands on it.
Thanks,
Murtaza
Note that there is more to telnet protocol
Thank you Sam and Phil for the encouragement. And thanks Phil for getting
it rolling with the initial version.
I'll update the group as soon as I feel I have something ready to test.
Cheers,
Tim
On Fri, Apr 27, 2012 at 12:40 AM, Sam Aaron samaa...@gmail.com wrote:
Fantastic work Tim. I think
Depending on what you are trying to do, you will probably also want to
have a look at pallet [1], clj-ssh [2], and clojure-control [3].
[1] http://palletops.com/
[2] https://github.com/hugoduncan/clj-ssh
[3] https://github.com/killme2008/clojure-control
On Fri, Apr 27, 2012 at 6:15 AM,
Is suspect this being a bug: When a recursive function call is used as a
default value in a map, its tail position is not recognized. The problem
can be easily demonstrated using the fixpoint function. The fixpoint
function is usually defined as
(defn fix [f x] (let [v (f x)] (if (= v x) x
Hi,
(defn fix2 [f x] (let [v (f x)] ({x x} v (recur f v
recur is not in the tail position. The call to the map is the tail call.
So the result is as expected.
Kind regards,
Meikel
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this
Some of you may already be aware of of Domina, a jQuery-inspired DOM
manipulation library I've been working on. It's been out there for a while,
but I just finished up a round of changes that I think bring it to a
certain degree of completion for basic use (although there's definitely a
lot of
Sure? The semantics of the default value corresponds to a 'if', doesn't it?
From this viewpoint, the default value is in tail position. And why does
the non-tailrecursive version not run as expected?
Dominikus
Am Freitag, 27. April 2012 16:45:44 UTC+2 schrieb Meikel Brandmeyer
(kotarak):
Using a map instead of if means that it is evaluated as a function call.
Unlike the if form, function calls eval their arguments. So the (recur)
form is getting eval'd prior to being passed to the map/function, which
isn't a tail position.
That's why if is a special form/macro, not a regular
Hi,
I am trying to use google charts from clojurescript, however cant get it
working. I have included both the js code from google's site and my
clojurescript conversion. Any help in figuring out the problem will be
appreciated.
Thanks,
Murtaza
JS Code -
script type=text/javascript
Might I suggest a good book on Prolog?
http://www.amazon.com/Prolog-Programming-Artificial-Intelligence-Bratko/dp/0201403757
http://www.amazon.com/The-Art-Prolog-Second-Edition/dp/0262193388
I also recommend close readings of The Reasoned Schemer and Byrd's
dissertation - both are linked to in
Does this work in Clojure? If so file a ticket in JIRA.
David
On Fri, Apr 27, 2012 at 5:09 AM, Stuart Campbell stu...@harto.org wrote:
Hello,
I'm not sure if what I'm doing is supported or whether I'm doing it
incorrectly.
I have two ClojureScript namespaces:
(ns foo)
(defprotocol
That makes a lot more sense with the variable names, thanks! I think
I hadn't realized until this point that a goal is also a function.
Much to learn
On Apr 27, 2:53 am, Daniel Kwiecinski daniel.kwiecin...@gmail.com
wrote:
Ok, so the function (let's name it for-all) is:
(defn for-all
Looking forward to trying it out. Has anyone used both Enfocus and
Domina? Any comparisons on the usage and features of the two? Also,
has anyone put either of these together with JQuery UI code?
On Apr 27, 7:47 am, Luke VanderHart luke.vanderh...@gmail.com wrote:
Some of you may already be
lein-cljsbuild is now becoming the tool of choice for many CLJS devs. One
thing I've noticed about domina is that it's not particularly careful about
declaration order. This results in a spew of compiler warnings when
building your project with domina. It would be nice to sprinkle the code
with
I received the following error when performing a `lein deps` for this
version [domina 1.0.0-beta4]
Could not find artifact org.clojure:clojurescript:pom:0.0-1069 in
central (http://repo1.maven.org/maven2)
Could not find artifact org.clojure:clojurescript:pom:0.0-1069 in
clojars
Big thanks for the links. Re. my question, is it doable to aggregate? Does
it make sense to agregate in LP at all?
Daniel
On Apr 27, 2012 4:30 PM, David Nolen dnolen.li...@gmail.com wrote:
Might I suggest a good book on Prolog?
It can be done with project.
David
On Fri, Apr 27, 2012 at 4:25 PM, Daniel Kwiecinski
daniel.kwiecin...@gmail.com wrote:
Big thanks for the links. Re. my question, is it doable to aggregate? Does
it make sense to agregate in LP at all?
Daniel
On Apr 27, 2012 4:30 PM, David Nolen
Thanks David.
--
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 this group, send
I got it, guys! Thanks a lot! This non-tailrecursive version works as
intended:
(defn fix2 [f x] (let [y (f x)] (eval ({x x} y (list 'fix2 f y)
Dominikus
Am Freitag, 27. April 2012 17:00:52 UTC+2 schrieb Luke VanderHart:
Using a map instead of if means that it is evaluated as a function
Try this:
(defn add-rows []
(let [data (js/google.visualization.DataTable.)]
(.addColumn data string Topping)
(.addColumn data number slices)
(.addRows data (clj-js [[Mushrooms 3] [Onions 1] [Olives 1]]))
data))
(defn chart-options []
(clj-js {:title How much Pizza i ate
Thanks everyone involved for the 1.4 release. One issue:
In 1.4, tagged literals need to be defined, otherwise the reader blows up:
user= [:a #foo/bar :b]
RuntimeException No reader function for tag foo/bar
clojure.lang.LispReader$CtorReader.readTagged (LispReader.java:1164)
RuntimeException
Hi All,
There exists a log function by Konrad Hinsen
http://richhickey.github.com/clojure-contrib/generic.math-functions-api.html
But, does it work in Clojure 1.3 and above? If so, how would I start using
it without leiningen?
Incanter has a log function but whenever I do (use '(incanter core))
I'm good! Incanter has a log function adding :jvm-opts
[-Djava.awt.headless=true]
to project.clj gets rid of the window.
On Fri, Apr 27, 2012 at 7:41 PM, Sean Neilan sneil...@gmail.com wrote:
Hi All,
There exists a log function by Konrad Hinsen
Hey Mark,
It worked ! Thank for your help.
Murtaza
On Saturday, April 28, 2012 5:06:49 AM UTC+5:30, Mark Rathwell wrote:
Try this:
(defn add-rows []
(let [data (js/google.visualization.DataTable.)]
(.addColumn data string Topping)
(.addColumn data number slices)
I'm sorry I forgot to include it.
I'm happy to answer any questions about it.
P
On Fri, Apr 27, 2012 at 5:25 AM, Vijay Kiran m...@vijaykiran.com wrote:
I guess it is https://github.com/pelle/clauth
./vijay
On Friday, April 27, 2012 6:43:29 AM UTC+2, Shantanu Kumar wrote:
That sounds
Actually I just realized that you can use the java math api. Whoops.
http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html
(math/sqrt 2)
2.0
(math/log 4)
1.3862943611198906
Hooray!
On Fri, Apr 27, 2012 at 7:44 PM, Sean Neilan s...@seanneilan.com wrote:
I'm good! Incanter has a log
On Fri, Apr 27, 2012 at 4:14 AM, Wolodja Wentland babi...@gmail.com wrote:
Could you elaborate on that please? I see that dynamic variables are used
quite
often to give the user the ability to configure/change the behaviour of a
library. That approach is often coupled with a macro that
44 matches
Mail list logo