Re: Ragtime w/ Korma

2014-01-14 Thread Christopher Allen
cur in the h2 in-memory database, but for some reason > korma doesn't see the tables. > I suspect that korma is actually connecting to a different database, or is > connecting after the original in-memory database has closed (I used the > "DB_CLOSE_DELAY=-1" argument to tr

Re: Ragtime w/ Korma

2014-01-13 Thread Christopher Allen
Try it without H2 and check the contents of the database manually. "Korma cooperating" doesn't mean a lot if the tables don't actually exist. Error messages should be provided in future. On Monday, January 13, 2014 1:44:28 PM UTC-8, Arlandis Lawrence wrote: > > I'm trying to use H2's in-memory d

Re: How to handle configuration in Clojure?

2014-01-13 Thread Christopher Allen
Example here: https://github.com/bitemyapp/berossus/blob/master/src/berossus/rocks/your/data/config.clj On Monday, January 13, 2014 1:57:06 PM UTC-8, Christopher Allen wrote: > > > github.com/weavejester/environ/ + environment variables. 12-factor it > that way, proxy the environme

Re: How to handle configuration in Clojure?

2014-01-13 Thread Christopher Allen
github.com/weavejester/environ/ + environment variables. 12-factor it that way, proxy the environment variables via a config namespace so that configuration values are programmatically generated in case something needs to intervene. On Monday, January 13, 2014 5:50:54 AM UTC-8, James Trunk wro

Re: Managing role-based permissions in Ring apps

2014-01-13 Thread Christopher Allen
To clarify, that was an example of content negotiation middleware, not ACL. If I were to tackle this, I would try to find or implement a pure ACL (not aware of web apps per se) library and then hook it up via Ring middleware. On Monday, January 13, 2014 12:45:23 PM UTC-8, Christopher Allen

Re: Managing role-based permissions in Ring apps

2014-01-13 Thread Christopher Allen
I might follow up with a more thorough reply, but I had to drop Friend for the same reason I had to drop Liberator. Customizing the assumptions/defaults the libraries made was too default. Relatively simple content negotiation involved trying to do insane monkey-patches of Liberator's protocols

[ANN] Brambling: Datomic (Schema) Migration library/toolkit for Clojure

2013-11-08 Thread Christopher Allen
https://github.com/bitemyapp/brambling/ This is a very early point in time for the library, (alpha), but it has already been useful at work so I figured I would get it out there to see what bits people did and didn't care about. Why this exists: As with any historical database you have to migr

Re: SQL to logic rule mapping

2013-10-30 Thread Christopher Allen
If you just want to build up and apply constraints, Korma can do that. If you want something closer to Datalog with unification, then a Datalog to SQL bridge is the most practical of largely impractical choices. On Tuesday, October 29, 2013 9:35:45 AM UTC-7, ArturoH wrote: > > I am interested in

Re: What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Christopher Allen
You can use Korma with Stuart Sierra's workflow just fine. On Sunday, October 27, 2013 5:07:02 PM UTC-7, Manuel Paccagnella wrote: > > Il giorno lunedì 28 ottobre 2013 00:30:06 UTC+1, Alexander Hudek ha > scritto: > > http://www.luminusweb.net/ gives a reasonable starting setup. The only >> thin

Re: [ANN] Show the latest version of the library on your Github README page

2013-10-09 Thread Christopher Allen
Thank you for this! What could be done to make the text highlightable/copyable? On Tuesday, October 8, 2013 6:25:07 AM UTC-7, Alexander Yakushev wrote: > > Have you ever felt annoyed to update the README after you released a new > version of your project? Have your users ever struggled to make t

Re: *db* binding with jetty

2013-09-23 Thread Christopher Allen
Most web apps will either have a top-level def'd var that points to the database or they'll use a middleware to chain it into the request map. Which you do depends on your DB library. On Monday, September 23, 2013 1:23:50 PM UTC-7, Brian Craft wrote: > > My question is more about how to pass som

Re: clojure web framework

2013-09-13 Thread Christopher Allen
Well for creation itself, http://www.luminusweb.net/ represents best practices with Ring, Compojure, and the usual attendant libraries. For deployment, I'd say something like Fabric or Ansible is going to be the simplest way to start. On Friday, September 13, 2013 10:45:10 AM UTC-7, Jon Barker

Re: [ANN] quickie- autotest plugin for clojure.test

2013-09-13 Thread Christopher Allen
Link: https://github.com/jakepearson/quickie Is it possible to see *some* of the stack trace so you can debug? Also you should include a screenshot of what the library looks like in action. :) On Friday, September 13, 2013 10:57:35 AM UTC-7, Jake Pearson wrote: > > Hi, > Quickie is a leininge

Re: The Eclipse Public License is not a good license

2013-09-11 Thread Christopher Allen
I agree with Corfield and approaching things that seem wrong from a spirit of curiosity, rather than defaulting to criticism is a better way to improve understanding. You miss wonderful opportunities to learn when you approach things like that. On Wednesday, September 11, 2013 10:54:36 AM UTC-7

[ANN] Blackwater 0.0.8

2013-09-10 Thread Christopher Allen
https://github.com/bitemyapp/blackwater Single-line SQL query formatting, separate Korma and c.j.j namespaces, ability to use a custom fn with set-logger! now as well. Any additional feature requests/changes should continue to hit the Github issues. Cheers all. --- Chris -- -- You received

Re: Functional purity and "globals" in Clojure

2013-09-10 Thread Christopher Allen
I do a hybrid in Bulwark. github.com/bitemyapp/bulwark/ Defaults to accepting a closure of a config map for nice testing and hygiene, with a fallback to a global atom map for configuration for muggles. Works well for me. On Tuesday, September 10, 2013 12:19:35 AM UTC-7, Alexandr Kurilin wrote:

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

2013-09-07 Thread Christopher Allen
o 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://gith

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

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

Re: Building a CRUD based web application using datomic

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

Re: How do you configure your Ring apps?

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

[ANN] Blackwater 0.0.5 released (SQL query logging)

2013-08-30 Thread Christopher Allen
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 R