Hi all,
do you know why the following Korma query :
(select "mljentities"
(fields :configuration)
(where (or (= :entity_name table-name)
(= :alias table-name
is being translated into the following query?
SELECT mljentities.configuration FROM mljentities WHERE fa
Awesome and congratulations. I look forward to picking up my copy.
On Thursday, November 8, 2012 6:23:22 AM UTC+6, Stuart Sierra wrote:
>
> Not to toot our own horn, but people have been asking about getting
> started with ClojureScript, so here's our contribution, just released in
> book form:
Now I've tried with this:
(select "mljentities"
(fields :configuration)
(where (or {:entity_name [like table-name]}
{:alias [like table-name]})))
and I'm getting : no such var myns/like
Getting mad :)
Nico
2012/11/10 Nico Balestra
> Hi all,
> do you know why the following
I tried this and in the repl the propmt appears instantaneous again so this
seems to work fine here.
On Sat, Nov 10, 2012 at 6:51 AM, Michael Gardner wrote:
> I can't duplicate your results on my Debian wheezy box (Clojure 1.4,
> openjdk 1.6.0_24, xdg-open 1.1.0 rc1); the call to (sh "xdg-open"
In MySql I have a table with a field called is_top_winner and this is
defined as char(1). In Clojure I have this function:
(defn downgrade-everyone [db]
"2012-11-10 - Let's start by saying no one is a top expert. In a later
step we will upgrade those users who are top winners."
(sql/with-con
Thank you much. You suggest a good approach: I'll just get it working and
then I'll worry about performance later.
On Friday, November 9, 2012 7:29:45 PM UTC-5, Sean Corfield wrote:
>
> On Fri, Nov 9, 2012 at 3:17 PM, larry google groups
> > wrote:
> > http://clojure.github.com/java.jdbc/doc
It's probably the use of single quotes, which results in a quoted symbol
Clojure> 'f'
f'
On Saturday, November 10, 2012 6:20:06 PM UTC+1, larry google groups wrote:
>
> In MySql I have a table with a field called is_top_winner and this is
> defined as char(1). In Clojure I have this function:
>
On Sat, Nov 10, 2012 at 9:20 AM, larry google groups
wrote:
> In MySql I have a table with a field called is_top_winner and this is
> defined as char(1). In Clojure I have this function:
>
> (defn downgrade-everyone [db]
> "2012-11-10 - Let's start by saying no one is a top expert. In a later
>
On Sat, Nov 10, 2012 at 9:21 AM, larry google groups
wrote:
> Thank you much. You suggest a good approach: I'll just get it working and
> then I'll worry about performance later.
And as I said, happy to help you off-list since a) I maintain
java.jdbc and b) I've been using it very heavily in prod
On Fri, Nov 9, 2012 at 11:57 AM, Yakovlev Roman wrote:
> what a mess if it is a function it's huuge did you try split it to useful
> chunks ? it's just unreadable and that's why you cann't spot anything i
> guess..
>
I can't split it without ending up with boxing at the function call
boundaries,
>'f' is a symbol, not a string or a character. Try: {:is_top_winner
>"f"} or {:is_top_winner \f}
Wow. Thanks. I guess I'm used to Ruby/PHP/Javascript where single quote and
double quote both produce strings. Thanks.
On Saturday, November 10, 2012 12:46:32 PM UTC-5, Sean Corfield wrote:
>
I'm pretty sure xdg-open ends up being a thin wrapper that delegates
to your desktop environment's open program (gnome-open, kde-open,
xce-open, etc)
so probably that is where the difference lies.
--Aaron
On Nov 10, 2012, at 12:52 AM, Michael Gardner wrote:
> I can't duplicate your results on m
Thank you very much for all of your help. I am curious, is there anyway to
print out the sql that is actually run against the database? I looked here
but didn't see anything obvious:
https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj
On Saturday, November 10
There must be a difference between these other folks's environments and mine,
given the different behavior.
What I find so odd is that it hangs when invoked via clojure.java.shell/sh from
within the REPL, but returns immediately with another prompt when run from
bash. I've even copied the xdg-
On Sat, Nov 10, 2012 at 12:27 PM, larry google groups
wrote:
> Thank you very much for all of your help. I am curious, is there anyway to
> print out the sql that is actually run against the database? I looked here
> but didn't see anything obvious:
> https://github.com/clojure/java.jdbc/blob/mast
I would check what "open" program it is that eventually gets used on
your system. I imagine whichever one it is is trying to make your life
easier by changing its behavior when invoke interactively vs in a
script.
once you find which one it is, you may be able to suppress that helpfulness.
--Aaro
Yes, thank, I saw that conversation from 2011 when I was searching Google.
Maybe at some point I'll know Clojure and Java well enough that I can
contribute something to these projects.
On Saturday, November 10, 2012 5:55:29 PM UTC-5, Sean Corfield wrote:
>
> On Sat, Nov 10, 2012 at 12:27 PM,
2012/11/5 Michael Klishin
> If you consider that dev.clojure.org is a closed party and contributing
> to CDS is as easy as forking the repo
> on github, it certainly does.
>
For the record, two people contributed changes to the Clojure User Groups
page in the first week:
https://github.com/cloj
I've just notice that running Midje on top of lazytest is much faster
compared to start leiningen each time. But adding lazytest takes some time,
too. So I re-packaging lazytest and then make a meta-package for both Midje
and lazytest.
Now all we have to do is:
Add [lein-midje-lazytest "0.1.0"]
Talking about `use` and `require`:
How are you dealing with the repetition of each namespace "configuration"?
Each time I create a new namespace I add the following boilerplate:
(ns foo.bar
(:use [clojure
[pprint :only [pprint pp]]
[repl
Convert (:use [lib :only [...]]) => (:require [lib :refer [...] :as ...])
On Sun, Nov 11, 2012 at 12:49 PM, Denis Labaye wrote:
> Talking about `use` and `require`:
>
> How are you dealing with the repetition of each namespace "configuration"?
>
> Each time I create a new namespace I add the foll
How does that shrink his boilerplate ?
Why such a long boilerplate ? Do you need the string library everywhere ?
Why not drop :only ?
Luc P.
> Convert (:use [lib :only [...]]) => (:require [lib :refer [...] :as ...])
>
> On Sun, Nov 11, 2012 at 12:49 PM, Denis Labaye wrote:
>
> > Talking abou
Sorry, read the question incorrectly.
On Sun, Nov 11, 2012 at 1:02 PM, Softaddicts wrote:
> How does that shrink his boilerplate ?
>
> Why such a long boilerplate ? Do you need the string library everywhere ?
> Why not drop :only ?
>
> Luc P.
>
>
> > Convert (:use [lib :only [...]]) => (:require
23 matches
Mail list logo