[ANN] SQLingvo 0.5.9 released.

2013-11-22 Thread r0man
SQLingvo is a Clojure DSL to generate SQL statements. README, source code and examples: https://github.com/r0man/sqlingvo Leiningen dependency information: [sqlingvo 0.5.9] Enhancements: * Added WITH statements. -- -- You received this message because you are subscribed

Re: [ANN] Slamhound 1.5.0 + screencast + Vim plugin

2013-11-30 Thread r0man
This is very cool. Thanks! On Saturday, November 30, 2013 5:14:36 AM UTC+1, guns wrote: Hello, I am happy to announce version 1.5.0 of Slamhound, technomancy's amazing ns rewriting tool. ;; ~/.lein/profiles.clj {:user {:dependencies [[slamhound 1.5.0]]}} This is a *major*

Re: Need help to store a SVM Model

2014-02-24 Thread r0man
In my svm-clj library I read and write the LibSVM model in a text format that LibSVM's C library also understands. That's a sparse text file you could also store in Mongo. Use or take a look at: https://github.com/r0man/svm-clj/blob/master/src/svm/core.clj#L125 Roman On Monday, February 24

Re: [ANN] oauth-clj

2013-02-05 Thread r0man
now wondering the same. Any opinions one way or the other? On Tuesday, January 24, 2012 5:08:44 PM UTC+11, Dave Sann wrote: Hi r0man, I am curious as to similarities/differences of your library to: https://github.com/mattrepl/clj-oauth Dave -- -- You received this message because

Re: [ANN] java.jdbc 0.3.0-alpha1

2013-04-09 Thread r0man
Hi Sean Matching Socks, first off, I like the new API design. Here are my questions and suggestions: 1.) Despite the asymmetry I'm also thinking that passing entities and identifiers functions via the db argument is quite convienient. Otherwise I always have to wrestle with those extra

Re: [ANN] java.jdbc 0.3.0-alpha2

2013-05-04 Thread r0man
Hi Sean, I just tested java.jdbc 0.3.0-alpha2 against my code base and got the following excpetion when running my tests: Exception in thread main java.lang.IllegalArgumentException: Unable to resolve classname: Connection, I think the problem only happens when you use the get-connection

Re: Cyclic load dependency

2011-07-18 Thread r0man
: Hi, I'm trying to use r0man / appengine-clj, and when :use-ing the datastore namespace I get a cyclic load dependency. Doesn't clojure allow such cyclic references? (use 'appengine.datastore) Cyclic load dependency: [ /appengine/datastore/entities ]-/appengine/ datastore/query

How to replace c.c.mock when migrating to Clojure 1.3?

2011-09-23 Thread r0man
Hello, I'm in the process of porting my code to Clojure 1.3. Those two pages were really helpful on the way: - http://dev.clojure.org/display/doc/Clojure+Contrib - http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go The only dependency I still couldn't get rid of is

Re: How to replace c.c.mock when migrating to Clojure 1.3?

2011-09-23 Thread r0man
Thx Stuart, that worked fine ... -- 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

Re: Google Maps in Clojurescript

2011-10-09 Thread r0man
Hi Sam, this is how I use Google Maps with Clojurescript. In the html page I load Google's Loader library, the Google Closure base.js file and the deps.js file which is the one cljsc spit out. (defhtml javascripts [] (html (include-js (str https://www.google.com/jsapi?key=;

Re: Google Maps in Clojurescript

2011-10-09 Thread r0man
Forgot to mention my init-map fn: (defn init-map [element] (let [options (h/clj-js {:zoom 1 :mapTypeId google.maps.MapTypeId.ROADMAP}) parent-size (style/getSize (. element parentNode)) element-size (style/getSize element) map (doto (google.maps.Map. element options)

Howto override toString of defrecord instances in ClojureScript?

2011-11-24 Thread r0man
Hello, what's the preferred way to override the toString method of a ClojureScript record? I could use set! to change the toString fn of a record after it has been initialized like this: (defrecord MyRecord [name]) (let [record (MyRecord. Hello World)] (set! record.toString (fn [] (:name (js*

Re: Howto override toString of defrecord instances in ClojureScript?

2011-11-24 Thread r0man
Thank you, Baishampayan. That's exactly what I was looking for ... -- 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

[ANN] oauth-clj

2012-01-21 Thread r0man
Hi all, I just released another OAuth library for Clojure on top of clj-http, supporting version 1 and 2 of the OAuth protocol. Roman. https://github.com/r0man/oauth-clj http://clojars.org/oauth-clj -- You received this message because you are subscribed to the Google Groups Clojure group

Help in porting Hiccup to ClojureScript

2012-04-07 Thread r0man
functionality to the given fn. As far as I can tell there is no alter-var-root in ClojureScript. I got the code running by using set! in the ClojureScript version. The original Clojure macro: https://github.com/r0man/hiccup/blob/clojurescript/src/clj/hiccup/def.clj#L38 The ClojureScript macro: https

Re: Help in porting Hiccup to ClojureScript

2012-04-07 Thread r0man
be done at compile time. Thanks anyway. I'm looking at add-optional-attrs in your lib. Maybe that can get me further ... Roman. On Saturday, April 7, 2012 9:32:38 PM UTC+2, Chris Granger wrote: Have you seen Crate? http://github.com/ibdknox/crate On Apr 7, 1:18 pm, r0man roman.sche

Re: Help in porting Hiccup to ClojureScript

2012-04-07 Thread r0man
in Clojure and ClojureScript? If you look at the header of the following file you can see that it's using exactly Hiccup's API (except :use-macros). https://github.com/r0man/hiccup/blob/clojurescript/test/cljs/hiccup/test/page.cljs Your lein-cljsbuild will take care of modifiying the :use-macros

ClojureScript macro eval bug since 0.0-1211?

2012-05-28 Thread r0man
(Compiler.java:6448) ... 33 more java.lang.ClassCastException: clojure.lang.Symbol cannot be cast to clojure.lang.Namespace, compiling:(NO_SOURCE_PATH:1) Does anyone have an idea what has changed between those versions? Could this be a bug? Thanks for your help, Roman. [1] https://github.com/r0man/hiccup

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-07-05 Thread r0man
Hi Carlo, if you'are looking for generating more complex SQL there's also: https://github.com/r0man/sqlingvo Roman. On Wednesday, July 3, 2013 10:48:07 AM UTC+2, Carlo wrote: Hey guys! I've been working on a small library to make writing SQL queries a little bit easier. It's along

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-07-06 Thread r0man
Composing queries is done via compose. Take a look here: https://github.com/r0man/sqlingvo/blob/master/test/sqlingvo/test/core.clj#L16 On Saturday, July 6, 2013 5:46:06 AM UTC+2, Carlo wrote: Hey Roman, The issue that I see with `sqlingvo`, and the thing which I was trying to solve

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-07-06 Thread r0man
You can do this with the second argument to the where function. I added an example here: https://github.com/r0man/sqlingvo/blob/master/test/sqlingvo/test/core.clj#L24 On Saturday, July 6, 2013 4:02:23 PM UTC+2, Carlo wrote: This is a fairly restricted composition, though: (def triangles

Re: [ANN] Pedestal-app Tutorial has been released

2013-07-09 Thread r0man
Hi Pedestal Team, this is great. Thank you very much! Roman On Tuesday, July 9, 2013 6:03:58 PM UTC+2, Ryan Neufeld wrote: Hey there, Clojurians/Pedestallions! I'm pleased to announce the release of a comprehensive tutorial for pedestal-app: http://bit.ly/pedestal-app-tutorial. In this

Re: Building with Java 7 but running on Java 6?

2013-09-04 Thread r0man
Hi Tom, add this to your project.clj :javac-options [-target 1.6 -source 1.6] I have the same problem with our Hadoop cluster ;) On Wednesday, September 4, 2013 9:45:11 PM UTC+2, Tom Emerson wrote: Greetings, I develop with JDK 7 but have coworkers who (for reasons I don't want to get

Re: Jsonify a Jdbc4Array in Clojure

2013-10-01 Thread r0man
I think you need to implement the JSONWriter protocol for the Jdbc4Array class, and possibly for the datatypes that are in the array. This for example makes the json library aware of java.util.Date classes. (extend-type java.util.Date JSONWriter (-write [date out] (-write (str date)

Re: How to supress warning when including cljx?

2014-11-27 Thread r0man
It's a bug in cljx related to the middleware I think. Try this one: [org.clojars.cemerick/cljx 0.5.0-SNAPSHOT] On Thursday, November 27, 2014 12:22:54 PM UTC+1, Colin Yates wrote: I have included cljx and everytime lein starts it gives the following: [code] WARNING!!! version ranges found

Re: Stubbornly eager results in clojure.java.jdbc

2017-06-23 Thread r0man
/connector-j-reference-implementation-notes.html r0man On Saturday, June 17, 2017 at 3:15:13 AM UTC+2, Luke Burton wrote: > > > Riddle me this: > > https://gist.github.com/hagmonk/a75621b143501966c22f53ed1e2bc36e > > Wherein I synthesize a large table in Postgres, then atte