Re: Problem with Greeks!

2011-08-16 Thread Meikel Brandmeyer (kotarak)
Hi, Am Mittwoch, 17. August 2011 06:53:11 UTC+2 schrieb cran1988: THE PROBLEM SOLVED !!! > > https://groups.google.com/group/clj-noir/browse_thread/thread/b02a740e6db62b58 > > > To expand a bit on this issue: NoSuchMethodError clojure.lang.KeywordLookupSite.(ILclojure/lang/Keyword;)V clout.

Re: Clojure for Android

2011-08-16 Thread Paul deGrandis
I'd consider taking this. I've worked a little bit behind the scenes to get Clojure to run better for me personally on android. Recently, I've been working to get ClojureScript to work well for SL4A (Scripting Layer for Android). I wanted to try to get a native Clojure package working for SL4A,

Re: Problem with Greeks!

2011-08-16 Thread cran1988
THE PROBLEM SOLVED !!! https://groups.google.com/group/clj-noir/browse_thread/thread/b02a740e6db62b58 Thanks for your support ! On Aug 17, 6:58 am, cran1988 wrote: > I am going to try java 7 with clojure > > On Aug 17, 6:36 am, Kevin Livingston > > > > > > > > wrote: > > I don't know about the

Re: clojure.java.jdbc input on JDBC-3 (esp. Stuart Sierra!)

2011-08-16 Thread jaime
Not related to this topic, but just wonder if it's possible to have c.j.j to support Unicode? And if it's already there, how can I use it for Unicode? On Aug 17, 2:17 am, Sean Corfield wrote: > On Tue, Aug 16, 2011 at 11:02 AM, Stuart Sierra > > wrote: > > I no longer remember what I was looking

Re: Problem with Greeks!

2011-08-16 Thread cran1988
I am going to try java 7 with clojure On Aug 17, 6:36 am, Kevin Livingston wrote: > I don't know about the clojure compiler.  But we've run into some > issues with the java compiler.  There are flags to inform it what file > encodings are being used in a file.  For example, > > http://java.sun.co

Re: defining tests for an api to be called by the implementations

2011-08-16 Thread Kevin Livingston
actually this isn't as bad as I thought. things work more or less as expected, I can blocke the tests with the test-ns-hook and run them in other namespaces as expected... the reason things ran in my repl but would not compile outside is that there were some missing test dependencies that were in

Re: Problem with Greeks!

2011-08-16 Thread Kevin Livingston
I don't know about the clojure compiler. But we've run into some issues with the java compiler. There are flags to inform it what file encodings are being used in a file. For example, http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp#set-default-locale Java will make assumptions

Re: Problem with Greeks!

2011-08-16 Thread cran1988
My jvm is already UTF-8 however it works with clojure 1.3.0 beta1 but i have problems i get an error NoSuchMethodError clojure.lang.KeywordLookupSite.(ILclojure/lang/ Keyword;)V clout.core/request-url (core.clj:53) On Aug 17, 3:30 am, Ken Wesson wrote: > On Tue, Aug 16, 2011 at 7:56 PM, cran198

Re: Problem with Greeks!

2011-08-16 Thread Ken Wesson
On Tue, Aug 16, 2011 at 7:56 PM, cran1988 wrote: > I tried (str "Γεια!") > and i got  "!" > what can I do to fix it ? Set something, somewhere, to UTF-8 that's probably set to ISO-8859-1 or US-ASCII right now. Also, her name would be spelt Λεια, and her famous plea Ηελπ με, Οβι-ωαν Κενοβι! o

Re: Stanford AI Class

2011-08-16 Thread Ken Wesson
On Tue, Aug 16, 2011 at 6:45 PM, André Thieme wrote: > > > On Aug 13, 11:14 pm, Ken Wesson wrote: >> On Sat, Aug 13, 2011 at 1:36 PM, Lee Spector wrote: > >> > On the one hand most people who work in genetic programming these days >> > write in non-Lisp languages but evolve Lisp-like programs t

Problem with Greeks!

2011-08-16 Thread cran1988
I tried (str "Γεια!") and i got "!" what can I do to fix it ? -- 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 yo

Re: Stanford AI Class

2011-08-16 Thread André Thieme
On Aug 13, 11:14 pm, Ken Wesson wrote: > On Sat, Aug 13, 2011 at 1:36 PM, Lee Spector wrote: > > On the one hand most people who work in genetic programming these days > > write in non-Lisp languages but evolve Lisp-like programs that are > > interpreted via simple, specialized interpreters

Re: Async Requests in ClojureScript

2011-08-16 Thread Chris Granger
You could also look at how I do remotes in Pinot. http://github.com/ibdknox/pinot Cheers, Chris. On Aug 16, 12:16 pm, Edmund wrote: > Hi Base, > >         I have a super basic example of this on my blog > athttp://boss-level.com/?p=119 It should get you over this hump. > > Gimme a shout if you

Re: Stanford AI Class

2011-08-16 Thread André Thieme
On Aug 13, 12:16 am, Sergey Didenko wrote: > BTW, Is there a case when AI self-modifying program is much more elegant > than AI just-data-modifying program? > > I just can't figure out any example when there is a lot of sense to go the > self-modifying route. They are all data-modifying programs.

Re: Stanford AI Class

2011-08-16 Thread André Thieme
On Aug 12, 10:25 pm, daly wrote: > Consing up a new function and using eval is certainly possible but > then you are essentially just working with an interpreter on the data. This is the same in CL. When you have a GP system that constructs new program trees then inside your fitness function you

Re: Stanford AI Class

2011-08-16 Thread André Thieme
On Aug 12, 6:41 pm, daly wrote: > In AI this is often modeled as a self-modifying program. > The easiest way to see this would be a program that handles > a rubics cube problem. Initially it only knows some general > rules for manipulation, some measure of progress, and a goal > to achieve. The

Re: try catch and finally

2011-08-16 Thread Jeremy Heiler
On Tue, Aug 16, 2011 at 3:36 PM, rakesh wrote: > In java the finally block is executed after the catch block. But in > clojure, I observed that the finally block is executed before catch > block. Is this behavior right. The behavior is correct. What you are probably seeing is that the side effect

Re: Problems with namespaces in repljs

2011-08-16 Thread Timothy Washington
Hi Stuart, That's fair enough. Is this the CLJS-57JIRA issue? It's not exactly the error I'm having, but looks to be a broken 'ns' macro all the same. Can I track all of the bugs and known issues on (open and in progress) the JIRA page

Re: try catch and finally

2011-08-16 Thread Sean Corfield
On Tue, Aug 16, 2011 at 12:36 PM, rakesh wrote: > In java the finally block is executed after the catch block. But in > clojure, I observed that the finally block is executed before catch > block. Is this behavior right. Are you sure? user=> (try (println "in try") (throw (Exception. "oops!")) (

clojure.java.jdbc: calling mysql stored procedure with OUT or INOUT parameter

2011-08-16 Thread clj-noob
How to make a call to a mysql stored procedure with INOUT parameter, and use the OUT parameter to decide whether to rollback or continue with transaction using clojure.java.jdbc? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

try catch and finally

2011-08-16 Thread rakesh
In java the finally block is executed after the catch block. But in clojure, I observed that the finally block is executed before catch block. Is this behavior right. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Java 7 development branch?

2011-08-16 Thread André Thieme
Are there plans to have a branch for Clojure in which Java 7 specific functions will be developed and included and updated? For example spit taking a java.nio.file.Path [1] as first arg. Or putting pvec using the Fork/Join lib into core, on that specific feature branch. [1] http://download.oracle

Re: Trouble embedding clojurescript in server application

2011-08-16 Thread kjeldahl
Thank you for confirming this. Hopefully the clojurescript gods will figure it out, because I'm still clueless. Until then I'll either create manual "buildscripts" or stick with the current coffeescript client. Thanks, Marius K. On Aug 16, 3:17 am, deduktion wrote: > I can confirm the problem.

Re: Stanford AI Class

2011-08-16 Thread Christopher Burke
I was wondering about the prerequisites as well and found some further information here: http://www.stanford.edu/class/cs229/materials.html In particular, the first 2 entries under Section Notes. On Aug 16, 1:46 pm, Mark Engelberg wrote: > Nice.  I'm glad these other classes are getting the ful

Re: syntax quoting and namespaces misbehaving in test?

2011-08-16 Thread Alan Malloy
100% expected. Try (def other.ns/some-var 1) - the compiler tells you it's illegal. If you read the compiler source, it's looking at the var's namespace and refusing to def it if it's not the current namespace. If you want behavior like this, you want (intern), not (def). On Aug 16, 12:07 pm, Mar

Re: Async Requests in ClojureScript

2011-08-16 Thread Edmund
Hi Base, I have a super basic example of this on my blog at http://boss-level.com/?p=119 It should get you over this hump. Gimme a shout if you have problems, Edmund On 16/08/2011 19:08, Base wrote: > Hi All - > > I am attempting to get started in ClojureScript and am completely > fl

Re: syntax quoting and namespaces misbehaving in test?

2011-08-16 Thread Mark Rathwell
I *think* it is expected behavior. Take this with a grain of salt, but I *think* that defs are namespace resolved at compile time, and so will not be checking in-ns calls within a function to determine the appropriate namespace, but will instead always use the ns of the function containing the def

Re: syntax quoting and namespaces misbehaving in test?

2011-08-16 Thread Ken Wesson
The def special form seems to be a bit strange that way, in that (def sym thingy) seems to do two things: execute a (declare sym) at read or macroexpansion time, even when inside a function definition rather than at top level, and execute an (alter-var-root! sym (constantly thingy)) when actually r

Re: syntax quoting and namespaces misbehaving in test?

2011-08-16 Thread Richard Rattigan
Thanks for your replies. Do you think this is a bug, given that the documentation doesn't seem to concur with this behaviour? On Aug 15, 9:54 pm, Mark Rathwell wrote: > Wow, forget everything I said, this has nothing to do with macro > expansion.  Looks more like inside a function you can only de

Re: clojure.java.jdbc input on JDBC-3 (esp. Stuart Sierra!)

2011-08-16 Thread Sean Corfield
On Tue, Aug 16, 2011 at 11:02 AM, Stuart Sierra wrote: > I no longer remember what I was looking at when I wrote that ticket. :) > Maybe I just wasn't aware of `insert-records`. Cool. Any thoughts on the struct-map issue? resultset-seq currently uses a deprecated feature - it should just use reg

Async Requests in ClojureScript

2011-08-16 Thread Base
Hi All - I am attempting to get started in ClojureScript and am completely flummoxed on getting my connectivity set up. I have a web server running on my local machine such that http://localhost:8080/m yields my data correctly (just a test URL...) I am attempting to connect using the following

Re: clojure.java.jdbc input on JDBC-3 (esp. Stuart Sierra!)

2011-08-16 Thread Stuart Sierra
Hi Sean, I no longer remember what I was looking at when I wrote that ticket. :) Maybe I just wasn't aware of `insert-records`. -S -- 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 t

