Re: [ANN] clojuretip.herokuapp.com

2013-09-07 Thread Steven Degutis
Added. Neat site btw! On Sat, Sep 7, 2013 at 11:43 PM, Devin Walters wrote: > As long as you're passing links on the site, check out GetClojure.org. I > need to add a little about section to the top, but it's a thingy I made to > view Clojure examples I've gathered. Green means input, green is

Re: How do you configure your Ring apps?

2013-09-07 Thread Gordon Stratton
I'm only starting out with Clojure/Ring, but I was thinking about this recently too. I had something like the following in mind, borrowing some concepts from other projects/frameworks/strategies that I've had success with. The project could contain something like 'config/global.clj' which contains

ring 1.2.0 setup

2013-09-07 Thread Mono
I am following the book 'Clojure Programming' and have some questions on setting up ring. I have been using the latest versions of ring version 1.2.0. Also using compojure, enlive but taken them out for this post. ... The Clojure project is set up fine and imports libraries and gives no proble

Re: wally: a alternative way to discover functions

2013-09-07 Thread Florian Over
Hi, you could check for io! to find forms with side-effect, but i think it is seldom used. Florian http://clojuredocs.org/clojure_core/clojure.core/io! 2013/9/8 Maximilien Rzepka > Found many times apropos useful... > user> (apropos "partition") > (partition-by partition-all partition) > > But

Re: wally: a alternative way to discover functions

2013-09-07 Thread Maximilien Rzepka
Found many times apropos useful... user> (apropos "partition") (partition-by partition-all partition) But wally approach is really cool. Thanks for sharing @maxrzepka Le jeudi 5 septembre 2013 23:23:28 UTC+2, Islon Scherer a écrit : > > Hey guys, > > I don't know about you but when I was a begin

Re: [ANN] clojuretip.herokuapp.com

2013-09-07 Thread Devin Walters
As long as you're passing links on the site, check out GetClojure.org. I need to add a little about section to the top, but it's a thingy I made to view Clojure examples I've gathered. Green means input, green is value, pink is output. If you don't wanna add it, no big deal. Cheers, '(Devin Wal

Re: [ANN] clojuretip.herokuapp.com

2013-09-07 Thread Ambrose Bonnaire-Sergeant
Nice! :) On Sun, Sep 8, 2013 at 1:09 AM, Steven Degutis wrote: > Yesterday in #clojure: > > To get your random API learnin' of the day, just run: (->> > clojure.core quote the-ns ns-publics seq rand-nth val meta ((juxt :name > :doc)) (map println) dorun) > > Awesome, right? So I put a lil web

Re: [ANN] Blackwater 0.0.5 released (SQL query logging)

2013-09-07 Thread Christopher Allen
You can use it in production, but I'd override the ansi boolean to shut off the special characters for coloration. Set *use-ansi* to false in the clansi namespace. I said not to use it in production because I assumed most people weren't doing `stdout >> log_file` in prod, but if you are, go fo

Re: Introducing a new SQL migration library for clojure / jdbc

2013-09-07 Thread Christopher Allen
This looks pretty nice, I might try this out instead of using my standby Migratus. Thanks for sharing! On Saturday, September 7, 2013 1:08:40 PM UTC-7, Chris Kuttruff wrote: > > Alexandr, > Thanks so much for the feedback; really glad others are finding this > useful as well. > > I've just pub

Re: Building a CRUD based web application using datomic

2013-09-07 Thread Christopher Allen
Thanks so much for this, I'll use it to teach people. :) On Saturday, September 7, 2013 3:42:33 PM UTC-7, Mamun wrote: > > Hi > > Building a CRUD based web application using datomic. It might help some > one who are just start using datomic to build CRUD based web application. > > URL: https:/

Re: How do you configure your Ring apps?

2013-09-07 Thread Christopher Allen
I use environ as well. I don't use config files and don't think they're a great idea. Instead I use a simple config.clj that pulls stuff from environ into one big get-config map. I use (or (env :env-var) "fallback-value") for each variable. On Saturday, September 7, 2013 4:53:25 PM UTC-7, Alexa

Significantly faster incremental ClojureScript auto builds

2013-09-07 Thread David Nolen
In hunting down a ClojureScript bug I ended up fixing one of the biggest bottlenecks in incremental ClojureScript builds. If you use this branch http://github.com/clojure/clojurescript/compare/509-protocol-warn you should see up to 10X faster incremental builds in some cases. We're now avoiding an

Re: Clojure - Python Style suggestion

2013-09-07 Thread sergey andriyaka
Is there any readers that do this. Python is great, it uses 2d and don't make us to live in one long line -- -- 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 member

How do you configure your Ring apps?

2013-09-07 Thread Alexandr Kurilin
I'm curious to find out how you folks decided to organize configuration for your Ring applications, assuming you also use configuration management like Puppet/Ansiblet etc to deploy them. So far I've been using a combination of daemontools' envdir (through runit) + weavejester's environ

Re: wally: a alternative way to discover functions

2013-09-07 Thread Jamie Brandon
I wonder if you can do something clever with class-loaders to prevent side-effects when testing functions... On 7 September 2013 20:16, Islon Scherer wrote: >> I wonder if it would be possible to improve it using the core.typed >> library and doing some kind of static analysis similar to Haskell'

Building a CRUD based web application using datomic

2013-09-07 Thread Mamun
Hi Building a CRUD based web application using datomic. It might help some one who are just start using datomic to build CRUD based web application. URL: https://github.com/Mamun/clojure-web-app.git Application feature- Web Authentication CRUD view for domain object Pagination for list view

[ANN] EEP (Embedded Event Processing) 1.0.0-alpha4 is released

2013-09-07 Thread Oleksandr Petrov
EEP [1], Clojure Embedded Event Processing library 1.0.0-apha4 is released. EEP is c library for lightweight embedded event processing, it combines a lightweight generic event handling system, multiple windowed stream operations, aggregations and multiple buffer types. New release contains severa

ANN Langohr 1.5.0 is released

2013-09-07 Thread Michael Klishin
Langohr [1] is a small, feature complete Clojure client for RabbitMQ. 1.5.0 is a backwards-compatible minor feature release. All users are recommended to upgrade. Release notes: http://blog.clojurewerkz.org/blog/2013/09/07/langohr-1-dot-5-0-is-released/ 1. http://clojurerabbitmq.info -- MK htt

[ANN] Cassaforte 1.2.0 is released

2013-09-07 Thread Oleksandr Petrov
Cassaforte [1] is a Clojure client for Apache Cassandra 1.2+. It is built around CQL 3 and focuses on ease of use. You will likely find that using Cassandra from Clojure has never been so easy. 1.2.0 is a minor release that introduces one minor feature, fixes a couple of bugs, and makes Cassaforte

Re: ANN Introducing EEP, a young [event] stream processing library

2013-09-07 Thread Oleksandr Petrov
RingBuffer operates in it's own pool, adding notifications blocks RingBuffer's yielding, therefore makes notify function block eternally. New version containing a bugfix for that problem, together with throughput tests was added and pushed to Clojars: [clojurewerkz/eep "1.0.0-alpha4"] Please

Re: Introducing a new SQL migration library for clojure / jdbc

2013-09-07 Thread Chris Kuttruff
Alexandr, Thanks so much for the feedback; really glad others are finding this useful as well. I've just published a 0.2.0 version with support for multiple environments (Just use an ENV=test type flag when invoking the plugin command, and have a corresponding :database-test config in your pr

Re: wally: a alternative way to discover functions

2013-09-07 Thread Islon Scherer
> > I wonder if it would be possible to improve it using the core.typed > library and doing some kind of static analysis similar to Haskell's Hoogle > to filter out candidates. > The problem is most Clojure functions don't use core.type nor are type annotated. It would be nice if pure functions

Re: "Clojure in the Large" style JDBC library

2013-09-07 Thread Sean Corfield
If you have any feedback on the new API in the 0.3.0-alpha4 release, let me know. The whole point of the API rewrite in 0.3.0 was to move away from the *db* global dynamic variable, and deprecate all the old stuff. Getting a final release of 0.3.0 is taking longer than I had hoped - apologies - bu

Re: [ANN] clojuretip.herokuapp.com

2013-09-07 Thread Tim Visher
Hah! Love it! On Sat, Sep 7, 2013 at 1:09 PM, Steven Degutis wrote: > Yesterday in #clojure: > > To get your random API learnin' of the day, just run: (->> > clojure.core quote the-ns ns-publics seq rand-nth val meta ((juxt :name > :doc)) (map println) dorun) > > Awesome, right? So I put a lil w

[ANN] clojuretip.herokuapp.com

2013-09-07 Thread Steven Degutis
Yesterday in #clojure: To get your random API learnin' of the day, just run: (->> clojure.core quote the-ns ns-publics seq rand-nth val meta ((juxt :name :doc)) (map println) dorun) Awesome, right? So I put a lil web wrapper around it and uploaded it to clojuretip.herokuapp.com and https://githu

Re: Implementing a Scribble-like preprocessor for Clojure

2013-09-07 Thread JeremyS
Hi bogdan, Sweet! On Saturday, September 7, 2013 5:38:03 PM UTC+2, Bogdan Opanchuk wrote: > > For what it's worth, I've finished a draft implementation using reader API > utilities from Clarity . The > result can be seen on github

Re: Implementing a Scribble-like preprocessor for Clojure

2013-09-07 Thread Bogdan Opanchuk
For what it's worth, I've finished a draft implementation using reader API utilities from Clarity . The result can be seen on github , the example of syntax in tests

Vote for Clojure on DevDocs

2013-09-07 Thread Michael Bradley, Jr.
A couple of months ago I discovered DevDocs: http://devdocs.io/ As a developer who has been spending a lot of time with front-end DOM / JavaScript / HTTP / XHR code over the past 6 months, it's been a real boon. The maintainer is using Trello as a mechanism to collect suggestions and votes fo

Re:

