Re: Warning: *retry-limit* not declared dynamic and thus is not dynamically rebindable

2013-04-18 Thread ljcppunix
Dear Marko Topolnik You are right, it's correct when I upgrade to leiningen213, and no these warning messages, thank you again! On Wednesday, April 17, 2013 9:04:18 AM UTC+8, ljcp...@gmail.com wrote: > > Dear all, > > When I installed leiningen and clojure, I run command "lein repl",

Re: Warning: *retry-limit* not declared dynamic and thus is not dynamically rebindable

2013-04-18 Thread ljcppunix
On Wednesday, April 17, 2013 7:23:32 PM UTC+8, Marko Topolnik wrote: > > Seems like old leiningen + new Clojure. You should upgrade to the latest > leiningen, which is 2.1.3. > > On Wednesday, April 17, 2013 3:04:18 AM UTC+2, ljcp...@gmail.com wrote: >> >> Dear all, >> >> When I installed le

Re: [ANN] lein-html5-docs 2.0.0

2013-04-18 Thread John Gabriele
On Thursday, April 18, 2013 6:19:26 PM UTC-4, Tassilo Horn wrote: > > > > That's how docs generated with the plugin look like: > > http://userpages.uni-koblenz.de/~horn/funnyqt-docs/ > > Nice, Tassilo! Incidentally, it looks like most of the doc strings there are pretty-much markdown-formatte

Re: Setting content type in a resouce response

2013-04-18 Thread David Della Costa
Hi Josh, you should post Ring-related questions here: https://groups.google.com/forum/?fromgroups#!forum/ring-clojure To answer your question, it's hard to say without seeing your code. In fact, I'm having a hard time reproducing the problem without explicitly telling ring to serve an HTML file

Re: Clojurescript Error: Undefined nameToPath for goog.ui

2013-04-18 Thread Michał Marczyk
Firstly, :import in ClojureScript only supports symbols as libspecs, so you'd need to write (:import goog.ui.Button) (foo Bar Quux) support could be added easily, but currently ClojureScript's ns form doesn't support the equivalents for :require and :use, to it makes sense to expect full names

[ANN] lein-html5-docs 2.0.0

2013-04-18 Thread Tassilo Horn
Hi all, I've just released version 2.0.0 of the lein-html5-docs plugin. Since version 1.2.3, I've slightly refactored some parts of the code (but it's still messy), and I have added one new killer feature: *SEARCH*! Yay! That's how docs generated with the plugin look like: http://userpages.un

Setting content type in a resouce response

2013-04-18 Thread Josh Kamau
Hi there ; Please help. How do i set the ContentType header in a (ring.util.resouce/resource-response ) ? I am serving html file and its being served as plain text. Josh -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: Clojurescript Error: Undefined nameToPath for goog.ui

2013-04-18 Thread Răzvan Rotaru
Hmm, I'm stuck again. :) I don't know why, but it seems that building the project with * lein-cljsbuild* does not accept :import. Here's the code: (ns habarnam (:use [domina :only [xpath]]) (:import [goog.ui [Button]]) And here's the compilation error: Compiling ClojureScript. Compiling

Re: [GSoC] Clojure refactoring library and integration in Counterclockwise

2013-04-18 Thread Devin Walters
A few more: - Slamhound https://github.com/technomancy/slamhound - Eastwood https://github.com/jonase/eastwood - Here's an emacs lisp refactoring mode: https://github.com/magnars/clj-refactor.el - This one is out of date but maybe useful to you: https://github.com/joodie/clojure-refactoring --

Re: [ANN] Schejulure 0.1.3

2013-04-18 Thread Alan Thompson
Looks nice! Alan On Mon, Apr 15, 2013 at 12:40 PM, Anthony Grimes wrote: > You had me at the changelog entry regarding Sundays. > > I was actually tasked with writing pretty much this at work last Friday. > My thanks for doing my work for me. Unfortunately I don't think you will be > paid for yo

Re: Arrays and indexes

2013-04-18 Thread Alan Malloy
(for [[y cols] (map-indexed vector rows) [x cell] (map-indexed vector cols)] (display cell y x)) ? On Thursday, April 18, 2013 3:14:19 AM UTC-7, edw...@kenworthy.info wrote: > > So, I want a 2 dimensional array. > > I think the best way to implement this is a vector of vectors. > > Now I

Re: Interop for primitive types

2013-04-18 Thread Softaddicts
1) Your signature has to match your java method, (Foo/bar (byte 1)) will work. 2) There's been a long thread about this. People wanted ints and longs to have a similar behavior and match whatever signature is available when doing interop. When passing (Long. 1), interop tries t