Re: Problems with namespaces in repljs

2011-08-16 Thread Stuart Sierra
Hi Tim, The `ns` macro doesn't work from the ClojureScript REPL right now. This is a known bug caused by the JavaScript code the compiler emits for `ns`. Also, there is no `require` function for the REPL yet. Some people have written versions of `require` and posted them to the list. -Stuart S

Re: Clojure/conj for beginners?

2011-08-16 Thread Stuart Sierra
Hi Chris, The Clojure-Conj presentations will be varied. Some will be technical and advanced, some will be beginner introductions, and some will be about interesting projects being done in Clojure. Whatever your level, if you are interested in Clojure and want to learn more, Clojure-Conj shoul

Re: Stanford AI Class

2011-08-16 Thread Mark Engelberg
Nice. I'm glad these other classes are getting the full treatment. It's really a shame they don't do a clearer job of defining the prerequisites. For example, they should post some sort of pre-test with specific examples of the kind of math that is needed to understand the class. I find it diff

Re: Clojure-CLR, CLASSPATH, clojure.load.path and Cygwin

2011-08-16 Thread Ken Wesson
On Tue, Aug 16, 2011 at 1:20 AM, Alan D. Salewski wrote: > On Tue, Aug 16, 2011 at 12:34:39AM -0400, Ken Wesson spake thus: >> On Mon, Aug 15, 2011 at 11:13 AM, mrwizard82d1 >> wrote: >> > I understand that the 1.3 beta plans to add an environment variable >> > named clojure.load.path to provide

Re: Clojure-CLR, CLASSPATH, clojure.load.path and Cygwin

2011-08-16 Thread Alan D. Salewski
On Tue, Aug 16, 2011 at 12:34:39AM -0400, Ken Wesson spake thus: > On Mon, Aug 15, 2011 at 11:13 AM, mrwizard82d1 wrote: > > I understand that the 1.3 beta plans to add an environment variable > > named clojure.load.path to provide a "CLASSPATH" mechanism for Clojure > > on the CLR. > > > > Althou

Clojure for Android

2011-08-16 Thread James Swift
http://dev.clojure.org/display/design/Android+Support "Issues Needs a motivated owner" This topic gets a regular mention but I thought it might be worth asking again if it's ever likely to get the 'motivated owner' ? Given that 'reach' was a primary reason for the development of ClojureScri

Clojure/conj for beginners?

2011-08-16 Thread Christopher Burke
Hi Recently I've taken interest to learning Clojure. I've watched presentations, read the Joy of Clojure, done some examples on 4clojure, but have yet to do any "real" programming. I work in enterprise-land and for the most part its all Java without much room to try newer things. With that

[ANN] napalm

