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

2013-09-07 Thread Vijay Kiran
Hi,

I don't think docjure supports streaming options yet  - but you can try 
using Apache POI streaming API - 
http://poi.apache.org/spreadsheet/index.html - that should help in reading 
large files.

HTH,
@vijaykiran
 

On Saturday, September 7, 2013 3:22:27 AM UTC+2, Stanislav Sobolev wrote:

 Hello guys. I have excel file with huge columns in there.
 When i used some plugin(docjure, or anything else) it shows 
 me CompilerException java.lang.OutOfMemoryError: Java heap space, compiling
 How can i handle that big file without converting it to csv? 
 Primary problem in xlsx structure, it doesnt have lines or something, 
 unlike csv.


-- 
-- 
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/groups/opt_out.


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 
transactions) or to just pass in a map with DB configs that will be used to 
open a new connection right there and then. I remember switching away from 
korma and its defdb partially for that reason.

On Friday, September 6, 2013 7:43:42 AM UTC-7, Jason Gilman wrote:

 That's excellent. I'll feel more comfortable using it in that case.


 On Fri, Sep 6, 2013 at 8:31 AM, Justin Kramer jkkr...@gmail.comjavascript:
  wrote:

 clojure.java.jdbc is transitioning to an API that uses explicit passing 
 of db context - see e.g. the db-find-connection and query functions. The 
 functions that look for a dynamically-scoped db are deprecated - 
 e.g., find-connection, with-query-results.

 Justin


 On Friday, September 6, 2013 8:20:11 AM UTC-4, Jason Gilman wrote:

 It looks like java.jdbc would work since it offers the get-connection 
 function that returns a new connection that can be passed to most of the 
 functions that operate on the database. I'm still concerned by the 
 preponderance of functions with documentation like Executes SQL commands 
 on the open database connection. or Returns the current database 
 connection (or throws if there is none). It smells like there are vars 
 being held onto by the library that hold database connections or other 
 state. It could still work out if I'm careful about which functions I call. 

 What I'd really like is a library that returns some kind of context 
 object when it connects and all functions that operate on the database take 
 that context as an arguments. This is way more flexible, easier to test and 
 fits more in line with the style I was going for. I'm still curious if 
 there are other people out there who want use that same style and have to 
 work with a relational database. I'd like to know if they just accept 
 that's the way the libraries are written or if they have ways to get around 
 it.




 On Fri, Sep 6, 2013 at 7:17 AM, Shantanu Kumar kumar.s...@gmail.comwrote:

 Hi Jason,

 Did you look at (URLs below) clojure/java.jdbc and HoneySQL? I'd be 
 interested to know if you are looking for anything different from these:

 http://clojure-doc.org/**articles/ecosystem/java_jdbc/**home.htmlhttp://clojure-doc.org/articles/ecosystem/java_jdbc/home.html

 https://github.com/clojure/**java.jdbc/https://github.com/clojure/java.jdbc/

 https://github.com/jkk/**honeysql https://github.com/jkk/honeysql

 Shantanu


 On Friday, 6 September 2013 16:28:09 UTC+5:30, Jason Gilman wrote:

 I've been trying to setup all my projects in the style Stuart Sierra 
 documented in Clojure in the 
 Largehttp://www.infoq.com/presentations/Clojure-Large-scale-patterns-techniques
  and My Clojure Workflow, 
 Reloadedhttp://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded.
  
 I've been trying to only use libraries that don't store any explicit 
 mutable state in vars. I've been having trouble finding a Clojure JDBC 
 library that does this. It seems like they all put the connection in some 
 kind of var or other area. I know I could just use the Java JDBC APIs 
 directly but I was hoping to avoid concatenating a bunch of SQL in my 
 Clojure and dealing with these lower level APIs. Does anyone have any 
 recommendations for Clojure libraries that might allow this? I'm also 
 wondering if there might be a Java library with a higher level API that 
 might allow this style. I'm betting other people have run into this issue 
 with relational databases and if they have any tips for how to avoid it. 
 (and yes I'm aware of Datomic :) )

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

 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

 For more options, visit this group at
 http://groups.google.com/**group/clojure?hl=enhttp://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Clojure group.
 To unsubscribe from this topic, visit https://groups.google.com/d/**
 topic/clojure/CpP0pr7bC-Y/**unsubscribehttps://groups.google.com/d/topic/clojure/CpP0pr7bC-Y/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 clojure+u...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .


  -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clo...@googlegroups.comjavascript:
 Note that posts from 

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 SQL 
logging in production mode.

On Friday, August 30, 2013 9:46:43 AM UTC-7, Christopher Allen wrote:

 https://github.com/bitemyapp/blackwater/

 Clojure library for logging SQL queries and the time they took for Korma 
 and clojure.java.jdbc.

 I like having a 'canary in the coal mine' while developing locally so that 
 I can see the queries getting executed and the time they took to run, 
 similar to Rails query logging. The library stands alone although this 
 imports specific (recent) versions of c.j.j and Korma, exclude and replace 
 as you need to.

 Some users to help me shake this out beyond how I use it (I'm primarily a 
 Korma guy) would be very useful, Github Issues and PRs very welcome!

 Thanks everybody. I've got another library to announce once a friend helps 
 me do some testing with it.

 --- Chris



-- 
-- 
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/groups/opt_out.


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_migrationshttps://github.com/thuss/standalone-migrations, 
which is essentially ActiveRecord's Migration module extracted for 
standalone use. Right now it has the advantage over clj-sql-up of 
supporting multiple environments, but it does unfortunately force you to 
have ruby support a Gemfile etc, which isn't as awesome as doing everything 
through clojure.

I'll be following clj-sql-up's progress :)

On Saturday, July 20, 2013 6:35:29 PM UTC-7, Plinio Balduino wrote:

 Thank you, Chris

 I think it will be very useful for my next project.

 Regards

 Plínio

 On Sat, Jul 20, 2013 at 7:19 PM, Chris Kuttruff 
 kutt...@gmail.comjavascript:
  wrote:

 When starting a project to create a clojure blog with 
 ring/compojure/hiccup, I quickly found myself looking for an SQL migration 
 library to use.

 There are some interesting projects out there, but I found myself wanting 
 the following features:

- A standard up/down migration method setup (so I could execute 
multiple migrate/rollback statements within a clojure file) 
- The ability to execute arbitrary SQL (including creation of 
triggers/stored procedures)
- A generic structure to support as many databases as possible
- A simple create method (to generate migration files) 

 I have used other migration setups (eg: rails), and was looking for 
 something similar in terms of features and simplicity of usage.

 The following leiningen plugin is my attempt to accomplish the 
 aforementioned objectives as simply as possible:

 https://github.com/ckuttruff/clj-sql-up

 I am new to clojure / leiningen, so any suggestions / feedback would be 
 much appreciated.  It's still very much a work in progress; I plan to add 
 many more tests, clean up some of the repetition/inelegance, and make 
 various aspects more generic.

 Thanks for your time and consideration; I hope this library can be of use 
 to others.

 -Chris

 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clo...@googlegroups.comjavascript:
 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/groups/opt_out.
  
  




-- 
-- 
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/groups/opt_out.


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 mdzae...@web.de wrote:

 great, to hear, that this important window to the Clojure world is so
 actively developed!

 --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


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 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/groups/opt_out.


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 t...@mihaljov.info 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://code.google.com/p/counterclockwise/wiki/EditorKeyBindingsFeatures

 --
 Timo

 --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


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 joshnet2...@gmail.com wrote:

 Wow! thanks...  i have been looking for this.

 Josh.


 On Sat, Sep 7, 2013 at 11:44 AM, Timo Mihaljov t...@mihaljov.info 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://code.google.com/p/counterclockwise/wiki/EditorKeyBindingsFeatures

 --
 Timo

 --
 --
 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/groups/opt_out.




-- 
-- 
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/groups/opt_out.


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 action
like this: press Ctrl, Shift, and 0 simultaneously, release everything,
press s.

-- 
Timo

-- 
-- 
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/groups/opt_out.


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 t...@mihaljov.info wrote:

 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 action
 like this: press Ctrl, Shift, and 0 simultaneously, release everything,
 press s.

 --
 Timo

 --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


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 joshnet2...@gmail.com 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.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 t...@mihaljov.info wrote:

 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 action
 like this: press Ctrl, Shift, and 0 simultaneously, release everything,
 press s.

 --
 Timo

 --
 --
 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/groups/opt_out.




-- 
-- 
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/groups/opt_out.


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.ns/exclude-clojure-core-math-ops)
  (:use core.matrix))

It's not too much boilerplate, and probably explicit enough for anyone who
was going to :refer :all anyway.

(Sorry for butchering your lib's name. Mobile keyboard bad for code.)
On Sep 4, 2013 8:22 PM, Mikera mike.r.anderson...@gmail.com wrote:

 Hi all,

 While building the API for core.matrix, I've fun into a few cases where
 the best name is a direct clash with clojure.core.

 Examples are +, zero?, vector?, ==

 In many of these cases, the core.matrix behaviour is a natural extension
 of the clojure.core function (i.e. it extends the same functionality to
 arbitrary N-dimensional arrays).

 I'm not very happy with any of the options I can see for handling this:

 A) Use the good names in the clojure.core.matrix namespace. Problem:
 that gives you a ton of nasty warnings of the type WARNING: + already
 refers to: #'clojure.core/+ in namespace: test.blank, being replaced by:
 #'clojure.core.matrix/+. Significant boilerplate must be maintained by the
 user in their ns declaration to prevent these warnings. I don't like
 forcing users to maintain boilerplate, and I think that normal idiomatic
 usage should be warning-free.

 B) Separate the name-clashing functions into separate namespaces - e.g.
 clojure.core.matrix.operators. Problem: that's something of an artificial
 division, and again it forces users to do extra ns-management work to
 access the functions they want.

 C) Use different names. Problem: names would be worse, and this would be
 inconsistent and confusing, especially for functions that do effectively
 the same thing.

 D) Encourage users to use aliases. Problem: that's horrendously ugly and
 inconvenient for numerical code. Users with any sense of elegance in their
 coding style would quite rightly throw their hands up in disgust.

 Currently we're doing B), I'd prefer to do A) but can't figure out a way
 to automatically suppress the warnings.

 Any better ideas?



  --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


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  clojure  editor).

Pro-tip: you can disable paredit for the next keystroke by typing Esc first
(useful if you feel you're fighting paredit in certain situations).


 Thanks.
 Josh.


 On Sat, Sep 7, 2013 at 2:22 PM, Josh Kamau 
 joshnet2...@gmail.comjavascript:_e({}, 'cvml', 'joshnet2...@gmail.com');
  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.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 
 t...@mihaljov.infojavascript:_e({}, 'cvml', 't...@mihaljov.info');
  wrote:

 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 action
 like this: press Ctrl, Shift, and 0 simultaneously, release everything,
 press s.

 --
 Timo

 --
 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to 
 clojure@googlegroups.comjavascript:_e({}, 'cvml', 
 '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 javascript:_e({}, 'cvml',
 'clojure%2bunsubscr...@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 javascript:_e({},
 'cvml', 'clojure%2bunsubscr...@googlegroups.com');.
 For more options, visit https://groups.google.com/groups/opt_out.



  --
 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to 
 clojure@googlegroups.comjavascript:_e({}, 'cvml', 
 '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 javascript:_e({}, 'cvml',
 'clojure%2bunsubscr...@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 javascript:_e({}, 'cvml',
 'clojure%2bunsubscr...@googlegroups.com');.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
-- 
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/groups/opt_out.


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?


суббота, 7 сентября 2013 г., 12:30:43 UTC+6 пользователь Vijay Kiran 
написал:

 Hi,

 I don't think docjure supports streaming options yet  - but you can try 
 using Apache POI streaming API - 
 http://poi.apache.org/spreadsheet/index.html - that should help in 
 reading large files.

 HTH,
 @vijaykiran
  

 On Saturday, September 7, 2013 3:22:27 AM UTC+2, Stanislav Sobolev wrote:

 Hello guys. I have excel file with huge columns in there.
 When i used some plugin(docjure, or anything else) it shows 
 me CompilerException java.lang.OutOfMemoryError: Java heap space, compiling
 How can i handle that big file without converting it to csv? 
 Primary problem in xlsx structure, it doesnt have lines or something, 
 unlike csv.



-- 
-- 
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/groups/opt_out.


Re:

2013-09-07 Thread prasad rao
Dave Della Costa ddellacosta at 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 work.
 
 DD

Dave:
  You are absolutely right.  

Thank you,
-Prasad


-- 
-- 
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/groups/opt_out.


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 for what libraries, languages and tools should have their 
documentation ported into DevDocs:

https://trello.com/b/6BmTulfx/devdocs-documentation


Back in late August, I requested that Clojure be added to the voting-list, 
but didn't notice until yesterday that he did add it, in the [Other] list.

*If you would like to see Clojure's docs available through DevDocs, please 
go vote for it!*  It may be some time before the maintainer gets around to 
it, but he does seem quite responsive when the votes tally up for a 
particular entry.


Perhaps some other popular Clojure-related APIs could be suggested as well: 
 ring, Datomic, etc.

In the long run, I hope the maintainer will open source the DevDocs 
platform and some docs-contribution mechanism (it's not an open platform at 
present), but I find it to be a very practical and useful tool in any case.


Best regards.

--
Michael Bradley, Jr.
@michaelsbradley

-- 
-- 
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/groups/opt_out.


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 https://github.com/one-more-minute/clarity. The 
result can be seen on github https://github.com/Manticore/clojure-scribble, 
the example of syntax in 
testshttps://github.com/Manticore/clojure-scribble/blob/master/test/scribble/core_test.clj.
 
This is my first ever Clojure project, so I'll gladly accept any comments 
(or push requests). I'm planning to push it on clojars when it's cleaned 
up, and the uncertainties in syntax are dealt with.

-- 
-- 
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/groups/opt_out.


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 https://github.com/one-more-minute/clarity. The 
 result can be seen on githubhttps://github.com/Manticore/clojure-scribble, 
 the example of syntax in 
 testshttps://github.com/Manticore/clojure-scribble/blob/master/test/scribble/core_test.clj.
  
 This is my first ever Clojure project, so I'll gladly accept any comments 
 (or push requests). I'm planning to push it on clojars when it's cleaned 
 up, and the uncertainties in syntax are dealt with.



-- 
-- 
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/groups/opt_out.


[ANN] clojuretip.herokuapp.com

2013-09-07 Thread Steven Degutis
Yesterday in #clojure:

TimMc 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://github.com/sdegutis/clojuretip.

-Steven

-- 
-- 
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/groups/opt_out.


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 sbdegu...@gmail.com wrote:
 Yesterday in #clojure:

 TimMc 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://github.com/sdegutis/clojuretip.

 -Steven

 --
 --
 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/groups/opt_out.

-- 
-- 
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/groups/opt_out.


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 - but it's a lot of API churn and I want to make sure we've
covered all our bases before 0.3.0 goes out so I don't have to make
breaking changes again in the near future. The main change holding up
0.3.0 is deciding exactly what to do with transactions. I want to move
away from the boolean :transaction? argument to a function-based
:transaction-fn argument instead so more general transaction logic can
be used. I also want to support a little more in the DDL area before
0.3.0 goes out.

Thanx,
Sean

On Sat, Sep 7, 2013 at 12:07 AM, Alexandr Kurilin a...@kurilin.net wrote:
 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 transactions) or
 to just pass in a map with DB configs that will be used to open a new
 connection right there and then. I remember switching away from korma and
 its defdb partially for that reason.


 On Friday, September 6, 2013 7:43:42 AM UTC-7, Jason Gilman wrote:

 That's excellent. I'll feel more comfortable using it in that case.


 On Fri, Sep 6, 2013 at 8:31 AM, Justin Kramer jkkr...@gmail.com wrote:

 clojure.java.jdbc is transitioning to an API that uses explicit passing
 of db context - see e.g. the db-find-connection and query functions. The
 functions that look for a dynamically-scoped db are deprecated - e.g.,
 find-connection, with-query-results.

 Justin


 On Friday, September 6, 2013 8:20:11 AM UTC-4, Jason Gilman wrote:

 It looks like java.jdbc would work since it offers the get-connection
 function that returns a new connection that can be passed to most of the
 functions that operate on the database. I'm still concerned by the
 preponderance of functions with documentation like Executes SQL commands 
 on
 the open database connection. or Returns the current database connection
 (or throws if there is none). It smells like there are vars being held 
 onto
 by the library that hold database connections or other state. It could 
 still
 work out if I'm careful about which functions I call.

 What I'd really like is a library that returns some kind of context
 object when it connects and all functions that operate on the database take
 that context as an arguments. This is way more flexible, easier to test and
 fits more in line with the style I was going for. I'm still curious if 
 there
 are other people out there who want use that same style and have to work
 with a relational database. I'd like to know if they just accept that's the
 way the libraries are written or if they have ways to get around it.




 On Fri, Sep 6, 2013 at 7:17 AM, Shantanu Kumar kumar.s...@gmail.com
 wrote:

 Hi Jason,

 Did you look at (URLs below) clojure/java.jdbc and HoneySQL? I'd be
 interested to know if you are looking for anything different from these:

 http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html

 https://github.com/clojure/java.jdbc/

 https://github.com/jkk/honeysql

 Shantanu


 On Friday, 6 September 2013 16:28:09 UTC+5:30, Jason Gilman wrote:

 I've been trying to setup all my projects in the style Stuart Sierra
 documented in Clojure in the Large and My Clojure Workflow, Reloaded. 
 I've
 been trying to only use libraries that don't store any explicit mutable
 state in vars. I've been having trouble finding a Clojure JDBC library 
 that
 does this. It seems like they all put the connection in some kind of var 
 or
 other area. I know I could just use the Java JDBC APIs directly but I was
 hoping to avoid concatenating a bunch of SQL in my Clojure and dealing 
 with
 these lower level APIs. Does anyone have any recommendations for Clojure
 libraries that might allow this? I'm also wondering if there might be a 
 Java
 library with a higher level API that might allow this style. I'm betting
 other people have run into this issue with relational databases and if 
 they
 have any tips for how to avoid it. (and yes I'm aware of Datomic :) )

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

 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

 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Clojure group.
 To unsubscribe from this topic, visit
 

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 had some metadata like :pure true. =) 

On Saturday, September 7, 2013 1:53:08 AM UTC+2, Chris-tina Whyte wrote:

 Interesting!

 Though it executes every function in order to find the matches, which is a 
 little bit dangerous as Clojure doesn't enforce purity :( 

 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.

 On Thursday, September 5, 2013 6:23:28 PM UTC-3, Islon Scherer wrote:

 Hey guys,

 I don't know about you but when I was a beginner in Clojure (and it still 
 happens every now and then) I had a hard time finding functions using `doc` 
 or `find-doc`,
 normally because I didn't remember the name of the function or because my 
 only clue was a generic name so find-doc would return too much results. But 
 one
 thing I knew: what to expect of the function, I knew the inputs and the 
 outputs. That's why I decided to create wally, because sometimes you don't
 know the name of the function you want but you know how it should behave.

 With wally you can tell the inputs and the output and it'll search for 
 functions that match those inputs/outputs.

 Ex:

 user= (find-by-sample {1 1, 2 3, 3 1, 4 2} [1 2 3 4 4 2 
 2])-clojure.core/frequencies([coll])
   Returns a map from distinct items in coll to the number of times
   they appear.


 user= (find-by-sample '((1 2 3) (4 5)) (partial  3) [1 2 3 4 5])
 -
 clojure.core/partition-by
 ([f coll])
   Applies f to each value in coll, splitting it each time f returns
a new value.  Returns a lazy seq of partitions.


  https://github.com/stackoverflow/wally



-- 
-- 
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/groups/opt_out.


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 project.clj).  Also added 
support for rollinback mult. migrations (eg: lein clj-sql-up rollback 3)

I've pushed the new version to clojars and updated the README, etc on 
github (https://github.com/ckuttruff/clj-sql-up)

Thanks again; please let me know if you have any issues or would like to 
see other functionality included,
-Chris


On Saturday, September 7, 2013 12:27:21 AM UTC-7, Alexandr Kurilin wrote:

 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_migrationshttps://github.com/thuss/standalone-migrations, 
 which is essentially ActiveRecord's Migration module extracted for 
 standalone use. Right now it has the advantage over clj-sql-up of 
 supporting multiple environments, but it does unfortunately force you to 
 have ruby support a Gemfile etc, which isn't as awesome as doing everything 
 through clojure.

 I'll be following clj-sql-up's progress :)

 On Saturday, July 20, 2013 6:35:29 PM UTC-7, Plinio Balduino wrote:

 Thank you, Chris

 I think it will be very useful for my next project.

 Regards

 Plínio

 On Sat, Jul 20, 2013 at 7:19 PM, Chris Kuttruff kutt...@gmail.comwrote:

 When starting a project to create a clojure blog with 
 ring/compojure/hiccup, I quickly found myself looking for an SQL migration 
 library to use.

 There are some interesting projects out there, but I found myself 
 wanting the following features:

- A standard up/down migration method setup (so I could execute 
multiple migrate/rollback statements within a clojure file) 
- The ability to execute arbitrary SQL (including creation of 
triggers/stored procedures)
- A generic structure to support as many databases as possible
- A simple create method (to generate migration files) 

 I have used other migration setups (eg: rails), and was looking for 
 something similar in terms of features and simplicity of usage.

 The following leiningen plugin is my attempt to accomplish the 
 aforementioned objectives as simply as possible:

 https://github.com/ckuttruff/clj-sql-up

 I am new to clojure / leiningen, so any suggestions / feedback would be 
 much appreciated.  It's still very much a work in progress; I plan to add 
 many more tests, clean up some of the repetition/inelegance, and make 
 various aspects more generic.

 Thanks for your time and consideration; I hope this library can be of 
 use to others.

 -Chris

 -- 
 -- 
 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
 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
 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.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
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/groups/opt_out.


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 use alpha4 if you use RingBuffer dispatcher. This problem does not
occur with other dispatcher types.



On Fri, Sep 6, 2013 at 6:08 PM, Michael Klishin michael.s.klis...@gmail.com
 wrote:

 2013/9/6 Ulises ulises.cerv...@gmail.com

 I'm sure it's a bit early but is there a mailing list for this?

 I've ran into trouble trying EEP on a really simple flow (the even vs.
 odds in the docs.) and I'd like to ask a few questions.


 Now there is:

 https://groups.google.com/forum/#!forum/clojure-event-processing

 Authors of other stream processing libraries are very welcome to join!
 --
 MK

 http://github.com/michaelklishin
 http://twitter.com/michaelklishin

 --
 --
 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/groups/opt_out.




-- 
alex p

-- 
-- 
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/groups/opt_out.


[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 compatible with Cassandra 2.0.

Release notes:
http://blog.clojurewerkz.org/blog/2013/09/07/cassaforte-1-dot-2-0-is-released/

1. http://clojurecassandra.info/ http://clojurememcached.info/

--
Alex P

https://github.com/ifesdjeen
https://twitter.com/ifesdjeen

-- 
-- 
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/groups/opt_out.


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

http://github.com/michaelklishin
http://twitter.com/michaelklishin

-- 
-- 
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/groups/opt_out.


[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 several improvements, including update of Meltdown
[2], Clojure
interface to Reactor [3] (foundation library for asynchronous processing on
JVM) and a
fix for bug, that was causing emitter block on high throughput.

ChangeLog:
https://github.com/clojurewerkz/eep/blob/master/Changelog.md

1. https://github.com/clojurewerkz/eep
2. https://github.com/clojurewerkz/meltdown
3. https://github.com/reactor/reactor

--
Alex P

https://github.com/ifesdjeen
https://twitter.com/ifesdjeen

-- 
-- 
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/groups/opt_out.


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
Upload data, display graph chart
log as data


Application lib-
Datomic, Compojure, Enlive, Clojure-Script, Friends, incanter

Interactive development both clojure and clojure-script using 
https://github.com/Mamun/emacs-live-clojure-workflow


BR,
Mamun

-- 
-- 
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/groups/opt_out.


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 islonsche...@gmail.com 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'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 had some metadata like :pure true. =)

 On Saturday, September 7, 2013 1:53:08 AM UTC+2, Chris-tina Whyte wrote:

 Interesting!

 Though it executes every function in order to find the matches, which is a
 little bit dangerous as Clojure doesn't enforce purity :(

 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.

 On Thursday, September 5, 2013 6:23:28 PM UTC-3, Islon Scherer wrote:

 Hey guys,

 I don't know about you but when I was a beginner in Clojure (and it still
 happens every now and then) I had a hard time finding functions using `doc`
 or `find-doc`,
 normally because I didn't remember the name of the function or because my
 only clue was a generic name so find-doc would return too much results. But
 one
 thing I knew: what to expect of the function, I knew the inputs and the
 outputs. That's why I decided to create wally, because sometimes you don't
 know the name of the function you want but you know how it should behave.

 With wally you can tell the inputs and the output and it'll search for
 functions that match those inputs/outputs.

 Ex:

 user= (find-by-sample {1 1, 2 3, 3 1, 4 2} [1 2 3 4 4 2 2])
 -
 clojure.core/frequencies
 ([coll])
   Returns a map from distinct items in coll to the number of times
   they appear.


 user= (find-by-sample '((1 2 3) (4 5)) (partial  3) [1 2 3 4 5])
 -
 clojure.core/partition-by
 ([f coll])
   Applies f to each value in coll, splitting it each time f returns
a new value.  Returns a lazy seq of partitions.


  https://github.com/stackoverflow/wally

 --
 --
 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/groups/opt_out.

-- 
-- 
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/groups/opt_out.


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 https://github.com/weavejester/environ for things 
like db address, db password, cookie secret keys, logging level etc. Each 
one is an individual file in root-only folder that runit envdirs from.

I honestly can't decide whether a single configuration file (YAML, EDN, 
whatever) would be more appropriate for this scenario or if I should go 
ahead and continue keeping each configuration value in its own file and use 
env to load them.

What are people's thoughts on this? Any reason why one or the other would 
be better, or is there an even better option out there I'm not considering?

-- 
-- 
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/groups/opt_out.


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 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/groups/opt_out.


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 analyzing files that haven't changed when you're doing incremental
builds.

Feedback and issues welcome, I would like to merge this into master and cut
a release with this enhancement as soon as possible.

Thanks,
David

-- 
-- 
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/groups/opt_out.


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, Alexandr Kurilin wrote:

 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 https://github.com/weavejester/environfor 
 things like db address, db password, cookie secret keys, logging level 
 etc. Each one is an individual file in root-only folder that runit envdirs 
 from.

 I honestly can't decide whether a single configuration file (YAML, EDN, 
 whatever) would be more appropriate for this scenario or if I should go 
 ahead and continue keeping each configuration value in its own file and use 
 env to load them.

 What are people's thoughts on this? Any reason why one or the other would 
 be better, or is there an even better option out there I'm not considering?


-- 
-- 
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/groups/opt_out.


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://github.com/Mamun/clojure-web-app.git

 Application feature- 
 Web Authentication
 CRUD view for domain object
 Pagination for list view
 Upload data, display graph chart
 log as data


 Application lib-
 Datomic, Compojure, Enlive, Clojure-Script, Friends, incanter

 Interactive development both clojure and clojure-script using 
 https://github.com/Mamun/emacs-live-clojure-workflow


 BR,
 Mamun


-- 
-- 
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/groups/opt_out.


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 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 project.clj).  Also added 
 support for rollinback mult. migrations (eg: lein clj-sql-up rollback 3)

 I've pushed the new version to clojars and updated the README, etc on 
 github (https://github.com/ckuttruff/clj-sql-up)

 Thanks again; please let me know if you have any issues or would like to 
 see other functionality included,
 -Chris


 On Saturday, September 7, 2013 12:27:21 AM UTC-7, Alexandr Kurilin wrote:

 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_migrationshttps://github.com/thuss/standalone-migrations, 
 which is essentially ActiveRecord's Migration module extracted for 
 standalone use. Right now it has the advantage over clj-sql-up of 
 supporting multiple environments, but it does unfortunately force you to 
 have ruby support a Gemfile etc, which isn't as awesome as doing everything 
 through clojure.

 I'll be following clj-sql-up's progress :)

 On Saturday, July 20, 2013 6:35:29 PM UTC-7, Plinio Balduino wrote:

 Thank you, Chris

 I think it will be very useful for my next project.

 Regards

 Plínio

 On Sat, Jul 20, 2013 at 7:19 PM, Chris Kuttruff kutt...@gmail.comwrote:

 When starting a project to create a clojure blog with 
 ring/compojure/hiccup, I quickly found myself looking for an SQL migration 
 library to use.

 There are some interesting projects out there, but I found myself 
 wanting the following features:

- A standard up/down migration method setup (so I could execute 
multiple migrate/rollback statements within a clojure file) 
- The ability to execute arbitrary SQL (including creation of 
triggers/stored procedures)
- A generic structure to support as many databases as possible
- A simple create method (to generate migration files) 

 I have used other migration setups (eg: rails), and was looking for 
 something similar in terms of features and simplicity of usage.

 The following leiningen plugin is my attempt to accomplish the 
 aforementioned objectives as simply as possible:

 https://github.com/ckuttruff/clj-sql-up

 I am new to clojure / leiningen, so any suggestions / feedback would be 
 much appreciated.  It's still very much a work in progress; I plan to add 
 many more tests, clean up some of the repetition/inelegance, and make 
 various aspects more generic.

 Thanks for your time and consideration; I hope this library can be of 
 use to others.

 -Chris

 -- 
 -- 
 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
 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
 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.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
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/groups/opt_out.


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

On Saturday, September 7, 2013 12:14:47 AM UTC-7, Alexandr Kurilin wrote:

 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 SQL 
 logging in production mode.

 On Friday, August 30, 2013 9:46:43 AM UTC-7, Christopher Allen wrote:

 https://github.com/bitemyapp/blackwater/

 Clojure library for logging SQL queries and the time they took for Korma 
 and clojure.java.jdbc.

 I like having a 'canary in the coal mine' while developing locally so 
 that I can see the queries getting executed and the time they took to run, 
 similar to Rails query logging. The library stands alone although this 
 imports specific (recent) versions of c.j.j and Korma, exclude and replace 
 as you need to.

 Some users to help me shake this out beyond how I use it (I'm primarily a 
 Korma guy) would be very useful, Github Issues and PRs very welcome!

 Thanks everybody. I've got another library to announce once a friend 
 helps me do some testing with it.

 --- Chris



-- 
-- 
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/groups/opt_out.


Re: [ANN] clojuretip.herokuapp.com

2013-09-07 Thread Ambrose Bonnaire-Sergeant
Nice! :)


On Sun, Sep 8, 2013 at 1:09 AM, Steven Degutis sbdegu...@gmail.com wrote:

 Yesterday in #clojure:

 TimMc 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://github.com/sdegutis/clojuretip.

 -Steven

 --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


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 Walters)

On Sep 7, 2013, at 12:09 PM, Steven Degutis sbdegu...@gmail.com wrote:

 Yesterday in #clojure:
 
 TimMc 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://github.com/sdegutis/clojuretip.
 
 -Steven
 -- 
 -- 
 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/groups/opt_out.

-- 
-- 
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/groups/opt_out.


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 beginner in Clojure (and it still 
 happens every now and then) I had a hard time finding functions using `doc` 
 or `find-doc`,
 normally because I didn't remember the name of the function or because my 
 only clue was a generic name so find-doc would return too much results. But 
 one
 thing I knew: what to expect of the function, I knew the inputs and the 
 outputs. That's why I decided to create wally, because sometimes you don't
 know the name of the function you want but you know how it should behave.

 With wally you can tell the inputs and the output and it'll search for 
 functions that match those inputs/outputs.

 Ex:

 user= (find-by-sample {1 1, 2 3, 3 1, 4 2} [1 2 3 4 4 2 
 2])-clojure.core/frequencies([coll])
   Returns a map from distinct items in coll to the number of times
   they appear.


 user= (find-by-sample '((1 2 3) (4 5)) (partial  3) [1 2 3 4 5])
 -
 clojure.core/partition-by
 ([f coll])
   Applies f to each value in coll, splitting it each time f returns
a new value.  Returns a lazy seq of partitions.


  https://github.com/stackoverflow/wally


-- 
-- 
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/groups/opt_out.


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 maximilien.rze...@gmail.com

 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 beginner in Clojure (and it still
 happens every now and then) I had a hard time finding functions using `doc`
 or `find-doc`,
 normally because I didn't remember the name of the function or because my
 only clue was a generic name so find-doc would return too much results. But
 one
 thing I knew: what to expect of the function, I knew the inputs and the
 outputs. That's why I decided to create wally, because sometimes you don't
 know the name of the function you want but you know how it should behave.

 With wally you can tell the inputs and the output and it'll search for
 functions that match those inputs/outputs.

 Ex:

 user= (find-by-sample {1 1, 2 3, 3 1, 4 2} [1 2 3 4 4 2 
 2])-clojure.core/frequencies([coll])
   Returns a map from distinct items in coll to the number of times
   they appear.


 user= (find-by-sample '((1 2 3) (4 5)) (partial  3) [1 2 3 4 5])
 -
 clojure.core/partition-by
 ([f coll])
   Applies f to each value in coll, splitting it each time f returns
a new value.  Returns a lazy seq of partitions.


  
 https://github.com/**stackoverflow/wallyhttps://github.com/stackoverflow/wally

  --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


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 
problems in Eclipse.
I am using JDK 1.7 on Ubuntu 13.04.

(defproject startingclojure 0.1.0-SNAPSHOT
  :description FIXME: write description
  :url http://example.com/FIXME;
  :license {:name Eclipse Public License
:url http://www.eclipse.org/legal/epl-v10.html}
  :dependencies [[org.clojure/clojure 1.5.1]
 [ring 1.2.0]])

Ring libraries are imported fine. I have compojure and enlive also as part 
of project but not shown here.
No errors in Eclipse.

...
I have tried various approaches but my require is as you shown:
(ns startingclojure.app
  (:require [ring.adapter.jetty :as jetty]))

...
However my jetty just won't run:
(def server (jetty/run-jetty #'app {:port 8080 :join? true}))

Always gives this error:
CompilerException java.lang.RuntimeException: No such namespace: jetty, 
compiling:(NO_SOURCE_PATH:1:13)

-- 
-- 
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/groups/opt_out.


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 a simple Clojure map with configuration for your app that is
appropriate for version control. Maybe it has some default values,
comments, etc. You could build this in to your app somewhere, too.

The project would then have another Clojure map in a file named like
'config/local.clj' in your project root which would be ignored by
version control, and deployed alongside your application. You'd
probably template it with Puppet or Chef or Ansible and it would
contain your deep, dark secrets. You'd have a project-local one of
these for development. You could even have more than one, if that's
your thing.

At application initialization, the maps are then read in, merged and
made available to your application exactly like weavejester's environ
that you mentioned. environ already handles leiningen profiles for
things like AWS access keys which might be annoying to duplicate
across all of your projects in development, and such a system as I've
described would fit in fairly naturally with environ. In any event, I
hadn't found that project yet, but I definitely plan to use it now.
Thanks for pointing it out!

On Sat, Sep 7, 2013 at 11:53 PM, Alexandr Kurilin a...@frontrowed.com wrote:
 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 for things like db address, db password, cookie
 secret keys, logging level etc. Each one is an individual file in root-only
 folder that runit envdirs from.

 I honestly can't decide whether a single configuration file (YAML, EDN,
 whatever) would be more appropriate for this scenario or if I should go
 ahead and continue keeping each configuration value in its own file and use
 env to load them.

 What are people's thoughts on this? Any reason why one or the other would be
 better, or is there an even better option out there I'm not considering?

-- 
-- 
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/groups/opt_out.