Re: what is currently considered a good blog engine, written in Clojure?

2020-12-12 Thread Andrea Richiardi
I like a lot and using perun for www.andrearichiardi.com

The workflow is great but unfortunately work on boot and perun has 
stagnated a bit. Trying to give it a bit of love as we speak! 

On Saturday, December 12, 2020 at 1:52:43 AM UTC-8 lawrence...@gmail.com 
wrote:

> Hello everyone. I've been away from the Clojure community for the last 2 
> years (nowadays I do more managing than programming) but I'm starting a new 
> blog. I tried to use Wordpress on the theory that it is "easy" and also 
> because I've been told they fixed their old security flaws, but I installed 
> the latest version and it was hacked in less than a day, so now I'm feeling 
> unkindly towards Wordpress. 
>
> I'm looking for a blog engine, which can use a database or flat files, I 
> don't care. 
>
> The main thing I need is a working comment system, with an ability on my 
> side to whitelist particular commenters. Does anything like that exist 
> written in Clojure?
>
> I'm very grateful, if anyone can point me to something that works, and is 
> reasonably maintained. 
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/d4f44ff3-4f31-4716-90f3-e20601227fe7n%40googlegroups.com.


Re: [ANN] select-nrepl 0.1.0 Editor-independent Clojure text object support

2019-03-20 Thread Andrea Richiardi
Wow this is awesome! Thank you!

-- 
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] org.clojure/tools.cli 0.4.0

2018-09-14 Thread Andrea Richiardi

On Thursday, September 13, 2018 at 3:48:01 PM UTC-7, Matching Socks wrote:
>
> Wow, I had not even noticed the cljs half of tools-cli!  Is it useful with 
> Node?
>

It works both in compiled and bootstrapped node (lumo). I am using this 
library in many scripts.

One example can be found in this utility: 
https://github.com/elasticpath/terraform-env-vars

-- 
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 is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Andrea Richiardi

