My previous link was malformed, correct one is this: http://goo.gl/bGd3g
--
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 w
Borneos walk is a convenient wrapper
for
http://api.neo4j.org/current/org/neo4j/graphdb/Node.html#getSingleRelationship(org.neo4j.graphdb.RelationshipType,
org.neo4j.graphdb.Direction)
It returns exactly one node. It should be used in situations where you want
to walk from some node by follow
Hi,
may I throw in ye olde hierarchies?
(deftype MySpecialType)
(extend-type MySpecialType
Foo
...
Bar
...)
(derive MySpecialType ::FooBar)
(defn instance-of?
[c x]
(isa? (type x) c))
(instance-of? (MySpecialType.) ::FooBar) => true
Maybe a bit clumsy, but to me it feels cleaner
I also want to throw this code out there. https://gist.github.com/1263782
The current walk takes multiple types (I assume the expected behaviour
would be to return the last node for each type), but instead it blows
up. Assuming your reduce works like it should, this code makes that
function work
Well, the problem is that map produces a lazy sequence and you realize this
sequence after connection to neo4j is closed.
This is not a bug of Borneo or Clojure, but it is a programmers mistake. You
have to realize a lazy sequence e.g. with doall before you close the
connection.
It is not good
Good idea. I am having problems with slideshare displaying the
presentation. I probably need to get on another machine to try to
convert it to something more useful, and that will take a couple of
days. I will post when I do.
-- Dennis
On Wed, Oct 5, 2011 at 12:05 AM, Leonardo Borges
wrote:
>
How about putting it up on slideshare? Pretty sure they can import pptx ;)
Cheers,
Leonardo Borges
www.leonardoborges.com
On Wed, Oct 5, 2011 at 3:55 PM, Dennis wrote:
> Here is a link to my presentation.
>
>
> http://dl.dropbox.com/u/5831287/JavaOne%202011%20-%20Monitoring%20a%20Large-Scale%
Here is a link to my presentation.
http://dl.dropbox.com/u/5831287/JavaOne%202011%20-%20Monitoring%20a%20Large-Scale%20Infrastructure%20with%20Clojure%20FINAL.pptx
Sorry about the file format :)
Let me know if the link doesn't work.
-- Dennis
On Tue, Oct 4, 2011 at 10:17 AM, C. Arel wrote:
>
Doesn't java have kinda-sorta union types now? Like, you could declare
a method as:
public void serializeAndClose(T
thing) {...}
It seems like marker interfaces are no longer necessary for this sort
of thing. Likewise in Clojure, instead of having a
CloseableSerializable protocol (gross!), you c
"Marker interface" is the right idea (and I did in fact look it up in
Wikipedia last night :-)), but I was trying to avoid saying that. What my
stuff is doing is arguably a little different: a Java analogy would be
something like defining a new interface that's a composite of several other
inte
Hey Rob, Thanks for your reply,
I will try that for my projects
My use case is slightly different though. I want to be able to build other
peoples projects from source (e.g. from github) without editing any of the
project.clj files - but still overriding to use my local repository.
Any ideas?
:sigh: Google removed by [Borneo] tag from the subject heading
On Oct 4, 8:39 pm, Daniel wrote:
> To add to this, (all-nodes) silently populates an empty list (probably
> not what the user wants).
>
> user=> (neo/with-db! "playground" (neo/all-nodes))
> ()
> user=> (neo/with-db! "playground"
To add to this, (all-nodes) silently populates an empty list (probably
not what the user wants).
user=> (neo/with-db! "playground" (neo/all-nodes))
()
user=> (neo/with-db! "playground" (doall (neo/all-nodes)))
(# # #
# # #
# # #)
The major problem, of course, is that we can only be lazy inside t
Borneo get's bit by this bug:
http://lists.neo4j.org/pipermail/user/2011-February/006460.html
Here's a simple example:
(neo/with-db! "playground"
(let [humans (neo/walk (neo/root) :humans)
human-nodes (neo/traverse humans :human)]
(map neo/props human-nodes)))
Nu
On Oct 4, 2011, at 7:40 PM, hgreen wrote:
> Somehow, I just knew someone was going ask "why...?" :-)
:-)
> A while back, I constructed a little mechanism for defining data types, built
> on top of the protocol/record/type mechanism. Under certain circumstances, it
> generates protocols with n
Somehow, I just knew someone was going ask "why...?" :-)
A while back, I constructed a little mechanism for defining data types,
built on top of the protocol/record/type mechanism. Under certain
circumstances, it generates protocols with no methods, basically in
situations where it wants to ide
On Tue, Oct 4, 2011 at 2:25 PM, Shoeb Bhinderwala
wrote:
> Thanks. Didn't think it would exist in clojure.core.
I highly recommend trying out Chas Emerick's Clojure Atlas:
http://clojureatlas.com - it makes searching for functions AND
concepts really easy and provides a great way to see the relat
reminds me of http://is.gd/shinyscript
--
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 unsubscri
Thanks. Didn't think it would exist in clojure.core.
On Oct 4, 4:58 pm, Ulises wrote:
> your subject contains the answer :)
>
> sandbox> (def s1 (seq ["s1" (seq ["s2" "s3"]) "s4" "s5" (seq ["s6"
> (seq ["s7" "s8"]) "s9"])]))
> #'sandbox/s1
> sandbox> s1
> ("s1" ("s2" "s3") "s4" "s5" ("s6" ("s7" "
Thanks, I see now.
Just want to stress that it is important to have a single point of
diving into the documentation. And it's best of all to be on the
http://clojure.org , not just http://dev.clojure.org.
IMHO with the call to community to move to 1.3 the current outdated
clojure.org can fight ba
your subject contains the answer :)
sandbox> (def s1 (seq ["s1" (seq ["s2" "s3"]) "s4" "s5" (seq ["s6"
(seq ["s7" "s8"]) "s9"])]))
#'sandbox/s1
sandbox> s1
("s1" ("s2" "s3") "s4" "s5" ("s6" ("s7" "s8") "s9"))
sandbox> (flatten s1)
("s1" "s2" "s3" "s4" "s5" "s6" "s7" "s8" "s9")
sandbox> (doc flatte
user=> (flatten s1)
("s1" "s2" "s3" "s4" "s5" "s6" "s7" "s8" "s9")
Sincerely,
Michał
--
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
> user => s1
> ("s1" ("s2" "s3") "s4" "s5" ("s6" ("s7" "s8") "s9"))
>
> How to convert s1 to a flat sequence like this:
>
> ("s1" "s2" "s3" "s4" "s5" "s6" "s7" "s8" "s9")
(flatten s1)
jack.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to
(def s1
(seq
["s1"
(seq ["s2" "s3"]) "s4" "s5" (seq ["s6" (seq ["s7" "s8"])
"s9"])]))
user => s1
("s1" ("s2" "s3") "s4" "s5" ("s6" ("s7" "s8") "s9"))
How to convert s1 to a flat sequence like this:
("s1" "s2" "s3" "s4" "s5" "s6" "s7" "s8" "s9")
--
You received this message because
Thanks! Let me know if you need anything along those lines and we'll see
what we can do.
David
On Tue, Oct 4, 2011 at 2:24 PM, Laurent PETIT wrote:
> 2011/10/4 David Santiago :
> > They are not related, although clojure-csv was first. I first found out
> > about data.csv existing, and being a
2011/10/4 David Santiago :
> They are not related, although clojure-csv was first. I first found out
> about data.csv existing, and being added to contrib when someone asked a
> question about it a few weeks ago. Given the number of users, I have no
> choice but to continue maintaining and improvin
On Tue, Oct 4, 2011 at 5:22 AM, Fogus wrote:
> Good catch. That was my fault. It's now nested under the Core page
> in the same space.
Thanx for the swift update - appreciated!
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worlds
Pattern matching is always top down and wildcards always match.
David
On Tue, Oct 4, 2011 at 3:21 PM, j1n3l0 wrote:
> I thought that since x matches both the first and third patterns, the third
> pattern would match better as the value for :a is 1 whereas the value in the
> first pattern is _?
I thought that since x matches both the first and third patterns, the third
pattern would match better as the value for :a is 1 whereas the value in the
first pattern is _?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send
They are not related, although clojure-csv was first. I first found out
about data.csv existing, and being added to contrib when someone asked a
question about it a few weeks ago. Given the number of users, I have no
choice but to continue maintaining and improving clojure-csv.
David
On Tue, O
2011/10/4 Laurent PETIT :
> 2011/10/4 Laurent PETIT :
>> 2011/10/4 Allen Johnson :
>>> In addition, there is org.clojure/data.csv which says it works with
>>> Clojure 1.2 and 1.3.
>>>
>>> https://github.com/clojure/data.csv
>>
>> I didn't go first see in clojure contrib, shame on me
>
> Seems like
2011/10/4 Laurent PETIT :
> 2011/10/4 Allen Johnson :
>> In addition, there is org.clojure/data.csv which says it works with
>> Clojure 1.2 and 1.3.
>>
>> https://github.com/clojure/data.csv
>
> I didn't go first see in clojure contrib, shame on me
Seems like a derivative of clojure-csv, though.
I
2011/10/4 Allen Johnson :
> In addition, there is org.clojure/data.csv which says it works with
> Clojure 1.2 and 1.3.
>
> https://github.com/clojure/data.csv
I didn't go first see in clojure contrib, shame on me
>
> Allen
>
> On Tue, Oct 4, 2011 at 2:42 PM, Laurent PETIT wrote:
>> Self answer :
I needed a CSV recently and I wanted one that converted the rows to maps
(using the headers) and supported converters. I found one[1] that did
most of what I wanted and extended it a bit. The tests provide a good
overview of the API:
https://github.com/bmabey/csvlib/blob/master/test/csvlib_te
In addition, there is org.clojure/data.csv which says it works with
Clojure 1.2 and 1.3.
https://github.com/clojure/data.csv
Allen
On Tue, Oct 4, 2011 at 2:42 PM, Laurent PETIT wrote:
> Self answer : either clojure-csv for full NIH clojure solution (
> http://github.com/davidsantiago/clojure-cs
Self answer : either clojure-csv for full NIH clojure solution (
http://github.com/davidsantiago/clojure-csv, the one I took :-) ), or
java based OpenCSV
There is also a csv lib in Incanter, but I did not try to see if it is
sufficiently decoupled from the rest to be used in isolation (still
havin
> I finally got around to trying out the 1.3 release yesterday with a batch of
> code that was constructed using 1.2, and promptly ran into a problem. In 1.2,
> it's possible to define a protocol with zero methods, so, for example,
> (defprotocol xxx) works just fine. In 1.3, this generates the
I finally got around to trying out the 1.3 release yesterday with a batch of
code that was constructed using 1.2, and promptly ran into a problem. In
1.2, it's possible to define a protocol with zero methods, so, for example,
(defprotocol
xxx) works just fine. In 1.3, this generates the rather
Hello all,
What would be the currently recommended CSV client, please ?
Not necessarily already upgraded to 1.3 support.
Thanks in advance,
-- Laurent
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@goo
Hi Dennis and Chas,
I'd also like the slides if possible. Maybe if you could post them
here in the group more people can get them.
Thanks,
Can
On 27 Sep, 17:50, Dennis wrote:
> Hey guys,
>
> I will be giving a talk at JavaOne (it is Clojure related). Here is
> the information.
>
> Title:
> (it doesn't help that this is now a child page of Release.Next
> Planning which now refers to Clojure 1.4!)
Good catch. That was my fault. It's now nested under the Core page
in the same space.
> Improving documentation looks to be a focus of Clojure
> 1.4:http://dev.clojure.org/display/desi
41 matches
Mail list logo