ANN: Autodoc 0.9.0 (Finally!)

2012-01-05 Thread Tom Faulhaber
A new version of Autodoc (0.9.0) is now available from clojars. This version should work with all versions of Clojure that exist in the wild and is generally more robust to weird dependency relationships than previous versions. For those who aren't familiar, Autodoc is the tool that is used to

Re: Storing clojure lists and maps in Redis

2012-01-05 Thread Shoeb Bhinderwala
Hi Peter - I looked at deep-freeze but did not quite understand how to use it. I used the following to freeze my Clojure complex data structure - results (map of list of maps) and persist to redis:       (redis/hmset k k (deep-freeze/freeze-to-array results)) Then I tried to retrieve and thaw it

Re: ANN: Autodoc 0.9.0 (Finally!)

2012-01-05 Thread semperos
Thanks Tom, works like a charm. Looking forward to support for protocols and the like. Where's a good place to start helping on that front? -Daniel -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Use You a Spaced Repetition System for Great Good!

2012-01-05 Thread Gary Trakhman
Holy cow, I feel anki will change my life. Thank you so much for mentioning it. -- 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

Re: ANN: Autodoc 0.9.0 (Finally!)

2012-01-05 Thread Tom Faulhaber
Daniel, Glad, it's working for you! Protocols and stuff are almost done, so I think I'm good there. I just took a swerve off that path for a couple weeks to get things into releasable form since so many were clearly feeling pain over it. Expect more news on that front in the next few weeks.

Re: Storing clojure lists and maps in Redis

2012-01-05 Thread Timothy Baldridge
Can we get a complete code listing? Also what client are you using? It looks as if your redis client is returning a string, and we're expecting a byte array Timothy I looked at deep-freeze but did not quite understand how to use it. I used the following to freeze my Clojure complex data

How would I learn more about Clojure's class loading system?

2012-01-05 Thread Daniel Bell
So school has started, and I'm laden with syllabi, either in print or online. I'm a stats student, so all my professors use LaTex for...well, everything. So I have all these .pdf files. I had the idea of parsing them and extracting the homework schedules and then making a simple Android app

Re: How would I learn more about Clojure's class loading system?

2012-01-05 Thread Kevin Downey
On Thu, Jan 5, 2012 at 12:21 PM, Daniel Bell dchristianb...@gmail.com wrote: So school has started, and I'm laden with syllabi, either in print or online.  I'm a stats student, so all my professors use LaTex for...well, everything.  So I have all these .pdf files. I had the idea of parsing

Any char-based Java file I/O with arbitrary seek?

2012-01-05 Thread Andy Fingerhut
If this doesn't seem like a question for a Clojure group, I'll preface this by saying it is motivated by writing Clojure examples for a Clojure cookbook [1]. So far the examples are intended to work like the Perl examples from the 1st edition of the Perl Cookbook [2], but it may grow beyond that

Re: Any char-based Java file I/O with arbitrary seek?

2012-01-05 Thread Steve Miner
On Jan 5, 2012, at 5:07 PM, Andy Fingerhut wrote: I realize that with variable-length multi-byte character encodings like UTF-8, it would be a bad idea to seek to a random byte position and start trying to decode a UTF-8 character starting at that byte position. I'm thinking of cases

Re: How would I learn more about Clojure's class loading system?

2012-01-05 Thread Daniel Bell
Thanks Kevin, but I'm not so much looking for debugging help on this specific issue as I'm asking what I should do if I want to be able to, say, help others with similar issues in the future. Classpath stuff is a common bugaboo even for experienced Java developers (or so I hear), and all the

Re: Any char-based Java file I/O with arbitrary seek?

2012-01-05 Thread Linus Ericsson
How about a memory mapped file? Not lazy at all, but could be quick, given that you have enough memory. http://docs.oracle.com/javase/1.4.2/docs/api/java/nio/MappedByteBuffer.html There can be times where a database is too low performant or clumsy for quick searching in a large utf-8 file, but

Re: Use You a Spaced Repetition System for Great Good!

2012-01-05 Thread Arnoldo Muller
Joshua I used http://www.mnemosyne-proj.org/ when I was learning Japanese and I experienced a dramatic improvement in my retention rates. To give you and idea I learned 1000 Chinese characters (Kanji) and about 4000 words in one year. I spent around 40 minutes per day only. Arnoldo On Jan 3,

Re: How would I learn more about Clojure's class loading system?

2012-01-05 Thread yair
Hi Daniel, While this may not be all-inclusive, there could be two main reasons for the error. 1. You don't really have all the jars required. This is easy to check. A jar is just a zip file really and can be viewed (jar -tvf jarname). Look for the class file in there that matches the class

Re: How would I learn more about Clojure's class loading system?

2012-01-05 Thread Kevin Downey
There are a number of different possibilities. Without anything more specific the only realistic answer is read the source of all the libraries you are using, and of clojure, and of lein and look for tricks with classloaders Clojure does some classloader fiddling, but so do most jvm build tools

Re: LCUG: 17th January 2012, Malcolm Sparks - Reflections on a real-world Clojure application

2012-01-05 Thread Craig
On Jan 5, 11:56 am, Kevin Lynagh klyn...@gmail.com wrote: Any chance the talk will be filmed and posted online? +1. Or slides posted? -- 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

Re: Storing clojure lists and maps in Redis

2012-01-05 Thread Shoeb Bhinderwala
Hi Tim I am using redis-clojure client: https://github.com/tavisrudd/redis-clojure Below is the complete code listing. The thaw invocation gives me the error: java.lang.String cannot be cast to [B - (class java.lang.ClassCastException) -- code (ns my-app (:require

Re: Storing clojure lists and maps in Redis

2012-01-05 Thread Peter Taoussanis
Yup, Timothy is correct. Basically Redis's native datatype is a bytestring: http://redis.io/topics/internals-sds. This is actually more like a JVM ByteArray than String, so libraries like Jedis (which take Strings), do some coercions for you. clj-redis uses Jedis underneath, so it expects

Re: Storing clojure lists and maps in Redis

2012-01-05 Thread Peter Taoussanis
Oh wow, sorry- I didn't see your reply in time and for some reason figured you were using clj-redis. This is actually easier since (if I recall correctly) redis-clojure is able to write byte[]s and has an as-bytes macro for reading. So you'd want something like this (untested): (defn thaw [k]