Hmm, I tried using ":join? true" and that didn't seem to solve the problem.
I was doing that so that I could start the server in a repl if I wanted to
and still use the repl.
On Friday, July 12, 2013 10:29:04 PM UTC-4, Gareth Jones wrote:
>
> Just to check - you have set ":join? false" so the t
Not sure, but "netstat -lanp" as root might get you a more comprehensive
port listing. Sounds like you have a process still holding on to the port
somehow. As a last resort there's always "killall java".
On Sat, Jul 13, 2013 at 7:27 AM, Daniel Higginbotham wrote:
> Hmm, I tried using ":join? tr
Hey folks,
Don't you hate it when someone releases a cool new library and you have to go
into a project and add an unwanted dependency just to try it out? Worse, maybe
you decide to 'lein new delete-me' and add it there.
No more! Stop this madness. Use lein-try to quickly launch a REPL with new
Hi
Sorry if it's obvious, but I don't know your skill level (system
administration wise). On one terminal ssh to the virtual box vm, start the
repl and run jetty as above. On a different terminal ssh to the same
virtual box vm and run:
curl -v http://localhost:8080/
What do you get?
Haim
On
Thanks Haim, I was getting "couldn't connect to host" when I tried curl.
I've gone ahead and rebuilt the server and now everything appears to be
working. Thanks everyone!
On Saturday, July 13, 2013 10:26:40 AM UTC-4, babysnakes wrote:
>
> Hi
>
> Sorry if it's obvious, but I don't know your skill
Very handy! I have to admit, the lack of this functionality has kept me
from trying out several libs. Looking forward to "trying" it out! ;)
On Sat, Jul 13, 2013 at 8:56 AM, Ryan Neufeld wrote:
> Hey folks,
>
> Don't you hate it when someone releases a cool new library and you have to
> go into
Hello,
> On Thu, Jul 11, 2013 at 1:06 PM, Benjamin Peter
>
> > wrote:
>
>>
>> I went through the clojure core logic code and picked the functions I
>> though that might go into the cheat sheet. The groups are pretty much
>> defined by the code comments left by David and co.
>>
>
On Thursday,
cool!
发自我的 iPhone
在 2013-7-13,21:56,Ryan Neufeld 写道:
> Hey folks,
>
> Don't you hate it when someone releases a cool new library and you have to go
> into a project and add an unwanted dependency just to try it out? Worse,
> maybe you decide to 'lein new delete-me' and add it there.
>
> No
This is awesome! I've totally wanted this.
Unfortunately, I can't get it to work...
~ $ lein try '[clj-time "0.5.1"]'
nREPL server started on port 61689
REPL-y 0.1.10
Clojure 1.5.1
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
(find-doc
It looks like you're not supposed to quote the arguments you pass it.
On Sat, Jul 13, 2013 at 11:27 AM, Brandon Bloom
wrote:
> This is awesome! I've totally wanted this.
>
> Unfortunately, I can't get it to work...
>
> ~ $ lein try '[clj-time "0.5.1"]'
> nREPL server started on port 61689
> REPL
Odd. I just assumed that the arguments were being joined by spaces, then
clojure.core/read, rather than parsed as individual arguments.
Not all of us use Bash... square brackets are used for special patterns in
Zsh.
Without quotes, the arguments are being interpreted in this way:
lein try '[clj-
I think it also works with just: lein try clj-time 0.5.1, no quotes, no
brackets.
On Sat, Jul 13, 2013 at 11:54 AM, Brandon Bloom
wrote:
> Odd. I just assumed that the arguments were being joined by spaces, then
> clojure.core/read, rather than parsed as individual arguments.
>
> Not all of us u
This seems to work beautifully outside a project - and it's very
useful! I will no longer need to create a million scratch projects to
try stuff out - thank you!
However, inside a project, I can't get it to work.
(! 501)-> cd clojure
(! 502)-> lein try hiccup 1.0.2
nREPL server started on port 59
Well, that's the most convenient way it should work anyway, just a list of
key, value, key, value, key, value argument list. Easy to implement.
Accepting brackets is criminal.
On Saturday, July 13, 2013 6:13:21 PM UTC+1, Steven Degutis wrote:
>
> I think it also works with just: lein try clj-tim
Looks promising though. Pomegranate is significantly more complex, and I
could never remember the name of the function which dynamically loads the
libs.
On Sunday, July 14, 2013 12:55:55 AM UTC+1, Daniel Dinnyes wrote:
>
> Well, that's the most convenient way it should work anyway, just a list o
Oh happy day! :-D
Today I was looking at some clojure code on using core.async with ClojureScript
[1], and the example used this strange "as->" expression that I'd never seen
before (I'm from the 1.2 era, just getting back into the Clojure game), and I
was trying to figure out what the heck thi
Also, I would call it repl-deps or repl-with-deps. Not as short, but who
knows, maybe later on it will be merged into `repl` as some option
argument; such naming would support that intention. It is more descriptive
too. When I first saw the post I thought `lein try` will be about testing
except
This email just in case any Googler's stumble across this thread searching for
a generalized threading macro (and a happy conclusion to it). Googling for
examples on this macro was very difficult in my experience, so maybe this might
help someone.
As I found out via the "The case for as->> ("as
Hiya,
There the main arguments are 99% of the times the first or the last ones.
> So -> or ->> will work.
>
Just made a quick search on `main arguments` on both Google and Wikipedia.
Do you mean the arguments in `public static void main (String[] args)`? If
not please provide some definition wh
Hiya, check this code out guys:
(defn point [x y]
(println "x:" x "y:" y)
[x y])
(defn gen-data [n m]
(for [i (range n)]
(for [j (range m)]
(point i j
(def data (apply concat (gen-data 100 100)))
(nth data 5)
"The output was the following:"
"x: 0 y: 0
x: 0 y: 1
x: 0
Seems these guys below have the same problem, and everyone thinks it is
`apply` or `concat` to blame. One of the answerer even explains how apply
is the issue, but in the reimplemented version of `mapcat` beside throwing
out `apply` he does not use `map` either:
http://stackoverflow.com/questio
It looks like you tried to use hiccup.ocre instead of core
--
--
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
I use zsh too and have to prefix commands with noglob. Additional robustness
and caveats documentation will be necessary.
Pull requests welcomed.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googl
Hey guys, I just came up with some good shit, check this out!
(defmacro ->>>
([x] x)
([x alias form]
`(let [~alias ~x] ~form))
([x alias form & more]
(let [y `(->>> ~x ~alias ~form)]
`(->>> ~y ~@more
(->>> "test-string-with-lots-of-dashes"
x (s/split x #"-")
I believe that what you are seeing, with up to 32 more elements being
evaluated than is necessary to execute your code, is due precisely to
chunked sequences, as returned by (range n), preserved by map, and I
believe also for, doseq, and other Clojure functions and macros.
Chunked sequences can ca
It doesn't work when I spell it correctly either (and I had done
several tests - but of course the results of misspelling it look the
same as it not working - and it's indicative of my day that I pasted
the result of a bad test! :)
C:\Users\Sean\clojure>lein new five
...
C:\Users\Sean\clojure>cd f
26 matches
Mail list logo