Re: Wiki, logo
On Tue, 12 Jan 2010, Eugene wrote: Very strange !!! Maybe it's a over zealous outgoing mail filter at my end. It was only a very simple image. Here's a fixed width courier font rendition. \ \ \ /\ //\\ // \\ //\\ / / / Basically, it's like the three colour logo but with a bit more separation between the 'p' and lambda parts of the symbols. Someone with better graphics tools could pimp it up. The thing is: lambda is not even a picolisp concept so having it eplicitly in the logo is kinda weird. The current logo has lambda, but as a side effect of putting 'p (pico), 'l (lisp) and giving it some dynamism (it looks like if it could spin). PS: I use ThunderBird. For this message I changed the format to plain text only. Maybe that'll help. I was wondering what kind of crippled email client were you using... -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
Re: Demo app not working?
And no I couldn't, the first problem is the menu: (de getRelations (Cls) (filter '((X) (isa '+relation (car X))) (getl Cls))) (de getEntities () (filter '((X) (isa '+Entity X)) (all))) (setq *ClassTree (sort (make (for Cls (getEntities) (link (list Cls (getRelations Cls))) (setq *ClassTreeMenu (make (for Cls *ClassTree (link (list (sym (car Cls)) (pack "@crud?class=" (car Cls))) (de menu (Ttl) (action (html 0 Ttl *Css NIL ( '(id . menu) ( *ClassTreeMenu)) ( '(id . main) " " I'm here trying to make a menu (which succeeds) but then when a link is pressed I want that class name (+Feed for instance) to be available in the crud function. This is not succeeding with (get Key 'http) anyway. And the demo app isn't helping because individual files are used whereas here the goal is to generate the GUI in a generic fashion which makes separate files seem a bit overkill or? Another thing that surprised me is the use of lower case in +relation which was surprising, is there some special reason or a typo? Later on when retrieving the +Entity whose relations I want to use works, I want to be able to have a generic search form where all the entries are simply compared, the functionality I'm after is a (db) that will return a list of results, not just one item if there are more matches. I suppose a comparable pilog query would be if "same" is used to compare all the fields, however generating a working pilog query seems overkill. I hope I'm not too confusing here, the main goal is to create a basic CRUD interface in line with choCuSu in app but all the information to build it will have to come from introspection of the +Entities and their relations, that plus conventions on what to do in certain cases. The reason for doing this is that it could be dropped into any project and instantly provide a working (but stupid) CRUD interface. /Henrik On Mon, Jan 11, 2010 at 9:25 AM, Henrik Sarvell wrote: > Ok, got it to work sorry about that, should've read the readme better for > the correct startup. > > Hopefully I'll be able to manage from here on. > > > > > > On Mon, Jan 11, 2010 at 8:01 AM, Alexander Burger wrote: > >> On Sun, Jan 10, 2010 at 11:51:37PM +0100, Henrik Sarvell wrote: >> > but then when I try to login with admin/admin I get: >> > >> > : !? (get *DB (cdr Tree) (car Tree)) >> > Bad DB file >> >> This looks like there is no database open. Did you start it as >> >> $ ./dbg app/main.l lib/too.l -main -go >> >> This will create the "db/app/" directory if not already there. >> >> >> > I'm thinking that my 32bit executable is not 100% alright since it's >> > compiled and used on a 64bit system and all. >> >> This should be OK. I used 32-bit versions, compiled either under 32-bit >> or 64-bits, on 64-bit systems without problem. >> >> Perhaps prefixing 'strace' to the above command can help? >> >> Cheers, >> - Alex >> -- >> UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe >> > >
Re: Wiki, logo
Very strange !!! Maybe it's a over zealous outgoing mail filter at my end. It was only a very simple image. Here's a fixed width courier font rendition. \ \ \ /\ //\\ // \\ //\\ / / / Basically, it's like the three colour logo but with a bit more separation between the 'p' and lambda parts of the symbols. Someone with better graphics tools could pimp it up. Cheers, Eugene PS: I use ThunderBird. For this message I changed the format to plain text only. Maybe that'll help. -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
Re: Wikipedia
Hi Jon, > Have you tried discussing the issue nicely on the talk (Diskussion) > page? There hasn't been any talk in German, which is very strange for an > article that has been marked for deletion. Well, there is one http://de.wikipedia.org/wiki/Wikipedia:L%C3%B6schkandidaten/1._Januar_2010#PicoLisp > One problem that I see is that, generally, wikipedians should not be > writing about their own stuff. Yeah, that's what I think, too. Cheers, - Alex -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
Re: Wikipedia
Alex, Have you tried discussing the issue nicely on the talk (Diskussion) page? There hasn't been any talk in German, which is very strange for an article that has been marked for deletion. One problem that I see is that, generally, wikipedians should not be writing about their own stuff. I'm sure it happens more frequently in other areas that don't have pedants running the show, but I think it is important for people to write the article like an encyclopedia article. Wikipedia can be annoying in this way because there are some editors who are full of themselves and they don't like appeals. But there is a lot of software on there that is of minimal notability but the articles are not marked for deletion. It might be true that it would be better to put picolisp in another article, but I don't think one exists that is good for it. Perhaps it could be merged into an article about various lisp implementations such as BEE Lisp and the like, making Picolisp and BEE Lisp a redirection to these pages. (I'm just picking on BEE Lisp because it is referenced from the lisp page and doesn't seem very notable to me.) John On 11 Jan 2010, at 1:49 AM, Alexander Burger wrote: Hi Henrik, So in the spirit of promoting the language I made the reply into its own post on my blog: http://www.prodevtips.com/2010/01/09/on-picolisps-wikipedia-woes-and-the-process-of-promoting-a-language/ Thanks Henrik! When it comes to secondary sources and references and such I propose a new section in the Wikipedia article called something like "Impact" with a link ... At the moment I don't want to any further changes. Last week I had added two references to the German version (which started the trouble), one to your prodevtips, and one to an article in the renowned German c't magazine, but they were immediately removed (reverted). But thank you very much for your input! Cheers, - Alex -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe -- UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
Re: Demo app not working?
Ok, got it to work sorry about that, should've read the readme better for the correct startup. Hopefully I'll be able to manage from here on. On Mon, Jan 11, 2010 at 8:01 AM, Alexander Burger wrote: > On Sun, Jan 10, 2010 at 11:51:37PM +0100, Henrik Sarvell wrote: > > but then when I try to login with admin/admin I get: > > > > : !? (get *DB (cdr Tree) (car Tree)) > > Bad DB file > > This looks like there is no database open. Did you start it as > > $ ./dbg app/main.l lib/too.l -main -go > > This will create the "db/app/" directory if not already there. > > > > I'm thinking that my 32bit executable is not 100% alright since it's > > compiled and used on a 64bit system and all. > > This should be OK. I used 32-bit versions, compiled either under 32-bit > or 64-bits, on 64-bit systems without problem. > > Perhaps prefixing 'strace' to the above command can help? > > Cheers, > - Alex > -- > UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe >
Re: Customizing http access
I'll just use ht:Pack instead, thanks for the pointers though :-) On Mon, Jan 11, 2010 at 7:36 AM, Alexander Burger wrote: > On Sat, Jan 09, 2010 at 08:28:15PM +0100, Henrik Sarvell wrote: > > snag I had to solve. I couldn't find a global function so I made my own: > > > > (dm urlDecode> (Str) > >(pack > > (make > > (in (list 'echo Str) > > (while (char) > >(let Char @ > > (ifn (= Char "%") > > (unless (= "^J" Char) (link Char)) > > (link (char (hex (pack (char) (char > > Well, if I see this right, then there is indeed a function, 'ht:Pack': > > (dm urlDecode> (Str) > (ht:Pack (chop Str)) ) > > I would be rather reluctant to start such a heavy machinery like a pipe > to the external 'echo' program above, just to parse a string. You could > instead do > > (dm urlDecode> (Str) > (setq Str (chop Str)) > (pack > (make >(while (pop 'Str) > (let Char @ > (link > (if (= Char "%") >(char (hex (pack (cut 2 'Str >Char ) ) ) ) ) ) ) > > > > (in (list 'echo Str)) is a trick I got from Armadillo (originally as a > way > > to use (xml) with strings), however it seems like it's attaching a > newline > > before end of input so maybe not the best solution here (when using (xml) > > it's a non issue). > > The newline could be suppressed with the '-n' option to echo. > > > > Are there any suggestions on how the above could have been done in a > better > > way? Apart from that final newline I like the idea of being able to > stream a > > string internally to be able to utilize the input channel functions, in > this > > case (char). > > Yeah, this is really a deficit in PicoLisp, not being able to use the > standard 'in' function directly on symbols (strings) :-( > > Cheers, > - Alex > -- > UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe >