From philogb at gmail.com Thu Feb 8 20:23:59 2007 From: philogb at gmail.com (Nico Garcia Belmonte) Date: Thu, 8 Feb 2007 17:23:59 -0300 Subject: [kpax-devel] create my own web app Message-ID: <4e2f5dc00702081223j1d2bad55x4b09e4abc05b6aa@mail.gmail.com> Hi, After struggling for two days I finally got the kpax running with SBCL on an ubuntu Linux. I've been able to run the kpax examples following the instructions posted earlier ("running kpax") and I like to begin with a new web app on my own. The thing is that when I try to modify some of the examples code, I don't see any changes after loading the new page. Could somebody please put an example on how to create a kpax web application from start? -- I would never die for my beliefs because I might be wrong. Bertrand Russell -------------- next part -------------- An HTML attachment was scrubbed... URL: From philogb at gmail.com Fri Feb 16 18:11:14 2007 From: philogb at gmail.com (Nico Garcia Belmonte) Date: Fri, 16 Feb 2007 15:11:14 -0300 Subject: [kpax-devel] SQL question Message-ID: <4e2f5dc00702161011i133e031fr4510bebfb88709af@mail.gmail.com> Hi, I'm using SBCL + KPAX + CLSQL + MYSQL and I have a problem with my lisp files: if I define a file like this: (in-package :kpax-user) (defwebapp :q_main (:index 'q_main-index) (:unsecure t)) (defun q_main-index (request-response) (in-package :clsql-user) (html-part (out request-response) (:div (clsql:connect '("localhost" "quotes" "root" "pass") :if-exists :new :database-type :mysql) (clsql:do-query ((user) "select USERNAME from USER") (fmt "

~A

" user))))) I get a page listing all users for my USER table. Now I'm trying to combine lsp's with clsql code getting an lisp page similar to the lsp.lisp example and a q_index.lsp that has: ...


<% (in-package :clsql-user) (html-part (out request-response) (:div :class "indexTable" :align "center") (clsql:connect '("localhost" "quotes" "root" "") :if-exists :new :database-type :mysql) (clsql:do-query ((user) "select USERNAME from USER") (fmt "

~A

" user))) %> ... I'm getting an error: ;; S-HTTP-SERVER: [1] Handling # ;; S-HTTP-SERVER: Running KPAX s-http-server-handler ;; KPAX 20070216T180518 INFO handling /kpax/dynamic/lsp/show-lsp/q_index ;; KPAX 20070216T180518 INFO created new session 2PQCITWJPIRUX [12863637235009421961] ;; KPAX 20070216T180518 ERROR error deleting unreachable code debugger invoked on a CODE-DELETION-NOTE in thread #: deleting unreachable code any help? -- I would never die for my beliefs because I might be wrong. Bertrand Russell -------------- next part -------------- An HTML attachment was scrubbed... URL: From eyal.raab at gmail.com Mon Feb 19 13:44:57 2007 From: eyal.raab at gmail.com (Eyal Raab) Date: Mon, 19 Feb 2007 15:44:57 +0200 Subject: [kpax-devel] kpax on windows + Lisp in a box Message-ID: <83fc46700702190544w58a345e8vd9f97b9c4cf4f597@mail.gmail.com> Hi, Hi, I'm new to lisp and I'm trying to do the following: I'm trying to install kpax on windows using lisp in a box with CLisp 2.33 ( the installer from the website ). Is it possible? If it is, can someone help me with the following error message: "Starting a standard socket named "s-http-server" on port 2001 using handler # not yet ported to this lisp system [Condition of type SIMPLE-ERROR]" The code that currently generated this error is: (load "c:/progra~1/LispBox/asdf.lisp") (load "c:/progra~1/LispBox/packages/s-utils/s-utils.asd") (load "c:/progra~1/LispBox/packages/s-base64/s-base64.asd") (load "c:/progra~1/LispBox/packages/s-utils/s-utils.asd") (load "c:/progra~1/LispBox/packages/s-sysdeps/s-sysdeps.asd") (load "c:/progra~1/LispBox/packages/cl-who-0.6.3/cl-who.asd") (load "c:/progra~1/LispBox/packages/kpax/kpax.asd") (load "c:/progra~1/LispBox/packages/kpax/kpax-core.asd") (load "c:/progra~1/LispBox/packages/kpax/kpax-s-http-server.asd") (load "c:/progra~1/LispBox/packages/kpax/kpax-paserve.asd") (load "c:/progra~1/LispBox/packages/kpax/kpax-mod-lisp.asd") (load "c:/progra~1/LispBox/packages/kpax/kpax-examples.asd") (asdf:oos 'asdf:load-op :kpax) (asdf:operate 'asdf:load-op :kpax-examples) (in-package :kpax-user) (start-kpax :server-class 's-http-server) (start-web-app :helloworld1) Any help would be greatly appreciated. Thanks in advance, Eyal. -------------- next part -------------- An HTML attachment was scrubbed... URL: