Re: Inside Clojure Journal

2019-02-22 Thread Karel Miarka
+1

I really appreciate this blog more and more. I is great to know that 
Clojure is vitally evolving and to have idea about is direction. Much 
appreciated, thanks Alex!

On Wednesday, January 30, 2019 at 6:03:24 AM UTC+1, Shaun Parker wrote:
>
> I just wanted to say thanks to Alex for taking the time to journal all the 
> Clojure things he's working on (and the non-Clojure things as well). 
> They're enjoyable to read and eye-opening. It's a great window into the 
> effort that he and others are putting into Clojure. It's been fun to follow 
> the spec-alpha2 commits and get to read the thoughts/direction in the 
> journal. Great work Alex!
>
> You can find them on the Inside Clojure blog: http://insideclojure.org/
>
> Shaun
>
>
>

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What does "Map literal must contain an even number of forms" mean?

2016-12-05 Thread Karel Miarka


(hash-map :a 1 :b 2) is equivalent of {:a 1 :b 2} so this will work: {:c "Turd" 
:d "More Turd"}



On Sunday, December 4, 2016 at 10:03:04 PM UTC+1, bill nom nom wrote:
>
> ;; This works,
> (hash-map :a 1 :b 2 )
>
>
> ;; Here's another way to create a hash map, this won't work because map
> ;; literal must contain even number of forms
>  {hash-map :c "Turd" :d "More Turd"}
>
> What does "Map literal must contain an even number of forms" mean?
>
>

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] (:brno clojure) - new Clojure focused meetup group in Brno, Czech Republic

2016-11-18 Thread Karel Miarka
The location has changed. We are going to meet in a pub:

Restaurace Zlatý Grál 
<https://maps.google.com/maps?f=q=en=K%C5%99enov%C3%A1+66%2C+Brno%2C+cz>
, Křenová 66, Brno

On Friday, November 4, 2016 at 4:57:26 PM UTC+1, Karel Miarka wrote:
>
> Hi,
>
> if you are interested, feel free to join us at 
> https://www.meetup.com/brno-clojure/ . 
>
> Our first meetup is scheduled on Wednesday, November 30, 2017 at 18:15 in 
> Impact Hub Brno, Cyrilska 7 .
>
> Everyone is welcome!
> Karel
>

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] (:brno clojure) - new Clojure focused meetup group in Brno, Czech Republic

2016-11-04 Thread Karel Miarka
Hi,

if you are interested, feel free to join us at 
https://www.meetup.com/brno-clojure/ . 

Our first meetup is scheduled on Wednesday, November 30, 2017 at 18:15 in 
Impact Hub Brno, Cyrilska 7 .

Everyone is welcome!
Karel

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is Pallet abandoned? Alternatives?

2016-10-03 Thread Karel Miarka
I'm very happy with Ansible https://github.com/ansible/ansible (it is not 
Ansible Tower = their commercial product). You need only ssh server on the 
controled machine, no state, idempotent execution.

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Current Cider SNAPSHOT not working??

2015-11-28 Thread Karel Miarka
Thanks Alexander, all the warnings disappeared by adding the 
:nrepl-middleware key to the :figwheel section!

On Friday, November 27, 2015 at 10:39:27 PM UTC+1, alexander adhyatma wrote:
>
> you need to add com.cemerick/piggieback to the project.clj (dependency 
> section) as well as adding cider/cider-nrepl "0.10.0-SNAPSHOT" and 
> refactor-nrepl to the plugin section.
> then in the :figwheel section, you need to add 
>
> :nrepl-middleware ["cemerick.piggieback/wrap-cljs-repl" 
> "cider.nrepl/cider-middleware" "refactor-nrepl.middleware/wrap-refactor"]
>
> should be running great. 
>
>>
>>>

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Current Cider SNAPSHOT not working??

2015-11-28 Thread Karel Miarka
Thanks Bozhidar for pointing out the link. There is a lot of new 
interesting information. I feel it is time to dig into my project.clj 
generated a few months ago and think about the new recommended workflow.

On Saturday, November 28, 2015 at 5:51:57 PM UTC+1, Bozhidar Batsov wrote:
>
> Did you go over the instructions here 
> https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
>  
> ?
>
>

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Current Cider SNAPSHOT not working??

2015-11-27 Thread Karel Miarka
The plugins were pulled, cider namespace required, everything is OK when I 
connect from Cider to "lein repl". Works fine in both spacemacs and prelude.

Both cider & refactor middleware warnings occur only in spacemacs when I 
start "lein figwheel" with nREPL as I'm used to.
In prelude there was only the cider middleware warning, refactor was not 
complaining.
In spacemacs both warnings appear also with clojure-emacs/example-config 
which uses 0.9.1 Cider release when connecting agains "lein figwheel".

It worked fine with my old 32bit setup. I used to run just "lein figwheel" 
for both server and client to save memory. And then connected to the nREPL 
2x and run figwheel.side-car/cljs-repl in one of them.

Thanks for the help. I will try to play with my project.clj file or solve 
it by running "lein repl" for the server and "lein figwheel" for the client 
part.

On Friday, November 27, 2015 at 12:56:00 AM UTC+1, Artur Malabarba wrote:
>
> Looks like your plugins are not getting pulled by leiningen.
>
> Delete your .m2/ snapshots and then start lein repl in a terminal. Do you 
> see the plugins being pulled? 
>
> In this repl, are you able to require cider namespaces? Try: (require 
> 'cider.nrepl.middleware.debug) 
>
>

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Current Cider SNAPSHOT not working??

2015-11-26 Thread Karel Miarka
I have just installed a new box and cannot make Cider working with 
Spacemacs nor Prelude.

When I open a .clj file I notice this in *Messages*:

*Eager macro-expansion failure: (error "Unknown upattern `(quote 
request)'")*

Then I try to connect to nREPL server C-c M-c and the REPL is not working. 
There is only this new *Messages*:

nREPL: Establishing direct connection to localhost:7002 ...
nREPL: Direct connection established
*pcase--u1: Unknown upattern `(quote request)'*

Google returns nothing searching "unknown upattern" "quote request".

My profiles.clj looks like this:

{:user {:plugins  [[cider/cider-nrepl "0.10.0-SNAPSHOT"]
   [refactor-nrepl "2.0.0-SNAPSHOT"]]
:dependencies [[alembic "0.3.2"]
   [org.clojure/tools.nrepl "0.2.11"]]}}

OS: Linux Mint/Ubuntu 64bit
Oracle Java 8
Clojure 1.7

Thanks for any help / suggestions!

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Current Cider SNAPSHOT not working??

2015-11-26 Thread Karel Miarka
Thanks a lot.

But whatever I do, I cannot get rid of the warnings:

; CIDER 0.10.0snapshot (package: 20151125.1430) (Java 1.8.0_66, Clojure 
1.7.0, nREPL 0.2.12)
WARNING: The following required nREPL ops are not supported: 
apropos classpath complete eldoc format-code format-edn info inspect-pop 
inspect-push inspect-refresh macroexpand ns-list ns-vars ns-path refresh 
resource stacktrace toggle-trace-var toggle-trace-ns undef
Please, install (or update) cider-nrepl 0.10.0-SNAPSHOT and restart CIDER
WARNING: The following nREPL ops are not supported:
artifact-list artifact-versions clean-ns extract-definition find-symbol 
find-used-locals hotload-dependency namespace-aliases rename-file-or-dir 
resolve-missing stubs-for-interface version warm-ast-cache
Please, install (or update) refactor-nrepl and restart the REPL.
You can mute this warning by changing cljr-suppress-middleware-warnings.
WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.0.0-SNAPSHOT (package: 20151112.117) and n/a, 
respectively.
You can mute this warning by changing cljr-suppress-middleware-warnings.


And I believe my profiles.clj is ok:

{:user {:plugins [[cider/cider-nrepl "0.10.0-SNAPSHOT"]
  [refactor-nrepl "2.0.0-SNAPSHOT"]]
:dependencies [[org.clojure/tools.nrepl "0.2.12"]]
}}


I have completely removed ~/.emacs.d/ and also all the snapshots from ~/.m2 
repo.
Upgraded Emacs from 24.4 to 24.5 .
Run lein upgrade.
No success...
What can be wrong?


On Thursday, November 26, 2015 at 1:30:07 PM UTC+1, Lars Andersen wrote:
>
> Some bad code slipped into master for a few minutes but was fixed 
> promptly. See https://github.com/clojure-emacs/cider/issues/1434 for more 
> details.
>
> Just upgrade CIDER and you should be fine.
>
>
>

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Immediate streaming of shell cmd stdout to a browser

2015-09-25 Thread Karel Miarka
I'm not sure. I just run some thing like this inside build.sh:

git pull
lein clean
lein uberjar
cp target/xyz.jar ~/builds/

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Immediate streaming of shell cmd stdout to a browser

2015-09-25 Thread Karel Miarka
I'm not sure. I just run some thing like this inside build.sh:

#!/bin/bash

git pull
lein clean
lein uberjar
cp target/xyz.jar ~/builds/

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Immediate streaming of shell cmd stdout to a browser

2015-09-24 Thread Karel Miarka
Hi,

I want to run a long running bash script from a webapp and see it's 
continuous results on the page. I use conch to get the process' output 
stream and use this simple ring handler:

(defn handler [req]
  (response/response
(let [p (sh/proc "/home/xyz/build.sh")]
  (ring-io/piped-input-stream
#(io/copy (:out p) % :buffer-size 1)))
...

And run-jetty with :output-buffer-size 1 option, but the output is 
unfortunately displayed at once after the process finishes.

Any idea?

Thanks,
Karel

-- 
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 email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.