Re: need help reading blob column from oracle

2014-01-27 Thread Niels van Klaveren
For reading a single blob you need to get the field's characterstream, make it a reader and then process it further. (jdbc/query c [select field from table parameters] :row-fn (fn [r] (some- r :fieldidentifier

Re: need help reading blob column from oracle

2014-01-27 Thread Niels van Klaveren
Oops, above example is for a clob, change .getCharacterStream to .getBinaryStream for a true blob. On Monday, January 27, 2014 9:08:30 AM UTC+1, Niels van Klaveren wrote: For reading a single blob you need to get the field's characterstream, make it a reader and then process it further.

A question for TDD practitioners

2014-01-27 Thread Mimmo Cosenza
I do not practice TDD a lot, but I think that thanks to recent events clojurescript will attract people more sensible to TDD workflows. Due to a limitation of austin and clojurescript.test regarding :none optimisation, it's not possible to use it with them. So we have to switch to :whitespace

Informatica Online Training By Highly Experienced Certified Trainers

2014-01-27 Thread Sairam Shankar
Sun IT Labs provides the best Software’s training for various Computer IT courses through Webex, Gotomeeting. We are providing Informatica Traininghttp://sunitlabs.com/informatica-online-training/based on specific needs of the learners especially we will give innovative one to one Classes

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

2014-01-27 Thread Bastien
Hi Phill, can you repost this on the emacs-orgmode mailing list? https://lists.gnu.org/mailman/listinfo/emacs-orgmode I'll follow-up there. Thanks in advance, -- Bastien -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group,

How to place unicode characters in span tag in reagent (formerly known as cloact)

