For everyone's benefit - I installed nrepl and used nrepl-jack-in which
works fine (with the same project structure).
Manoj.
On Friday, January 18, 2013 4:54:41 PM UTC+5:30, mmwaikar wrote:
Hi,
I have a project which uses both Clojure and Clojurescript. Hence in its
project.clj file, I
Hi,
I have a project which uses both Clojure and Clojurescript. Hence in its
project.clj file, I have -
:source-paths [src/clj]
and for Clojurescript -
{:builds
[{;; CLJS source code path
:source-path src/cljs
;; Google Closure (CLS) options
Hi,
I can't figure out a way to call the below method using Clojure -
Files.readAttributes(file, BasicFileAttributes.class)
because I don't know what to pass for the second parameter
BasicFileAttributes.class.
Also when I am calling the other method of the same class -
(Files/getAttribute
Hi,
I am trying to do something with Clojurescript using Domina etc. Here is my
project.clj -
(defproject maze 0.1.0-SNAPSHOT
:description FIXME: write description
:url http://example.com/FIXME;
:license {:name Eclipse Public License
:url
Hi,
I am experimenting with clojurescript, and have the following page -
(ns maze.views.mm
(:use [noir.core :only [defpartial]]
[hiccup.page :only [html5 include-js]]
[hiccup.element :only [javascript-tag]]
[maze.views.cssgenerator]
[maze.constants]))
(defn
A +10 from me. Would definitely attend any such event.
Maybe, we can try fixing bugs in any of the open source Clojure libraries.
Thanks,
Manoj.
On Tuesday, July 17, 2012 3:45:39 PM UTC+5:30, Murtaza Husain wrote:
Hi,
Anyone interested in organizing a clojure dojo in Pune ?
Thanks,
Thanks for your responses Creighton and Kevin.
D3 looks cool, so should cljs-3D be, ditto for Enlive / Enfocus.
All the best for your efforts,
Manoj.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Hi,
My question is about design of libraries for ClojureScript.
So for ex, there is clojure.test which has some public API. Now assume one
has used it and is comfortable with its API.
Now he has to write some ClojureScript code and wants to write some unit
tests as well.
Obviously, he'll use
Right. I had several tabs open, and I was reading the Clojure One tutorial
and the same thing happened.
Then I switched to the tab with the Development page and then when I ran
alert, I saw it there and it returns.
--
You received this message because you are subscribed to the Google
Groups
Heart felt thanks to everyone who contributed to this.
I hope to catch up with my lack of JS skills through ClojureScript :)
Everything about ClojureScript is exciting stuff.
Cheers,
Manoj.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
Hi,
I've seen this particular discussion -
https://groups.google.com/d/topic/clojure/Ia9uBDGuLmM/discussion
I am talking specifically about multimethods here. So if you do -
(defmulti my-method
some doc string
identity)
then this particular doc-string is not visible in emacs (like in an
Thanks BG. I wasn't aware of the with-redefs. Then Gaz's way is cool.
--
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
I think you should look at the binding function -
http://clojuredocs.org/clojure_core/clojure.core/binding
In my tests, I am using this to run the same tests using two different
functions, which are supposed to do the same thing (using two different
methods, internally).
In your case though,
I can understand your situation because I've seen a C# code where most of
the classes in some 5-6 different assemblies had all (or 90%) static methods
:)
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Clojure.jar does not have a project.clj file because it is all java code,
right? If it is all java code then it's a (java) jar file.
I found this convention of bundling a clojure jar file with a project.clj
file - lein does this and that's all I know - so I was curious to know if
every
other
In a REPL,
user (defn hello [name]
(println hi, name))
#'user/hello
user (meta (var hello))
{:ns #Namespace user, :name hello, :file NO_SOURCE_FILE, :line 1,
:arglists ([name])}
Please also check - http://clojuredocs.org/clojure_core/clojure.core/meta
--
You received this message
Thanks everyone for your inputs and the discussion.
Manoj.
--
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
Hi,
I want to read the contents of one of the files in a jar file. Here's the
documentation -
http://download.oracle.com/javase/6/docs/api/java/util/jar/JarFile.html
Now, the doc. of entries method specifies it returns an
EnumerationJarEntry, whereas -
(map #(class %) (enumeration-seq
But then why does this fail -
(slurp (.getInputStream (first (enumeration-seq (.entries f)
with - No matching field found: getInputStream for class
java.util.jar.JarFile$JarFileEntry.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
Oops. Sorry, my bad. I am not using the JarFile object for the call.
--
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
Hi,
I read in Clojure in Action book by Amit Rathore, that #^ associates
metadata for the next form. He also mentions that it is deprecated. So what
is the current way of doing it?
Also, in code like this -
(defn filenames-in-jar
Returns a sequence of Strings naming the non-directory entries
Hi,
Is it mandatory that a clojure jar file, no matter packaged using whichever
tool (other than leiningen, for ex.), should have a project.clj file?
Thanks,
Manoj.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Hi,
Most of the examples I see about using the lazy-seq fn. make use of cons to
build the list (or a seq).
Can we not use lazy-seq with a conj? And why?
If it possible to use lazy-seq with a conj, then an example would be great.
Thanks,
Manoj.
--
You received this message because you are
It has happened to me too a couple of times (I can't explain why, though).
However, I've done *pin as app tab* for the clojure docs tab (this
functionality is available in latest versions of Firefox), so even if I
reopen FF, I don't get this problem often.
--
You received this message because
I too used to do lein swank from the cmd prompt and then used to load emacs
and then used to M-x slime-connect.
However I've come to know three modes in emacs - multi-term, shell and
eshell mode (which is like a command prompt in emacs), so you can do M-x
multi-term, M-x shell or M-x eshell.
Hi,
There is no jar available for StringTemplate in clojars. But StringTemplate
v3.2 jar is available in Maven. So I included the necessary entry for
StringTemplate in project.clj and tried downloading using lein deps. It
gives me the below error -
Downloading:
Thanks Shantanu and Daniel.
I am trying to merge some functionality from two different projects, so the
credentials could be stored in properties file or the project.clj file. And
mine is not a leiningen plugin so I parsed the project.clj file.
--
You received this message because you are
Hi,
Assuming there are some DB credentials specified in a project.clj file as a
map, how should I read those credentials in my clojure code -
1) should I use slurp and then parse that text?
2) should I (use 'leiningen.core) and then (load-file project.clj)
3) or something else
Please let me
Thanks again Meikel. Where can I read about things like bindRoot, intern or
to be precise java-clojure interop?
--
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
Thanks Meikel, I tried the below stuff -
package com.codionics.flyway;
import clojure.lang.RT;
import clojure.lang.Var;
public class wrapper {
static final Var symbol = RT.var(clojure.core, symbol);
static final Var require = RT.var(clojrue.core, require);
static final Var keyword
Hi,
I am using the Lobos library - https://github.com/budu/lobos
In it there's a function create, which is called like this - (create db
(table :some-name)), where db is earlier defined as - (def db
{:classname org.postgresql.Driver
:subprotocol postgresql
:user postgres
Thanks a lot for all the replies.
Sorry for the trouble Allen that the highlighted parentheses caused you -
Michael is absolutely right, I wrote them in Google groups which might have
caused the error - next time I won't highlight anything.
Finally, I used apply with insert-values.
Regards,
Hi,
I've to use clojure.contrib.sql's insert-records fn.
Usage: (insert-records table records)
Inserts records into a table. records are maps from strings or
keywords (identifying columns) to values.
So, for ex. this works -
(clojure.contrib.sql/insert-records :blogs
Thanks a lot Vincent. At least now I can run Emacs with Clojure,
otherwise I was stuck at the very first step :)
Thx again.
Manoj.
On Apr 21, 8:06 pm, Vincent Liard vincent.li...@free.fr wrote:
Hi Manoj,
unreadable message: (:emacs-rex (swank:autodoc (quote (d swank::
%cursor-marker%))
I am facing problem in using Emacs with Clojure. I am able to use it
with Lisp without any problems.
The problem is - I start the server using lein swank (from my
project dir) and then I start Emacs using M-x slime-connect but then
as soon as I start typing something in Emacs I get the error -
Hi,
I am a newbie to Ubuntu (10.10) and Emacs (23). I have been able to
satisfactorily setup Eclipse and CCW, thanks to feedback from CCW user
group members. However, I wanted to explore Clojure through Emacs.
I have clojure-mode 1.7.1, slime and slime-repl 20100404 installed.
I've also
But the same enter key works properly when I am using Lisp, so why
shouldn't it be the default in Clojure as well?
Also, after removing clojure-mode, when I try to install swank-
clojure, it again installs the clojure-mode, but fails to install
itself?
regards,
Manoj.
On Mar 24, 12:45 am,
+1 (though I'll have to read about tmux first) :)
Regards,
Manoj.
On Mar 10, 12:15 am, jim jim.d...@gmail.com wrote:
I gave a talk at CodePaLOUsa on monads and got some favorable
feedback. So I thought I'd offer to do a live training session on
monads using pretty much the same material, but
Hi,
Sorry for posting to an old thread, but thought this might be a good
one to ask.
My question is this - isn't ClojureBox an Emacs? If yes, then why
don't we include it in the above Wiki?
Thanks,
Manoj.
On Apr 7, 3:39 pm, Avi Schwartz the1...@gmail.com wrote:
On March 30th Eric Thorsen
I work on .Net, so my observation could be totally wrong, but I think
JavaFx could be an option to consider (specially because of its JSON
kind of syntax).
I am working on a WPF project currently, and although WPF is big and
complex, the kind of UIs one can build with it is amazing, and JavaFx
come from the solution or some other way of setting up
a context for REPLs.
2. Have the plugin know about Clojure files.
Syntax highlighting, completion, folding, etc.
3. Debugger support
Eric
On Mar 9, 1:47 pm, mmwaikar mmwai...@gmail.com wrote:
Forgot to ask the below mentioned questions
Is it possible to write a plug-in in Clojure CLR? And if it is, would
you prefer it in Clojure CLR or C# is fine? Also do you want both REPL
and syntax highlighting for clj files in Visual Studio?
Thanks,
Manoj.
On Mar 8, 2:17 pm, Eric Thorsen ethor...@enclojure.org wrote:
Is there/is anyone
Forgot to ask the below mentioned questions earlier -
Which version of Visual Studio are you targeting - 2008 or 2010?
Do you have a development road-map for your plug-in features?
Thanks,
Manoj.
On Mar 9, 1:05 pm, mmwaikar mmwai...@gmail.com wrote:
Is it possible to write a plug-in in Clojure
Thanks everyone for your enlightening responses.
On Sep 25, 3:35 am, Rick Moynihan rick.moyni...@gmail.com wrote:
2009/9/24 wmacgyver wmacgy...@gmail.com:
Excellent summary of each language's sweet spot. I'd like to suggest a
different book for Erlang though.
For learning Erlang, I'd
With respect to Stuart's comment above - Erlang is designed for
distributed operation across many machines; Clojure is designed for a
single machine with many cores., how are Clojure and Haskell
different? I am just curious to know how do Haskell, Clojure and
Erlang compare.
On Sep 24, 4:36 am,
Hi,
I am getting a little confused in how apply works. I thought that
(apply f args* argseq) means applying f to each of the elements of
argseq one by one (assuming one doesn't pass any args), but it is not
like that. So for ex,
I wrote this: (defn mul5 [arg] (* arg 5))
and wanted to do this:
will be stopped at each step.
Regards,
--
Laurent
2009/7/22 mmwaikar mmwai...@gmail.com
Hi,
I am getting a little confused in how apply works. I thought that
(apply f args* argseq) means applying f to each of the elements of
argseq one by one (assuming one doesn't pass any args
Arghhh...this was causing me a lot of pain. Thanks for the reply.
On Jul 13, 11:54 pm, Richard Newman holyg...@gmail.com wrote:
Manoj,
require is for Clojure libraries only.
You probably want import:
http://clojure.org/api#toc297
but note that you don't need to *load* Java libraries per
Hi,
I am basically a .Net programmer, trying out Clojure on both java
and .net. I have the following bat file, which I use to run Clojure -
java -cp C:\Program Files\Java\jdk1.6.0_13\jre\lib\rt.jar;D:\Manoj
\Languages\Clojure\clojure\clojure-contrib.jar;D:\Manoj\Languages
)
at AFunction_impl.invoke()
at REPLCall(Closure )
Please let me know where's the issue.
Thanks and regards,
Manoj.
On Jul 2, 11:43 pm, Baishampayan Ghose b.gh...@ocricket.com wrote:
mmwaikar wrote:
Thanks Michael, and you are spot on about your observation on
parentheses :) but when I wasn't putting (def
Thanks a lot Daniel for your suggestions. As per my understanding
Clojure for Java and .Net are two implementations of the same
language, but they have to support different things because the
underlying platforms support different things - e.g. extension methods
(are in C# but most likely not in
Wood esiot...@gmail.com wrote:
Hi
2009/7/1 mmwaikar mmwai...@gmail.com:
Hi,
I am learning clojure these days, but on .Net. I have the following
code -
I only have a tiny bit to add to what Daniel's already said.
[...]
(defn GetSubfolderName [filename]
((def name-wo-extn
Hi,
I am learning clojure these days, but on .Net. I have the following
code -
(import '(System.IO Path Directory File DirectoryNotFoundException))
(defn starts-with-hmorx [name]
(if (or (= (.ToUpper (.ToString name)) H)
(= (.ToUpper (.ToString name)) M)
Hi,
How can one contribute to the development of Clojure on CLR?
I was trying the following - (.ToString DateTime/Now) and was getting
- System.Exception: Unable to find static field: Now in
System.DateTime.
I added some code in Reflector.cs, Compiler.cs and StaticFieldExpr.cs
and got it
a pull request.
Paul
On Wed, Jun 10, 2009 at 10:25 PM, mmwaikar mmwai...@gmail.com wrote:
Hi,
How can one contribute to the development of Clojure on CLR?
I was trying the following - (.ToString DateTime/Now) and was getting
- System.Exception: Unable to find static field
55 matches
Mail list logo