Re: need help reading blob column from oracle

2014-01-28 Thread bww00amd...@yahoo.com
Well even a blind hog finds an acorn once and a while. I am getting the blob, but need to do some additional processing on it, say write to a file. please help the hog find another acorn Thanks so much for the help BRyan On Sunday, January 26, 2014 10:21:18 PM UTC-6, bww00...@yahoo.com wrote: >

ANN: ClojureScript 0.0-2156

2014-01-28 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript New release version: 0.0-2156 Leiningen dependency information: [org.clojure/clojurescript "0.0-2156"] A small breaking change for Node.js users. Printing

Clooj 0.4.0/REPL bug parsing comments that shouldn't be being parsed

2014-01-28 Thread Cedric Greevey
user=> (defn foo [] ; 2*a/b ) NumberFormatException Invalid number: 2*a clojure.lang.LispReader.readNumber (LispReader.java:258) RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException (Util.java:219) RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException

Caribou Data Modeling - Beginner question

2014-01-28 Thread Leon Talbot
I open an REPL (lein repl) and add a model by pasting this : (caribou.core/with-caribou (boot/boot) (caribou.model/create :model {:name "Idea" :fields [{:name "Title" :type "string"} {:name "Desc" :type "string"} {:name "Supporters" :type "link"}

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-28 Thread John Mastro
Stuart Sierra wrote: > Don't know if it's relevant or helpful here, but here's my Emacs org / babel > / Clojure setup: Thanks Stuart, very useful indeed (for me anyway). - John -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-28 Thread Conrad Barski
Yes, docstrings/etc are hard work- Certainly sensible to focus on the core design issues. On Tuesday, January 28, 2014 7:59:48 PM UTC-6, David Nolen wrote: > People should implement sugar if they feel so inclined. Om is not mature > enough that I want to spend time supporting extra stuff when th

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-28 Thread David Nolen
People should implement sugar if they feel so inclined. Om is not mature enough that I want to spend time supporting extra stuff when the library is evolving so rapidly. Keeping docstrings and tutorials in sync and fielding questions is keeping me plenty busy :) David On Tue, Jan 28, 2014 at 8:4

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-28 Thread Conrad Barski
Is it wrong to wish "component" worked like this? (component (render [] (div nil "Hello There!"))) (component (render-state [state] (div nil "Hello There!")) (component (will-mount [_] (js/console.log "mounting!"))L (render [

Re: standard indentation tool

2014-01-28 Thread Curtis Gagliardi
It'd be cool to build a frormatter as an nrepl middleware and get consistent indents across editors and not have to hardcode custom indentations for macros. On Monday, January 27, 2014 8:47:31 PM UTC-8, bob wrote: > > Hi All, > > Should clojure have a standard format tool like go lang, it will

Re: mimic erlang in core.async

2014-01-28 Thread t x
Found something I don't like about it. :-) https://github.com/halgari/clojure-conj-2013-core.async-examples/blob/master/src/clojure_conj_talk/core.clj#L470 as mentioned at https://github.com/halgari/clojure-conj-2013-core.async-examples/blob/master/src/clojure_conj_talk/core.clj#L470 creates an

Re: mimic erlang in core.async

2014-01-28 Thread john walker
No problem, I'm glad you also think it is cool :) On Tuesday, January 28, 2014 6:54:22 PM UTC-5, t x wrote: > > Hi John, > > This is great. I really like "minimal examples" to hack on / play with. > > Thanks! > > On Tue, Jan 28, 2014 at 3:46 PM, john walker > > > wrote: > > This doesn't an

Re: mimic erlang in core.async

2014-01-28 Thread t x
Hi John, This is great. I really like "minimal examples" to hack on / play with. Thanks! On Tue, Jan 28, 2014 at 3:46 PM, john walker wrote: > This doesn't answer your question, but you might find it interesting if you > search for actors on it: > > https://github.com/halgari/clojure-conj-201

Re: mimic erlang in core.async

2014-01-28 Thread john walker
This doesn't answer your question, but you might find it interesting if you search for actors on it: https://github.com/halgari/clojure-conj-2013-core.async-examples/blob/master/src/clojure_conj_talk/core.clj On Tuesday, January 28, 2014 6:43:19 PM UTC-5, t x wrote: > > Hi, > > With apologies

mimic erlang in core.async

2014-01-28 Thread t x
Hi, With apologies for a vague question: Is there a library built on top of core.async that tries to mimic erlang-like processes? The main features I'm looking for are: * each channel has a single go-thread attached to it * >! sends messages of the form {:tag :message :r

Re: need help reading blob column from oracle

2014-01-28 Thread bww00amd...@yahoo.com
I am getting a "unable to resolve symbol : some-> r in this context On Sunday, January 26, 2014 10:21:18 PM UTC-6, bww00...@yahoo.com wrote: > > ANyone have some examples reading a blob column from an oracle db. > > We have a database with a blob column. > A entity can be split acroos multiple row

Re: need help reading blob column from oracle

2014-01-28 Thread bww00amd...@yahoo.com
Niels Thanks I am new to clojure could you point me in a direction for : making it a reader i assume that the row-fn is getting earch row and each is being processed by the fn[r] is the fieldidentifier the field that the blob_contents column is being put into ? Thanks and i apologize

Re: side-effect only function with map-like syntax (again)

2014-01-28 Thread Mars0i
Jozef, Thanks--good advice about names. Well, I don't know whether useful is the right word. domap (nee mapc) obviously wouldn't add any functionality. (Neither does 'map', I suppose, since we have 'for'.) I seem to be unusual in my affection for this construct outside of purely functiona

Re: Question about "attempt" parser in parsatron

2014-01-28 Thread Nate Young
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 fail. This is actually exactly what happened, but The Parsatr

Re: core.typed

2014-01-28 Thread Ambrose Bonnaire-Sergeant
Great, thanks! On Wed, Jan 29, 2014 at 1:54 AM, Sean Corfield wrote: > I can confirm that I can evaluate namespaces that use core.typed 0.2.26 > inside LightTable - and run check-ns, which failed inside LightTable with > 0.2.25! > > Sean > > On Jan 28, 2014, at 5:34 AM, Ambrose Bonnaire-Sergean

Re: core.typed

2014-01-28 Thread Sean Corfield
I can confirm that I can evaluate namespaces that use core.typed 0.2.26 inside LightTable - and run check-ns, which failed inside LightTable with 0.2.25! Sean On Jan 28, 2014, at 5:34 AM, Ambrose Bonnaire-Sergeant wrote: > 0.2.26 contains a workaround by disabling the WIP Clojurescript suppor

Re: clojuredocs macro

2014-01-28 Thread Andy Fingerhut
I'm not sure wether it is easy, but the 'reply' namespace was in one of the symbols in your original email, and Leiningen's project.clj file lists its dependencies, which include reply. Andy On Tue, Jan 28, 2014 at 7:41 AM, Dave Tenny wrote: > Thank you. > > Is there some easy way I've missed

Re: [ANN] Buffy, The Byte Buffer Slayer 1.0.0-beta1

2014-01-28 Thread Michael Gardner
I'm looking to deal with a stream of data that includes a structured, variable-length header followed by a (potentially large) binary blob. I'd like to parse only the header while leaving the stream (can be a java stream or NIO channel, whichever works best) positioned at the start of the binary

Re: Looking for a reference binary parsing

2014-01-28 Thread danneu
It's the network protocol. With a simple state machine, your Clojure REPL can become a simple Bitcoin node and do fun things like download the blockchain. What's it good for? At first, it's good for some Saturday morning fun. But then I started implementing blockchain validation which happens t

Re: clojuredocs macro

2014-01-28 Thread Dave Tenny
Thank you. Is there some easy way I've missed to figure this sort of thing out in the future? On Tue, Jan 28, 2014 at 10:34 AM, Andy Fingerhut wrote: > It is defined in the project 'reply', used by Leiningen for 'lein repl' > tasks: > > https://github.com/trptcolin/reply > > That in turn

Re: clojuredocs macro

2014-01-28 Thread Andy Fingerhut
It is defined in the project 'reply', used by Leiningen for 'lein repl' tasks: https://github.com/trptcolin/reply That in turn depends upon a cd-client library for sending requests to the clojuredocs.org web site and doing some parsing on the responses received: https://github.com/dakron

Re: side-effect only function with map-like syntax (again)

2014-01-28 Thread Jozef Wagner
Regarding names, I would not place a bang after it (!), as there is nothing in that function itself that forbids its use inside transactions. Functions which primary purpose is to produce side effects tend to begin with 'do', so my suggestion is to name it 'domap'. I am however still not convi

Re: equality

2014-01-28 Thread nuryoku san
for comparing floatingpoint-numbers esp. in testcode this is useful: (defn- square [n] (* n n)) (defn close-to ([a b d] (< (square(- a b)) d)) ([a b] (close-to a b 0.01))) -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: side-effect only function with map-like syntax (again)

2014-01-28 Thread Mars0i
On Tuesday, January 28, 2014 7:29:06 AM UTC-6, Stefan Kamphausen wrote: > > Does wrapping your map expression in a dorun do what you want? > Yes, it does. But that's more verbose, and as Jozef Wagner notes, it creates seqs unnecessarily. I like Jozef's solution. However, I think a proper defin

clojuredocs macro

2014-01-28 Thread Dave Tenny
Does anybody happen to know where 'clojuredocs' is defined? I grepped the clojure and leiningen git trees but the word didn't show up. I noticed it mentioned in some leiningen tutorials and it's present in my REPL, in the user namespace. clojuredocs is a clojure.lang.Symbol in namespace u

ANN: clj-liquibase 0.5.1 for database change management

2014-01-28 Thread Shantanu Kumar
Hi, I'm happy to announce clj-liquibase version 0.5.1: https://github.com/kumarshantanu/clj-liquibase for database (JDBC) change management. Since 0.4.0, this version upgraded Liquibase dependency from 2.5 to 3.0 and added support for free-form SQL and SQL files as units of change. (Thanks to

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: side-effect only function with map-like syntax (again)

2014-01-28 Thread Jozef Wagner
If side effects is all what is needed, I would skip the creation of lazy seqs and do it with reduce: user=> (defn mapc [f coll] (reduce (fn [_ v] (f v)) nil coll)) #'user/mapc user=> (mapc println [1 2 3]) 1 2 3 nil JW On Tue, Jan 28, 2014 at 2:29 PM, Stefan Kamphausen wrote: > Does wrapping y

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-28 Thread Stuart Sierra
On Thursday, January 23, 2014 2:04:22 AM UTC-5, Rui Yang wrote: > Trying to use org mode with clojure. I'd like to use cider as the > REPL server. Things is fine if I have only one statement in org > source block. If I have more than one, then I got exception. Don't know if it's relevant or helpfu

Re: core.typed

2014-01-28 Thread Ambrose Bonnaire-Sergeant
0.2.26 contains a workaround by disabling the WIP Clojurescript support. You might need the Sonatype repo. I've got a GRE exam on Monday so I can't work on this properly yet. Please let me know if it worked. Also Sean (C

Re: side-effect only function with map-like syntax (again)

2014-01-28 Thread Stefan Kamphausen
Does wrapping your map expression in a dorun do what you want? Stefan -- -- 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

[ANN] clojure-objc 1.5.1-1

2014-01-28 Thread Gal Dolber
== clojure-objc 1.5.1-1 https://github.com/galdolber/clojure-objc - ObjC interop re-implemented to support arm64 - Introducing nsproxy: extend classes or implement anonymous objects on runtime == lein-objcbuild 0.1.3 https://github.com/galdolber/lein-objcbuild - Allow objc sources with :objc-s

Re: side-effect only function with map-like syntax (again)

2014-01-28 Thread Mars0i
On Tuesday, January 28, 2014 1:17:58 AM UTC-6, Jan Herich wrote: > > How about doseq ? > doseq can do the same work, and can do more, but it requires one to specify variable names to be used in each application of the function. For some p

Re: core.typed

2014-01-28 Thread t x
Hi Ambrose, Yes, I have a manual dependency on: [org.clojure/clojurescript "0.0-2138"] I looked at the project.clj of core.typed, and got: https://github.com/clojure/core.typed/blob/master/project.clj#L13 Is the dependency on "[org.clojure/clojurescript "0.0-1859"]" correct? (i

Re: core.typed

2014-01-28 Thread Ambrose Bonnaire-Sergeant
Hi, There is some conflict with ClojureScript, some others have also observed this. Is there some library that is upgrading the Clojurescript version to one different to what core.typed depends on? Thanks, Ambrose On Tue, Jan 28, 2014 at 5:38 PM, t x wrote: > ## Background > > I'm using [o

emacs + org-mode + ?

2014-01-28 Thread daly
The python community has a track on reproducible research. I'd really like this to catch fire in Clojure (who would have thought?) See this, from their conference: http://www.youtube.com/watch?v=1-dUkyn_fZA We already have slime to make life easier. Now is the time to really upgrade your "profes

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-28 Thread greg r
Hi Bastien, yes I will post a report at the mailing list today. Regards, Greg On Tuesday, January 28, 2014 12:55:20 AM UTC-5, Bastien Guerry wrote: > > Hi Greg, > > greg r > writes: > > > I compared a computer set up with the latest of everything (org/emacs > > /CIDER) and compared to an older

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

core.typed

2014-01-28 Thread t x
## Background I'm using [org.clojure/core.typed "0.2.25"] ## Question: Which is the following is true: (1) my code is correct / should work, and therefore there is something with my setup (2) my code is wrong (and please point out how I can fix it) ## Code (ns test #+clj (:require