o print it.
>
> If you don't print the Atom, this self-reference can still work:
>
> user=> (def a (atom {}))
> #'user/a
> user=> (do (swap! a assoc :self a) nil)
> nil
> user=> (= a (:self @a))
> true
>
> –S
>
>
> On Friday, August 7,
Hi all,
I noticed this behaviour that I was not expecting:
simo@simo:~$ lein repl
nREPL server started on port 42010 on host 127.0.0.1 -
nrepl://127.0.0.1:42010
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.6.0
OpenJDK 64-Bit Server VM 1.7.0_79-b14
Docs: (doc function-name-here)
(find-doc "p
Hi all,
I am trying to parse some java source file that contain the definition of
an interface, what I need is to get the name of the interface, what methods
it defines and what other interfaces it extend.
I used a regex (there is any clever way other than analyze the source ?)
that works pret
Thank you so much...
Actually was kinda funny, I typed something like "clojure cheatsheet
offline" and your github link was one of the first, and I was very
surprised... "Wow, it is possible that I didn't know of it ?"
Well now I understand why I didn't know of it yet, it is only few hours old
It is very interesting, just a friendly suggestion, if you share code, and
need some help, make sure people can get immediately what is going on.
(READ: comment the code)
On Saturday, June 29, 2013 1:34:57 PM UTC+2, Zhemin Lin wrote:
>
> Hi.
> One of my colleagues gave a share about the cycle det
I code only for myself, and honestly coding is what I like to do.
I remember these days being in a very bad mood and all I wanted to do was
to sit and code.
I believe that what motivate myself is my own EGO, code for me is only
about solving problem, and more problem I solve better my ego is.
It is probably me being stupid, but WHY ?
On Sunday, May 5, 2013 8:11:05 AM UTC+2, David Lowe wrote:
>
> It's much, much simpler than any compiler! It just translates arbitrary
> clojure code to and from all-whitespace strings :)
>
> Thanks,
> David
>
>
> On Sat, May 4, 2013 at 11:26 AM, Gary Ver
OT:
@Peter Mancini
I would like to invite you, like* everybody else who is doing a lot of math
and especially matrix*, to check out core.matrix (
https://github.com/mikera/matrix-api) and leave as many feedback as
possible about everything, from design to implementation of library to
performanc
se an accumulator in the loop, not an atom.
>
> take, map an others are lazy. you may need to (doall ...)
>
> Dave
>
>
> On Thursday, 10 January 2013 08:22:57 UTC+11, Simone Mosciatti wrote:
>>
>> Hi everybody,
>>
>> I was implementing a skip list, just
Hi everybody,
I was implementing a skip list, just for fun.
I implemented the list and just to be sure that it were working I wanted to
count how many steps it compute to find a value.
SkipList --> http://en.wikipedia.org/wiki/Skip_list
To do so I was using a atom, and the code looks like this:
It could be a good idea to post the video and the slides also in some
different platform (YouTube/Vimeo for the video and something else for the
slides google doc, dropbox) just to avoid what happened with blip.tv...
It may be a even better idea to get all the video material and put all
togethe
I just wanted to say
"Merry Christmas" to this wonderful community that during this first (half)
year learning clojure is really helping me.
Thanks to everybody and best wishes for the holidays
Simone Mosciatti
PS: Here in Italy is just 0.11 AM of the 25th of December aka
I never really get Persona (means person in Italian that doesn't really
make a lot of sense, but whatever) what if I share my pc with my brother ?
Maybe i miss something...
If you are using mongodb I am using https://github.com/xavi/noir-auth-app that
is using congomongo and since i am using mon
If I upgrade right now I can remove clojure.data.json from my dependencies
and still use monger.joda-time without any problem ?
Or I have to put chesire in the dependency ?
On Wednesday, October 24, 2012 10:58:21 AM UTC+2, Michael Klishin wrote:
>
> Monger (http://clojuremongodb.info) is an idiom
It looks great, well done...
waiting for the 1.0...
--
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
Immutant ( http://immutant.org/ ) IMO is moving in a great direction, if I
have understand is wrapping several libraries in just one enviroment...
And red hat is behind it I just find out, that usually means great doc...
--
You received this message because you are subscribed to the Google
Grou
On Saturday, September 29, 2012 1:48:10 PM UTC+2, Anthony Grimes wrote:
I do not have access to the website in order to update it
>
Somebody (Chris Granger ???) has the access, if you are actually
maintaining it you should have the access too...
> Chris has things he wanted to see done fir
OMG I was waiting for that,
thank you guys so much, really...
Just a little note: fantastic would be add documentation for durable
scheduler...
On Monday, September 17, 2012 10:53:57 PM UTC+2, Michael Klishin wrote:
>
> Quartzite [1] is a Clojure DSL on top of the Quartz scheduler. It has a
> f
Ok, I guess nobody is really interested in something like that...
Never mind...
On Wednesday, September 5, 2012 6:37:40 PM UTC+2, Simone Mosciatti wrote:
>
> Hi everybody,
>
> I get a little idea now that we are heading to Christmas.
>
> Would be nice to organize a little fund
ntainers of open source projects.
>
> Regards,
> Paul
>
> On Wednesday, September 5, 2012 10:19:04 AM UTC-7, Jim foo.bar wrote:
>>
>> aaa ok that makes things clearer...thank you I get your point now! i
>> can't say it doesn't make sense but i would
stand at all what you
> mean! raise money for people to document their open-source projects
> better?
>
> forgive me but I missed your point... :-)
>
> Jim
>
>
> On 05/09/12 17:37, Simone Mosciatti wrote:
> > Hi everybody,
> >
> > I get a little ide
what the community think about that.
It is possible ? It can be dangerous ? We shouldn't do that ?
Thanks for the attention.
Greets
Simone Mosciatti
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this gro
ngth terms and conditions.
>
> On Fri, Aug 31, 2012 at 2:49 PM, John Holland
> >
> wrote:
> > This is awesome!
> >
> > On Friday, August 31, 2012 4:31:38 PM UTC-4, Simone Mosciatti wrote:
> >>
> >> A little guide to use webnoir on openshift
&g
A little guide to use webnoir on openshift
http://sisciatech.tumblr.com/post/29614188595/webnoir-in-openshift
English is not my first language, if you find any mistake please let me
know.
I hope it will be useful to somebody.
Simone
--
You received this message because you are subscribed to
Thanks, it was what i thought...
Any other suggestion is still welcome :-)
On Tuesday, July 24, 2012 12:50:47 AM UTC+2, David Nolen wrote:
>
> On Mon, Jul 23, 2012 at 6:42 PM, Simone Mosciatti
> wrote:
> > Hi everybody,
> > I was looking if it is possible to inver
Hi everybody,
I was looking if it is possible to invert the match macro, an example worth
more than 1000 words.
(def x (match [a b]
[true true] 0.5
[false true] 0.6
[true false] 0.4
[false false] 0.8))
(max x)
=> [false false]
(filter odd? x)
=> [true true]
It is possible ?
I am de
rks-in-clojure-5961126
>
> But AFAIK the "raposo" library has not been published yet.
>
> On Saturday, July 14, 2012 4:20:17 PM UTC+2, Simone Mosciatti wrote:
>>
>> Hi guys,
>> I'm trying to develop a Bayesian Network just "for fun" XD
>>
&
Hi guys,
I'm trying to develop a Bayesian Network just "for fun" XD
My first problem is to understand how represent the graph necessary a DAG.
I come out with something : https://gist.github.com/3111539
(Very very first stage I just finish to write this code)
But I have some question to how rep
Yes, you right.
Definitely both atom and dynamic is too much, the idea is to set once for
the whole section at the very start, given anyway the possibility to change
it by bindig when it is necessary...
I guess that i should use only dynamic... but i got some problem changing
the var...
I shoul
Yep, i changed it in futures...
I am unsure about the atom of api-key, in theory i won't need to change my
api-key, but idk... You can get a lot of api-key gratis which are a little
limited or just one payed api-key that can do everything...
Il giorno giovedì 24 maggio 2012 00:56:25 UTC-5, Ulis
Looking the code again I believe that I should use a future and not an
agent...
I am right ???
Il giorno martedì 22 maggio 2012 16:10:58 UTC-5, Simone Mosciatti ha
scritto:
>
> Hi everybody,
>
> I have release a library to query the echonest[1][2] API.
> This is my very first job
ct me for every question or just to say that i did everything
wrong...
Simone Mosciatti
[1] http://the.echonest.com/
[2] http://developer.echonest.com/
[3] Lines 16 and 18
https://github.com/siscia/echonest-clojure-api/blob/master/src/echonest_api/with-doc-core.clj#L16
[4] Line 7
https://githu
Sorry, over internet...
Il giorno sabato 14 aprile 2012 19:34:21 UTC-5, Simone Mosciatti ha scritto:
>
> Hi everybody,
>
> I was looking for streaming a song between my server and my laptop,
> the only problem is that I have no ideas at all, never do something like
> that.
&
Hi everybody,
I was looking for streaming a song between my server and my laptop,
the only problem is that I have no ideas at all, never do something like
that.
I have a little idea of what aleph is and how it work (very little idea) so
i was thinking to use that lib and stream byte by byte us
Sorry, was my bad...
I was using clojure 1.2.1...
Il giorno venerdì 6 aprile 2012 13:04:35 UTC-5, Michael Klishin ha scritto:
>
> Simone Mosciatti:
>
> > (Do you need more info ???)
>
> Simone,
>
> Please post full exception instead of just "Error". If y
Ok, my bad i was using clojure 1.2... im sorry
Il giorno venerdì 6 aprile 2012 03:11:07 UTC-5, jaju ha scritto:
>
> On Fri, Apr 6, 2012 at 5:10 AM, Simone Mosciatti wrote:
>
>> Ok, honestly from the readme of github i like better monger,
>> but when i try to run it into the s
Ok, honestly from the readme of github i like better monger,
but when i try to run it into the shell swank it doesn't work...
It is a new problem ?
.>(use 'monger.collection)
;=> Error
.>(:use 'monger.collection)
;=> nil ;; I guess ok
.> (insert ,,)
;=> Error non var named insert (or something lik
I don't like try to compare two different work, but when two programs have
the same task, i never know...
What would you suggest, congomongo or monger (or other) ? Why ? Thoughts ???
My operation would be very easy, write more than read, and update values,
maybe in a future use of map/reduction
im italian but now im living in USA...
I will come back in july...
Im from Siena
Il giorno giovedì 22 marzo 2012 04:21:02 UTC-5, Marco Dalla Stella ha
scritto:
>
> Hi,
>
> I just want to know if there are any other italian Clojure users in
> the ml, maybe for open an Italian Clojure User Group an
More students
+1
On Feb 9, 9:54 am, Baishampayan Ghose wrote:
> Alexander,
>
> A discussion is currently ongoing in the Clojure Dev mailing list.
>
> We are still waiting for someone from Clojure/core to chime in.
>
> Regards,
> BG
>
> On Thu, Feb 9, 2012 at 8:53 PM, Alexander Yakushev
>
>
>
>
>
Hi Tassilo,
i tried your macro and its work perfectly, thank you.
On 9 Feb, 01:57, Tassilo Horn wrote:
> Cedric Greevey writes:
>
> Hi Cedric,
>
> >> Just in case the java lib in fact uses System.out/err directly, one
> >> can redirect standard out and error to something else.
>
> >> (with-open
Hi Tassilo,
i tried your macro and its work perfectly, thank you.
On 9 Feb, 01:57, Tassilo Horn wrote:
> Cedric Greevey writes:
>
> Hi Cedric,
>
> >> Just in case the java lib in fact uses System.out/err directly, one
> >> can redirect standard out and error to something else.
>
> >> (with-open
Hi guys,
I have developed a very very little application in clojure that use an
external lib in java that i prefer do not touch.
The problem is that this lib for some weird reason (debug i guess)
print at video a bunch of information useless for me, there is any way
to avoid this problem, i mean
Ok thank you so much, i got it.
Thanks again ;-)
Simone
On Dec 14, 3:22 am, Cedric Greevey wrote:
> On Wed, Dec 14, 2011 at 12:04 AM, Simone Mosciatti wrote:
> > Thank you so much, just one last thing, why you use a char-array ?
>
> Reader returns chars.
>
> > If I wa
Thank you so much, just one last thing, why you use a char-array ?
If I want use a byte-array, and no map all the whole sequence ?
On Dec 13, 10:39 pm, Cedric Greevey wrote:
> On Tue, Dec 13, 2011 at 11:33 PM, Simone Mosciatti wrote:
> > Where by now:
> > (defn lazy-reader [fl]
:
> On Tue, Dec 13, 2011 at 11:12 PM, Simone Mosciatti wrote:
> > Ok, now by now i think to have understand...
>
> > To do right, I should build a macro similar to let where I pass the
> > filename and after execute the body close the stream, right ?
>
> Easier to
Ok, now by now i think to have understand...
To do right, I should build a macro similar to let where I pass the
filename and after execute the body close the stream, right ?
On Dec 13, 9:42 pm, Cedric Greevey wrote:
> On Tue, Dec 13, 2011 at 10:14 PM, Simone Mosciatti wrote:
> > No,
No, I'm sure to not use all the sequence, so I will follow your second
advice, but...
Cause of my non-perfect english I've not really understand the last
part.
Who is the caller ?
You suggest something like this:
(let [fl (clojure.java.io/reader "path/filename")
rd (lazy-reader fl)]
(do-m
.
Any suggest of how fix that ?
Error: CompilerException java.lang.UnsupportedOperationException: Can
only recur from tail position, compiling:(NO_SOURCE_PATH:42)
On Dec 12, 12:42 pm, Simone Mosciatti wrote:
> I thought to just put it into a take...
>
> (take number-of-byte-necessar
I thought to just put it into a take...
(take number-of-byte-necessary (lazy-reader (clojure.java.io/reader
"path/to/file")))
On Dec 12, 12:34 pm, Stephen Compall
wrote:
> On Mon, 2011-12-12 at 10:21 -0800, Simone Mosciatti wrote:
> > (defn lazy-reader [fl]
> > (l
1-12-10 at 23:13 -0800, Simone Mosciatti wrote:
> > Anyway, i'm looking for read a file byte by byte, perfect would be get
> > a lazy-seq of every byte in the file, it's looks, for me, very weird
> > that there isn't a built-in or some easy way to do that
>
> T
Hi Guys,
I'm pretty new of clojure so sorry for the maybe stupid question...
Anyway, i'm looking for read a file byte by byte, perfect would be get
a lazy-seq of every byte in the file, it's looks, for me, very weird
that there isn't a built-in or some easy way to do that, but I haven't
find noth
52 matches
Mail list logo