2014-01-27 Thread Sunil S Nandihalli
Hi Everybody, Can somebody help me figure out as to how I can place a unicode character. What I have tried is [:span #8634;] with the correct header but it renders it as-is. Thanks, Sunil. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: How to place unicode characters in span tag in reagent (formerly known as cloact)

2014-01-27 Thread Cedric Greevey
So, the source code for the web page says amp;#8634; then? It may be already being entity escaped. Try just [:span \U] with the appropriate code (maybe the same one, 8634) for and see if that works. On Mon, Jan 27, 2014 at 6:15 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote:

Re: simple-check gen/boolean Only Returning false

2014-01-27 Thread Michael Daines
Awesome turnaround, Thanks. I was kinda worried I was nuts or about to do some urandom debugging. -- -- 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

Recommendations for parsing/validating a JSON structure

2014-01-27 Thread David Simmons
Hi Folks. I'm writing a web app which receives a JSON structure. I'd like to validate that the structure is correct i.e. mandatory fields are present, and then convert into the relevant Clojure data structure. As a bonus if a particular field in the JSON structure is incorrect I'd like to be

Re: Recommendations for parsing/validating a JSON structure

2014-01-27 Thread Korny Sietsma
Parsing is easy - use either https://github.com/clojure/data.json or https://github.com/dakrone/cheshire (Cheshire used to have some advantages over data.json but I have the impression data.json has caught up). For validation I've used Prismatic Schema - https://github.com/prismatic/schema - it's

Re: Recommendations for parsing/validating a JSON structure

2014-01-27 Thread David Simmons
Thanks Korny. I'll take a look. cheers Dave -- -- 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

equality

2014-01-27 Thread Eric Le Goff
Newbie question : user= (= 42 42) true user= (= 42 42.0) false I did not expect last result. I understand that underlying classes are not the same i.e user= (class 42) java.lang.Long user= (class 42.0) java.lang.Double but anyway I'am surprised Cheers -- Eric -- -- You received this

Re: equality

2014-01-27 Thread Dennis Haupt
one does not simply compare floating point numbers for equality 2014-01-27 Eric Le Goff eleg...@gmail.com Newbie question : user= (= 42 42) true user= (= 42 42.0) false I did not expect last result. I understand that underlying classes are not the same i.e user= (class 42)

Re: equality

2014-01-27 Thread Jim - FooBar();
Use `==` instead: user= (== 42 42.0) true user= (== 42 42M) true Jim On 27/01/14 13:41, Dennis Haupt wrote: one does not simply compare floating point numbers for equality 2014-01-27 Eric Le Goff eleg...@gmail.com mailto:eleg...@gmail.com Newbie question : user= (= 42 42)

Re: Java interoperability

2014-01-27 Thread Paul Smith
Hi Sam, Thanks for your response. I am been following the API documentation: https://code.google.com/p/json-path/ and the tests https://github.com/jayway/JsonPath/blob/master/json-path/src/test/java/com/jayway/jsonpath/JsonPathTest.java But looking at the source their only seems to be a static

Re: Clojure memory usage

2014-01-27 Thread Anurag Ramdasan
That sounds good. I am running openjdk1.7. I havent tried the tools yet but I would give it a shot. I quite like the idea of pedestal and dont want memory issue to be a reason for me to not use it. Thanks, - Anurag Ramdasan. On Sun, Jan 26, 2014 at 4:13 AM, Sean Corfield s...@corfield.org

Re: Java interoperability

2014-01-27 Thread Paul Smith
Hi Jarrod Any reason not to use a Clojure library like cheshire for JSON? Yes, I am probably taking the wrong approach. Is the Clojure way to put the JSON in Clojure data structures and manipulate it with filters etc? Many Thanks Paul On Mon, Jan 27, 2014 at 3:35 PM, Jarrod Swart

Re: Helping newcomers get involved in Clojure projects

2014-01-27 Thread Michael Klishin
Bridget: Are there any other Clojure projects that are doing this? Some ClojureWerkz [1] projects do, and eventually all key ones will. 1. http://clojurewerkz.org MK -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Helping newcomers get involved in Clojure projects

2014-01-27 Thread Bart Spiers
Great initiative! I've been having the problem of not knowing what project to get into as it often seems daunting. On the one hand, there are a ton of projects, on the other hand, I have no clue where I actually might be able to help. I'm sure a lot of other people experience the same. On

Re: ANN: clojure-objc

2014-01-27 Thread PublicFarley
Thanks again Gal. Are you going to throw the new bits up to clojuars or maven.org? Could not find artifact galdolber:clojure-objc:jar:1.5.1.1 in central (http://repo1.maven.org/maven2/) Could not find artifact galdolber:clojure-objc:jar:1.5.1.1 in clojars (https://clojars.org/repo/) On

Re: Java interoperability

2014-01-27 Thread Sam Ritchie
Where do you see that method? https://github.com/jayway/JsonPath/blob/master/json-path/src/main/java/com/jayway/jsonpath/JsonPath.java Perusing the code, it looks like it doesn't exist. Paul Smith mailto:paulaaronsmit...@gmail.com January 27, 2014 8:21 AM Hi, I am attempting to use Java

Re: Helping newcomers get involved in Clojure projects

2014-01-27 Thread Tim Visher
On Sat, Jan 25, 2014 at 1:54 PM, Bridget bridget.hill...@gmail.com wrote: OpenHatch has this great initiative for encouraging newcomers to get involved with open source projects. You tag some issues in your bug tracker as newcomer or easy. This provides a gentle path into contributing. There

Re: equality

2014-01-27 Thread Andy Fingerhut
As Jim already mentioned, you can use == to compare numbers for equality, but you must be cautious with equality for floating point numbers, as the tiniest bit of roundoff error will cause = and == to be false for such comparisons. For =, there are effectively 3 'categories' of numeric values in

Re: Java interoperability

2014-01-27 Thread Angel Java Lopez
Ummm... the methods has a generic T parameter, ie https://github.com/jayway/JsonPath/blob/master/json-path/src/main/java/com/jayway/jsonpath/JsonPath.java#L446 Any way to invoke them, from Clojure? On Mon, Jan 27, 2014 at 12:27 PM, Sam Ritchie sritchi...@gmail.com wrote: Where do you see that

Java interoperability

2014-01-27 Thread Paul Smith
Hi, I am attempting to use Java interoperability. I have downloaded a dependency through Leiningen [com.jayway.jsonpath/json-path 0.9.1] I import the dependency into a namespace (:import (com.jayway.jsonpath JsonPath) The Java class, JsonPath has a static method 'read' that takes two strings

Re: Academy Award goes to a literate program

2014-01-27 Thread Gary Johnson
Awesome! Thanks for sharing the link, Tim. -- -- 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

Re: ANN: Om 0.3.0

2014-01-27 Thread David Pidcock
Did you get this fixed Rudi? If your project file requires om 0.2.3, then it was something with the lein new command (which is now fixed). I recommend manually changing the project file to require om 0.3.0 and then don't forget to lein cljscript clean before recompiling (which I did). On

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread David Nolen
On Mon, Jan 27, 2014 at 12:48 PM, Mike Haney txmikes...@gmail.com wrote: I was initially surprised by the implementation in your tutorial using multimethods instead of protocols, especially since you are only dispatching on a single function. But as I thought about it more, I realized this

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread David Pidcock
I'm a big fan of this new tutorial. It hi-lights some of the benefits of cursors, and I actually realize how I might use om/join suddenly :D -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: [ClojureScript] ANN: Om 0.3.0

2014-01-27 Thread Jamie Orchard-Hays
looking forward to working through the new stuff later this week. On Jan 26, 2014, at 10:19 PM, David Nolen dnolen.li...@gmail.com wrote: Glad to hear it. I recommend taking a look at the new section Higher Order Components

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread David Nolen
om/join is conceptually quite cool, but it actually needs some serious work as alluded - currently you're likely to run into some nasty surprises if you really try to use it. The tutorials aren't going to proceed until this is addressed sometime this week. David On Mon, Jan 27, 2014 at 1:28 PM,

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread Rudi Engelbrecht
Hi David I managed to fix it by: 1. Changing project.clj to use om 0.3.0 2. lein cljsbuild clean Thanks a lot for following up ;-) I am enjoying working in Om/React with ClojureScript ;-) On 28/01/2014, at 5:23 AM, David Pidcock eraz0rh...@gmail.com wrote: Did you get this fixed Rudi? If

MODERATION? (was: Informatica Online Training By Highly Experienced Certified Trainers

2014-01-27 Thread Sean Corfield
SunitLabs has been spamming a lot of technical lists lately. Do we need a first post moderation policy in place for this group? That seems to stop spam in other groups I use ( moderate) although it does place more of a burden on moderators. Sean On Jan 27, 2014, at 1:29 AM, Sairam Shankar

Re: need help reading blob column from oracle

2014-01-27 Thread Sean Corfield
I would expect that you can extend one of the protocols to do this more easily? http://clojure-doc.org/articles/ecosystem/java_jdbc/using_sql.html#protocol-extensions-for-transforming-values Sean On Jan 27, 2014, at 12:08 AM, Niels van Klaveren niels.vanklave...@gmail.com wrote: For reading a

Re: MODERATION? (was: Informatica Online Training By Highly Experienced Certified Trainers

2014-01-27 Thread Andy Fingerhut
There *is* a first post moderation policy in place for this group -- it has been in place for years, I think. I have been a moderator for over a year now. There are many moderators. It only takes 1 moderator to OK a message for it to be posted. This may be a case of moderator education on

Re: Helping newcomers get involved in Clojure projects

2014-01-27 Thread Bridget
On Saturday, January 25, 2014 2:13:35 PM UTC-5, Jarrod Swart wrote: I have been spending a lot of time thinking about the Clojure newcomer perspective lately, and I'd like to work on some things that help smooth that path. I've been thinking about this as well, and I would love to hear

Re: MODERATION? (was: Informatica Online Training By Highly Experienced Certified Trainers

2014-01-27 Thread Sean Corfield
Thanks for the clarification Andy. Maybe someone accidentally clicked the approve button instead of the spam button... Sean On Jan 27, 2014, at 12:03 PM, Andy Fingerhut andy.finger...@gmail.com wrote: There *is* a first post moderation policy in place for this group -- it has been in place

Re: Helping newcomers get involved in Clojure projects

2014-01-27 Thread Bridget
That's a great idea. Someone should do that. At the very least, remote pairing is a good idea for mentoring people to help with a project. On Saturday, January 25, 2014 2:48:06 PM UTC-5, Marcus Blankenship wrote: +1 One idea: what about doing some remote pairing and virtual hackathon

Penumbra anyone in clojure 1.5.1

2014-01-27 Thread Kuba Roth
Hi there, I'm trying to get Penumbra working with clojure 1.5.1 and was wondering if there is still anyone using that library...? Also I've just discovered a fork of penumbra in the clojars (https://clojars.org/prismofeverything/penumbra/versions/0.6.12) which claims to be compatible with

Re: Looking for a reference binary parsing

2014-01-27 Thread danneu
ztellman's Gloss is magic to me. - Here's an example of my first attempt to use Gloss to parse the Bitcoin protocol: https://gist.github.com/danneu/7397350 -- In 2-chan.clj, it demonstrates using ztellman's Aleph to send Bitcoin's verack handshake to a node and ask it for blocks. - Bitcoin

Re: [Large File Processing] What am I doing wrong?

2014-01-27 Thread Curtis Gagliardi
If ordering isn't important, I'd just dump them all into a set instead of manually checking whether or or not you already put the url into a set. On Sunday, January 26, 2014 10:46:46 PM UTC-8, danneu wrote: I use line-seq, split, and destructuring to parse large CSVs. Here's how I'd

Re: Looking for a reference binary parsing

2014-01-27 Thread Aaron Cohen
Have you already looked into using https://code.google.com/p/mp4parser/ ? On Fri, Jan 24, 2014 at 10:08 AM, Kashyap CK ckkash...@gmail.com wrote: 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

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread David Pidcock
Well at least I can know guess at the etymology : sql join leaps to mind, joining on a different branch of the state tree with keys from another branch. I didn't understand that until I read your tutorial. On Monday, January 27, 2014 10:35:54 AM UTC-8, David Nolen wrote: om/join is

Re: Penumbra anyone in clojure 1.5.1

2014-01-27 Thread Kuba Roth
ok I think got it working at least black frame shows up. On Monday, January 27, 2014 12:51:45 PM UTC-8, Kuba Roth wrote: Hi there, I'm trying to get Penumbra working with clojure 1.5.1 and was wondering if there is still anyone using that library...? Also I've just discovered a fork of

Re: Java interoperability

2014-01-27 Thread Jarrod Swart
The typical route I take is to always check http://clojure-toolbox.com first to see if a library exists. If not and it's a trivial thing I might just write it myself. My first thought is never, Hey I should go grab a Java lib to do this. But typically yes JSON is extremely close to clojure

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

2014-01-27 Thread greg r
I compared a computer set up with the latest of everything (org/emacs/CIDER) and compared to an older computer still using nrepl-jack-in and older versions of everything else. The behavior is definitely different with the newer system, and can be seen with a very simple case: Code block:

Re: equality

2014-01-27 Thread Cedric Greevey
Seems to me that BigDecimal, being essentially a BigInteger numerator and a power-of-ten denominator, could have been accommodated in Category 1 given that Ratio could. On Mon, Jan 27, 2014 at 10:26 AM, Andy Fingerhut andy.finger...@gmail.comwrote: As Jim already mentioned, you can use == to

Re: Looking for a reference binary parsing

2014-01-27 Thread Cedric Greevey
On Mon, Jan 27, 2014 at 4:13 PM, danneu danrod...@gmail.com wrote: ztellman's Gloss is magic to me. - Here's an example of my first attempt to use Gloss to parse the Bitcoin protocol: https://gist.github.com/danneu/7397350 -- In 2-chan.clj, it demonstrates using ztellman's Aleph to send

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

2014-01-27 Thread Mars0i
Back in 2007 (https://groups.google.com/forum/#!searchin/clojure/mapc/clojure/x0PDu_D6mP0/3A7CZe-ZDWAJ), Henk Boom raised the possibility of including in Clojure a function with syntax like map, but semantics more like Common Lisp's mapc (or Scheme's for-each, I believe). It works just like

standard indentation tool

2014-01-27 Thread bob
Hi All, Should clojure have a standard format tool like go lang, it will waste time. Thanks -- -- 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

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

2014-01-27 Thread Bastien
Hi Greg, greg r soapy-sm...@comcast.net writes: I compared a computer set up with the latest of everything (org/emacs /CIDER) and compared to an older computer still using nrepl-jack-in and older versions of everything else. The behavior is definitely different with the newer system, and

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

2014-01-27 Thread Jan Herich
How about doseq http://clojuredocs.org/clojure_core/clojure.core/doseq ? Dňa utorok, 28. januára 2014 5:28:04 UTC+1 Mars0i napísal(-a): Back in 2007 ( https://groups.google.com/forum/#!searchin/clojure/mapc/clojure/x0PDu_D6mP0/3A7CZe-ZDWAJ), Henk Boom raised the possibility of including