2011-08-16 Thread Miro Bezjak
First, apologies to anyone not interested. This isn't clojure project but it helps to setup it. Windows users can skip this announcement because napalm doesn't help them very much. Napalm is a tool to help manage multiple versions of clojure and other java like projects. It's a small project writt

Re: Stanford AI Class

2011-08-16 Thread Jeff Heon
They will also be available to be taken as an online class with grading as the AI introduction class. Links are on the main introduction to AI page - http://www.ai-class.com/ : http://www.db-class.com/ http://www.ml-class.com/ See also Stanford Engineering Everywhere where past lectures and mater

Re: osc-clj 0.5.0 - Open Sound Control for Clojure

2011-08-16 Thread Sam Aaron
Hey Nick, On 16 Aug 2011, at 13:57, cassiel wrote: > > Is this reachable via Lein/Maven? Absolutely. The 0.5.0 release is on Clojars, so you just need to add: [overtone/osc-clj "0.5.0"] to your project dependencies in project.clj for cake/lein. To get started with the lib, first up, check ou

Re: Spitting out a lazy seq to file???

2011-08-16 Thread Armando Blancas
You can put the line break back into each line (" added stuff\n") and then do: (spit "output.txt" (reduce str (map change-line old-data))) On Aug 16, 8:26 am, Thomas wrote: > Hi everyone, > > I have been struggling with this, hopefully, simple problem now for > quite sometime, What I want to do i

Re: Spitting out a lazy seq to file???

2011-08-16 Thread Rasmus Svensson
2011/8/16 Thomas : > Hi everyone, > > I have been struggling with this, hopefully, simple problem now for > quite sometime, What I want to do is: > > *) read a file line by line > *) modify each line > *) write it back to a different file > > This is a bit of sample code that reproduces the problem

Re: Stanford AI Class

2011-08-16 Thread Mark Engelberg
The Machine Learning class from 2008 has been available at iTunes University for a while, but I'm not aware of it having the same kinds of support materials as the online AI class has said they will offer. Be forewarned: the Machine Learning class is presented in a very math intensive way (statist

Re: Stanford AI Class

2011-08-16 Thread daly
Ng's course on machine learning is online. I've already taken it. You need a background in probability. Tim Daly On Tue, 2011-08-16 at 08:52 -0700, ax2groin wrote: > The NYTimes article on the class also mentions two other classes being > offered for free: > * Machine Learning, by Andrew Ng >

Re: Spitting out a lazy seq to file???

2011-08-16 Thread Meikel Brandmeyer
Hi, Am 16.08.2011 um 17:26 schrieb Thomas: > I have been struggling with this, hopefully, simple problem now for > quite sometime, What I want to do is: > > *) read a file line by line > *) modify each line > *) write it back to a different file > > This is a bit of sample code that reproduces

Re: Stanford AI Class

2011-08-16 Thread ax2groin
The NYTimes article on the class also mentions two other classes being offered for free: * Machine Learning, by Andrew Ng * Introductory course on database software, by Jennifer Widom I'm not sure of the official website for either of these, but the Machine Learning class sounds promising and di

Access `this` in ClojureScript

2011-08-16 Thread Kevin Lynagh
Is there a recommended way to access `this` within ClojureScript aside from (js* "this")? I'm using jQuery event handlers, which set `this` to originating DOM element, and I'd like to get my hands on them. In other news, I'm liking ClojureScript more and more every day = ) -- You received this m

Re: Spitting out a lazy seq to file???

2011-08-16 Thread Ken Wesson
On Tue, Aug 16, 2011 at 11:26 AM, Thomas wrote: > Hi everyone, > > I have been struggling with this, hopefully, simple problem now for > quite sometime, What I want to do is: > > *) read a file line by line > *) modify each line > *) write it back to a different file > > This is a bit of sample co

Spitting out a lazy seq to file???

2011-08-16 Thread Thomas
Hi everyone, I have been struggling with this, hopefully, simple problem now for quite sometime, What I want to do is: *) read a file line by line *) modify each line *) write it back to a different file This is a bit of sample code that reproduces the problem: =

Re: osc-clj 0.5.0 - Open Sound Control for Clojure

2011-08-16 Thread cassiel
Nice work. Perhaps it's getting to be time to retire my own Java OSC library... Is this reachable via Lein/Maven? -- N. -- 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 fro

osc-clj 0.5.0 - Open Sound Control for Clojure

2011-08-16 Thread Sam Aaron
Hi there, I just thought I'd announce quite a significant update to osc-clj. This is the first release that can claim to have full support for the OSC spec: http://opensoundcontrol.org/spec-1_0 The major new features are as follows: * Support for the timely dispatch of bundles scheduled for th