Re: Enhancement Request: Folding Whitespace

Chris Babcock <[email protected]> Sun, 28 Jun 2009 01:34:33 -0700
Newsgroups gmane.mail.spam.crm114
Organization Kolonel Panic
Message-ID <[email protected]>
I get the whitespace thing. It was just one of those moments for me. A
3 hour moment, but just a moment.

A different request (unless I somehow missed it in the docs)...
a :_var: for { and }. 

I was building a little something to help me manage my CSS a little
easier - http://crm.pastebin.com/f61f6952e - and I found out that it's
somewhat tricky to match curly braces and downright demonic trying to
match just one without its partner. This works in a match:

	/\\{...\\}/

Singly, however...

[usak@cl-t090-563cl includes]$ crm "-{match /\\{/; output /found/}"
{

crm: *ERROR*
 Regular Expression Compilation Problem: Missing '}'
Sorry, but this program is very sick and probably should be killed off.
This happened at line 2 of file (from command line):
    match /\{/
(runtime system location: crm_expr_match.c(249) in routine:
crm_expr_match)

This is on Blame Barack. It's between delimiters, so it shouldn't
matter... but it does.

> BTW, the browser and box is full English setup (Dutch is a very fine
> language, but not in my computer user interfaces, thank you very much.
> I cringe at the translations in the menu's, etc. and despite this
> being my dad's workhorse, he's got a US English license 'n all - me
> being Mr. Sonny Support Tech implies he's more fluent in English now
> in his 70-ies than he was in his previous working life ;-) )

[Sat Jun 27 09:40:41 2009] [error] [client 82.72.205.188] crm: *ERROR*
[Sat Jun 27 09:40:41 2009] [error] [client 82.72.205.188]  This program wants to use a nonexistent variable named: ':_env_HTTP_COOKIE:'
[Sat Jun 27 09:40:41 2009] [error] [client 82.72.205.188] Sorry, but this program is very sick and probably should be killed off.
[Sat Jun 27 09:40:41 2009] [error] [client 82.72.205.188] This happened at line 154 of file serve-text:
[Sat Jun 27 09:40:41 2009] [error] [client 82.72.205.188]     match [:_env_HTTP_COOKIE:] (:: :CGIL_auth:) /__auth=([[:alnum:]]+)/
[Sat Jun 27 09:40:41 2009] [error] [client 82.72.205.188] (runtime system location: crm_expr_match.c(210) in routine: crm_expr_match)
[Sat Jun 27 09:40:41 2009] [error] [client 82.72.205.188] Premature end of script headers: serve-text
[Sat Jun 27 09:41:23 2009] [error] [client 82.72.205.188] File does not exist: /home/asciiking/public_html/webtools

After I set up the cookie code, I forgot to test it without a cookie
set. Testing is the hard thing right now. Testing a web environment
is a bit of a challenge anyway, but this is the one area where I
really miss other people's code.

> Wow, this is becoming a major CRM114 web application :-)

Just wait until I finish the mailing list, blog, forums and CMS. ;-)

I wish I was joking. I scribbled out half the database schema for an MVC
pattern CMS in a notebook this afternoon just to get it out of my head.

> Well, crm114 script has very few potential hack/0wn paths (compared
> to genpurp PHP, perl et al) so with enough plugging the language could
> get a second life there. ;-)   (crm114 as a web micro-language...)

CRM is not only the CGI language for the site, it's also the glue
language for the entire application wrapper. The original app is RFC
822 mail in, data storage in flat text files and malformatted RFC 822
mail out. CRM scripts parse web forms and arbitrary email into RFC 822
mail messages for input, mine internal data stores for web content, and
handle outbound message routing and standards compliance. It's mostly
text mangling, but syscall plays real nice with any *nix programs that
I want to use whether it's netcat/socat or some of the niche stuff from
the Diplomacy hobby.

> BTW, I just hit that fge000028 page (as I said, different 82.72.... IP
> now) and nothing shows in FF3: empty page. I don't have a sniffer on
> this machine, but a simple telnet @ port 80 hit (you'll see it happen
> in your apache log; a hand-crafted HTTP/1.0 from the same IP) coughed
> up  404, so I guess usak.* is a vhost.

I have more projects than IP addresses, so usak.asciiking.com goes on
its own IP when I'm ready to set it up on HTTPS. It's a web interface
for a play by email game and passwords are going out on the wire in
plain text anyhow, so that's low priority.

The main reason for CRM is to use the existing data store to drive the
web site, including authentication. They already have passwords in the
email app. Asking them to create acounts to use the web site would be a
slap in the face. Duplicating the data store in a relational database?
Synchronization nightmare.

> I don't know what it /should/ show, or what's bugging, but that's what
> I see. This is just FYI.

What you were getting was a 500 Internal Server Error - mostly. What you
should have been getting was a page with a map on it and a simple form
to change the map - neatly embedded in the template that provides the
site nav, of course. 

Thanks much. I got it straigtened out just before a third party site
that most players use tanked. What a Beta party!

Chris

------------------------------------------------------------------------------

_______________________________________________
Crm114-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crm114-general
signature.asc (application/pgp-signature, 489 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQEcBAEBAgAGBQJKRysbAAoJEASgqNsqZfCHlEEIAJCDbwytdi5qZmUYfjdpa5Xv
ZH0uGGRnxqDZbSaJ/M4frlp1zYPE78VnisfFkfT8UKwJwZiIIQnByTDAh/sx2Wgd
XTLMxx73Jvu1KmAsBfIjBkkfwcGL2FXIJCD9TnOxkDif8xQTEJibXLouR6Cpcoef
PyGclhwZzKYJ4qLJ+72KjgO2zlWdtwi/g5FYP/4vvssTrDS6KiJOQR8ncWZyWJQF
znoRm+kXk1BEzfpt4Fo05IQIN3zjsYbsbl7KS4c/XiHFQD+yTleA+tNhtOCUCv46
FsurISGTgH1kKSeMcvbX08HFkp4syhRqCjMK7zQ6qN6sfYi2Hbsr5+VuMo1q4oA=
=r0a+
-----END PGP SIGNATURE-----