On Sat, Mar 26, 2011 at 09:56, Base basselh...@gmail.com wrote:
hi All -
Any recommendations on a NoSQL database to use with clojure? I am
experimenting if it will fit my project better than a SQL db and have
no real experience with them.
I've replaced my rdbms with Riak (www.basho.com).
On Sat, Mar 26, 2011 at 12:15, Michael Ossareh ossa...@gmail.com wrote:
On Sat, Mar 26, 2011 at 09:56, Base basselh...@gmail.com wrote:
hi All -
Any recommendations on a NoSQL database to use with clojure? I am
experimenting if it will fit my project better than a SQL db and have
have to do this:
riak-test (put :test bar (assoc (fetch :test bar) :name bob))
nil
riak-test (fetch :test bar)
{:name bob, :more data}
i.e.
fetch bar,
assoc bar :name bob
put result.
HTH
On Mar 26, 2:55 pm, Michael Ossareh ossa...@gmail.com wrote:
On Sat, Mar 26, 2011 at 12:15, Michael
On Wed, Mar 9, 2011 at 13:23, Aaron Bedra aaron.be...@gmail.com wrote:
On 03/09/2011 02:18 PM, Fogus wrote:
Hi all,
I've put together a Jira dashboard to display a distillation of the
current progress toward the 1.3/2.0 release. I believe that anyone
can view it, so pass the link far and
On Tue, Mar 8, 2011 at 11:31, John Szakmeister j...@szakmeister.net wrote:
I've been working on a web app, and it was using leiningen-war. The
author of that suggest moving to the lein-ring plugin on his github
site... so, I did that. However, when I run lein ring server I get
a traceback,
On Thu, Feb 24, 2011 at 14:36, clj123 ariela2...@gmail.com wrote:
That didn't solve the problem. I've tried smaller row numbers and it
still throws the same error:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.InterruptedException
at
, Michael Ossareh ossa...@gmail.com
wrote:
Am I missing something?
types.
--
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
Do you have more details of this - it sounds interesting...
A very rough answer: https://github.com/ossareh/clj-boilerplate
I've some local changes that will go up in a few days that make this
better - they're based off me actually using the framework where as what
is there right now is
Am I missing something?
types.
--
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
On Mon, Feb 14, 2011 at 16:50, Scott Jaderholm jaderh...@gmail.com wrote:
On Mon, Feb 14, 2011 at 7:21 PM, Jürgen Hötzel juer...@hoetzel.infowrote:
Hi,
Although Emacs is a great environment for writing Clojure code and
Leiningen/Cake makes Maven builds less painful, you still had to
switch
On Thu, Feb 10, 2011 at 08:21, Bruce Durling b...@otfrom.com wrote:
Mark,
Smack looks delightfully straightforward. I think I'll give it a shot
thanks!
Smack has a bunch of oddities once you start wanting to do anything past
simple message processing. The predominate issue (this as of smack
https://github.com/technomancy/leiningen/blob/master/sample.project.clj
try adding
:aot [clojure.contrib.condition]
to your project.clj ?
On Mon, Feb 7, 2011 at 17:56, Brian Marick mar...@exampler.com wrote:
The header documentation for clojure.contrib.condition says:
Note: requires
On Fri, Feb 4, 2011 at 12:05, B Smith-Mannschott bsmith.o...@gmail.comwrote:
I came up with this macro, but I'm unsure what to call it:
(defmacro thread-let [[varname init-expression :as binding] expressions]
{:pre [(symbol? varname)
(not (namespace varname))
(vector?
Hi All,
I've found extending-protocol to hold on to a references to records when
they're redefined.
example (defprotocol ToExtend
(foo [this]))
ToExtend
example (defrecord Extender1 [])
example.Extender1
example (extend-protocol ToExtend Extender1 (foo [this] extender1))
nil
example
On Wed, Feb 2, 2011 at 18:49, Alex Osborne a...@meshy.org wrote:
Michael Ossareh ossa...@gmail.com writes:
You'll notice in the map returned after the second (extend-protocol)
that :impls has example.Extender1 listed twice. I assume this is
because they're different records, though
handling to clj-http.
Looks great! cheers for this.
On 27 Jan., 02:21, Michael Ossareh ossa...@gmail.com wrote:
On Wed, Jan 26, 2011 at 14:57, Stuart Sierra
the.stuart.sie...@gmail.comwrote:
clojure.contrib.http-agent (which I wrote) is deprecated in 1.2 and
gone in
1.3.
Which lib
On Wed, Jan 26, 2011 at 14:57, Stuart Sierra the.stuart.sie...@gmail.comwrote:
clojure.contrib.http-agent (which I wrote) is deprecated in 1.2 and gone in
1.3.
Which lib is recommended to replace it?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
On Wed, Jan 19, 2011 at 09:15, rygorr ryg...@gmail.com wrote:
This was it. The overhead was in creating the handle.
I can't remember who told me this: Always blame the network.
In finer detail, the conversation was about things that use the network and
are so very much slower than you
On Mon, Jan 17, 2011 at 10:14, Sam Aaron samaa...@gmail.com wrote:
There are a lot of handy functions like this in core but you really need to
know they exist before you can use them. Discovering new ones is always
exciting!
I've found lurking in #clojure on irc to be a great way to find out
On Sat, Jan 8, 2011 at 23:38, Stuart Sierra the.stuart.sie...@gmail.comwrote:
Ratios aren't valid JSON. If the recipient is Clojure, you don't need JSON
at all, just pr-str and read-string.
Of course!
Thanks,
mike
--
You received this message because you are subscribed to the Google
On Sat, Jan 8, 2011 at 13:49, Stuart Sierra the.stuart.sie...@gmail.comwrote:
There's no solution here that will be perfect for all cases. But I've made
the decision that c.c.json will always downgrade Clojure types to the
nearest equivalent JSON types. It does not promise round-trip
On Thu, Jan 6, 2011 at 08:50, Miki miki.teb...@gmail.com wrote:
If someone is interested in some other statistics, please let me know and
I'll try to make it happen.
The most talkative person per session would be interesting :) though
perhaps session time is a PITA to establish
Hi,
It turns out that c.c.json/json-str will spit out Ratio's in a manner which
is not json compliant.
(json-str [3/4])
= [3/4]
This parses correctly in the reverse situation:
(read-json (json-str [3/4]))
= [3/4]
When being read [1] we switch over to using the clojure form reader so this
On Tue, Jan 4, 2011 at 19:06, Miki miki.teb...@gmail.com wrote:
If someone is interested in some other statistics, please let me know and
I'll try to make it happen.
The most talkative person per session would be interesting :) though perhaps
session time is a PITA to establish particularly
I'm unclear on what the correct course of action in this case should be.
However this can be solved by transforming the ratios before and after to
the jsonification: https://gist.github.com/767204
(clojure.walk/postwalk transform-ratio {:a [3/4] :b {:foo {:bar 3/4} :bar
{:a 1}}})
= {:a [{:n
On Fri, Dec 24, 2010 at 01:20, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
Am 24.12.2010 um 09:56 schrieb Meikel Brandmeyer:
Am 24.12.2010 um 09:44 schrieb Sunil S Nandihalli:
what are PODS?
And as a side note: I'm sad that people on conferences know more about pods
than people on
On Tue, Dec 21, 2010 at 16:16, Phil Hagelberg p...@hagelb.org wrote:
It also highlights failures in the test buffer for better feedback.
when there is a failure where are the details of the failure printed out to?
I love that the highlight shows me which test have errors, but since I've
moved
On Tue, Dec 21, 2010 at 21:36, Michael Ossareh ossa...@gmail.com wrote:
On Tue, Dec 21, 2010 at 16:16, Phil Hagelberg p...@hagelb.org wrote:
It also highlights failures in the test buffer for better feedback.
when there is a failure where are the details of the failure printed out
to? I
I was wondering if anyone has been working
on implementing a bit syntax for Clojure in the rough conceptual style
of Erlang's bit syntax.
I'm not an erlang-pro, just dabbled enough to know I like the pattern
matching, which is what you're talking about here, I believe.
I'm looking for a
On Thu, Dec 16, 2010 at 09:19, clj123 ariela2...@gmail.com wrote:
Hello,
I'm trying to insert in a database large number of records, however
it's not scaling correctly. For 100 records it takes 10 seconds, for
100 records it takes 2 min to save. But for 250 records it
throws Java
On Wed, Dec 8, 2010 at 02:16, Sam Aaron samaa...@gmail.com wrote:
The rollout of videos has already started:
http://twitter.com/clojure_conj/status/10324356836102144
Fogus' talk: http://clojure.blip.tv/file/4501296/
The synopsis says 30 minutes but it seems there may have been an issue in
This was the first issue, the second issue is that I'm queueing up lots of
data for the thread pools and as a result I'm able to completely exhaust the
available memory. the clj-sys/work framework seems to be what I need to
ensure there is a fixed number of threads.
I wrote this up:
On Sun, Dec 12, 2010 at 19:45, Kevin Downey redc...@gmail.com wrote:
no, the runtime you get with every j2me implementation I've seen ia a
stipped down java 1.3 or 1.4. Clojure requires 1.5 at least. Basically
there are no phones with a real, up to date, jre.
Out of interest, and with no
On Fri, Dec 10, 2010 at 23:36, Alex Osborne a...@meshy.org wrote:
Michael Ossareh ossa...@gmail.com writes:
There are 54874 companies in the companies var. The OOM tends to take
place when there are 1000 or so companies to process.
What is likely to be causing this issue?
I replied
Hi,
I've cobbled together some grungy code to attempt to work out the number of
employees in different ranges - the code is a horrible mess of side
effects: https://gist.github.com/737179
(pmap process-company (take 1500 companies))
results in:
Exception in thread pool-2-thread-3905
On Mon, Dec 6, 2010 at 21:01, Alex Baranosky
alexander.barano...@gmail.comwrote:
Way I have [:a 1:b 2] and I want to convert it to {:a 1 :b 2}
Minor quibble - [] is a Vector not a list. List is ().
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To
On Wed, Dec 1, 2010 at 05:29, Laurent PETIT laurent.pe...@gmail.com wrote:
Hi,
2010/12/1 Michael Ossareh ossa...@gmail.com
Hi All,
In the course of putting together my latest piece of work I decided to
really embrace TDD. This is run of the mill for me in Java:
- create some object
-expressions.com/2010/01/24/conjure-simple-mocking-and-stubbing-for-clojure-unit-tests/
Great links - thanks Alyssa.
Remember that unit testing is NOT integration testing...
Thanks,
Alyssa
On Dec 1, 8:29 am, Laurent PETIT laurent.pe...@gmail.com wrote:
Hi,
2010/12/1 Michael Ossareh
Hi All,
In the course of putting together my latest piece of work I decided to
really embrace TDD. This is run of the mill for me in Java:
- create some object that models your flow
- create some object which contains your storage logic
- create tests
- dependency inject the correct storage
On Sun, Nov 28, 2010 at 00:15, Sunil S Nandihalli
sunil.nandiha...@gmail.com wrote:
what repository did you get it from?
I don't seem to fine 1.3.0 anywhere..
http://clojars.org/swank-clojure
I forgot the -SNAPSHOT in my previous message.
--
You received this message because you are
I had no issues with swank-clojure 1.3.0:
in project.clj [swank-clojure 1.3.0]
I had plenty of issues using other libraries as there are some breaking
changes in 1.3. YMMV.
On Thu, Nov 25, 2010 at 05:52, Sunil S Nandihalli
sunil.nandiha...@gmail.com wrote:
Hello Everybody,
I would like to
On Mon, Nov 22, 2010 at 14:56, Benny Tsai benny.t...@gmail.com wrote:
My guess is that they're being deprecated in favor of their
counterparts in clojure.core:
string - clojure.string
io - clojure.java.io
Ah right, I think I remember that now. Thanks!
--
You received this message
On Wed, Nov 3, 2010 at 20:51, Mike Meyer
mwm-keyword-googlegroups.620...@mired.org wrote:
Finding good people is hard enough that wanting them to be good in
three or four languages is enough to break the camels back. If you've
got time to cross-train them - then you don't need
I've
On Mon, Nov 1, 2010 at 21:09, Sean Corfield seancorfi...@gmail.com wrote:
This Q came up on the Leiningen list but I wanted to share my answer
on the larger Clojure group to get feedback from a bigger pool...
On Mon, Nov 1, 2010 at 8:40 PM, Shantanu Kumar kumar.shant...@gmail.com
wrote:
On Fri, Oct 29, 2010 at 21:32, Michael Gardner gardne...@gmail.com wrote:
Agreed. What is the point of Javascript on the server side? Familiarity?
Consistency with client-side code?
I guess what Java was meant to be, to some degree? Write once run
anywhere. I for one am still hankering for a
On Mon, Oct 25, 2010 at 19:09, Victor Olteanu bluestar...@gmail.com wrote:
java.lang.IllegalStateException: spit already refers to:
#'clojure.contrib.duck-streams/spit in namespace: datatool.api (api.clj:1)
Hi Victor,
I solved this issue by using (require) instead of (use). i.e.
(ns myapp
On Wed, Oct 20, 2010 at 09:52, Alan a...@malloys.org wrote:
I agree with Tom (and with Stuart). I tend to like using - when it's
convenient, since all you're really doing is performing a list of
transformations on a single object. However, the let is better
documentation if that's ever going
On Mon, Oct 18, 2010 at 11:18 AM, Sean Devlin francoisdev...@gmail.com
wrote:
Okay, I just finished a Python app for work. Using SQLAlchemy was a
joy. Has anyone ported this yet?
Having never used SQLAlchemy, and rarely python, what are the benefits of
SQLAlchemy? My only experience
Eric Lavigne lavigne.e...@gmail.com wrote ..
What's this about an after party?
jealous :(
/me darns this startup life that doesn't permit travel
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
On Fri, Oct 15, 2010 at 09:32, oak ismail.oka...@gmail.com wrote:
Hi All,
This is how i see the package in package explorer.
IEssbase.class
(I) IEssbase
(C, s f) Home
(M, s) create(String) IEssbase
(M, c) Home()
(P, s f) JAPI_VERSION
Out of interest
On Thu, Oct 14, 2010 at 08:02, Ralph grkunt...@gmail.com wrote:
First, how do I submit a request for enhancement?
I believe the process is:
a) register on assembla,
b) submit ticket (
http://www.assembla.com/spaces/clojure/tickets/custom_report/2729 )
If you intend to provide the change via
2010/10/6 Cédric Pineau cedric.pin...@gmail.com
One thing : I'm new to clojure and gathering information about the whole
ecosystem, including web frameworks, but find it hard to figure what to
choose.
This has been raised quite a few times recently. Is this a sign of some
critical mass
On Sat, Oct 2, 2010 at 22:46, Scott Jaderholm jaderh...@gmail.com wrote:
On Sat, Oct 2, 2010 at 6:36 PM, Michael Ossareh ossa...@gmail.com wrote:
What is the recommended manner in which to let your application know its
on a dev machine?
I use an environment variable that determines which
What is the recommended manner in which to let your application know its on
a dev machine?
I'm building an app that sends emails based on certain events, however when
I'm developing locally I'd rather it print the email to my log file. I have
a variable in that namespace: *send* which is def'ed
On Fri, Oct 1, 2010 at 13:32, George Jahad cloj...@blackbirdsystems.netwrote:
For your delectation:
http://www.vimeo.com/15462015
This is sick! In the good sense!
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
On Fri, Oct 1, 2010 at 17:55, Ross Gayler r.gay...@gmail.com wrote:
Hi,
This is probably an abuse of the Clojure forum, but it is a bit
Clojure-related and strikes me as the sort of thing that a bright,
eclectic bunch of Clojure users might know about. (Plus I'm not really
a software
How are other people handling the process of reducing code in their
projects?
Situation: We've built a product, very rapidly thanks to being able to
produce stuff very quickly in clojure. However now that it is somewhat
settled I'm in the process of paring down the code, removing defunct fn's,
On Thu, Sep 16, 2010 at 07:53, Laurent PETIT laurent.pe...@gmail.com wrote:
2010/9/16 Meikel Brandmeyer m...@kotka.de
Hi Laurent,
On 16 Sep., 15:54, Laurent PETIT laurent.pe...@gmail.com wrote:
you don't like my one-liner ? :-)
I saw your message only after I sent mine. :)
(update-in
(loop [data (sorted-map)
collection newData
meeting (first collection)]
(def key ( ))
As a general rule, def should only be used at the top level. You
probably want (let [key ...] (if ...) here.
Hey, thanks for pointing this out - I was actually just trying to
Meikel,
(recur (cond (not (nil? (data key)))
(true? true)
*ieeck* Please do (cond ... :else default-clause). Not true, or (true?
true) or other stuff.
Wow, I somehow missed the :else option in cond? I've got that (true?
true) stuff scattered all over my code - going to
On Fri, Sep 17, 2010 at 08:58, Michael Wood esiot...@gmail.com wrote:
On 17 September 2010 00:56, Michael Ossareh ossa...@gmail.com wrote:
Meikel,
(recur (cond (not (nil? (data key)))
(true? true)
*ieeck* Please do (cond ... :else default-clause). Not true, or (true
Hi Guys,
One of the things that has struck me about clojure, by virtue of being
a lisp, is the concision of the code - I really find it very
attractive. However yesterday I found something that I couldn't work
out how to do in a concise manner. Clearly commenting the code was a
priority once I
Hi,
I don't fully understand how to make real use of varargs and
destructuring. c.c.sql/create-table is defined as follows:
(create-table name specs)
Called as follows:
(c.c.sql/create-table
:tblname
[:cola :text NOT NULL PRIMARY KEY]
[:colb :number NOT NULL]
[:colc :blob NOT NULL)]
I
Alan and Patrick, thank you so much! I've come across apply in JS and
it really should have clicked for me!
So I have the following, and it works very well:
(defn make-tables
[connection schema]
(sql/with-connection connection
(doseq [[name specs] schema]
(try
On Wed, Sep 8, 2010 at 08:17, CuppoJava patrickli_2...@hotmail.com wrote:
Ah I see. Yes, motivation is hard. I don't have any good tips for
that.
I'm still a noob at the evangelising part of Lisp! However, when it comes to
clojure, I tell Java people it's a better way of writing Java than
On Mon, Sep 6, 2010 at 19:50, Wilson MacGyver wmacgy...@gmail.com wrote:
I figure enough time has passed that I want to bring this up again.
For JSON, are you using clojure.contrib.json or clj-json? Why?
We use org.danlarkin.json, because it encodes and decodes (contrib.json
didn't when we
On Thu, Sep 2, 2010 at 21:05, Miki miki.teb...@gmail.com wrote:
I'd go over SICP, though it not in Clojure but in Scheme - it will
show you how to think functional.
+1 on this.
http://mitpress.mit.edu/sicp/
--
!new number!
415-400-6772
--
You received this message because you are
I highly recommend using Google Closure Templates. Clojure's java interop
lets you script up creating a page from the soy files very efficiently and
quickly (yay clojure!!). Also the fact that you can run the templates on the
server and client mean if your idea scales up you can XHR data to and
On Tue, Aug 17, 2010 at 07:59, HB hubaghd...@gmail.com wrote:
Hey,
How to install Clojure on Mac OS X?
I wrote this pre 1.2:
https://docs.google.com/Doc?docid=0AW2Ojyy-IGoHZGR0c256dmZfNTRjenBoYnBjaAhl=en
There are likely a few changes needed but a cursory glance and it mostly
looks right. In
69 matches
Mail list logo