In addition to Andy's points, it's also worth pointing out that
reaching a 1.0.0 release for a contrib library is a big deal and
requires Clojure/core approval. See:
http://dev.clojure.org/display/design/Contrib+1.0.0+Releases
On Tue, Jan 15, 2013 at 1:10 AM, Josh Kamau joshnet2...@gmail.com
On Jan 16, 2013, at 1:45 AM, larry google groups wrote:
For anyone else who might make the same mistake I did, I changed this:
(GET /admin request (friend/authorize #{::admin} (admin
request)))
to this:
(GET /admin request (friend/authorize #{::admin} {} (admin
request)))
adding
For who is interested I updated the last tutorial on clojurescript/ajax to
version 1.0.2-SNAPSHOT of domina. I had to downgrade from leion-cljsbuild
0.2.10 to 0.2.9 due to an annoying delay time after successfully CLJS
compilation before lein cljsbuild once returns.
My best
mimmo
--
You
Are you using the keyword-params middleware? It's not in the code you
initially provided, and you don't mention adding it after seeing the note
about it being required. If you are submitting a value for the
`username` parameter to /login, but the failure redirect does not echo
that username,
On 2013-01-15, at 5:00 PM, Justin Kramer jkkra...@gmail.com wrote:
Formative is a library for dealing with web forms. Features:
Describe forms using simple data
Render forms via pluggable renderers (comes with Bootstrap and other
renderers built-in)
Parse submitted form data from Ring
I define a var with user info like this:
(ns kiosks-clojure.fake-data-for-development
(:require [cemerick.friend :as friend]
(cemerick.friend [workflows :as workflows]
[credentials :as creds])))
(def fake-data
{
:users {:root {:username
I define a var with user info like this:
(ns kiosks-clojure.fake-data-for-development
(:require [cemerick.friend :as friend]
(cemerick.friend [workflows :as workflows]
[credentials :as creds])))
(def fake-data
{
:users {:root {:username
Hi all,
After 15 off years of using IDEs I am making the jump into Emacs. I have
read http://dev.clojure.org/display/doc/Getting+Started+with+Emacs
and https://github.com/technomancy/emacs-starter-kit and I am just at the
point where I have stopped yelling at paredit and starting to
you can install autocomplete package (available via package.el on
MELPA) - it will provide dictionary based name completion for JS
On Wed, Jan 16, 2013 at 3:29 PM, Colin Yates colin.ya...@gmail.com wrote:
Hi all,
After 15 off years of using IDEs I am making the jump into Emacs. I have
read
On Jan 16, 2013, at 7:29 AM, Colin Yates colin.ya...@gmail.com wrote:
Hi all,
After 15 off years of using IDEs I am making the jump into Emacs. I have
read http://dev.clojure.org/display/doc/Getting+Started+with+Emacs and
https://github.com/technomancy/emacs-starter-kit and I am just at
Hi Bob,
Thanks for sharing your use case. One possible approach to fieldsets (among
others) is to have the renderer split fields on e.g. :heading and put each
group into a fieldset. Another would be to create a :fieldset field type
that itself contains other fields. I've created a GitHub issue
On Jan 16, 2013, at 9:07 AM, larry google groups wrote:
I define a var with user info like this:
(ns kiosks-clojure.fake-data-for-development
(:require [cemerick.friend :as friend]
(cemerick.friend [workflows :as workflows]
[credentials :as
Thanks Alex.
Charlie - I hear you. You are right to (very gently) point out that I
should embrace new idioms. Boy it is hard though :). I have to say that I
too found it much less of a shock then I thought. I am very familiar with
Linux and shell scripts so I had that skillset already which I
Hi All,
Something that came up last night in the blank? thread. What is a good way
to show someone the advantages of Clojure. Something that is simple, not
too complicated, easily understood, shows a (significant) benefit, etc.
Any ideas? (As said in the other thread, I have used the blank?
Hi,
I based a recent presentation in a local user group on the bank account
example: two accounts, deposit, withdrawal, transfer. Starting with maps.
Building the code. Noticing that no locks are required. Replacing maps with
records w/o changes to underlying code. Easily testing pure
emacs-live is a pretty great starting point. It's the
'whole-kitchen-sink', but it's great for finding out what you don't
know.
emacs-rocks videos are good (and short)
I also put off learning it until late last year, and I'm not
completely converted. I *love* it and would be very unhappy if I
How about something from the world of concurrency? It is not as easy to
demonstrate, though. Many true advantages are too subtle for elevatorspeak,
though. For example, people used to pitch *pmap* that way: instantly turn a
sequence transformation into a multicore-saturating performance king.
I missed the project explorer at first, until I figured out that I can
C-x C-f and just start typing, and emacs will fuzzy match what I might
be looking for, including files in directories other than current.
This function is contributed by some package and is not the default, at
least
On Jan 16, 2013, at 8:29 AM, Marko Topolnik marko.topol...@gmail.com wrote:
I missed the project explorer at first, until I figured out that I can
C-x C-f and just start typing, and emacs will fuzzy match what I might
be looking for, including files in directories other than current.
Hi:
I use Everything http://www.emacswiki.org/emacs/Everything to find
files in project. Just type a part of the name, all files filter by your
typing listed for you to choose from. Something like Eclipse's
Ctrl +Shift + R (or Command + Shift + R on mac) . But you need some time
to
How about Clojure's web
1. Plain Clojure function as handler, request and response are just
maps, they are printable.
2. Easy testable: handler is a function, pass a request, get the
response, assert the response is wanted.
3. Easy mockable: use bindings to mock centain
I have trouble finding a simple example, but I know I have written a
lot of apps that have less than 200 lines of code, but if I had
written them in PHP, they would have been a mess.
And consider this: I worked at WineSpectator.com for awhile, and they
had me writing big import scripts for the
Regarding the explorer, I keep several frames open (a frame is the
word that Emacs uses for window -- I keep several windows open) and
in one of those windows I'll keep my bookmarks (a bookmark is an alias
you can use in Emacs to jump to any location in any file).
But I also feel that Emacs is
CLJS: protocol interfaces don't seem to support variable args in the arglist,
like [ opts]
Is there a CLJS issue# that addresses this?
(coudn't fine one… but I've been wrong before)
Thanks, FrankS.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To
Fellow Clojurians, allow me to introduce a new Google+ Datomic Community:
https://plus.google.com/communities/109115177403359845949
If you have an interest in Datomic, please join us there. And if you've
already seen my earlier announcements on the G+ Clojure Community or on the
Google Groups
They aren't supported in Clojure either.
On Wed, Jan 16, 2013 at 11:11 AM, Frank Siebenlist
frank.siebenl...@gmail.com wrote:
CLJS: protocol interfaces don't seem to support variable args in the
arglist, like [ opts]
Is there a CLJS issue# that addresses this?
(coudn't fine one… but I've
Here's a quick example of getting all the streets in Baltimore from a 1GB
XML file of Maryland map data. I shudder to think of how to do this in
java. Takes about 60 seconds to run on my box.
https://gist.github.com/4548456
On Wednesday, January 16, 2013 10:08:41 AM UTC-5, Thomas wrote:
You're still not using wrap-keyword-params.
Thanks. I changed the routes so I now have:
(def app
(- app-routes
(friend/authenticate {:credential-fn (partial creds/bcrypt-
credential-fn (:users @interactions))
:workflows [(workflows/interactive-
I realize this is name space qualified:
::admin
::user
I'm actually referencing these in my core namespace, though the user
info is defined in (def fake-data ;; big map of fake data) which is in
a different name space. I am not sure how that would effect the way
Friend interprets the data.
Just a few things, you might find interesting
* anything/helm: http://www.emacswiki.org/Anything
* speedbar (used that in my early years; got rid of it eventually)
* mtorus: http://www.emacswiki.org/emacs/MTorus (shameless self-plug)
* M-. on functions
* M-x ffap
* iswitchb-buffer (just keep the
Oh, I think I figured this out. I re-read this:
https://github.com/cemerick/friend/#authentication
And I see the keys here are strings:
(def users {root {:username root
:password (creds/hash-bcrypt admin_password)
:roles #{::admin}}
jane
So I went ahead and implemented the first solution I mentioned: the default
renderer now groups fields into fieldsets, split by :heading and :submit
fields. Each fieldset has a class that you can target with css/js. You can
see the result in the demo - http://formative-demo.herokuapp.com/.
I'm starting off with 24, so not sure what was default in 23… but C-x C-f
in 24 lets you fuzzy match to a particular directory, then type a file
name. The minibuffer alerts you to the fact that there's no match, but you
simply hit return, then return again to confirm, and the new file is
Thanks all. LightTable does look awesome and I haven't invested enough
time to fully get to grips with it yet, but I am not sure it would be an
upgrade for me (wow - I am really going with the flame bait today!).
Coming from IntelliJ, which is a pretty fantastic general (i.e. Java,
scala,
Great! emacs is my favorite editor, I used it for many years now except for
Java dev because I'm too lazy to configure intelli-sens... In the following
there is all I *use* in emacs and which make you ready to use emacs - as I
am - daily.
I use emacs 24 and the following only needs a vanilla
Thanks a bunch.
On 16 Jan 2013 16:34, Amirouche Boubekki amirouche.boube...@gmail.com
wrote:
Great! emacs is my favorite editor, I used it for many years now except
for Java dev because I'm too lazy to configure intelli-sens... In the
following there is all I *use* in emacs and which make you
I am getting closer, I think. I changed the keys from keywords to
strings and that seemed to let me login. But if I go to /logout, I
get:
2013-01-16 11:37:25.875:WARN:oejs.AbstractHttpConnection:/logout
java.lang.ClassCastException: java.lang.String cannot be cast to
clojure.lang.IPersistentMap
Ouch!
Where is that documented?
Cannot find it in the defprotocol docstring,
not in http://clojure.org/protocols;
nor http://clojuredocs.org/clojure_core/clojure.core/defprotocol;.
Just a mention by Alan Malloy:
https://groups.google.com/forum/?fromgroups=#!topic/clojure/HyoSBEfEF4w;
Thanks,
Looks interesting, and well-documented. I will give this a try on my next
project.
Thanks!
On Wednesday, January 16, 2013 at 10:31 AM, Justin Kramer wrote:
So I went ahead and implemented the first solution I mentioned: the default
renderer now groups fields into fieldsets, split by
I am ignorant about the implications of using :: to namespace vars.
The fact that I have ::admin in one namespace:
:users {root{:username lawrence
:password (creds/hash-bcrypt admin_password)
:roles #{::admin}
:created_at 2013-01-08
Not documented anywhere as far as I know. Also not documented is the fact
that destructuring *is* supported.
David
On Wed, Jan 16, 2013 at 11:46 AM, Frank Siebenlist
frank.siebenl...@gmail.com wrote:
Ouch!
Where is that documented?
Cannot find it in the defprotocol docstring,
not in
From what I have read about keywords in Clojure, it does not seem like they
are garbage collected. The keyword params middleware seems to convert user
input into keywords. Putting two and two together, it seems like you could
DoS any server using this middleware by sending large amounts of random
Thanks for the confirmation.
I know that destructuring is supported in protocols as I'm using with much
pleasure - kind of assumed it would work as it wasn't documented not to work ;-)
I'll open up an jira-issue to improve the docs for defprotocol and supply a
patch.
-Frank.
On Jan 16,
Hi everyone,
Does anyone have a clue why this would perfectly run on the repl but
will throw NPE when run from the jar or via lein2 run (aot-ed)?
;;there exist global vars of the form 'xxx-NER-tags'
;;first the repl everything works as expected...I get the map back
PAnnotator.core=
On 2013-01-16, at 11:31 AM, Justin Kramer jkkra...@gmail.com wrote:
So I went ahead and implemented the first solution I mentioned: the default
renderer now groups fields into fieldsets, split by :heading and :submit
fields. Each fieldset has a class that you can target with css/js. You can
On Wed, Jan 16, 2013 at 7:38 AM, Charlie Griefer
charlie.grie...@gmail.com wrote:
I'm starting off with 24, so not sure what was default in 23… but C-x C-f in
24 lets you fuzzy match to a particular directory, then type a file name.
And if you've typed a new filename and it still tries to match
Colin Yates writes:
So my questions:
- is there a decent project explorer. I really miss the tree on the
left, editor on the right layout
Personally I believe this is an antipattern; IMO you should only see the
file structure it is relevant rather than the speedbar style of having
it
- is there a decent project explorer. I really miss the tree on the
left, editor on the right layout
Emacs is my favorite editor. But it is not perfect. My thoughts from my 8
years of using it are:
1. It is very customizable, as it builds on Elisp. After you learned some
Elisp programming
On Wed, Jan 16, 2013 at 8:33 AM, Amirouche Boubekki
amirouche.boube...@gmail.com wrote:
- is there a decent project explorer. I really miss the tree on the
left, editor on the right layout
speedbar: «C-X speedbar»
M-x speedbar - but that looks very interesting, thank you! It's kinda
funky in
On Wed, Jan 16, 2013 at 10:38 AM, Phil Hagelberg p...@hagelb.org wrote:
Of course the best solution is simply not to work on large projects and
break your codebase up into manageable units where you can keep the
project structure in your head, but I understand this isn't always
within your
My first guess would be *ns* is different when you try it at the repl.
To verify, try (ns-resolve 'PAnnotator.core (symbol ...
On Wed, Jan 16, 2013 at 1:31 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
Hi everyone,
Does anyone have a clue why this would perfectly run on the repl but will
ECB is another option. It shows the directory tree, methods/functions,
altered files (waiting to be saved) etc.
I get the sense that people avoid ECB but I've always used because it had
IDE-like functionality that I missed.
Configuring it can be a bit difficult but IMO worth it. I preferred
just want to say, that ECB that works with fresh Emacs/CEDET is
available from my repo: https://github.com/alexott/ecb
On Wed, Jan 16, 2013 at 7:32 PM, localredhead levi.str...@gmail.com wrote:
ECB is another option. It shows the directory tree, methods/functions,
altered files (waiting to be
On Wed, Jan 16, 2013 at 12:53 PM, Frank Siebenlist
frank.siebenl...@gmail.com wrote:
Thanks for the confirmation.
I know that destructuring is supported in protocols as I'm using with much
pleasure - kind of assumed it would work as it wasn't documented not to
work ;-)
I don't believe
Hi
I have been able to improve the performance of the core.logic based type
inference in symbol quite a lot based on David's suggestions
https://github.com/timowest/symbol/blob/master/src/symbol/types.clj
The biggest change was to use maps for the type environment
I wonder if it is possible
On Jan 16, 2013, at 12:03 PM, larry google groups wrote:
I am ignorant about the implications of using :: to namespace vars.
The fact that I have ::admin in one namespace:
:users {root{:username lawrence
:password (creds/hash-bcrypt admin_password)
Not sure I follow. What is there to further optimize? Is there something
that you're trying to do with q that you can clarify further?
Thanks,
David
On Wed, Jan 16, 2013 at 2:19 PM, Timo Westkämper timo.westkam...@mysema.com
wrote:
Hi
I have been able to improve the performance of the
Hi.
On Wednesday, January 16, 2013 9:27:37 PM UTC+2, David Nolen wrote:
Not sure I follow. What is there to further optimize? Is there something
that you're trying to do with q that you can clarify further?
The final output is map which includes form / type mappings. And the types
can be
Ok. But at that point can't you just process the type environment with
Clojure code? Or would you like those fresh vars to reify differently, as
in you want something other than _N?
On Wednesday, January 16, 2013, Timo Westkämper wrote:
Hi.
On Wednesday, January 16, 2013 9:27:37 PM UTC+2,
Hey guys, I've been wrestling with this for a bit. I
have [seancorfield/lein-daemon 0.5.0-SNAPSHOT] in my :plugins, which
seems to be the latest lein-daemon. 0.4.2 doesn't seem to work with lein2.
I'm using Lein 2.0.0-RC2 on Java 1.6.0_24 OpenJDK 64-Bit Server VM
When I try lein daemon start
On Wed, Jan 16, 2013 at 11:57 AM, Omer Iqbal momeriqb...@gmail.com wrote:
Hey guys, I've been wrestling with this for a bit. I have
[seancorfield/lein-daemon 0.5.0-SNAPSHOT] in my :plugins, which seems to
be the latest lein-daemon. 0.4.2 doesn't seem to work with lein2.
Well, that's an interim
Hi.
On Wednesday, January 16, 2013 9:56:39 PM UTC+2, David Nolen wrote:
Ok. But at that point can't you just process the type environment with
Clojure code?
But I get them out with replacements, is there any way to avoid this?
Or would you like those fresh vars to reify differently, as
Keywords are garbage-collected if no references to them exist. I think this
is as of Clojure 1.3, but I'm not sure exactly; perhaps it's always been
true. You can see it easily enough at
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Keyword.java#L32
-
there's a map from
On Wed, Jan 16, 2013 at 3:13 PM, Timo Westkämper timo.westkam...@mysema.com
wrote:
Hi.
On Wednesday, January 16, 2013 9:56:39 PM UTC+2, David Nolen wrote:
Ok. But at that point can't you just process the type environment with
Clojure code?
But I get them out with replacements, is there
Hi.
On Wednesday, January 16, 2013 10:20:36 PM UTC+2, David Nolen wrote:
On Wed, Jan 16, 2013 at 3:13 PM, Timo Westkämper
timo.we...@mysema.comjavascript:
wrote:
Hi.
On Wednesday, January 16, 2013 9:56:39 PM UTC+2, David Nolen wrote:
Ok. But at that point can't you just process the
There's a MELPA package (use `M-x package-list-packages') called
sr-speedbar that displays the speedbar in the same frame you are already
working in. I just stick sr-speedbar-toggle on F11 and call it a day. YMMV.
On Wednesday, January 16, 2013 1:45:35 PM UTC-5, Sean Corfield wrote:
On Wed,
On Wednesday, January 16, 2013 11:17:41 AM UTC-8, Aaron Cohen wrote:
On Wed, Jan 16, 2013 at 12:53 PM, Frank Siebenlist
frank.si...@gmail.comjavascript:
wrote:
Thanks for the confirmation.
I know that destructuring is supported in protocols as I'm using with
much pleasure - kind of
Aha, yep, whoops.
--Aaron
On Wed, Jan 16, 2013 at 3:54 PM, Alan Malloy a...@malloys.org wrote:
On Wednesday, January 16, 2013 11:17:41 AM UTC-8, Aaron Cohen wrote:
On Wed, Jan 16, 2013 at 12:53 PM, Frank Siebenlist
frank.si...@gmail.comwrote:
Thanks for the confirmation.
I know that
You can prevent logic var reification by binding *reify-vars* to false. run
is lazy so you need to wrap your run in a doall as well.
On Wednesday, January 16, 2013, Timo Westkämper wrote:
Hi.
On Wednesday, January 16, 2013 10:20:36 PM UTC+2, David Nolen wrote:
On Wed, Jan 16, 2013 at 3:13
I've just released 0.5.0. I had to get a patch into leiningen to make
things work in lein2, so you'll need to be using lein-2.0.0-RC1 or later.
I've also updated the readme at https://github.com/arohner/lein-daemon
Let me know how it goes!
Allen
--
You received this message because you are
On 16/01/13 18:57, Aaron Cohen wrote:
My first guess would be *ns* is different when you try it at the repl.
Thanks a million Aaron...That was very helpful. I can't believe I wasted
2 more than 2 hours for something like this!
Jim
--
You received this message because you are subscribed to
Bob,
1) Because form specifications are data, it's pretty easy to build one up
at runtime. One tool for mixins -- which I just noticed isn't documented
in the readme -- is *formative.core/merge-fields*. It makes it easy to
tweaks fields, or insert new fields before or after existing fields.
Alex - I recognized your name in this thread but couldn't pinpoint
how/where. You just reminded me that I'm using your ECB fork. Thanks for
pulling that together :)
On Wednesday, January 16, 2013 11:14:11 AM UTC-8, Alex Ott wrote:
just want to say, that ECB that works with fresh Emacs/CEDET
+1 sr-speedbar for NERDTree like functionality. Normal speedbar being a
different window always bothered me.
sr-speedbar + find-files-in-project is a pretty powerful combo.
On Wednesday, January 16, 2013 12:50:59 PM UTC-8, Gary Johnson wrote:
There's a MELPA package (use `M-x
(This is my first post. Please let me know if I've got the protocol wrong.)
First, I don't know that anyone else is even trying to run ClojureCLR in
ASP.NET. All I've seen is this
posthttps://groups.google.com/d/topic/clojure/np3sRVTMrS4/discussionfrom
March 2010. It looks like the
sr-speedbar seems to depend on the CL package being present? Not sure
I want to have that installed... I seem to recall cautions from
several folks about that...?
Sean
On Wed, Jan 16, 2013 at 2:51 PM, localredhead levi.str...@gmail.com wrote:
+1 sr-speedbar for NERDTree like functionality.
As a long time Eclipse user who dabbles with Clojure using CCW, I'd love to
hear your experience of emacs after you get used to it. Would you consider
writing up a blog entry?
On Wednesday, January 16, 2013 6:29:36 AM UTC-8, Colin Yates wrote:
Hi all,
After 15 off years of using IDEs I am
The traditional project explorer / directory tree I use is dirtree:
https://github.com/zkim/emacs-dirtree - with a couple of tweaks I found it
to be very useful.
It is based on tree-mode. There are other available file browser plugins
based on it.
--
You received this message because you are
On Jan 16, 2013 6:50 PM, Sean Corfield seancorfi...@gmail.com wrote:
sr-speedbar seems to depend on the CL package being present? Not sure
I want to have that installed... I seem to recall cautions from
several folks about that...?
cl.el ships with emacs and is widely used. Writing elisp
On Wed, Jan 16, 2013 at 8:34 PM, Phil Hagelberg p...@hagelb.org wrote:
cl.el ships with emacs and is widely used.
OK, so I shouldn't worry about this warning when I install a package then?
Warning: cl package required at runtime
I've seen that a couple of times and assumed it meant cl was not
= Schedule =
The Clojure/West 2013 schedule is available!
http://clojurewest.org/schedule
- Keynotes from Rich Hickey and Matthew Flatt
- A deep dive on the new Pedestal project from Relevance
- Design talks on domain driven design, abstraction, contracts, and
large systems
-
Another thing, that I want to mention, that some work for support of
Clojure in CEDET already started:
- there is lein project type for EDE, that automatically recognizes
lein projects, and uses lein to fetch classpath information, that can
be used for name completion (after parser will be
82 matches
Mail list logo