Calling function in required library in a different namespace

2010-11-17 Thread Victor Olteanu
Hi, Please excuse my newbie ignorance - I would like to do something that seems pretty basic, yet I couldn't figure it out yet. I would like to call a function that is loaded in a different namespace, but without having to load the library again in the current namespace - more precisely: in db.clj

Re: LabREPL status ... github returning 404's

2010-11-15 Thread Victor Olteanu
10 09:46, Rick Moynihan wrote: > > On 14 November 2010 20:47, Victor Olteanu wrote: > >> Github is down at the moment unfortunately... > > > > Ahhh great, it's back up... Looks like github was partially down as > > other pages were returning for me. > >

Re: LabREPL status ... github returning 404's

2010-11-14 Thread Victor Olteanu
Github is down at the moment unfortunately... On Sun, Nov 14, 2010 at 3:27 PM, Rick Moynihan wrote: > Hi all, > > When I ran some Clojure Dojo's in Dundee, we did a few group sessions > going through labrepl and its exercises; and I thought the format > worked well. I'm keen to do the same thing

Re: Clojure on Javascript

2010-10-30 Thread Victor Olteanu
How can people not *love* JavaScript? :) Take for example this excerpt from 'JavaScript: the Good Parts': "The new function object is given a prototype property whose value is an object containing a constructor property whose value is the new function object" (PS: that is not one of the "good par

Re: Clojure on Javascript

2010-10-29 Thread Victor Olteanu
cf. node js, I thought of mentioning this link http://dosync.posterous.com/22397098 On Fri, Oct 29, 2010 at 11:10 PM, Santosh Rajan wrote: > Now that server side javascript is growing with node.js, clojure on > javascript will be usefull. Nodejs is event based and not thread based so I > don't k

Re: Getting this error regarding duck-streams/spit ...

2010-10-26 Thread Victor Olteanu
> can switch to clojure.core's slurp and spit and drop duck-streams > altogether. > > On Oct 25, 8:59 pm, Victor Olteanu wrote: > > Thank you. > > > > The following statement worked for me: > > (:require [clojure.contrib.duck-streams :as d]) > > > &g

Re: Getting this error regarding duck-streams/spit ...

2010-10-25 Thread Victor Olteanu
f Clojure... On Mon, Oct 25, 2010 at 10:25 PM, Michael Ossareh wrote: > > > On Mon, Oct 25, 2010 at 19:09, Victor Olteanu wrote: >> >> java.lang.IllegalStateException: spit already refers to: >> #'clojure.contrib.duck-streams/spit in namespace: datatool.api (api.

Getting this error regarding duck-streams/spit ...

2010-10-25 Thread Victor Olteanu
Hi friends, I am getting the following error and was hoping somebody may be able to assist: java.lang.IllegalStateException: spit already refers to: #'clojure.contrib.duck-streams/spit in namespace: datatool.api (api.clj:1) I realized it's because clojure.contrib.duck-streams/spit is overriding

Re: Displaying POSTed string from form text-field in Compojure

2010-09-18 Thread Victor Olteanu
quot;my_datum"} :params} ...) Thanks again! Victor On Fri, Sep 17, 2010 at 9:18 PM, Miki wrote: > See http://clojure.pastebin.com/ncaULRbU (works for me). > I've changed the POST handler to use *params* and I also think you're > not closing the :h2 in view output

Re: Displaying POSTed string from form text-field in Compojure

2010-09-17 Thread Victor Olteanu
Sure, here it is: (defn view-layout [& content] (html (doctype :xhtml-strict) (xhtml-tag "en" [:head [:meta {:http-equiv "Content-type" :content "text/html; charset=utf-8"}] [:title "Datum"]] [:body content]))

Re: why data structure

2010-08-23 Thread Victor Olteanu
Some examples to illustrate this would be very welcome. On Aug 22, 2010, at 9:17 AM, Nicolas Oury wrote: > On Sun, Aug 22, 2010 at 11:30 AM, Belun wrote: >> why does everything have to be a data structure ? like (operation >> parameter parameter ...) > > Because it makes really easy to do me

Re: gedit syntax highlighting for clojure.

2010-08-21 Thread Victor Olteanu
Thanks, I like gedit too as it's fast and easy to use. What about auto-indenting, any ideas about that? -V On Fri, Aug 20, 2010 at 8:30 PM, mitko wrote: > Apparently it is not that hard to create something that does decent > job for syntax highlighting for Clojure. It took me about 3-4 hours >

Re: ClojureDocs.org

2010-07-09 Thread Victor Olteanu
I took a first look and I have to say that the idea is genius and I love what you put up together this far. It is difficult to keep up with what's happening in the Clojure world, and this kind of central place to keep track of things was needed. The examples are also a strong point. I hope the site