it isn't
really a variant of cond- but between that and the source of cond- I suspect
I will just end up rolling my own...
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880
]
(assert (even? (count clauses)))
(let [g (gensym)
pstep (fn [[pred step]] `(if (~pred ~g) (- ~g ~step) ~g))]
`(let [~g ~expr
~@(interleave (repeat g) (map pstep (partition 2 clauses)))]
~g)))
On Feb 12, 2014, at 2:34 PM, Sean Corfield s...@corfield.org wrote
screams for something like:
(condp- accounts
empty? (conj “stuff”))
Then you could thread the predicates:
(condp- a
p1 (f1 args)
p2 (f2 args))
which would be:
(let [x (if (p1 a) (f1 a args) a)]
(if (p2 x) (f2 x args) x))
Suggestions?
Sean Corfield -- (904) 302-SEAN
...
Sean
On Feb 9, 2014, at 8:45 PM, Alan Thompson thompson2...@gmail.com wrote:
Holy cow! Where have these been hiding! They don't show up on
ClojureDocs.org at all!!! I was about to write my own macro vmap to
implement (vec (map(...)) for just the use cases outlined above.
I just
As maintainer of java.jdbc I'd say this is a more appropriate feature
for a DSL library like SQLingvo or HoneySQL (which may already support
something like this - I haven't checked).
Sean
On Sun, Feb 9, 2014 at 12:40 PM, Jan Herich jan.her...@gmail.com wrote:
Hello folks,
In the last days, i
On Feb 8, 2014, at 7:59 AM, Andy C andy.coolw...@gmail.com wrote:
Your assertion that I am misunderstanding something is wrong.
Now that you've seen everyone else's responses, perhaps you understand my
assertion was correct? :)
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http
• Added verb support to routes
• Ensure UTF-8 output
• Add :middleware support
• Fix JSON MIME type
• Update dependencies
The simplest way to get up and running:
lein new fw1 myapp
cd myapp
PORT= lein run
Sean Corfield -- (904) 302-SEAN
operations, and that's its choice. But it's not
how Clojure is defined - Clojure operates on abstractions above the
concrete types.
Sean
On Fri, Feb 7, 2014 at 10:43 PM, Andy C andy.coolw...@gmail.com wrote:
Following your intuition, what would you expect from the following?
(map + [1 3 5] '(2 4 6
) for arbitrary series of data values.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed with OpenPGP using GPGMail
On Feb 6, 2014, at 4:49 AM, Jay Fields j...@jayfields.com wrote:
I'm glad it works well for you Sean; hopefully your team is just as happy. =)
Yup, they love Expectations.
Whenever we have to work on our WebDriver tests we always grumble because they
are much more imperative and side-effecty
the benefit of the REPL and fast feedback without needing a
separate REPL buffer.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed
FWIW, I find the language of Expectations to be much better suited to
describing the desired behaviors of a system I want to build than the
assertion-based language of clojure.test - so for me it's about
test-before, not test-after.
Sean
On Wed, Feb 5, 2014 at 2:52 PM, Jay Fields j
that way. The objection was voiced (about
LightTable) that it's not a natural REPL-based workflow to have code
in a source file and send it to be evaluated.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection
expectations to clarify how to
design APIs in the small (and APIs in the large as needed), but most of the
red-green-refactor loop of TDD/BDD now comes from the REPL experiments for me.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good
a vector back.
Sean
On Feb 4, 2014, at 2:39 AM, Andy Smith the4thamig...@googlemail.com wrote:
Ok thanks, thats really helpful. The second link suggests using doall, which
seems to do the trick :
((fn pascal ([n] (pascal n [1M])) ([n row] (if (= n 1) row (recur (dec n)
(map (partial reduce
One way:
user (reduce (fn [s [k v]]
(merge-with concat s {k [v]}))
{} [[:a 123]
[:b 124]
[:a 125]
[:c 126]
[:b 127]
[:a 100]])
= {:c [126], :b (124 127), :a (123 125 100)}
On
editor (that works
cross-platform) and can act as a live evaluation target for .cljs and .js files
(and .css and .html and so on).
I still keep Emacs open as my Git client and as my IRC client, but I don't
edit anything with it.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http
before because it's so much easier to
turn the experiments into code - or tests - in place.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist
/value configuration from URI (Phil Hagelberg).
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed with OpenPGP using GPGMail
what you need
As for documentation, as mynomoto said:
http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html
which is community editable without requiring a CA etc! If anything is
missing, you can open an issue https://github.com/clojuredocs/guides
or submit a PR!
--
Sean A Corfield
over the wire),
that's the same as any other consumer failing to take data from a
channel that you supply.
Sean
On Fri, Jan 31, 2014 at 7:59 AM, Timothy Baldridge tbaldri...@gmail.com wrote:
A quick thought...there really isn't much of a difference between a failing
network connection and a (chan
I'm writing a an ETL process to read event level data from a product
database, transform / aggregate it and write to to an analytics data
warehouse. I'm using clojure's core.async library to separate these process
into concurrently executing components. Here's what the main part of my
code
?
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
World Singles, LLC - http://worldsingles.com
From: t x
Sent: Thursday, January 30, 2014 9:43 PM
To: clojure@googlegroups.com
Hi,
With apologies for a soft question:
This question is NOT:
I'm
I'm a bit more TDD inclined than the average Clojurian (having come over most
recently from Ruby/Rails) and I have to say speed is king in TDD. I agree that
source maps are life savers when you need to debug an issue in browser, but I
don't really see how they'd be all that useful in the
I can confirm that I can evaluate namespaces that use core.typed 0.2.26 inside
LightTable - and run check-ns, which failed inside LightTable with 0.2.25!
Sean
On Jan 28, 2014, at 5:34 AM, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
0.2.26 contains a workaround by disabling
SunitLabs has been spamming a lot of technical lists lately.
Do we need a first post moderation policy in place for this group? That seems
to stop spam in other groups I use ( moderate) although it does place more of
a burden on moderators.
Sean
On Jan 27, 2014, at 1:29 AM, Sairam Shankar
I would expect that you can extend one of the protocols to do this more easily?
http://clojure-doc.org/articles/ecosystem/java_jdbc/using_sql.html#protocol-extensions-for-transforming-values
Sean
On Jan 27, 2014, at 12:08 AM, Niels van Klaveren niels.vanklave...@gmail.com
wrote:
For reading
Thanks for the clarification Andy. Maybe someone accidentally clicked the
approve button instead of the spam button...
Sean
On Jan 27, 2014, at 12:03 PM, Andy Fingerhut andy.finger...@gmail.com wrote:
There *is* a first post moderation policy in place for this group -- it has
been in place
Your code works fine for me in the REPL. Can you provide a bit more detail
about exactly how you are trying to execute your code?
Sean
On Jan 26, 2014, at 6:15 AM, Paul Smith paulaaronsmit...@gmail.com wrote:
I am requiring clojure.java.io as such
(ns sample-project.core
(:require
collector in production would not support
that. However, the G1 collector certainly evens out the sawtooth memory usage
patterns you often see with the JVM (prior to G1 / Java 7) which makes for
smoother response times etc.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
), and
the callback will be dispatched with true since the put succeeded.
Excellent! That's exactly what I _hoped_ the new semantics were and it
clarifies for me what happens when you close a channel that has data pending
(enqueued).
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
,
multiple transports.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed with OpenPGP using GPGMail
://www.infoq.com/presentations/pushy-data
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed with OpenPGP using GPGMail
This company has been spamming various technical lists lately with this same
generic promotion. Can a moderator please report them for spam and ban them?
Thank you!
Sean
On Jan 23, 2014, at 2:04 AM, Online Training onlinetrainin...@gmail.com wrote:
SunItLabs provides the best Software’s
not be called?
Just trying to make sure I understand this properly.
I think it's a good change (even tho' it breaks any code that uses put! and
expects it to throw an exception).
Sean
On Jan 23, 2014, at 6:05 AM, Timothy Baldridge tbaldri...@gmail.com wrote:
I'm looking for some feedback on recent
that I plan to figure out and address. There are
several others (including actually GC'ing closed channels on the other side
of the address space divide).
Sean
On Jan 22, 2014, at 11:39 PM, t x txrev...@gmail.com wrote:
Hi,
I apologize for my vague question.
Does anyone have a good
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.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
, if anything, can be done in the
source of java.jdbc and/or congomongo to alleviate the problem?
Thanx,
Sean
--
--
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
anyway).
Sean
On Jan 13, 2014, at 11:49 AM, Nicola Mometto brobro...@gmail.com wrote:
Sean, it looks like the issue is caused by arglists like this one:
https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj#L782-L783
tools.analyzer.jvm uses :arglists to detect
arglists-specific
data to Eastwood which would also be a good place to add a way to exclude
specific linters on a per-fn basis?
It found three bugs in our code on the first run so I'm figuring out a way to
integrate it into our build as an additional QA step now :)
Sean Corfield -- (904) 302-SEAN
page
(but they silently work). Perhaps if Eastwood finds invalid / suspicious
metadata in :arglists, it could use a different linter warning?
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist
edition coming: http://manning.com/rathore2/
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed with OpenPGP using GPGMail
java.jdbc does this for column names (in joins):
https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj#L257
Sean
On Jan 10, 2014, at 6:59 AM, Colin Yates colin.ya...@gmail.com wrote:
I have a sequence of file names and I want to make them unique. (uniquify
- but I had plenty of background in FP (albeit a
bit rusty).
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed with OpenPGP using
):
https://www.dropbox.com/s/sxccqvy9qgipzo8/Screenshot%202014-01-10%2016.18.55.png
Sean
On Jan 10, 2014, at 11:16 AM, Guru Devanla grd...@gmail.com wrote:
Actually, you might have meant line 267?
On Fri, Jan 10, 2014 at 11:03 AM, Sean Corfield s...@corfield.org wrote:
java.jdbc does
/book/shcloj2/programming-clojure
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
signature.asc
Description: Message signed with OpenPGP using GPGMail
into thrashing
GC. We upgraded to Tomcat 7 / Railo 4 (same Clojure) and run with 8GB heaps now
on Java 7 with the G1 collector and it has been wonderful :)
The JVM is a wonderful beast if you're not memory constrained.
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection
canvas is very useful since you can sketch out multiple pieces of
related code side-by-side.
I guess I don't understand why your view of what LT provides is so negative?
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave
to
behave normally
I suspect the majority of users think the default behavior is normal - and
desirable :)
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880
On Jan 8, 2014, at 1:35 PM, Mark Engelberg mark.engelb...@gmail.com wrote:
You still need to create and manage projects from a command line with lein,
right?
Correct. Until someone builds a plugin for that :)
Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org
)
and then:
... (@the-symbol arg1 arg2) ...
Our AOT-compiled layer is deliberately minimal and serves only to
provide the Java-callable API so the rest of our code can be developed
and tested in our normal interactive, incremental way.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http
Keep in mind that the Heroku file system is a little funky. Writing
things there is not like you're used to with your local system or with a
VPS or dedicated server. It's ephemeral and those files will disappear
during certain events. I agree with the other Sean, that if the data is
small
platform so I'm pretty comfortable using databases with
Clojure. Disclosure: I maintain Clojure's java.jdbc contrib library
and I'm the primary committer on CongoMongo, a Clojure wrapper for
MongoDB, so I'm probably more inclined toward those solutions than
other Clojurians might be :)
Sean
On Wed
https://groups.google.com/groups/opt_out.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
--
--
You received
protocol for setting parameters in prepared statements JDBC-86.
* Fix parens in two deprecated tests JDBC-85.
* Made create-table-ddl less aggressive about applying as-sql-name so
only first name in a column spec is affected.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http
Just found a showstopping bug in 0.3.1 - 0.3.2 will be along shortly.
TIL: protocols need implementations for both Object _and_ nil to work
properly in the real world... :(
Sean
On Mon, Dec 30, 2013 at 8:46 AM, Sean Corfield seancorfi...@gmail.com wrote:
Clojure contrib wrapper for JDBC
The tests have been updated to included nil cases now so I shouldn't
make the same mistake again.
On Mon, Dec 30, 2013 at 8:57 AM, Sean Corfield seancorfi...@gmail.com wrote:
Just found a showstopping bug in 0.3.1 - 0.3.2 will be along shortly.
TIL: protocols need implementations for both
and should not be used)
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
--
--
You received this message because you
, of
course, of Smalltalk, which the last time I checked had classes whose fields
were automatically private and methods automatically public
Massimiliano's definition excludes several other OOP languages... :)
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World
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.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles
That must have been a long time ago? That problem was solved well
before I left the C++ committee in '99 and gcc was normally pretty
good at tracking the emerging standard at the time...
But, yes, the template compilation model and it's impact on linking
modules that specialized the same template
complexity very well. I'm not sure why you are less trusting of their
real world experiences than what your professors told you about
(theoretical) OOP...
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection
Lisp Weenie and part of the Lisp Curse [1]. I
think there's an OOP equivalent but it doesn't get written about very
much because OOP is so mainstream, despite its flaws.
[1] http://www.winestockwebdesign.com/Essays/Lisp_Curse.html
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http
them etc (e.g.,
clojure.stacktrace/print-stack-trace which is part of the core Clojure
download).
That said, yes, debugging errors is probably the worst aspect of using
Clojure :)
And +1 on the language/community as best!
Sean
On Fri, Dec 27, 2013 at 5:48 PM, Guru Devanla grd...@gmail.com wrote
, and higher order functions, Clojure has a lot of tools
for organizing code...
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880
we won't have to deal with that
again, so this is a pain that only early adopters will be feeling.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French
it for free but I expect Chas appreciates anyone who buys
access to it - it's very reasonably priced (I bought my access back
when it cost $40 and I've certainly got that value and more out of
it!).
Sean
On Tue, Dec 24, 2013 at 5:58 AM, John Kida jdk...@gmail.com wrote:
So i am very new to Clojure and I
No, lein check will give you reflection warnings on 3rd party libraries...
(sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/worldsingles)
(! 505)- lein check
Compiling namespace worldsingles.activity
Reflection warning, clojure/core/incubator.clj:84:7 - reference to
field
, preferably with PRs should get some of those cleaned
up.
Sean
On Sun, Dec 22, 2013 at 2:33 PM, larry google groups
lawrencecloj...@gmail.com wrote:
I know this has been discussed before but I could not find anything like a
canonical answer via Google. I just set to
:warn-on-reflection true
in my
On Sun, Dec 22, 2013 at 2:55 PM, Sean Corfield seancorfi...@gmail.com wrote:
For clj-time I'm happy to just see an issue opened on Github (when
it's back from its current 503 woes!) and happier to see a Pull
Request.
https://github.com/clj-time/clj-time/issues/100
--
Sean A Corfield -- (904
According to a note I found on Reddit via Google, Conj videos have
historically appeared on the ClojureTV YouTube channel 4-6 weeks
after the event so I would expect them to start appearing soon
through the New Year...
Sean
On Sun, Dec 22, 2013 at 1:25 PM, Richard Cole richard.j.c...@gmail.com
, I'm not sure what the benefits would be.
Sean
On Sun, Dec 22, 2013 at 3:51 PM, solo.l...@gmail.com wrote:
At my company, we use Clojure for reporting. Specifically, reports are
written in Clojure which integrate data from a variety of sources and
display the final output to the user in a WPF
://dev.clojure.org/display/design/Enhanced+Primitive+Support
* http://dev.clojure.org/display/design/Documentation+for+1.3+Numerics
Hope those help?
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good
written during this process use the modular
libraries
2) What to do about contrib libraries which have no counterpart (but this
difficulty applies to all options)
Whatever decision you make, this page will be useful:
* http://dev.clojure.org/display/community/Where+Did+Clojure.Contrib+Go
--
Sean
, with full
tutorials on each of the major functions.
Does that help?
Sean
On Sat, Dec 21, 2013 at 11:56 AM, rod naph rod.n...@gmail.com wrote:
with the new release of java.jdbc 0.3.0 i can't quite work out how the
quoting support for column names is supposed to work. i can see the
strategy
or at least a very
subjective one based on people's own moral compass and their ideology?
As such I don't think it's a particularly useful discussion on what is
primarily a technical list. Perhaps post the question on Quora? That
seems to be very friendly toward political / moral discussions...
--
Sean
source.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
--
--
You received this message because you are subscribed
Just to follow up on this:
0.3.0-rc1 introduces with-db-connection to allow multiple operations
on a shared connection easily:
(with-db-connection [db-con db-spec]
... operate on db-con multiple times ...)
Sean
On Tue, Dec 10, 2013 at 4:06 PM, Sean Corfield seancorfi...@gmail.com wrote
I don't really have anything to critique, merely observe... ;) I find your
implementation interesting because you chose to use two dimensional arrays
to represent the board, I initially went down that road with mine but in
the end went with a single list because I found it easier to handle the
of such constraints to be
counter-productive since it makes refactoring and evolution of both
schema and code to be much more difficult)
Sean
On Sat, Dec 14, 2013 at 2:29 AM, Simon Brooke still...@googlemail.com wrote:
First, yes, I now know I could build referential integrity constraints using
Korma
had the pleasure
of joining a group of like-minded Clojure types for a book club reading of
Joy of Clojure, and this was one of our 'hard' problems.
Sean
On Friday, 13 December 2013 13:50:17 UTC+1, edw...@kenworthy.info wrote:
One of my favourite computer science / programming books is Peter
not high on
my list. If you're interested, contact me off list (sean at corfield
dot org) and I can share details.
Sean
On Fri, Dec 13, 2013 at 7:46 AM, Brad Koch bradkoch2...@gmail.com wrote:
I need to implement some performance monitoring and exception tracking for
my Clojure app. My first
to work properly.
And this isn't just for me - my team all has the same base
configuration of Emacs and so we'd have to go thru this switch process
for each team member.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com
in with-db-transaction JDBC-75.
* Add :user as an alias for :username for DataSource connections JDBC-74.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French
[connected (add-connection db-spec con)]
... several queries etc using connected instead of db-spec ...
))
Sean
On Tue, Dec 10, 2013 at 8:24 AM, Niels van Klaveren
niels.vanklave...@gmail.com wrote:
Do I understand correctly that to prevent creating a collection per query I
have to wrap
concise alternative to clojure.java.jdbc library.
I would certainly recommend using a connection pool. There are two
examples of that in the (community-editable) docs:
http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html#how-to-use-connection-pooling
--
Sean A Corfield -- (904) 302-SEAN
... and
there are multiple approaches that would each be more suitable to
particular real world problems.
Sean
On Sun, Dec 8, 2013 at 9:44 AM, Avinash Dongre dongre.avin...@gmail.com wrote:
I see following example in Clojure.java.jdbc
(sql/db-do-prepared db INSERT INTO fruit2 ( name, appearance
keys.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
--
--
You received this message because you are subscribed
Greetings !
I'm attempting to implement Othello in Clojure and I've run into a problem
when actually running my game loop. On the first run through, everything
works as expected, the black player can make their move, the board is
updated and everything is awesome. However when the program
that still works. I would have swapped
the cases and used seq as the test.
However, without really reading this too closely, I'd guess the real problem
is that you want to (apply merge fst others) since others is a seq of maps.
On Wednesday, December 4, 2013 10:24:42 AM UTC-6, Sean
a RESTful web service for CRUD for a
single table seems excessive so I'd be curious exactly what you're
trying to achieve and why you're finding it so laborious? Perhaps if
you explain your requirements a bit more, we can offer better
suggestions...?
Sean
On Tue, Dec 3, 2013 at 3:26 PM, James Laver
as a REST response,
and controllers are simple functions (operating on a simple map of
parameters) and views - if returning HTML rather than just data - are
Selmer templates (Django style).
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http
https://groups.google.com/groups/opt_out.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
--
--
You received
That would be heads not tails :)
On Sat, Nov 30, 2013 at 3:44 PM, Alex Baranosky
alexander.barano...@gmail.com wrote:
user (rest (reductions conj [] [1 2 3 4]))
([1] [1 2] [1 2 3] [1 2 3 4])
On Sat, Nov 30, 2013 at 2:54 PM, Sean Corfield seancorfi...@gmail.com
wrote:
reductions requires
Dave, I may not have totally understood the original function, but here are
a few possible implementations, each moving towards what I would think of
as being simpler: https://www.refheap.com/21379
It could of course be made more efficient and slightly cleaner, but maybe
it's a start.
On Sat,
.
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)
--
--
You received this message because you are subscribed to the Google
about patches vs pull requests, and
just accept that's the way things are done for Clojure and its contrib
libraries...
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave
to provide
patches as well).
Sean
On Sun, Nov 24, 2013 at 10:39 PM, Sean Corfield seancorfi...@gmail.com wrote:
Based on feedback from the community, I have released
clojure.java.jdbc 0.3.0-beta2 to Maven Central.
This includes two very important changes:
* The clojure.java.jdbc.sql
the API - and the auto-generated
documentation - which should reduce all the confusion expressed about
the library right now. This will allow the library to move forward in
a more focused manner, with an API that no longer depends on dynamic
variables.
--
Sean A Corfield -- (904) 302-SEAN
(my-db)
[select `id`, `title` as `name` from `thing` where `status` = ? active])
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist
701 - 800 of 2592 matches
Mail list logo