I am trying to run the my-website.
My structure is
my-website top level
src
my-website
model
db.clj
sould I use this command
lein repl
(load-fil
On Monday, June 3, 2013 12:20:34 AM UTC-6, jayvandal wrote:
>
> I am trying to run the my-website.
> My structure is
> my-website top level
> src
>my-website
>
what statements makes the program execute.
The main statement tells the program to execute server file
what statements in the server file tell the program to run the welcome file
? the user file
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To
)
(password-field "pass")
[:br]
(submit-button "create account"
(defpage [:post "/signup"] user
(try
(db/add-user (update-in user [:pass] crypt/encrypt))
(resp/redirect "/")
(catch Exception ex
(render "/signup" (assoc user :error (.ge
nd we can
> easily help you trace the flow of execution.
>
> On Tuesday, June 11, 2013 5:32:46 AM UTC-7, jayvandal wrote:
>>
>> what statements makes the program execute.
>> The main statement tells the program to execute server file
>> what statements in the serve
in a project file the
:main my-website.server)
Is this like a go to statement or a do like statement
it seems that the leiningen has default to the welcome clj file.If it
doesn't find the welcome file what does leiningen do?
In the my-website.server clj file , the main function ends with a
:ns
error , but don't know how to solve
error it goes as follows
CompilerException java.lang.RuntimeException: Unable to resolve symbol:
init-db
in this context, compiling:(NO_SOURCE_PATH:1)
This is the db.clg file
===
(ns jimsweb.models.db
(:require [clojure.ja
I am trying to run the snake program . I don't know how to fin this "use
clojure.contrib.import-static" ?
Any help will be appreciated!
Thanks, jvandal
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@g
I have this code.
(defproject jsql "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.4.0"]])(use 'clojure.java.jdbc)
My question is where do the dependencies locate? I would put the files in
the c:\clojure-1.4.0
How does clojure know where they are? Are the
I do a lein new hello_world and I get a directory called hello_world.
I then try "lein deps".
I get several lines of errors starting with "#!"
What am I doing wrong?
=
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation.
This is the code
(ns example.core
(:gen-class))
(defn -main [& args]
(println "Hello, World"))
;java -cp classes:clojure.jar com.example
I can't get this to run ???
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to t
I some how got this error. I have deleted clojure, lein, java, changed
paths and I get this error
What is the problem???
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\jim>lein
Exception in
I have installed cake accoring to the instructions. I then attempt ot
run the sql and I get this information. I don't know where to look.
Could anyone explain what the problem is???
Thanks in advance
===Microsoft Windows [Version
6.0.6002]
Copyright (c) 2006
I am running a swing tutorial clojure program file and when I run the
result is
++
user=> (load-file "c:/clojure-1.2.1/counter-app.clj")
#'user/counter-app
user=>
++
What does this line mean?
#'user/counter-app
The name of my fi
I would like to see a listing of a swing type CRD database program to
see how the items go together.
Thanks,
still trying to relate to Clojre type programming
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to cloju
I downloaded the contrib file that was indicated as the file
containing
(:use clojure.contrib.duck-streams)) but I get an error when trying
to run code.
I get errors but don't know what clojure is seeking??
Any advice will be appreciated
--
You received this message because you are subscribed t
I installed clojure from Programming Clojure page 12.
I try to run snake.clj.
This is what I get
What causes this??
Thanks
==
C:\clojure-1.3.0>java -jar c:/clojure-1.3.0/clojure-1.3.0.jar
c:/clojure-1.2.1/e
xamples/snake.clj
Exception in thr
I am trying to run "CRUD in clojure" 2010 and I get this problem
lein uberjar
Some problem ?
Any help thanks
Exception in thread "main" java.lang.Exception: Unable to resolve
symbol: PK♥♦¶
t↕N? in this context (core.clj:1)
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Micr
I am running Vista. I installed Clojure as c:\clojure.
Where and how do you put the file
[org.clojure/java.jdbc "0.0.3-SNAPSHOT"]]
--
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
Whay does cljr-installer.jar make directories with .(period) in front
of the dir name as .cljr and .lein and m2.
--
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 me
I wonder where I can find swing definitions such as text field
locations on a panel or frame?
How do I put 2 panels side by side to show two different records?
How do I put text fields across the screen or down the screen??
Any help I would appreciate.
Thanks
--
You received this message because
I tried this command but can't find how to execute it.
$ lein run -m gaidica.core
What folder do I execute this ? (Vista windows )
Probably simple but it's difficult for me
Thanks
# gaidica
Example Seesaw application. Display weather data from
weatherunderground.com
## Usage
$ lein deps
I am trying to run the examples in seesaw.I must not have seeesaw
installed correctly.
any help please
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\>cd cljr
C:\cljr>java -jar c:/clojure-1.3.0.jar c:/cljr/kitchensink.clj
Error: Unable to
i coded the foo.clj program
=
(ns foo)
(defn hello [x] (println "Hello," x))
(if *command-line-args*
(hello "command line")
(hello "REPL"))
=
I run this line
java -cp c:/opt/jars/clojure.jar:. clojure.main foo.clj
I get it can't find clojure.mai
I tried to run sqlitetest project in lein.I get this error
no :main namespace specified in project.clj
Why would i get an error in an example?
I first run lein deps.
Then i run lein run
then comes error??
--
You received this message because you are subscribed to the Google
Groups "Clojure" gro
I am trying castin spels in clojure and I get this error. What does it
mean??
user=> (spel-print describe-paths 'living-room game-map)
java.lang.IllegalArgumentException: Wrong number of args (3) passed
to: user$spel-print (NO_SOURCE_FILE:0)
==
code is
I think I understand namespace and then I don't!
I try to run this example
(ns examples.core
(use [clarity.component :as c]))
(make :button "The Button")
I have programs stored in c:\projects\klarity.clj
I have clojure stored in c:\clojure-1.2.1\clojure-1.21.
I am running c:\cljr\clj-installer
I was looking at the installation in "Learning clojure" and the batch
file had this statement:
java -server -cp .;%CLOJURE_JAR% clojure.main
why is the "server" in the line and what is it referencing???
Thanks for any help
--
You received this message because you are subscribed to the Go
I was looking at the installation in "Learning clojure" and the batch
file had this statement:
java -server -cp .;%CLOJURE_JAR% clojure.main
why is the "server" in the line and what is it referencing???
Thanks for any help
--
You received this message because you are subscribed to the Go
Where is this file to be found??
(:require [clojure.contrib.sql :as sql]))
I see it listed in the jar but??
I have the clojure.contrib-11.2.0.jar located in my classpath
c:\opt\jars, as well as the clojure.jar
Am I the only one who has trouble with these files??
--
You received this message
I have tried the example you provided and it works except I don't see
any file printout of the records when I run not as test but without
test. Is test going to show any data? Can I ask for a record count?
why doesn't the sql jar show for every example that is in the
internet?
Thanks
On Dec 24,
lack of understanding, but I feel I must be able to
access databases or I can't use clojure
On Dec 28, 12:58 am, Sean Corfield wrote:
> Sorry, I have no idea what you mean...
>
>
>
>
>
>
>
> On Tue, Dec 27, 2011 at 9:56 PM, jayvandal wrote:
> > I have tried the exampl
i am using leinningen and mysql example. I can select records as:
(defn list-ausers []
(sql/with-connection db
(sql/with-query-results rows
["SELECT * FROM books WHERE BOOK_ID = '1'"]
(println rows
but I can't insert records,i doesn't like the query as:
(defn add-ausers [
ql/with-connection db
> (sql/insert-record :books user)))
>
> http://clojure.github.com/java.jdbc
>
> Allen
>
>
>
>
>
>
>
> On Fri, Jan 6, 2012 at 3:13 PM, jayvandal wrote:
> > i am using leinningen and mysql example. I can select records as:
>
i am using leinningen and mysql example. I can select records as:
(defn list-ausers []
(sql/with-connection db
(sql/with-query-results rows
["SELECT * FROM books WHERE BOOK_ID = '1'"]
(println rows
but I can't insert records,i doesn't like the query as:
(defn add-ausers [
I have been able to access tables in mysql, but not able to add
records. I look at the examples fo "fruit so I created a lein named
fruitI made th project file as the mysql project file. I copied the
database instructions as in mysql. I added all of the statements for
the "fruit" example but I can
I have been able to access tables in mysql, but not able to add
records. I look at the examples fo "fruit so I created a lein named
fruitI made th project file as the mysql project file. I copied the
database instructions as in mysql. I added all of the statements for
the "fruit" example but I can
I 'm having trouble with adding to this table
I cand drop the table, create table but can't add this data
What is the format error?
Thanks for help!
(defn create-fruit []
(sql/with-connection db
(sql/create-table :fruit
[:name "varchar(25)"]
[:appearance "varchar(25)"]
[:cost "integer
I 'm having trouble with adding to this table
I cand drop the table, create table but can't add this data
What is the format error?
Thanks for help!
(defn create-fruit []
(sql/with-connection db
(sql/create-table :fruit
[:name "varchar(25)"]
[:appearance "varchar(25)"]
[:cost "integer
I have installed clr in a folder called "clr" and have net installed.
I can click on main exe and get the clr to give me a repl . When I get
ready to create the ui. file in the example where am i storing files
In leiningen i create a folder for the project all the files are
stored in the project
I am running ui.clj , this is my commands and error mgs.
I can access the mysql data for these datasets but when I try to
load ui and am confused ???
Thanks for any help
(def conn-str
"SERVER=localhost;DATABASE=clr_demo_4;UID=root;PASSWORD=pass;")
==
Clo
Why does the clr point to d: work?
user=> (use :reload 'ui)
FileNotFoundException Could not locate db.mysql.clj.dll or db/
mysql.clj on load
path. clojure.lang.RT.load (d:\work\clojure-clr\Clojure\Clojure\Lib
\RT.cs:3065)
user=>
--
You received this message because you are subscribed to the Goog
I aam trying "hello-seesaw" tutorial in clooj. I don't see output or
screens as in running Leiningen. I trie adding all the commands
and didn't see any output, so I went back line by line and can't
see any screens.
What commands should I be using to see progres? I am still trying to
write Cloju
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
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/
I want to access mysql. it is in c:\program files as mysql
what is the rule to create a dependicy statement "
[mysql/mysql-connector-java "5.1.23"]]".
I have two books "Practical Clojure"
"Programming Clojure"
No answer in the books that I find
--
--
You received this message because you ar
46 matches
Mail list logo