Re: Database migrations

2013-06-25 Thread Kelker Ryan
To answer your first email, here's a Lobos based migration using the CHP framework https://github.com/runexec/chp#db-migrations. The configuration file is in resources/config/db.clj and is used by clojure.java.jdbc, KormSQL, and Lobos. 26.06.2013, 04:38, "Marian Schubert" :Hello, few days ago I ext

Detecting login and logout using friend

2013-06-25 Thread Steve Buikhuizen
Hi all, I'm using Friend https://github.com/cemerick/friend for auth on my webapp and I'm measuring how many people login and use the app etc. In order to do this I need to detect the login and logout events as well as the session-id cookie (I need a unique id for session) from the container.

Re: ANN: ClojureScript release 0.0-1798

2013-06-25 Thread David Nolen
I recall it adding a significant amount of time to advanced compilation so I'm not sure that's such a good idea as a default. But documenting and advertising its existence in the proper places seems like a good idea. David On Tue, Jun 25, 2013 at 11:07 PM, Brandon Bloom wrote: > Even if it's ho

Re: ANN: ClojureScript release 0.0-1798

2013-06-25 Thread Brandon Bloom
Even if it's horribly broken, maybe we should default it to on for advanced builds anyway? It's not like anything can be harder to debug than raw advanced compilation output. Besides, we might get some more interest and contributions if it *feels* like it's close! On Tuesday, June 25, 2013 7:37

Re: ANN: ClojureScript release 0.0-1798

2013-06-25 Thread David Nolen
Wow, really? I didn't really consider it usable yet as we don't emit quite enough information for mapping symbols. On Tue, Jun 25, 2013 at 7:14 PM, wrote: > Thanks a lot for the source map support. Made it possible for me to find > the cause of my broken advanced compiled cljs. Without the sour

Re: ANN: ClojureScript release 0.0-1798

2013-06-25 Thread gerrit . hentschel
Thanks a lot for the source map support. Made it possible for me to find the cause of my broken advanced compiled cljs. Without the source map I was totally lost... In case anybody wonders how to enable it: Just add a :source-map "path/to/js/folder/source-map-name.js.map" key value pair to the

Re: putting 2-element colls into a map: works with vectors, but not with lists?

2013-06-25 Thread Michael Gardner
On Jun 25, 2013, at 15:03 , Michael-Keith Bernard (SegFaultAX) wrote: > https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/APersistentMap.java#L24 > > The implementation assumes you're attempting to conj one of the following 3 > things into the hash map: > • A MapEntry o

Re: putting 2-element colls into a map: works with vectors, but not with lists?

2013-06-25 Thread Michael-Keith Bernard (SegFaultAX)
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/APersistentMap.java#L24 The implementation assumes you're attempting to conj one of the following 3 things into the hash map: 1. A MapEntry object 2. A vector of the format [key value] 3. A seq of MapEntry objects (comm

Re: Database migrations

2013-06-25 Thread Marian Schubert
Hello, few days ago I extracted DB migrations code from few of my pet projects into library called fun_migrations (https://github.com/maio/fun_migrations). I should probably also credit technomancy because in syme project he's using similar simple concept. It's just few lines of code so I didn

ANN: clojure.java.shell2 drop in replacement for clojure.java.shell

2013-06-25 Thread Marc Limotte
I'm announcing java.shell2 . It is backward compatible with clojure.java.shell. This is a Clojure library to facilitate launching of sub-processes and piping (streaming) data. Features - A declarative syntax for defining new processes to specify input, ou