What's the best clojure library to access HBase?

2014-03-06 Thread tao
the same as the title. 

-- 
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Do you recommend the book: "Web Development with Clojure"

2014-02-19 Thread tao
It’s a great book, but require you to play with the code when you read the book.

--  
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Thursday, February 20, 2014 at 12:14 AM, Laurent Droin wrote:

> For what it worth... I bought this book because I thought it would be a great 
> way for me to learn Clojure. I am familiar with web frameworks such as Rails 
> and Play, but didn't know much about Clojure.
> Unfortunately, it proved too difficult for me to follow because Clojure is 
> way different from imperative languages. This is not the book's fault.
> So in order to really be able to read this book, I had to take a step back 
> and focus on learning Clojure first, which is what I'm doing now. Once I have 
> a better understanding, I will get back to the book.
>  
> So the bottom line (for me) is that
> - I am not able to tell whether this book is good or not (although I'm pretty 
> confident it is). I am actually impatient to be able to reopen it :-)
> - Because I didn't know Clojure, I was not ready for this book. Of course, 
> your mileage may vary. I think the author says that you don't need to be an 
> expert at Clojure, but I think you still need to have played with and "get" 
> functional programming, which makes total sense.
>  
> On a side note, the first few chapters of this book introduced me to Light 
> Table, and after having had a rough start with it, I now very much like it.
> Also, the author appears to be responsive on the book web page over at 
> pragpub.
>  
> Laurent.
>  
> On Wednesday, February 19, 2014 7:54:25 AM UTC-8, Erlis Vidal wrote:
> > Hi all,  
> >  
> > Have any of you read the book Web Development with Clojure?
> >  
> > http://www.amazon.com/Web-Development-Clojure-Build-Bulletproof/dp/1937785645
> >  
> > There's only one review on amazon, and it's a fantastic review but I'm 
> > wondering if this is the book I should read if I wanted to start using 
> > Clojure for web programming.  
> >  
> > Any advice will be greatly appreciated.  
> >  
> > Thanks,  
> > Erlis  
> >  
> --  
> 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 
> (mailto:clojure@googlegroups.com)
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com 
> (mailto:clojure+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---  
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com 
> (mailto:clojure+unsubscr...@googlegroups.com).
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: a problem about Redis client: com.taoensso/carmine

2014-02-08 Thread tao
after use your solution, I looked up the source code of carmine and found that:

(wcar* (car/hgetall* "yyy" true))

can get what I want.

Thank you!  

--  
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Sunday, February 9, 2014 at 9:34 AM, tao wrote:

> Thank you very much!
>  
> --  
> tao
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>  
>  
> On Sunday, February 9, 2014 at 1:06 AM, mynomoto wrote:
>  
> > You can use:
> >  
> > (into {} (map (fn [[k v]] [(keyword k) v]) {"pass" "yy", "yyy" "yyy"}))
> >  
> > On Saturday, February 8, 2014 2:34:44 PM UTC-2, Tao Zhou wrote:
> > > lein try com.taoensso/carmine ;; try is from 
> > > https://github.com/rkneufeld/lein-try  
> > >  
> > >  
> > > (def server-connection {:pool {:max-active 8}
> > >:spec {:host "localhost"  
> > >   :port 6379  
> > >   :timeout 4000}})  
> > >  
> > > (require '[taoensso.carmine :as car :refer (wcar)])  
> > >  
> > > (defmacro wcar* [& body] `(car/wcar server-connection ~@body))  
> > >  
> > > (wcar* (car/hmset* "yyy" {:yyy "yyy", :pass "yy"}))  
> > >  
> > > (wcar* (car/hgetall "yyy”))  
> > > ["pass" "yy" "yyy" "yyy”]
> > >  
> > > (wcar* (car/hgetall* "yyy”)) 
> > > {"pass" "yy", "yyy" "yyy”}
> > >  
> > >  
> > > But what I want (or expect) is what I set before:
> > > {:yyy "yyy", :pass "yy"}  
> > >  
> > > Who can help me? Thank you very much!   
> >  
> > --  
> > 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 
> > (mailto:clojure@googlegroups.com)
> > Note that posts from new members are moderated - please be patient with 
> > your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com 
> > (mailto:clojure+unsubscr...@googlegroups.com)
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> > ---  
> > You received this message because you are subscribed to the Google Groups 
> > "Clojure" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to clojure+unsubscr...@googlegroups.com 
> > (mailto:clojure+unsubscr...@googlegroups.com).
> > For more options, visit https://groups.google.com/groups/opt_out.
>  

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: a problem about Redis client: com.taoensso/carmine

2014-02-08 Thread tao
Thank you very much!

--  
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Sunday, February 9, 2014 at 1:06 AM, mynomoto wrote:

> You can use:
>  
> (into {} (map (fn [[k v]] [(keyword k) v]) {"pass" "yy", "yyy" "yyy"}))
>  
> On Saturday, February 8, 2014 2:34:44 PM UTC-2, Tao Zhou wrote:
> > lein try com.taoensso/carmine ;; try is from 
> > https://github.com/rkneufeld/lein-try  
> >  
> >  
> > (def server-connection {:pool {:max-active 8}
> >:spec {:host "localhost"  
> >   :port 6379  
> >   :timeout 4000}})  
> >  
> > (require '[taoensso.carmine :as car :refer (wcar)])  
> >  
> > (defmacro wcar* [& body] `(car/wcar server-connection ~@body))  
> >  
> > (wcar* (car/hmset* "yyy" {:yyy "yyy", :pass "yy"}))  
> >  
> > (wcar* (car/hgetall "yyy”))  
> > ["pass" "yy" "yyy" "yyy”]
> >  
> > (wcar* (car/hgetall* "yyy”)) 
> > {"pass" "yy", "yyy" "yyy”}
> >  
> >  
> > But what I want (or expect) is what I set before:
> > {:yyy "yyy", :pass "yy"}  
> >  
> > Who can help me? Thank you very much!   
>  
> --  
> 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 
> (mailto:clojure@googlegroups.com)
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com 
> (mailto:clojure+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---  
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com 
> (mailto:clojure+unsubscr...@googlegroups.com).
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: a problem about Redis client: com.taoensso/carmine

2014-02-08 Thread tao
Repost: fix some quotation mark problem in the code.


lein try com.taoensso/carmine ;; try is from 
https://github.com/rkneufeld/lein-try  


(def server-connection {:pool {:max-active 8}
   :spec {:host "localhost"  
  :port 6379  
  :timeout 4000}})  

(require '[taoensso.carmine :as car :refer (wcar)])  

(defmacro wcar* [& body] `(car/wcar server-connection ~@body))  

(wcar* (car/hmset* "yyy" {:yyy "yyy", :pass "yy"}))  

(wcar* (car/hgetall "yyy"))  
["pass" "yy" "yyy" "yyy"]

(wcar* (car/hgetall* "yyy"))  
{"pass" "yy", "yyy" "yyy"}


But what I want (or expect) is what I set before:  

{:yyy "yyy", :pass "yyyyyy"}  



Who can help me? Thank you very much!


   

--  
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Sunday, February 9, 2014 at 12:34 AM, tao wrote:

> lein try com.taoensso/carmine ;; try is from 
> https://github.com/rkneufeld/lein-try  
>  
>  
> (def server-connection {:pool {:max-active 8}
>:spec {:host "localhost"  
>   :port 6379  
>   :timeout 4000}})  
>  
> (require '[taoensso.carmine :as car :refer (wcar)])  
>  
> (defmacro wcar* [& body] `(car/wcar server-connection ~@body))  
>  
> (wcar* (car/hmset* "yyy" {:yyy "yyy", :pass "yy"}))  
>  
> (wcar* (car/hgetall "yyy”))  
> ["pass" "yy" "yyy" "yyy”]
>  
> (wcar* (car/hgetall* "yyy”)) 
> {"pass" "yy", "yyy" "yyy”}
>  
>  
> But what I want (or expect) is what I set before:
> {:yyy "yyy", :pass "yy"}  
>  
> Who can help me? Thank you very much!   

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


a problem about Redis client: com.taoensso/carmine

2014-02-08 Thread tao
lein try com.taoensso/carmine ;; try is from 
https://github.com/rkneufeld/lein-try  


(def server-connection {:pool {:max-active 8}
   :spec {:host "localhost"  
  :port 6379  
  :timeout 4000}})  

(require '[taoensso.carmine :as car :refer (wcar)])  

(defmacro wcar* [& body] `(car/wcar server-connection ~@body))  

(wcar* (car/hmset* "yyy" {:yyy "yyy", :pass "yy"}))  

(wcar* (car/hgetall "yyy”))  
["pass" "yy" "yyy" "yyy”]

(wcar* (car/hgetall* "yyy”)) 
{"pass" "yy", "yyy" "yyy”}


But what I want (or expect) is what I set before:
{:yyy "yyy", :pass "yy"}  

Who can help me? Thank you very much! 

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to indent clojure code in Emacs

2014-01-03 Thread tao

C-x h selects the entire buffer. C-M-\ reindents the selected region.

http://stackoverflow.com/questions/11423566/how-do-i-intelligently-re-indent-clojure-in-emacs

sorry, I have found the answer.  

--  
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Friday, January 3, 2014 at 5:12 PM, tao wrote:

> https://github.com/clojure-emacs/clojure-mode  
>  
> I have installed this plugin, but I don’t know how to indent clojure code, 
> when I already selected a region. In Vim, I can do this using “=“, just a 
> simple key stroke.
>  
> This a problem when I copy some clojure code from other place, not typed in.
>  
> I already read this tutorial 
> (http://www.unexpected-vortices.com/clojure/10-minute-emacs-for-clojure.html),
>  but I cannot found the method.
>  
> sorry for disturb. :)  
>  
> --  
> tao
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>  

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


How to indent clojure code in Emacs

2014-01-03 Thread tao
https://github.com/clojure-emacs/clojure-mode  

I have installed this plugin, but I don’t know how to indent clojure code, when 
I already selected a region. In Vim, I can do this using “=“, just a simple key 
stroke.

This a problem when I copy some clojure code from other place, not typed in.

I already read this tutorial 
(http://www.unexpected-vortices.com/clojure/10-minute-emacs-for-clojure.html), 
but I cannot found the method.

sorry for disturb. :)  

--  
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is Clojure right for me?

2013-12-26 Thread tao
Yes, I feel framework is a patch to a language. Use framework can do some thing 
productively, but also limit you do some thing poorly. 
Prefer Libraries to Frameworks

http://blog.getprismatic.com/blog/2012/4/5/software-engineering-at-prismatic.html


-- 
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Thursday, December 26, 2013 at 9:52 PM, Malcolm Sparks wrote:

> Hi Massimiliano.
> 
> The absence of a well-established framework for web development in Clojure is 
> not a sign of its immaturity (rather the opposite). Web frameworks can give 
> you some increased productivity to begin with, but as soon as you need to do 
> something that isn't naturally supported by your chosen web framework you're 
> in trouble, and that's when productivity drops off a cliff as you struggle to 
> bend the web framework to your requirements. For example, you choose a web 
> framework with good REST support, then find out later you need to add web 
> sockets.
> 
> I've written and deployed about a dozen serious web applications using 
> Clojure. My opinion is the best strategy that guarantees long-term 
> productivity is to build your system from a set of smaller components that 
> you choose 'a la carte'. That way, if your requirements change you can swap 
> in and out other components as you need to. I would guess that the vast 
> majority of Clojure web applications are written this way, which is why you 
> don't see widescale adoption of a particular web 'framework' by the Clojure 
> community. Instead, Clojure developers pick from a set of constituent parts: 
> Jetty, http-kit, Ring, Compojure, Hiccup, Enlive, Stencil, Liberator, domina, 
> dommy, C2, Om, bidi, and so on and so on. 
> The fact that these components all fit together so well is one of the truly 
> outstanding features of the Clojure platform. Few languages come close to 
> this level of integration, which is why they actively curate frameworks.
> 
> Investing time in Clojure is both pleasurable and productive. It's a question 
> of whether you want 'short-term' productivity to meet a particular project 
> goal (choose a web framework), or sustainable productivity to deliver value 
> to your users over the longer term (choose to learn, understand and utilize a 
> set of components from the wide pool that the Clojure community has created).
> 
> Regards,
> 
> Malcolm
> 
> 
> 
> 
> 
> On Wednesday, December 25, 2013 9:06:20 PM UTC, Massimiliano Tomassoli wrote:
> > Hi,
> > I'm not sure if Clojure is the right language for me. I'd like to use 
> > Clojure mainly for web development but I don't know if it's already mature 
> > enough to be productive. For instance, Scala has Play, Groovy has Grails, 
> > etc... If I'm not wrong, Clojure doesn't have a well-established framework 
> > for web development. I'm intrigued by Clojure because I like functional 
> > programming, but I need to be productive and, alas, I don't have time to 
> > learn Clojure just for my pleasure.
> -- 
> -- 
> 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 
> (mailto:clojure@googlegroups.com)
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com 
> (mailto:clojure+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com 
> (mailto:clojure+unsubscr...@googlegroups.com).
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is Clojure right for me?

2013-12-25 Thread tao
http://pedestal.io/
http://www.luminusweb.net/


-- 
tao
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Thursday, December 26, 2013 at 5:06 AM, Massimiliano Tomassoli wrote:

> Hi,
> I'm not sure if Clojure is the right language for me. I'd like to use Clojure 
> mainly for web development but I don't know if it's already mature enough to 
> be productive. For instance, Scala has Play, Groovy has Grails, etc... If I'm 
> not wrong, Clojure doesn't have a well-established framework for web 
> development. I'm intrigued by Clojure because I like functional programming, 
> but I need to be productive and, alas, I don't have time to learn Clojure 
> just for my pleasure.
> -- 
> -- 
> 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 
> (mailto:clojure@googlegroups.com)
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com 
> (mailto:clojure+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com 
> (mailto:clojure+unsubscr...@googlegroups.com).
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.