Re: [q-lang-users] cgi.q
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2006-05-19 23:27:50
|
Tim Haynes wrote: > Oh, drat, you've got me - I've not upgraded Q to 7.1 on the live site. Fix > it by all means! :) All right, it's in cvs now: http://q-lang.cvs.sourceforge.net/q-lang/q/examples/cgi.q BTW, shouldn't we put those (un)lines/words functions into the standard library, i.e., string.q? IIRC Haskell also has them in the standard prelude. > I keep meaning to normalize everything and make one central library of the > Q modules, too... Please by all means do. Or, if it's too much hassle right now, I could also add a cgi subdirectory to q/examples and put cgi.q there together with your other cgi helper scripts, maybe along with some basic examples to show how they are used? > [Q-powered websites] > Yes indeed - I'm up to at least 3 sites, now: > http://pig.sty.nu/Pictures/ > http://scot-pics.sty.nu/ > http://pig.sty.nu/wittering/ These are impressive. I've seen them before, but didn't realize that they were done with Q. Any chance that I might peek at some of the Q scripts, sometime? ;-) >>http://muwiinfa.geschichte.uni-mainz.de:5050/kirnberger.html > > Neat! Well, it's a beginning; I always wanted to put all the midi blobs into a database, and maybe "Ajaxify" the page a bit so that you don't have to load a new page each time you play a polonaise. If only the day had more than 0x24 hours... > Sounds good to me. There's a test function in cgi.q that might help; if I > get a moment I might try & write a cleaner db->xml->xslt sample as well. That'd be great. BTW, we also have an sqlite3 module now. It should be easy to support that, too, because the basic interface is quite similar to that of the odbc module. (Besides that it's much easier to set up an sqlite database, the sqlite3 module also has a number of nice extras which aren't currently supported by the odbc module, like user-defined functions and collation sequences; i.e., you can have SQL functions implemented in Q.) Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |