Request to review my CLJS using core.async

2018-11-12 Thread Kashyap CK
Hi all, I am attempting to use core.async to poll a service - https://gist.github.com/ckkashyap/c8423dcfc3a3f28b67e18ae76cc13f53 Broadly, I need to hit the service endpoint with a secret to get a token and subsequently use the token to poll for messages. I'd appreciate any feedback on the appr

How to build Clojure web apps for tomcat - with just clj

2018-04-20 Thread Kashyap CK
Hi, Could someone please point me to instructions on how to create Tomcat web apps in Clojure? I am looking for a non-lein based solution. It will be good if that Clojure files are compiled ahead of time. Calling eval from a JSP is not exactly what I have in mind :) Regards, Kashyap -- You rece

Using libraries without Lein

2017-11-28 Thread Kashyap CK
Hi, I am trying to use clj-http in my clojure program. I am trying to do the whole thing in a "light-weight" manner - without creating a project and all or using lein. Is that possible? or do I need to use Lein? Regards, Kashyap -- You received this message because you are subscribed to the Go

Has anyone tried building ClojureCLR using dontnet core on non-windows platforms?

2017-04-17 Thread Kashyap CK
Hi, I am attempting to build ClojureCLR on Mac- I was wondering if anyone's already done this. Regards, Kashyap -- 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 mem

Re: Advice for building backend REST services from scratch using clojure

2014-04-10 Thread Kashyap CK
gt; If you know your service will need work queues and distributed caches and > such, you might want to use Immutant as a platform to prototype, as it > wraps all that up with a nice bow for you. > > And again, if you narrow the design space somewhat, many people way more > i

Advice for building backend REST services from scratch using clojure

2014-04-10 Thread Kashyap CK
Hi, I have the opportunity to build a set of services from scratch. I plan to use clojure for this. I'd like to experiment with options available out there - options such as - what webserver, what database etc. I'd like it very much if you could share some of your experiences in this and possibl

Re: Looking for a Rich Hickey quotation

2014-03-01 Thread Kashyap CK
ar 1, 2014 at 2:48 AM, Kashyap CK > > wrote: > > Hi, > > In one of the talks, Rich Hickey had mentioned something to the effect - > > > > "Programs are meant to state the intention of your computation to other > > programmers/humans - as opposed to instructions

Looking for a Rich Hickey quotation

2014-03-01 Thread Kashyap CK
Hi, In one of the talks, Rich Hickey had mentioned something to the effect - "Programs are meant to state the intention of your computation to other programmers/humans - as opposed to instructions for a machine" He was quoting someone else actually (perhaps Knuth). I just cant seem to get my ha

Re: Some advice about introducing clojurescript into a project using js/jquery

2014-02-16 Thread Kashyap CK
closure libraries (the approach David Nolen takes in most of his > blog posts). > > DD > > > (2014/02/16 23:47), Kashyap CK wrote: > > Hi, > > > > It took me some time to get started with clojurescript (on > > windows/cygwin) > > - http://swannode

Some advice about introducing clojurescript into a project using js/jquery

2014-02-16 Thread Kashyap CK
Hi, It took me some time to get started with clojurescript (on windows/cygwin) - http://swannodette.github.io/2013/11/07/clojurescript-101/ worked for me. I'd like to use clojurescript to do some UI component development for product which is built using webkit/js/jquery. I was wondering if it i

Re: Review request for a double quoted string parser in parsatron