>
> That seems to work, but I see something like this in the minibuffer every 
> time I move the cursor, with or without eldoc mode enabled:
>
> def: (:arglists^[[0m
>   ^[[36m3^[[0m  ^[[36m(clojure.core/meta^[[0m
>   ^[[36m4^[[0m  ^[[36m(clojure.core/resolve^[[0m
>   ^[[36m5^[[0m  ^[[36m(clojure.core/read-string "def")
>
> Does "lein run -m clojure.main" create a socket REPL?
>
> I followed the instructions for inf-clojure for a "Clojure Command Line 
> Socket REPL" (
> https://github.com/clojure-emacs/inf-clojure#clojure-command-line-socket-repl),
>  
> but then (fig-start) is not found.
>
> I followed the instructions for inf-clojure for a "Leiningen Socket REPL" (
> https://github.com/clojure-emacs/inf-clojure#leiningen-socket-repl), and 
> that produces results like with "lein run -m clojure.main"; it works, but I 
> get the "eldoc" garbage in the minibuffer. AFAICT, the eldoc problem 
> doesn't occur until I run (cljs-repl).
>
> Any insight greatly appreciated. 
>

Sorry I am guilty of not having read the whole thing - can you please open 
an issue in inf-clojure so that we can track it?

-- 
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 is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Andrea Richiardi
Ok this command will open a socket REPL directly in cljs.user:

clojure -J-Dclojure.server.repl="{:port ${1:-} :accept 
cljs.server.node/repl}" -R:cljs-canary  -m cljs.main -re node -r

You need the right deps.edn aliases - then you will be able to nc localhost 
 or inf-clojure-connect to it.

On Friday, July 6, 2018 at 11:18:56 AM UTC-7, Austin Haas wrote:
>
> I spent a couple more hours working with Monroe and Figwheel. I still 
> can't figure out how to use the REPL. After trying to evaluate a few 
> expressions, Emacs gets completely locked up spewing the following error 
> message 1000s of times: 
>
> clojure.lang.ExceptionInfo: Arguments to require must be quoted. Offending 
> spec: (symbol (namespace (quote clojure.repl/pst))) at line 1  
> {:file "", :line 1, :column 5, :root-source-info {:source-type 
> :fragment, :source-form (do (require (symbol (namespace (quote 
> clojure.repl/pst (clojure.repl/pst *e))}, :tag :cljs/analysis-error}
>
> I've switched back to inf-clojure and Figwheel with the following config:
>
> (add-to-list 'load-path "~/.emacs.d/site-lisp/third-party/inf-clojure/")
> (require 'inf-clojure)
> (setf inf-clojure-lein-cmd "lein run -m clojure.main")
> (add-hook 'clojure-mode-hook #'inf-clojure-minor-mode)
> (add-hook 'inf-clojure-mode-hook #'eldoc-mode)
>
> That seems to work, but I see something like this in the minibuffer every 
> time I move the cursor, with or without eldoc mode enabled:
>
> def: (:arglists^[[0m
>   ^[[36m3^[[0m  ^[[36m(clojure.core/meta^[[0m
>   ^[[36m4^[[0m  ^[[36m(clojure.core/resolve^[[0m
>   ^[[36m5^[[0m  ^[[36m(clojure.core/read-string "def")
>
> Does "lein run -m clojure.main" create a socket REPL?
>
> I followed the instructions for inf-clojure for a "Clojure Command Line 
> Socket REPL" (
> https://github.com/clojure-emacs/inf-clojure#clojure-command-line-socket-repl),
>  
> but then (fig-start) is not found.
>
> I followed the instructions for inf-clojure for a "Leiningen Socket REPL" (
> https://github.com/clojure-emacs/inf-clojure#leiningen-socket-repl), and 
> that produces results like with "lein run -m clojure.main"; it works, but I 
> get the "eldoc" garbage in the minibuffer. AFAICT, the eldoc problem 
> doesn't occur until I run (cljs-repl).
>
> Any insight greatly appreciated. 
>
>
>
>
>

-- 
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 is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Andrea Richiardi
Ok try this one:

clojure -J-Dclojure.server.repl="{:port ${1:-} :accept cljs.se}" 
-R:cljs-canary  -m cljs.main -re node -r

and then nc localhost  or inf-clojure-connect to .

-- 
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 is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Andrea Richiardi

On Friday, July 6, 2018 at 11:18:56 AM UTC-7, Austin Haas wrote:
>
> I spent a couple more hours working with Monroe and Figwheel. I still 
> can't figure out how to use the REPL. After trying to evaluate a few 
> expressions, Emacs gets completely locked up spewing the following error 
> message 1000s of times: 
>
>
I guess you are pioneering this so don't give up! :D

The problem with socket REPL is that you need to make sure that it is "dumb 
enough". Make sure to read these two - sorry if you've seen it already:

https://github.com/clojure-emacs/inf-clojure#leiningen-socket-repl
https://github.com/clojure-emacs/inf-clojure#caveats

That is why I was trying only cljs.main at some point. Less things 
involved. 

-- 
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 is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Andrea Richiardi


On Thursday, July 5, 2018 at 1:01:14 PM UTC-7, Austin Haas wrote:
>
> Gary, I had tried Figwheel a couple years ago and I had a positive 
> experience, so that was the next thing I reached for.
>
> I just want a practical dev environment, for both Clojure and 
> Clojurescript. To me, that means simple and stable. I definitely want fewer 
> things that can go wrong, but if I can install a package by cloning a repo 
> and adding a few lines of elisp, and it works, I'm happy. I don't care how 
> complex it is. If it causes my REPL to hang, prints out control characters, 
> regularly breaks after updates, etc., then I'd rather drop down to 
> something simpler, with fewer features.
>
>  
There is one more trick though.

The new cljs.main allows you to have a socket repl for ClojureScript. This 
can then be used with `inf-clojure`. It will not be fancy and probably 
things will be broken though...the code path has not been seen much love. I 
did some experimentation and it definitely works - quite smoothly in fact - 
but I have never have time to make it "production" ready :)

So this does not actually answers the question, just wanted to put it out 
there - sorry!

-- 
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 is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Andrea Richiardi
There is one more trick though.

The new cljs.main allows you to have a socket repl for ClojureScript. This 
can then be used with `inf-clojure`. It will not be fancy and probably 
things will be broken though...the code path has not been seen much love. I 
did some experimentation and it definitely works - quite smoothly in fact - 
but I have never have time to make it "production" ready :)

On Thursday, July 5, 2018 at 1:01:14 PM UTC-7, Austin Haas wrote:
>
> Gary, I had tried Figwheel a couple years ago and I had a positive 
> experience, so that was the next thing I reached for.
>
> I just want a practical dev environment, for both Clojure and 
> Clojurescript. To me, that means simple and stable. I definitely want fewer 
> things that can go wrong, but if I can install a package by cloning a repo 
> and adding a few lines of elisp, and it works, I'm happy. I don't care how 
> complex it is. If it causes my REPL to hang, prints out control characters, 
> regularly breaks after updates, etc., then I'd rather drop down to 
> something simpler, with fewer features.
>
> For Clojurescript, I've used lein-cljsbuild in the past. That seemed to 
> work well. I know I've connected to a REPL running in the browser before, 
> but I don't remember it being useful enough to bother with. I don't think I 
> knew how to write "reloadable code", then, though.
>
> I would love to hear how people do Clojurescript development today, 
> especially if they aren't using Figwheel.
>
>
>
> On Thursday, July 5, 2018 at 12:07:13 PM UTC-7, Gary Trakhman wrote:
>>
>> I'm not sure the desires for lightweight clojure-emacs integration and 
>> any CLJS integration are yet sympathetic.  Figwheel is a pretty complex 
>> piece of software. For example, see my issue that has been languishing for 
>> almost a year and hints at greater problems with the compiler integration: 
>> https://github.com/bhauman/lein-figwheel/issues/593 .  From my 
>> perspective, this is more due to coupling of the REPL to the compiler 
>> itself than a problem with figwheel.
>>
>> But I was surprised when the thread went in this direction just from 
>> reasons I think someone might want to not use cider, fast startup time, 
>> less stuff to go wrong.  CLJS adds that back unless it's gotten 
>> significantly better since the last time I tried.
>>
>> On Thu, Jul 5, 2018 at 2:19 PM rob  wrote:
>>
>>> If ClojureScript repl integration works smoothly out of the box then 
>>> that's already one reason to use it over Cider...  (This is not a jab at 
>>> Cider, just a statement of fact that Cider's support for ClojureScript 
>>> development has so far been lacking, IME)
>>>
>>>
>>> On Thursday, July 5, 2018 at 10:51:02 AM UTC-7, Austin Haas wrote:


 I tried Monroe, yesterday. It seems to work as advertised. I didn't 
 have any issues. It's nice that "jump to definition" works out of the box. 
 It does not appear to support Eldoc, so no help with function signatures.

 This is the Emacs config I'm currently using: 

 ;;; clojure-mode

 (add-to-list 'load-path 
 "~/.emacs.d/site-lisp/third-party/clojure-mode/")
 (require 'clojure-mode)
 (add-hook 'clojure-mode-hook 'rainbow-delimiters-mode)
 (add-hook 'clojure-mode-hook 'paredit-mode)
 (add-hook 'clojure-mode-hook 'hs-minor-mode)
 (add-hook 'clojure-mode-hook #'eldoc-mode)

 ;;; REPL

 ;; Monroe

 (add-to-list 'load-path "~/.emacs.d/site-lisp/third-party/monroe/")
 (require 'monroe)
 (add-hook 'clojure-mode-hook 'clojure-enable-monroe)
 (setf monroe-detail-stacktraces 'true)

 I went on to include Figwheel. 

 I created a new project using `lein new figwheel my-project` (which 
 provides the fig-start and cljs-repl functions), and then entered the 
 following commands to set up a Clojurescript dev environment: 

 M-x monroe-nrepl-server-start
 M-x monroe
 (fig-start)
 (cljs-repl)

 On my machine, those 4 steps take about 30 seconds to run. The first 
 takes 18 seconds, and the rest only take about a second each, but the 
 whole 
 process ends up taking close to 30.

 Figwheel seems to work great, but I couldn't figure out how to evaluate 
 code in a library dependency and have it updated in the running system. I 
 can evaluate functions, but the new definitions don't appear to be called 
 by the main code. I might be misunderstanding how this is supposed to 
 work; 
 I don't know if it's a Figwheel issue or a Monroe issue or my mistake. But 
 to work around that, and to fix other issues preventing a clean initial 
 compilation, I had to restart the REPL a few dozen times, which was 
 tedious.

 I'm posting this information in case it is useful to someone else who 
 is trying to discover the current state-of-the-art with running Clojure in 
 Emacs in a straightforward, minimal way. I'm also hoping 

Re: Anyone mourns the loss of: tryclj.com ?

2017-12-16 Thread Andrea Richiardi
Give we are throwing names out there (you'll excuse my self-plug here) my 
team developed some time ago clojurescript.io.
I think it is still one of the best REPLs out there. The code is also open 
source at https://github.com/Lambda-X/cljs-repl-web and I accept PRs for 
improvements/new ideas :)

On Friday, December 15, 2017 at 7:29:23 PM UTC-8, Didier wrote:
>
> Just realized that: tryclj.com is gone.
>
> I wonder if clojure.org could come to the rescue, and add a try-me web 
> repl on it. I feel like tryclj when I first got started and became 
> interested was a great gateway.
>
> repl.it is just a little too bloated for my liking as a replacement.
>

-- 
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] clj-embed | segmented clojure runtimes inside a single JVM process

2017-12-03 Thread Andrea Richiardi
Haven't check the code, but this is similar to what boot pod is: 
https://github.com/boot-clj/boot/wiki/Pods

The nice thing is that it uses tools.deps, good job!

-- 
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: sputter, a Clojure implementation of the Ethereum VM

2017-10-18 Thread Andrea Richiardi
Nice!

On Wednesday, October 18, 2017 at 8:35:36 AM UTC-7, Moe Aboulkheir wrote:
>
> I've been working on an ongoing series of blog posts documenting the 
> development of sputter , an 
> immutable EVM implementation  Today's instalment is available here 
> .
>
> The first post  
> contains 
> enough background information to get started, for those without prior 
> knowledge of Ethereum.
>
> Take care,
> Moe  
>

-- 
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] expound 0.1.2

2017-07-31 Thread Andrea Richiardi
These are both awesome libraries, thanks Ben and Juan, expound can also be 
a nice addition for unravel (the unrepl client). Inspectable would be 
awesome for an "upgraded" repl (it is already there as :caught handler, 
very nice).

On Tuesday, July 25, 2017 at 4:16:44 PM UTC-7, Ben Brinckerhoff wrote:
>
> Expound formats clojure.spec errors in a way that is optimized for humans 
> to read. Expound works in Clojure and Clojurescript.
>
> This release provides human-optimized error messages when using a number 
> of spec features, including instrumentation and `assert`.
>
> More information is available in the README 
> .
>

-- 
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: FYI: Eclipse Aether moved to Apache Maven

2017-02-25 Thread Andrea Richiardi
Hey Colin, I agree totally, I have a patch kind of 
ready: https://github.com/cemerick/pomegranate/pull/80 :)

On Saturday, February 25, 2017 at 3:02:57 PM UTC-8, Colin Fleming wrote:
>
> Hi all,
>
> I just saw a notice about this on the Aether mailing list today, and it 
> potentially affects some of us building tooling (especially 
> Leiningen/boot/pomegranate etc). Aether has been developed under the 
> Eclipse umbrella until recently, but as far as I could tell had been almost 
> totally abandoned there. It's just been switched over to being managed 
> under Apache Maven. Its new site is at https://maven.apache.org/resolver, 
> and the mailing lists are us...@maven.apache.org  and 
> d...@maven.apache.org . I hope this will lead to it being 
> more actively maintained.
>
> Cheers,
> Colin
>
>
>

-- 
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: Boot 2.7.1 (and 2.7.0) released

2016-12-22 Thread Andrea Richiardi
On Wednesday, December 21, 2016 at 9:16:30 PM UTC-8, Alan Dipert wrote:
>
> Hi all,
>

Thank you guys!

-- 
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] codox-klipse-theme 0.0.1- Clojure[script] automatically generated live documentation

2016-10-11 Thread Andrea Richiardi
On Monday, October 10, 2016 at 9:29:35 AM UTC-7, Yehonathan Sharvit wrote:
> https://github.com/viebel/codox-klipse-theme
> 
> codox is a great tool for generating API documentation from Clojure or 
> ClojureScript source code.

This is very cool stuff thanks!

-- 
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: Any plan to add log4j 2 support to tools.logging?

2016-09-27 Thread Andrea Richiardi
On Thursday, November 19, 2015 at 10:38:48 AM UTC-8, Didier wrote:
>
> Hi all,
>
> I was wondering if any work is being planned on tools.logging to add log4j 
> 2 support?
>

I found an alternative worth checking: https://github.com/gja/clj-log4j2

Log4j2 has so many feature and it might be a good idea to concentrate them 
there and keep clojure.logging more "generic" (I agree this is very 
debatable :)).

 

-- 
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: Any plan to add log4j 2 support to tools.logging?

2016-09-27 Thread Andrea Richiardi
On Thursday, November 19, 2015 at 2:57:52 PM UTC-8, William la Forge wrote:
Interesting. The log4j-api is not needed. log4j-slf4j-impl directly 
interfaces with log4j-core.

I would be interested in this too, it looks like async loggers are way 
faster, and a factory for Log4j2 would be neat to add without passing by 
the SLF4J bridge.

My current setup:

[org.clojure/tools.logging "0.3.1"]
[org.apache.logging.log4j/log4j-api "2.6.2" :scope 
"runtime"]
[org.apache.logging.log4j/log4j-core "2.6.2" :scope 
"runtime"]
[org.apache.logging.log4j/log4j-jcl "2.6.2" :scope 
"runtime"]
[org.apache.logging.log4j/log4j-jul "2.6.2" :scope 
"runtime"]
[org.apache.logging.log4j/log4j-1.2-api "2.6.2" 
:scope "runtime"]
[org.apache.logging.log4j/log4j-slf4j-impl "2.6.2" 
:scope "runtime"]

But I see there is not too much demand apparently :)

-- 
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: Amazonica and S3

2016-07-21 Thread Andrea Richiardi
I am glad you solved and raised the issue so that we can track that!

-- 
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: Amazonica and S3

2016-07-20 Thread Andrea Richiardi
Maybe not related, but I was checking that api and this showed up, maybe it 
can be helpful?

https://stackoverflow.com/questions/30521046/malformedxml-when-tagging-an-s3-bucket

On Wednesday, July 20, 2016 at 7:56:10 AM UTC-7, Gareth Rogers wrote:
>
> After chatting with a colleague who read this and showed me the magic of 
> trace I think the problem with amazonica.aws.
> s3/set-bucket-tagging-configuration is that I need
>
> {:tag-sets [{:tag {"Formation" "notlive"}}]}
>
> i.e. I need to know how to call setTag(string key, string value) which 
> takes two args through the Amazonica. I've only dealt with single args 
> before.
>
> On Wednesday, 20 July 2016 14:53:11 UTC+1, Gareth Rogers wrote:
>>
>> Hi
>>
>> Has any one had any success using either 
>> amazonica.aws.s3/set-bucket-notification-configuration or 
>> amazonica.aws.s3/set-bucket-tagging-configuration?
>>
>> I've got
>>
>> (amazonica.aws.s3/set-bucket-notification-configuration
>> "my.bucket.name"
>> {"my-custom-event-name"
>> {"" ;; This replaced with the ARN of an SQS queue I've 
>> created
>>  "ObjectCreatedByPut" ;; [S3Event/ObjectCreatedByPut] ;; 
>> "s3:ObjectCreated:Put" <-- tried all three
>>  ;; :filter"/_SUCCESS"
>>  }})
>>
>> and
>>
>> (amazonica.aws.s3/set-bucket-tagging-configuration
>>  "my.bucket.name"
>>  {:tag-sets [{"Formation" "notlive"}]})
>>
>> Both of those are wrapped with amazonica.core/with-credential which I've 
>> omitted.
>>
>> The call to amazonica.aws.s3/set-bucket-notification-configuration returns 
>> nil. I guess this means it's getting converted to a valid call but the S3 
>> API is rejecting it silently? Anyone know what it should look like?
>>
>> The call to amazonica.aws.s3/set-bucket-tagging-configuration is 
>> throwing:
>>
>> Unhandled com.amazonaws.services.s3.model.AmazonS3Exception
>>The XML you provided was not well-formed or did not validate
>>against our published schema (Service: Amazon S3; Status Code: 400;
>>Error Code: MalformedXML; Request ID: )
>>
>> I can't figure out what might be wrong there either. I've tried a few 
>> variations on the tag sets but it either doesn't run because it can't find 
>> an appropriate function or gives the XML error.
>>
>> Any pointers would be appreciated.
>>
>> Thanks
>> Gareth
>>
>

-- 
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: why is it so annoying to run clojure code

2016-06-10 Thread Andrea Richiardi
On Thursday, June 9, 2016 at 1:59:40 PM UTC-7, hiskennyness wrote:
>
>
> Having just gotten into Clojure, I have the same pain. But I am a long 
> time Lisper, so I understand that this just means that Clojure is a true 
> Lisp, because Lisps punish noobs in cruel and unusual ways.
>
> And, yes, specifically I am astonished that I have never seen a clj or 
> cljs repl without executing some opaque command-line sequence involving 
> lein or boot or god knows what.
>
>  
I started playing with the following to get a repl going (Rich approved 
*™):*

drip -cp src:env/dev/resources:$(cat cp) clojure.main

...but I usually use boot cider dev with my lambone template...

:D

-- 
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: How to Keep Clojure Server From Quitting

2016-06-08 Thread Andrea Richiardi
I do the following in my code (where system/http is a mount var, the eval 
result of start-server):

(ns ...
  (:require [aleph.netty :as netty])

(defn -main
  [& args]
  (mount/start args)
  (netty/wait-for-close server/http))


On Wednesday, June 8, 2016 at 7:53:25 AM UTC-7, Nate Young wrote:
>
> Good morning (at least from my part of the globe), 
>
> I spent a good chunk of time last night wondering why this chunk of code 
> kept exiting about a minute after being run: 
>
>  
> (ns narcoleptic.server 
>(:require [aleph.http :as http] 
>  [compojure.core :as compojure :refer [GET]] 
>  [compojure.route :as route] 
>  [ring.middleware.params :as params])) 
>
> (def handler 
>(params/wrap-params 
> (compojure/routes 
>  (GET "/" [] "Hello World!") 
>  (route/not-found "Not Found" 
>
> (def server (agent nil)) 
>
> (defn -main [] 
>(send-off server #(or % (http/start-server handler {:port 9000} 
>  
>
> until I found 
> http://tech.puredanger.com/2010/06/08/clojure-agent-thread-pools/ which 
> explains that send-off pools die after a minute. Additionally, it looks 
> like all of the thread pools that aleph creates are marked as daemon 
> threads, so the main thread dies after the send-off, the send-off thread 
> dies after a minute and that leaves no non-daemon threads running, so 
> the JVM exits. Cool. 
>
> My question, then, is this: Is there a best practice for keeping a 
> thread open forever so that my server won't ever exit? I'd like to `lein 
> run -m narcoleptic.server` and see that it stays up as long as possible. 
>
> I've tried two solutions, but the first feels ike an awful lot of typing 
> for a language that usually has the right tools close at hand and the 
> second feels like a hack and doesn't play as nicely in a REPL 
> environment (but they both work): 
>
> (1) 
>  
> (defn wait-until-stopped [] 
>(let [stopped (promise)] 
>  (add-watch server :stop-wait 
>(fn [key server old-state new-state] 
>  (when (= new-state :stopped) 
>(remove-watch server :stop-wait) 
>(deliver stopped :ok 
>  @stopped)) 
>  
>
> (2) 
>  
> ;; removed the agents code 
> (def stopped (promise)) 
> (defn -main [] 
>(http/start-server handler {:port 9000}) 
>@stopped) 
>  
>
> Am I super off in the woods here? Any help/pointers/sage advice 
> appreciated. Thanks! 
>
>
>

-- 
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: Making my own functions visible to the clojurescript.io REPL

2016-05-31 Thread Andrea Richiardi
On Tuesday, May 31, 2016 at 1:51:19 PM UTC-7, Lee wrote:
...
> Thanks,
> 
> -Lee

Sorry for the typos I was on mobile.

-- 
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.


Making my own functions visible to the clojurescript.io REPL

2016-05-31 Thread Andrea Richiardi
Hello Lee, thanks for using clojurescript.io first of all.
At the moment what you try to accomplish is not possible unfortunately. It 
would mean to host arbitrary code on out servers. I was thinking about a simple 
collaborative platform so that you and someone else could share the "current 
state" of the Repl buy we have not started the project yet.
This would mean basically to add a websocket to the current site + user login.
Definitely doable.

What you can do is to reuse our components, and in particular 
https://github.com/Lambda-X/replumb and https://github.com/Lambda-X/re-console 
and host your app somewhere.

Feel free to ping me or Tomek on Slack if you have questions ok?

-- 
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 there a function in clojure.test like future fact in midje?

2016-02-29 Thread Andrea Richiardi
Not that I know of at the moment, nonetheless it is useful sometimes and in 
my experience it fosters tests-before-coding behavior.
I am working on a patch to add (parallel) tests to boot and it can be a 
very nice idea to add there!

On Monday, February 29, 2016 at 12:36:35 AM UTC-8, Mayank Jain wrote:
>
> Hi,
>
> I have a deftest but its output fails currently and I would like to mark 
> it as TODO.
> Currently I comment it out. 
>
> Is there a function in clojure.test which says this test is not ready yet, 
> log the output but don't test it.
> Similar to future fact in midje[1]?
>
> Thanks.
>
> [1] : https://github.com/marick/Midje/wiki/Future-facts
>

-- 
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: core.typed and cider

2015-09-26 Thread Andrea Richiardi
I got a working version in my fork of emacs-live (if you happen to use it).
See here 
https://github.com/arichiardi/emacs-live/blob/ar-stable/packs/dev/clojure-pack/config/flycheck-clojure-conf.el

On Thursday, September 24, 2015 at 1:36:07 PM UTC-7, JvJ wrote:
>
> Hi,
>
> Maybe this topic has already been addressed, but if it has been, I 
> couldn't find it.
>
> When using cider, I tend to user C-c C-l a lot to reload my namespaces as 
> I'm writing them.
>
> Is there an easy way to incorporate type-checking into this process?  A 
> load-file-and-typecheck command?
>
> I've already tried just putting (t/check-ns) at the end of the file, but 
> this seems to cause stack overflows in some cases.
>
> Thanks 
>

-- 
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] Release 0.32.0 of Counterclockwise

2015-07-30 Thread Andrea Richiardi
LOL!
I can confirm I am indeed male, and btw, in the wiki page maybe it says the 
same, it was also the name of an apostle and he moved to the eastern part 
of Europe to preach. That is probably why the masculine name is more 
popular in Europe...not sure though. I am going to read the link, thanks 
for posting and for clarifying the arcane mystery.

Thanks Laurent, kind words, it's been my pleasure!

P.S.: I don't think we included the SWTBot recorder in 0.32.

On Thursday, July 30, 2015 at 1:25:54 PM UTC+2, Colin Fleming wrote:

 I can't believe it's come to this:

 https://en.wikipedia.org/wiki/Andrea

 Gender Female https://en.wikipedia.org/wiki/Female, except in Italian 
 https://en.wikipedia.org/wiki/Italian_language, Albanian 
 https://en.wikipedia.org/wiki/Albanian_language and Romansh 
 https://en.wikipedia.org/wiki/Romansh_language where it is Male 
 https://en.wikipedia.org/wiki/Male

 Getting back on topic, this looks like a great release!

 On 30 July 2015 at 13:16, Fluid Dynamics a209...@trbvm.com javascript: 
 wrote:

 On Thursday, July 30, 2015 at 7:05:07 AM UTC-4, Laurent PETIT wrote:

 No, just a problem in your syntax analyzer, which does not seem to know 
 that Andrea can also be a surname given to males in Europe.


 It wasn't a surname. Andrea is a feminine given name. There are masculine 
 variants, Andrew obviously and also Andreas. Maybe you left an 's' off?

 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clo...@googlegroups.com 
 javascript:
 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com javascript:
 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+u...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
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] Release 0.32.0 of Counterclockwise

2015-07-30 Thread Andrea Richiardi
Great! :D

On Thursday, July 30, 2015 at 1:34:29 AM UTC+2, Laurent PETIT wrote:

 Counterclockwise, the Eclipse Clojure development tool.

 Counterclockwise 0.32.0 has been released.

 Highlights:

 - Clojure 1.7.0 support
 - Cider-nrepl support
 - Clojurescript support
 - macro-expansion via editor hovers
 - Embedded User plugins such as : font zoom mode for presentations, ANSI 
 Colors in the REPL
 - tons of small enhancements and bugs fixes (total 62 issues closed 
 https://github.com/laurentpetit/ccw/issues?q=milestone%3A0.32.0+is%3Aclosed
 )


 ChangeLog
 =


 http://doc.ccw-ide.org/ChangeLog.html#_changes_between_counterclockwise_0_31_1_and_0_32_0

 Installation instructions
 ==

 http://doc.ccw-ide.org/documentation.html#_install_counterclockwise

 Cheers,


 -- 
 Laurent Petit
  

-- 
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] clj-refactor.el 1.1.0 is released

2015-07-07 Thread Andrea Richiardi


On Monday, 6 July 2015 15:35:11 UTC+2, Magnar Sveen wrote:

 Since the last announcement of clj-refactor in this group, there's been a 
 flurry of activity. Lars Andersen https://github.com/expez and Benedek 
 Fazekas https://github.com/benedekfazekas have been hard at work with 
 the editor-agnostic refactor-nrepl 
 https://gitter.im/clojure-emacs/refactor-nrepl package, which was 
 spawned out of clj-refactor.el. I'm happy to say that there are now 
 refactorings in both Light Table 
 https://github.com/rundis/clj-light-refactor and vim 
 https://github.com/Deraen/vim-cider available based on this effort.

Good job guys! 

-- 
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.


clojure + clojure-contrib offline documentation

2014-08-01 Thread Andrea Richiardi
I have noticed that gh-pages are no more in-sync with the latest 
developments of the code, especially after clojure-contrib has been split 
in separate repositories. I would like to ask if there is something similar 
to:

curl-L https://github.com/clojure/clojure/archive/gh-pages.tar.gz | tar 
xvzf -

but for clojure.github.io, which contains everything.

Thank you very much!

-- 
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.