2013-09-07 Thread prasad rao
Dave Della Costa gmail.com> writes: > > Prasad, I'm not positive but I suspect your issue is here: > > > :cljsbuild [:builds []]) > > ...the argument to cljsbuild must be a hashmap I believe. It's > currently a vector. Try: > > > :cljsbuild {:builds []}) > > Let us know if that doesn't

Re: Big Excel (xlsx) file parsing (docjure, incanter...)

2013-09-07 Thread Stanislav Sobolev
Allright, but if use SXSSF how can i stream excel file to that? https://github.com/ktsujister/clj-tsv2xls/blob/master/src/tsv2xls/core.clj Like in this example can anybody provide me code example of using that streaming please? with-open [out-stream (io/output-stream outfile) and further? суббо

Re: Counterclockwise

2013-09-07 Thread Laurent PETIT
Le samedi 7 septembre 2013, Josh Kamau a écrit : > It works with > 0.20.0.master-travis000126-gitcd826fde979c1b13a4cb8acce5409ae88c761b81 > . > Tip: you can enable more paredit features by switching to the strict/paredit mode (alt+d to altenernate in an editor, or persistently via preferences

Re: Handling name collisions with clojure.core

2013-09-07 Thread John D. Hume
I haven't tried this, so apologies if it couldn't even work, but have you considered providing a fn in your library intended to be used inside the ns macro? The refer-clojure :exclude boilerplate could be replaced with something like this. (ns my-thing (:require core.matrix.ns) (:core.matrix.

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
It works with 0.20.0.master-travis000126-gitcd826fde979c1b13a4cb8acce5409ae88c761b81 . Thanks. Josh. On Sat, Sep 7, 2013 at 2:22 PM, Josh Kamau wrote: > It doesnt work on my machine ;) > > I checked on eclipse keybindings and its not that binding is not available. > > I am using 0.12.3.ST

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
It doesnt work on my machine ;) I checked on eclipse keybindings and its not that binding is not available. I am using 0.12.3.STABLE001. I will keep tinkering just in case am making a stupid mistake. Josh. On Sat, Sep 7, 2013 at 2:13 PM, Timo Mihaljov wrote: > On 07.09.2013 14:02, Josh K

Re: Counterclockwise

2013-09-07 Thread Timo Mihaljov
On 07.09.2013 14:02, Josh Kamau wrote: > I am unable to use "slurp" . I am using latest stable version. > > does *Ctrl+) S* mean pressing Ctrl+Shift+)+S together ? "Shift" so that > i pick ) and not 9 and so that S is in caps. ")" is above "0" on my keyboard, so I can trigger the Slurp Right a

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
Hi ; (This is embarassing... ;)) I am unable to use "slurp" . I am using latest stable version. does *Ctrl+) S* mean pressing Ctrl+Shift+)+S together ? "Shift" so that i pick ) and not 9 and so that S is in caps. Thanks Josh On Sat, Sep 7, 2013 at 11:57 AM, Josh Kamau wrote: > Wow! thanks.

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
Wow! thanks... i have been looking for this. Josh. On Sat, Sep 7, 2013 at 11:44 AM, Timo Mihaljov wrote: > On 07.09.2013 11:24, Josh Kamau wrote: > > Please allow me to hijack the thread and ask: > > > > Does Counterclockwise allow "slurping" and "barfing?" like in emacs ? > > Yes. See > http

Re: Counterclockwise

2013-09-07 Thread Timo Mihaljov
On 07.09.2013 11:24, Josh Kamau wrote: > Please allow me to hijack the thread and ask: > > Does Counterclockwise allow "slurping" and "barfing?" like in emacs ? Yes. See http://code.google.com/p/counterclockwise/wiki/EditorKeyBindingsFeatures -- Timo -- -- You received this message because

Re: Counterclockwise

2013-09-07 Thread Josh Kamau
Please allow me to hijack the thread and ask: Does Counterclockwise allow "slurping" and "barfing?" like in emacs ? Josh On Fri, Sep 6, 2013 at 7:59 PM, Marc Dzaebel wrote: > great, to hear, that this important window to the Clojure world is so > actively developed! > > -- > -- > You received

Re: Introducing a new SQL migration library for clojure / jdbc

2013-09-07 Thread Alexandr Kurilin
This is great, thanks for making it. There was nothing quite like that I could find back when I started on our web app, so I ended using standalone_migrations, which is essentially ActiveRecord's Migration module extracted for standalone use. Rig

Re: [ANN] Blackwater 0.0.5 released (SQL query logging)

2013-09-07 Thread Alexandr Kurilin
This is awesome, thanks for making it, will try to integrate it asap. I'm not a Korma user, so it'll be good to see how well it plays with clojure jdbc. Just to confirm, is the recommendation to use this only at development time? It's been a while since Rails and I don't recall if they turn off

Re: "Clojure in the Large" style JDBC library

2013-09-07 Thread Alexandr Kurilin
I've been using clojure.java.jdbc for a while and have been able to get away with the query and execute! functions for most of the work, frequently wrapping them with transactions. All three, from what I recall, give you the option of either using an open connection (very useful for transaction