WebService request are not getting served properly

2015-07-27 Thread hemant gautam
On running the below mentioned code on browser I am getting "Page not found" for each type of request. Can anybody suggest me where I am doing a mistake. (ns currentday.core (:require [compojure.core :refer :all] [compojure.route :as route] [compojure.handler :as handler]

Re: WebService request are not getting served properly

2015-07-27 Thread hemant gautam
gt; > On 27 Jul 2015, at 10:55, hemant gautam wrote: > > On running the below mentioned code on browser I am getting "Page not > found" for each type of request. > Can anybody suggest me where I am doing a mistake. > > (ns currentday.core > (:require [compo

Re: WebService request are not getting served properly

2015-07-27 Thread hemant gautam
Monday, July 27, 2015 at 5:50:10 PM UTC+5:30, Gary Verhaegen wrote: > > > On Monday, 27 July 2015, hemant gautam > > wrote: > >> On running the below mentioned code on browser I am getting "Page not >> found" for each type of request. >> Can anybody sug

Rethinkdb problem with clojure

2015-07-29 Thread hemant gautam
Hi All-- I am trying to use RethinkDb for the first time. My rethinkDb server available at some IP addr: XYZ. I have made changes into instance configuration file in order to access it through browser on my local machine and I am able to access it at http://XYZ:8080 In order to connect to Reth

What is happening in this code?

2014-08-27 Thread Hemant Gautam
I am new to Clojure, I am currently at Beginner level. While trying to run small programs, I found that I can load a file having duplicate code. Let me explain it with example. This is the code (ns clojure_begins_19_08_2014.core) (defn first-fn[x] (print x)) (defn first-fn[x] (print "Valu

Re: What is happening in this code?

2014-08-27 Thread Hemant Gautam
ood > > Andy > > > On Wed, Aug 27, 2014 at 7:32 AM, Tassilo Horn wrote: > >> Hemant Gautam writes: >> >> Hi Hemant, >> >> > This is the code >> > >> > (ns clojure_begins_19_08_2014.core) >> >> Use hyphens

Re: Use Require and Import

2014-09-19 Thread Hemant Gautam
Thanks for your reply let me get it more clear by taking an example. Suppose I am having 2 file a.clj and b.clj a.clj code is as follows (ns com.gettingerror.a) (defn Getting ..) (defn Error ..) b.clj code is as follows ...