2014-02-03 Thread Kashyap CK
6:52 PM UTC+5:30, Philipp Meier wrote: > > Hi, > > Am Montag, 3. Februar 2014 10:26:56 UTC+1 schrieb Kashyap CK: >> >> (p/defparser -char-parser [] >> (p/let->> [ >> _e (optional (p/char \\) nil) >> _c (if _e (p/token #(#{\&qu

Review request for a double quoted string parser in parsatron

2014-02-03 Thread Kashyap CK
Hi, I tried out a double quoted string parser in parsatron. I'd appreciate it very much if someone could review it and let me know if it looks okay. (ns mycode.core (:require [the.parsatron :as p])) (p/defparser optional [p default-value] (p/either (p/attempt p) (p/always default-value)))

Re: Question about "attempt" parser in parsatron

2014-01-29 Thread Kashyap CK
te: > > On Tue, Jan 28, 2014 at 8:31 AM, Kashyap CK > > wrote: > > The attempt parser does not work as expected for me. Perhaps my > > understanding is not correct. I the following code I was hoping that > > parsatron would attempt to parser "hello" and

Question about "attempt" parser in parsatron

2014-01-28 Thread Kashyap CK
Hi, The attempt parser does not work as expected for me. Perhaps my understanding is not correct. I the following code I was hoping that parsatron would attempt to parser "hello" and fail. Resulting no consumption of input due to "attempt". However, when I run this code, the parser fails sayin

Re: Looking for a reference binary parsing

2014-01-28 Thread Kashyap CK
I started exploring Parsatron - I really like the idea of building big parsers by composing small parsers. Looking at Gloss's api - it does not appear to help build bigger parsers by composing smaller ones. Did I understand it right? Regards, Kashyap On Tuesday, January 28, 2014 8:09:59 AM UTC

Re: Looking for a reference binary parsing

2014-01-24 Thread Kashyap CK
n/gloss ) and Buffy ( >> https://github.com/clojurewerkz/buffy ). >> >> - James >> >> >> On 24 January 2014 15:08, Kashyap CK wrote: >> >>> Hi, >>> I need to write a parser for MP4 - essentially, read an MP4 file and >>> create an in-mem

Looking for a reference binary parsing

2014-01-24 Thread Kashyap CK
Hi, I need to write a parser for MP4 - essentially, read an MP4 file and create an in-memory representation of its structure. I'd appreciate it very much if I could get some suggestions on libraries that I could use for this. Is there a https://github.com/youngnh/parsatron like library that works

Re: Using macro to generate boilerplate keywords

2014-01-17 Thread Kashyap CK
ot;D" "D# ...]] > (keyword (str key octave > > Timothy > > > On Fri, Jan 17, 2014 at 9:21 AM, Kashyap CK > > wrote: > >> Hi, >> >> I am exploring javax.sound.midi using clojure and while creating keywords >>

Re: Using macro to generate boilerplate keywords

2014-01-17 Thread Kashyap CK
b.com/alexpw/8476780 > > On Friday, January 17, 2014 10:21:52 AM UTC-6, Kashyap CK wrote: >> >> Hi, >> >> I am exploring javax.sound.midi using clojure and while creating keywords >> for notes I wonder if I could use macros to generate the keywords - >

Using macro to generate boilerplate keywords

2014-01-17 Thread Kashyap CK
Hi, I am exploring javax.sound.midi using clojure and while creating keywords for notes I wonder if I could use macros to generate the keywords - (defn note-2-num [n] (let [ m { :C1 0 :C#1 1 :D1 2 :D#1 3 :E1 4 :F1 5

Re: A question about lazy seq with io

2014-01-13 Thread Kashyap CK
:while next-pages] > (map segment2data (-> body (html2data) :segment >(into [])) > > Also note that i didn't use local binding named next, but instead i named it > next-pages, because next > local name could lead to surprise if you forget that you a

Re: A question about lazy seq with io

2014-01-13 Thread Kashyap CK
Thanks Mauricio ... I think I understand it now. Regards, Kashyap On Monday, January 13, 2014 9:48:28 PM UTC+5:30, Mauricio Aldazosa wrote: > > > > On Mon, Jan 13, 2014 at 8:49 AM, Kashyap CK > > wrote: > >> >> I'd really appreciate it if someone could tel

A question about lazy seq with io

2014-01-13 Thread Kashyap CK
Hi, I've been dabbling with Clojure for a bit and I am really loving it!!! I am trying to write a clojure program to download a bunch of URLs and I was wondering what is the right way to do it - My current implementation is as follows (def url-sequence (map #(str "http://www.mysite.com/list.php

Re: Literate Programming in Emacs?

2011-11-24 Thread ck
I would also like to point to this excellent blog by Nurullah Akkaya http://nakkaya.com/2010/12/12/using-clojure-with-org-babel-and-inferior-lisp/ for using org-babel-clojure with inferior-lisp. Hope that helps. -ck On Nov 23, 4:36 pm, Andrew wrote: > Thanks! Next step: org-babel-execute:

Re: Literate Programming in Emacs?

2011-11-23 Thread ck
Andrew: Make sure you have (require 'ob-clojure) in your controlling emacs file (mine is .el). -ck On Nov 23, 12:00 pm, Andrew wrote: > Here's my attempt at following the steps > athttp://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html. > *The &g

Re: core.logic now compatible with Clojure 1.2.X

2011-05-25 Thread ck
Thank you, thank you, thank you for making this happen (and your Vimeo talks)! -ck On May 25, 12:19 pm, David Nolen wrote: > On Wed, May 25, 2011 at 1:36 AM, Sunil Nandihalli < > > sunil.nandiha...@gmail.com> wrote: > > > Thats really nice to hear.. but is the versi

Re: Multiple table SELECT problem

2009-01-05 Thread ck
For completeness of the post, here's the stack trace: java.lang.RuntimeException: java.lang.IllegalArgumentException: Too many arguments to struct constructor (NO_SOURCE_FILE:0) at clojure.lang.Compiler.eval(Compiler.java:4179) at clojure.core$eval__3756.invoke(core.clj:1566)

Re: Multiple table SELECT problem

2009-01-05 Thread ck
use the aliases column name. Thanks for the help, -ck --~--~-~--~~~---~--~~ 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 To unsubscribe from

Re: Multiple table SELECT problem

2009-01-05 Thread ck
list of maps containing column-names and values back (as expected): {:id 1, :name Test} ... But when the I run the one with the reference to second table in columns, I get java.lang.RuntimeException: java.lang.IllegalArgumentException: Too many arguments to struct constructor (NO_SOURCE_FILE:

Re: Multiple table SELECT problem

2009-01-05 Thread ck
ER BY users.id;" (doseq [rec res] (println rec) Sorry about that, -ck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure

[clojure-contrib.sql] Multiple table SELECT problem

2009-01-05 Thread ck
users INNER JOIN roles ON user.id = roles.user_id ORDER BY users.id;" (doseq [rec res] (println rec) But obviously I don't get all the data I need/want. Any