You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(7) |
Nov
(29) |
Dec
(101) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(90) |
Feb
(101) |
Mar
(173) |
Apr
(141) |
May
(38) |
Jun
(28) |
Jul
(14) |
Aug
(7) |
Sep
(3) |
Oct
(7) |
Nov
(15) |
Dec
(9) |
2002 |
Jan
(2) |
Feb
(5) |
Mar
(11) |
Apr
|
May
(4) |
Jun
(6) |
Jul
(7) |
Aug
(12) |
Sep
(8) |
Oct
(1) |
Nov
(4) |
Dec
(7) |
2003 |
Jan
(7) |
Feb
(1) |
Mar
(9) |
Apr
(2) |
May
(3) |
Jun
(4) |
Jul
(19) |
Aug
(4) |
Sep
(8) |
Oct
(30) |
Nov
(25) |
Dec
(22) |
2004 |
Jan
(6) |
Feb
(12) |
Mar
|
Apr
(2) |
May
|
Jun
(10) |
Jul
(18) |
Aug
(2) |
Sep
(4) |
Oct
(4) |
Nov
(4) |
Dec
(4) |
2005 |
Jan
(8) |
Feb
(4) |
Mar
(6) |
Apr
(5) |
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(4) |
Nov
(3) |
Dec
|
2006 |
Jan
(9) |
Feb
(6) |
Mar
(11) |
Apr
|
May
(2) |
Jun
|
Jul
(2) |
Aug
(10) |
Sep
(8) |
Oct
|
Nov
(1) |
Dec
(1) |
2007 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(7) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: T F <tf...@ho...> - 2001-02-12 15:23:31
|
This is in the bugs list: http://sourceforge.net/bugs/?func=detailbug&bug_id=131993&group_id=4421 >From: Wojtek <so...@ne...> >Reply-To: sla...@li... >To: sla...@li... >Subject: [Slashcode-development] installation >Date: Mon, 12 Feb 2001 12:15:59 +0000 >MIME-Version: 1.0 >Received: from [216.136.171.194] by hotmail.com (3.2) with ESMTP id >MHotMailBC5110700031D820F3A1D888ABC2F8490; Mon Feb 12 03:13:52 2001 >Received: from localhost ([127.0.0.1] helo=usw-sf-list1.sourceforge.net)by >usw-sf-list1.sourceforge.net with esmtp (Exim 3.16 #1 (Debian))id >14SGxe-0006Us-00; Mon, 12 Feb 2001 03:16:02 -0800 >Received: from nemezis.ipan.lublin.pl ([212.182.61.154])by >usw-sf-list1.sourceforge.net with esmtp (Exim 3.16 #1 (Debian))id >14SGx4-0006TR-00for <sla...@li...>; Mon, 12 >Feb 2001 03:15:26 -0800 >Received: by nemezis.ipan.lublin.pl (Postfix, from userid 1000)id >447E2A829; Mon, 12 Feb 2001 12:15:59 +0000 (GMT) >From sla...@li... Mon Feb 12 03:13:58 >2001 >Message-ID: <200...@ne...> >User-Agent: Mutt/1.2i >Sender: sla...@li... >Errors-To: sla...@li... >X-BeenThere: sla...@li... >X-Mailman-Version: 2.0 >Precedence: bulk >List-Help: ><mailto:sla...@li...?subject=help> >List-Post: <mailto:sla...@li...> >List-Subscribe: ><http://lists.sourceforge.net/lists/listinfo/slashcode-development>,<mailto:sla...@li...?subject=subscribe> >List-Id: Development mailing list only for slashcode. No new user or >install questions. <slashcode-development.lists.sourceforge.net> >List-Unsubscribe: ><http://lists.sourceforge.net/lists/listinfo/slashcode-development>,<mailto:sla...@li...?subject=unsubscribe> >List-Archive: ><http://lists.sourceforge.net/archives//slashcode-development/> > >hey, > >newest mysql, latest slash, doing install-slashsite: >Rebuilt at Mon Feb 12 14:14:21 2001 >DBD::mysql::db do failed: Column 'question' is used with UNIQUE or INDEX >but is not defined as NOT NULL at >/usr/lib/perl5/site_perl/i386-linux/Slash/DB/Utility.pm line 345. >Error in >library:Slash::Install:/usr/lib/perl5/site_perl/i386-linux/Slash/Install.pm:183:CREATE >TABLE bugs_param ( param_id int(11) NOT NULL auto_increment, bid int(5) >NOT NULL, question int(5), value text, UNIQUE code_key (bid,question), >PRIMARY KEY (param_id)) >Which was called >by:Slash::Install:/usr/lib/perl5/site_perl/i386-linux/Slash/Install.pm:129:CREATE >TABLE bugs_param ( param_id int(11) NOT NULL auto_increment, bid int(5) >NOT NULL, question int(5), value text, UNIQUE code_key (bid,question), >PRIMARY KEY (param_id)) >Failed on :CREATE TABLE bugs_param ( param_id int(11) NOT NULL >auto_increment, bid int(5) NOT NULL, question int(5), value text, >UNIQUE code_key (bid,question), PRIMARY KEY (param_id)): >Rebuilt at Mon Feb 12 14:14:21 2001 >Rebuilt at Mon Feb 12 14:14:21 2001 >Rebuilt at Mon Feb 12 14:14:21 2001 >Rebuilt at Mon Feb 12 14:14:21 2001 > >Wojtek > >_______________________________________________ >Slashcode-development mailing list >Sla...@li... >http://lists.sourceforge.net/lists/listinfo/slashcode-development _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com |
From: Chris N. <pu...@po...> - 2001-02-12 14:24:39
|
At 18:42 -0500 02.11.2001, Steve Linberg wrote: >- Which version of slashd needs to be running, and how should it be >launched? The one that came with the Bender you are running. :) And it doesn't matter, anyway, since it is independent of the mod_perl stuff. Best to leave slashd off while you are working on this. >- Should I need to re-make slash following the server rebuild? I haven't >so far, because I couldn't see how it would be related to the apache >build. You should not need to, but I do wonder if you might have some modules not in the right place, or maybe have the old Slash.pm lying around somewhere. Just some random thoughts. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
From: shane <sh...@lo...> - 2001-02-12 13:17:00
|
Is there a way to remove a plugin that has been installed to a slashsite? ~slash/bin/install-plugin will list them, and install them, but I didn't notice a method to remove them. |
From: Wojtek <so...@ne...> - 2001-02-12 11:15:26
|
hey, newest mysql, latest slash, doing install-slashsite: Rebuilt at Mon Feb 12 14:14:21 2001 DBD::mysql::db do failed: Column 'question' is used with UNIQUE or INDEX but is not defined as NOT NULL at /usr/lib/perl5/site_perl/i386-linux/Slash/DB/Utility.pm line 345. Error in library:Slash::Install:/usr/lib/perl5/site_perl/i386-linux/Slash/Install.pm:183:CREATE TABLE bugs_param ( param_id int(11) NOT NULL auto_increment, bid int(5) NOT NULL, question int(5), value text, UNIQUE code_key (bid,question), PRIMARY KEY (param_id)) Which was called by:Slash::Install:/usr/lib/perl5/site_perl/i386-linux/Slash/Install.pm:129:CREATE TABLE bugs_param ( param_id int(11) NOT NULL auto_increment, bid int(5) NOT NULL, question int(5), value text, UNIQUE code_key (bid,question), PRIMARY KEY (param_id)) Failed on :CREATE TABLE bugs_param ( param_id int(11) NOT NULL auto_increment, bid int(5) NOT NULL, question int(5), value text, UNIQUE code_key (bid,question), PRIMARY KEY (param_id)): Rebuilt at Mon Feb 12 14:14:21 2001 Rebuilt at Mon Feb 12 14:14:21 2001 Rebuilt at Mon Feb 12 14:14:21 2001 Rebuilt at Mon Feb 12 14:14:21 2001 Wojtek |
From: Steve L. <st...@si...> - 2001-02-11 23:41:36
|
On Sun, 11 Feb 2001, Brian Aker wrote: > BTW, did you happen to try the Loadfile directive? I did try it; it didn't seem to help. I just got through a grueling rebuild, and it still doesn't work. I'm now running apache 1.3.17, mod_perl 1.25. When I include the slash.conf file, apache doesn't even start, and there's no message in the log. Or, rather, it starts, gives the "rebuilt at" message, and then quietly dies without anything in the logs. Couple questions: - Which version of slashd needs to be running, and how should it be launched? - How do you build apache without expat? I tried the RULE_EXPAT=no option, but the configure script didn't recognize it. - Should I need to re-make slash following the server rebuild? I haven't so far, because I couldn't see how it would be related to the apache build. I did build my other modules as dynamically loadable; I'd rather not build them as static, mainly because I don't know how to and this is a live server that I can't really be messing with too much. I have paying clients. I just want to get slash working if I can. Any other thoughts or suggestions? -- Steve Linberg, Chief Goblin Silicon Goblin Technologies http://silicongoblin.com Be kind. Remember, everyone you meet is fighting a hard battle. |
From: Brian A. <br...@ta...> - 2001-02-11 22:33:57
|
BTW, did you happen to try the Loadfile directive? Did that help at all? -Brian |
From: Steve L. <st...@si...> - 2001-02-11 18:21:49
|
On Sat, 10 Feb 2001, Brian Aker wrote: > 1) Recompile apache without expat. Here's a question about this: OK, if you add RULE_EXPAT=no to the apache ./configure stage, it turns off the expat build. But according to <http://axkit.org/faq.xml>, this shouldn't be necessary because building mod_perl with DO_HTTPD=1 passes that setting to the apache build. I folloed those instructions, and yet it does appear that my apache 1.3.14 has the XML stuff in it (according to strings) anyway. I'll specify it to be safe, but I'm just wondering if anybody knows why the expat stuff is built into apache if mod_perl is really supposed to suppress it. I'm gearing up for the rebuild. Urg. -- Steve Linberg, Chief Goblin Silicon Goblin Technologies http://silicongoblin.com Be kind. Remember, everyone you meet is fighting a hard battle. |
From: Brian A. <br...@ta...> - 2001-02-11 17:03:57
|
Steve Linberg wrote: > Is there anything else I can do on this build to help figure out what's > going wrong? Would running a trace on apache do it? The segfault is > easily reproducible in this case - load the page with the user handler > active and it segfaults. I did an apache trace once before, but I'd have > to see if I can remember how to do it - I'm not an apache/kernel > hacker. But if it would help, I'm happy to do it. Here are a couple of ideas for you: 1) Recompile apache without expat. 2) Add this to you httpd.conf: LoadFile /usr/lib/libmysqlclient.so.6.0.0 Make sure you use the right library on your machine 3) Try compiling all modules statically. I'm not that familiar with the source to either dav or the one auth module so I don't know if there are any know issues with them. -Brian -- _______________________________________________________ Brian Aker, br...@ta... Slashdot Senior Developer Seattle, Washington http://tangent.org/~brian/ http://slashdot.org/ _______________________________________________________ You can't grep a dead tree. |
From: Steve L. <st...@si...> - 2001-02-11 03:40:40
|
On Sat, 10 Feb 2001, Brian Aker wrote: > Ok, are you adding in any modules dynamically? Say PHP > or any mysql ones? Yes, three: LoadModule dav_module libexec/libdav.so LoadModule mysql_auth_module libexec/mod_auth_mysql.so LoadModule throttle_module libexec/mod_throttle.so ...but as far as I can tell, they worked fine with slash 1.0.9. Is there an issue with dynamically loaded modules that I should be aware of? I think maybe what I should do next is: - rebuild apache with 1.3.17, all the latest stuff. This doesn't thrill me, but I know I have to do it evenutually. I've been roughly following the apache recipe at <http://www.delouw.ch/linux/apache.phtml>, through step 6 or so (plus mod_auth_mysql). I'd been avoiding PHP because of PHP/mod_perl conflicts, but I understand those are resolved now, so I might try adding it back in. - go through the include list and be sure that the latest versions of the various Perl modules are really there. This is a longshot, but I know that the various XML modules and expat libraries have caused me a *lot* of problems on other machines and installs; XML::Parser 2.30 introduced the use of the external expat library, and when I used it with mod_perl I had no end of trouble. I had to back down to 2.28 to keep things stable, but apache would segfault rather randomly untli I did that, and that's what I attributed it to. The documentation I could find on that was pretty sketchy, but it appeared to be a mod_perl/expat conflict of some sort. Maybe it's better now? Is there anything else I can do on this build to help figure out what's going wrong? Would running a trace on apache do it? The segfault is easily reproducible in this case - load the page with the user handler active and it segfaults. I did an apache trace once before, but I'd have to see if I can remember how to do it - I'm not an apache/kernel hacker. But if it would help, I'm happy to do it. - Steve -- Steve Linberg, Chief Goblin Silicon Goblin Technologies http://silicongoblin.com Be kind. Remember, everyone you meet is fighting a hard battle. |
From: Brian A. <br...@ta...> - 2001-02-11 02:33:06
|
Ok, are you adding in any modules dynamically? Say PHP or any mysql ones? -Brian |
From: Steve L. <st...@si...> - 2001-02-10 20:57:19
|
On Sat, 10 Feb 2001, Brian Aker wrote: > What does httpd -l report? What version of mod_perl are you using? Hi Brian, thanks for the response. I'm running mod_perl 1.24_01, and here's httpd -l: [root@shagrat slash]# httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_log_agent.c mod_log_referer.c mod_mime.c mod_negotiation.c mod_status.c mod_info.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_speling.c mod_userdir.c mod_alias.c mod_rewrite.c mod_access.c mod_auth.c mod_proxy.c mod_expires.c mod_usertrack.c mod_unique_id.c mod_so.c mod_setenvif.c mod_perl.c suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec -- Steve Linberg, Chief Goblin Silicon Goblin Technologies http://silicongoblin.com Be kind. Remember, everyone you meet is fighting a hard battle. |
From: Brian A. <br...@ta...> - 2001-02-10 20:42:42
|
Steve Linberg wrote: > > Folks, > > I thought I'd try installing bender 1.1.3 today, seeing it available on > sourceforge. I'm at a stuck point where apache segfaults when I try to > access the site, so if anybody has any ideas or suggestions, I'd be happy What does httpd -l report? What version of mod_perl are you using? -Brian |
From: Steve L. <st...@si...> - 2001-02-10 20:04:29
|
Folks, I thought I'd try installing bender 1.1.3 today, seeing it available on sourceforge. I'm at a stuck point where apache segfaults when I try to access the site, so if anybody has any ideas or suggestions, I'd be happy to try them. I'll spill out the relevant detail here as it occurs to me, probably a little haphazardly. This could also be useful for documentation writers, as this is my first exposure to bender (and I'm far from a slash expert at this point, although I plan to become one. :) ================== I'm running RH 6.2, kernel 2.2.14, Apache 1.3.14, MySQL 3.23 (fresh install), and the same apache configurations that worked for slash 1.0.9. My slash 1.0.9 setup on this box worked just fine until I took it down this morning. I reinstalled Bundle::Slash, which reported everything as fine. I installed Template from the CPAN shell, which appeared not to be installed as part of Bundle::Slash for some reason. I created a virtual user for DBIx::Password as the instructions specified; it all appeared to go fine. It seems that the PREFIX and INIT settings for the make command don't reach everywhere they need to; I noticed that the slashd and bin/install-slashsite scripts (at least) had /usr/local/slash as their default directories even though I specified /home/slash for "make" and "make install", so I corrected these by hand. There may be other incorrect paths lurking, I haven't gone through every file in the system yet. (As part of upgrading to mysql 3.23, I had to rebuild mod_auth_mysql and run ldconfig again. That stuff seems to be working fine, although it's not directly related.) I assume that slashd is meant to be running as it was before, although the install docs don't explicitly mention it. There seem to be two: the slashd in /INIT (/etc/rc.d/init.d/ for me), and the slashd in sbin/ (the install doc mentions util/slashd, but there's no util directory), which appear different; I tried both (the sbin/ version takes the virtual user as an argument); both appear to quit shortly after launch. Through a lot of trial and error (commenting out lines in the config), I found that apache segfaults if the line PerlAccessHandler Slash::Apache::User::handler is uncommented in the site .conf file. If I comment it out, I can use a different document root and the server works, but if it's uncommented, apache segfaults as soon as the domain is hit. I don't really know where to begin looking for additional clues. There's nothing helpful in the error log. I think the most important piece of information I had is that as I mentioned before, my machine and its setup worked fine for slash 1.0.9, so that might narrow down the range of things that could be wrong. ============== Any suggestions for what I might do, or where I might start, to look for solutions or fix the problem? Cheers, Steve Linberg -- Steve Linberg, Chief Goblin Silicon Goblin Technologies http://silicongoblin.com Be kind. Remember, everyone you meet is fighting a hard battle. |
From: Chris N. <pu...@po...> - 2001-02-09 13:19:14
|
At 06:52 -0500 02.09.2001, shane wrote: >I went and looked at > >http://lists.sourceforge.net/archives//slashcode-development/ > > >and it doesn't seem to show any messages from 2001. >Anyone know what's going on? Hrm. No messages after Dec. 15. Sigh. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
From: shane <sh...@lo...> - 2001-02-09 11:47:19
|
I went and looked at http://lists.sourceforge.net/archives//slashcode-development/ and it doesn't seem to show any messages from 2001. Anyone know what's going on? |
From: Chris N. <pu...@po...> - 2001-02-08 22:05:09
|
At 13:01 -0800 02.08.2001, Eric Dannewitz wrote: >Maybe I'm confused, but a comment inserted in the comments table without any >related story or poll? Is that right? Don't comments need a related story? No. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
From: Eric D. <eri...@ja...> - 2001-02-08 21:01:27
|
Maybe I'm confused, but a comment inserted in the comments table without any related story or poll? Is that right? Don't comments need a related story? Chris Nandor wrote: > At 12:41 -0800 02.08.2001, Eric Dannewitz wrote: > >I posted this on Slashcode.com, and tried to post it to the regular list > >but that seems down...... > > Yes, that machine is and has been unfortunately offline. > > >Well, I was looking at my comments datatable, and there is a record > >inserted in there by Anonymous Coward with a SID of trolltalk. Now, I > >don't have any comments or polls with that name. How did it get in > >there.......the access log shows the following.......... > > That is as designed. You can start any discussion with any sid at any time. > > -- > Chris Nandor pu...@po... http://pudge.net/ > Open Source Development Network pu...@os... http://osdn.com/ > > _______________________________________________ > Slashcode-development mailing list > Sla...@li... > http://lists.sourceforge.net/lists/listinfo/slashcode-development -- Back up my hard disk? I can't find the reverse switch! Eric Dannewitz - Adventurer, saxophonist, good-timer (crook? quite possibly), clarinetist, manic self-publicist, part-time flautist(flutist?), macintosher, and often thought to be completely out to lunch. http://www.jazz-sax.com |
From: Chris N. <pu...@po...> - 2001-02-08 20:54:01
|
At 12:41 -0800 02.08.2001, Eric Dannewitz wrote: >I posted this on Slashcode.com, and tried to post it to the regular list >but that seems down...... Yes, that machine is and has been unfortunately offline. >Well, I was looking at my comments datatable, and there is a record >inserted in there by Anonymous Coward with a SID of trolltalk. Now, I >don't have any comments or polls with that name. How did it get in >there.......the access log shows the following.......... That is as designed. You can start any discussion with any sid at any time. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
From: Eric D. <eri...@ja...> - 2001-02-08 20:41:32
|
I posted this on Slashcode.com, and tried to post it to the regular list but that seems down...... Well, I was looking at my comments datatable, and there is a record inserted in there by Anonymous Coward with a SID of trolltalk. Now, I don't have any comments or polls with that name. How did it get in there.......the access log shows the following.......... id host_addr op dat uid ts query_string user_agent 59006 63.228.98. 132 comments trolltalk -1 2/7/2001 3:53:19 PM 0 Mozilla/4.0 (compatible; MSIE 5.5; Windows 95) 59005 63.228.98.132 comments trolltalk -1 2/7/2001 3:52:49 PM sid=trolltalk&cid=&pid=0&startat=&threshold=0&mode Mozilla/4.0 (compatible; MSIE 5.5; Windows 95) 59002 63.228.98.132 trolltalk -1 2/7/2001 3:52:32 PM sid=trolltalk Mozilla/4.0 (compatible; MSIE 5.5; Windows 95) Pardon the bad formatting.............. Any ideas? This is with Slash 1.0.9............ |
From: Alessio B. <al...@al...> - 2001-02-07 08:20:50
|
Judd Maltin wrote: > Can I Install Bundle::Slash without MySQL installed? (Planning on using Pgsql) > > I've been workin' at getting it installed all day and just can't get past the MySQL part. Yes, it will give you an error but that doesn't mean it will stop: at the end of the Bundle thing, you will be reported that some packages failed. Others are just fine. -- Alessio F. Bragadini al...@al... APL Financial Services http://village.albourne.com Nicosia, Cyprus phone: +357-2-755750 "It is more complicated than you think" -- The Eighth Networking Truth from RFC 1925 |
From: Judd M. <ju...@ma...> - 2001-02-06 22:51:12
|
Hey folks, Can I Install Bundle::Slash without MySQL installed? (Planning on using Pgsql) I've been workin' at getting it installed all day and just can't get past the MySQL part. Thanks, Judd -- Judd Maltin -- www.maltin.org The genius of our ruling class is that it has kept a majority of the people from ever questioning the inequity of a system where most people drudge along paying heavy taxes for which they get nothing in return. -- Gore Vidal |
From: Chris N. <pu...@po...> - 2001-02-02 18:46:11
|
OK, first, the problem: taking data from a Slash database and encoding it so it will be 1. legal XML, and 2. easily decoded back into something resembling the original data. This is compounded by the problem that som= e people may put illegal data into the database to begin with (e.g., a lone "&" should not ever be in a title or description). Then, we want to decode the data reasonably. All of the above also assumes that we are encoding from and decoding to HTML. If a user of our RSS file wants to then run something like HTML::Entities::decode_entities() on the result, they can get a non-HTML version of it. The short of it is the program below. It will take some data, encode it for inclusion in an RSS file, then decode it to see what it would be on output. For example: Original: <em>I've "a" <a href=3D"bio.html">"Bio"</a> && a <Résum=E9!></em> Encoded: <em>I've &quot;a&quot; <a href=3D"bio.html">"Bio"</a> &amp;&amp; a &#x3c;R&eacute;sumé!&#x3E;</em> Decoded: <em>I've "a" <a href=3D"bio.html">"Bio"</a> && a <Résumé!></em> Note that in the original, we have a character (e with an acute accent) that we want to have encoded. We want to preserve the < and >, but we don't want the < to become <, or the > to become >. Anyway, if you can, please follow the code and let me know any problems y= ou have with our methods here. I realize I might not be very clear; it's be= en a long day. Let me know if I can clarify anything for you. Thanks, --Chris #!/usr/bin/perl -wl use strict; use XML::RSS; # includes XML::Parser::Expat my $text =3D <<EOT; <em>I've "a" <a href=3D"bio.html">"Bio"</a> && a <Résum=E9!></em> EOT sub encode_text { my($text) =3D @_; # if there is an & that is not part of an entity, convert it # to & $text =3D~ s/&(?!#?[a-zA-Z0-9]+;)/&/g; # convert & < > to XML entities $text =3D XML::Parser::Expat->xml_escape($text, ">"); # convert ASCII-non-printable to numeric entities $text =3D~ s/([^\s\040-\176])/ "&#" . ord($1) . ";" /ge; return $text; } { # for all following chars but &, convert entities back to # the actual character # for &, convert & back to &, but only if it is the # beginning of an entity (like "&#32;") # precompile these so we only do it once my %e =3D qw(< lt > gt " quot ' apos & amp); for my $chr (keys %e) { my $word =3D $e{$chr}; my $ord =3D ord $chr; my $hex =3D sprintf "%x", $ord; $hex =3D~ s/([a-f])/[$1\U$1]/g; my $regex =3D qq/&(?:$word|#$ord|#[xX]$hex);/; $regex .=3D qq/(?=3D#?[a-zA-Z0-9]+;)/ if $chr eq "&"; $e{$chr} =3D qr/$regex/; } sub decode_text { my($text) =3D @_; # do & only _after_ the others for my $chr ( (grep !/^&$/, keys %e), "&") { $text =3D~ s/$e{$chr}/$chr/g; } return $text; } } print $text; print $text =3D encode_text($text); print $text =3D decode_text($text); __END__ --=20 Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
From: Chris N. <pu...@po...> - 2001-01-31 13:45:21
|
At 05:36 -0800 01.31.2001, CertIndex.com Webmaster wrote: >i grab a clean cvs copy of bender >i go into ~/slashcvs/slash >do a make && make install > >get error: > ># this needs to be made platform independent >install utils/slashd /etc/rc.d/init.d/ >install: cannot create regular file `/etc/rc.d/init.d/': No such file or >directory >make: *** [install] Error 1 Yes, this is mentioned in INSTALL. You need to do "make install PREFIX=/etc" (or whatever is appropriate for your platform). It might be useful to put a list of possible PREFIX values in INSTALL for specific platforms; if someone wants to provide a list (even a partial one), we can consider including it. -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |
From: CertIndex.com W. <web...@ce...> - 2001-01-31 13:34:21
|
i grab a clean cvs copy of bender i go into ~/slashcvs/slash do a make && make install get error: # this needs to be made platform independent install utils/slashd /etc/rc.d/init.d/ install: cannot create regular file `/etc/rc.d/init.d/': No such file or directory make: *** [install] Error 1 mysql on linux. if you need more info let me know. |
From: Chris N. <pu...@os...> - 2001-01-30 21:15:09
|
If you need to submit a bug to SF, make sure you select a category for each popup. If you don't, it will fail. This is a bug that will be fixed soon (although, now that I think about it, I kinda like it :). -- Chris Nandor pu...@po... http://pudge.net/ Open Source Development Network pu...@os... http://osdn.com/ |