Domina: html in strings?

2012-01-22 Thread David Powell
Hi, I'm just starting with clojurescript and domina. I have some html in a string, eg: (def s "Hello") Is it possible to run xpaths over this node? (nodes s) seems to convert it into some sort of dom object... Is it possible to change the text of the h3 element? Am I going about this wrong -

Implementing an interface with core/proxy results in UnsupportedOperationException

2012-01-22 Thread Michael Klishin
Hi, I am trying to make it possible to use functions as Quartz jobs for my Clojure DSL on top of Quartz [1]. For that, I need to implement a simple 1-method interface. Both gen-class and defrecord with additional methods work great but seem too heavyweight in many cases so I am trying to add fun

Re: Must a page refresh fire an init event?

2012-01-22 Thread Alex Robbins
Not sure what you are planning to do with the data, but you shouldn't trust data in cookies. It is trivial to edit the cookies in your browser using something like FireCookie [1] Cookies are fine for storing form info, or something like that, but you wouldn't want to store something like admin=tr

Re: Must a page refresh fire an init event?

2012-01-22 Thread Folcon
Hi Alex, No nothing like that, more like keeping track of where the user was so a page refresh doesn't kill their state. I'm still working out how "one" does things, it took me a little while to get how to add new template pages as I can't really use the browser repl. (I'm waiting for lein int

Re: Pretty-print with metadata

2012-01-22 Thread Tom Faulhaber
Chris, nice use of custom dispatch! I can't claim all the credit for this mechanism. I based my work on the old XP system that has been used in Lisp since the eighties. Standing on the shoulders of giants, as it were. :) It's been on my list to respect *print-meta* in the regular pprint dispatch,

Clojure for Cocoa

2012-01-22 Thread Axel Katerbau, Objectpark
Hi all, I'm pondering the idea of having Clojure for "regular" Mac OS/iOS programming with the Objective-C libraries like Cocoa and the like. Having a Clojure variant that embraces the Objective-C runtime would be the goal. But what would be the best way of achieving this? Building a LLVM fronte

Re: Clojure for Cocoa

2012-01-22 Thread David Nolen
On Sun, Jan 22, 2012 at 4:06 AM, Axel Katerbau, Objectpark < akater...@googlemail.com> wrote: > Hi all, > > I'm pondering the idea of having Clojure for "regular" Mac OS/iOS > programming with the Objective-C libraries like Cocoa and the like. > > Having a Clojure variant that embraces the Objecti

Re: Clojure for Cocoa

2012-01-22 Thread Konrad Hinsen
David Nolen writes: > Having a version of Clojure that integrates with OS X as well as Clojure > integrates with the JVM will be a much more ambitious task but it would be > really, really cool. As this would imply integrating with the C/C++/Objective universe in general, it would also be very

seesaw texteditor.clj classpath error

2012-01-22 Thread jayvandal
I get this error with classpath. I This is not leiningen but should be simple c:/opt/jars contains seesaw-1.2.2.jar Classpath = c:/opt/jars/*; Program is by Daveray. I copied it and changed name(line 1) to seeeditor.core (ns seeeditor.core (:use seesaw.core [clojure.java.io :only [fil

ANN: Clojure/West conf and training early bird ends this Friday

2012-01-22 Thread Alex Miller
If you want to meet with other Clojure developers, check out Clojure/ West in San Jose, CA March 16-17th! It is preceded by several days of training (which may also be taken independently from the conference). The Clojure/West conference and training early bird rates end *this Friday* Jan 27th. C

Re: seesaw texteditor.clj classpath error

2012-01-22 Thread Meikel Brandmeyer (kotarak)
Hi, Am Montag, 23. Januar 2012 05:24:29 UTC+1 schrieb jayvandal: > > I run this and line > java -jar c:/opt/jars/clojure.jar c:/aproject/seeeditor.clj > > You want "-cp 'c:/opt/jars/clojure.jar;c:/opt/jars/seesaw-1.2.2.jar'" instead of "-jar c:/opt/jars/clojure.jar". Sincerely Meikel -- You

Can Simplicity Scale?

2012-01-22 Thread daly
Can Simplicity Scale? http://blog.regehr.org/archives/663 Sadly you'll note that the source code https://github.com/damelang/gezira/tree/master/nl does not even include comments. The code is "obvious" that it clearly does not need comments since the machine has no trouble understanding it. I, ho

Re: seesaw texteditor.clj classpath error

2012-01-22 Thread jayvandal
How do you point to the clojure file , seeeditor.clj?? On Jan 22, 11:56 pm, "Meikel Brandmeyer (kotarak)" wrote: > Hi, > > Am Montag, 23. Januar 2012 05:24:29 UTC+1 schrieb jayvandal: > > > I run this and line > > java -jar c:/opt/jars/clojure.jar c:/aproject/seeeditor.clj > > You want "-cp 'c:/o

Re: seesaw texteditor.clj classpath error

2012-01-22 Thread Meikel Brandmeyer (kotarak)
Hi, I don't know. A random clojure file is not necessarily intended to be run as script. I don't know which source file you are talking about (at least I didn't find anything editor related in seesaw), so I can't say more. However, your classpath setting was wrong. Maybe the command you are lo