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
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
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
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
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.
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
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
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
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
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
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
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
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,
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
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
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
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
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
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]
19 matches
Mail list logo