Re: [GSoC] Clojure refactoring library and integration in Counterclockwise

2013-04-18 Thread Malcolm Sparks
Michael, There are some pre-existing libraries that could give you a headstart in this work :- tools.reader - can help you parse Clojure source - https://github.com/clojure/tools.reader tools.namespace can help you parse and manage graphs of namespaces - https://github.com/clojure/tools.name

Interop for primitive types

2013-04-18 Thread Alice
1) public class Foo { public static String bar(byte b) { return "byte"; } } user=> (Foo/bar 1) "byte" public class Foo { public static String bar(byte b) { return "byte"; } public static String bar(Thread thread) { return "thread"; } } user=> (Foo/bar 1) IllegalArgument

Combimouse

2013-04-18 Thread Jacob Goodson
Check it out, please support it if you think it has potential... http://www.indiegogo.com/projects/combimouse-combination-keyboard-and-mouse?c=home -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Re: Surprising behaviour related to records, protocols and AOT

2013-04-18 Thread Ragnar Dahlén
Thank you for your explanation. I also suspect there is some subtle issue with the class file being used by the different constructors. However, I would be surprised if this behaviour is intended, and that the 'hackery' you proposed is the only, and prefered way of solving this. To better illust

Re: Surprising behaviour related to records, protocols and AOT

2013-04-18 Thread Andrew Sernyak
I guess extend-type does changes only to generated java class and the var defrecordissue.arecord->ARecord contains the 'old' version of ARecord constructor. Obviously it would be weird for defprotocol to change the variable in another namespace. Especially when you can extend a record from anyw

Re: Clojure question

2013-04-18 Thread Phillip Lord
writes: > Hello, I'm doing a school paper on Clojure but there are two questions that > i just can't find answers to anywhere they are: > > > Are data types bound to variables and parameters at compile-time? run-time? a > combination? > > and also, > > How are parameters passed? (Pass by value?

Re: invokedynamic instructions in Clojure

2013-04-18 Thread Marek Srank
Anyway, nice to see that somebody is doing some work in that direction... :) Marek On Wednesday, April 17, 2013 8:10:37 PM UTC+2, Ghadi Shayban wrote: > > Brandon, > Not really, but I don't want to deter anyone from exploration as its own > goal. There are a lot of interesting ways that Clojure

Arrays and indexes

2013-04-18 Thread edward
So, I want a 2 dimensional array. I think the best way to implement this is a vector of vectors. Now I want to display that array drawing each element relative to its position in the array. Is the best way to use doseq and manually maintain the indices? Or is it to use nested for-loops manuall

[GSoC 2013] core.matrix development

2013-04-18 Thread Damian Skrodzki
Hi, I'm Damian Skrodzki and I study at Gdańsk University of Technology. I don't know Clojure yet - I have academic experiance with Lisp. I sow the lecture about Clojure at 33rd Degree conference in Warsaw and I really liked it. I really would like to participate in Clojure development. I feel

what is the issue: NullPointerException com.mongodb.DBCursor._check (DBCursor.java:365) for congomongo

2013-04-18 Thread Zhi Yang
I use a mongodb which use sharding, so I connect to mongos. but when I query like: (fetch :locations) NullPointerException com.mongodb.DBCursor._check (DBCursor.java:365) there is error if the use (fetch :locations :one? true) it works. anyone know what is going on? I use version [congomong

what is the issue: NullPointerException com.mongodb.DBCursor._check (DBCursor.java:365) for congomongo

2013-04-18 Thread Zhi Yang
I use a mongodb which use sharding, so I connect to mongos. but when I query like: (fetch :locations) NullPointerException com.mongodb.DBCursor._check (DBCursor.java:365) there is error if the use (fetch :locations :one? true) it works. anyone know what is going on? I use version [congomong

[ANN] least, a last.fm client

2013-04-18 Thread Anthony Grimes
https://github.com/Raynes/least I wrote this a little while ago. My intentions are to make use of it in lazybot for some last.fm integration. Haven't actually done that yet (tomorrow is another wonderful day) so it hasn't seen real world use. If you find any boogs, shoot me an issue on Github.

Re: Hacker News, Clojure, and GSOC

2013-04-18 Thread Zack Maril
Some fun facts: 1. You could probably get a full history of Hacker News by carefully crawling the HNSearch API[0]. Chronically crawling the new page for links would allow you to stay in synch with Hacker News proper, and a monthly refresh of the data would probably be smart to hit anything you m