Hi,
It would be convenient to have an htmlentities like function in Pike
(http://fr.php.net/htmlentities). Having this in Pike would benefit to more
poeple than having it in webservers like Caudium or Roxen.
Maybe we can start with a simple thing like this:
string htmlentities(string content)
{
string res = "";
for(int i = 0; i < sizeof(content); i++)
{
if(content[i] > 127)
res += sprintf("&#x%x;", content[i]);
else
res += content[i..i];
}
return res;
}
Any ideas ?
--
David Gourdelier
2
1
autocrop
by Martin Nilsson (ja till euro, nej till cent) @ Pike (-) developers forum
23 Jul '03
23 Jul '03
Shouldn't this code either produce a red box or a red box with black
border on three sides and green border on one side?
Tools.PV( Image.Image(80,80,0,0,0)->box(10,10,70,70,255,0,0)->box(70,0,80,80,0,255,0)->autocrop() );
3
6
NT-pike
by Martin Nilsson (ja till euro, nej till cent) @ Pike (-) developers forum
22 Jul '03
22 Jul '03
I just tried to build Pike in cygwin, but I got the following error:
/cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0xab): In function `MEMORY_FREE':
/cygdrive/d/Pike7.5-20030719-132322/src/modules/system/memory.c:130: undefined reference to `shmdt'
/cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0x343): In function `memory_shm':
/cygdrive/d/Pike7.5-20030719-132322/src/modules/system/memory.c:226: undefined reference to `shmget'
/cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0x38d):/cygdrive/d/Pike7.5-20030719-132322
/src/modules/system/memory.c:240: undefined reference to `shmat'
collect2: ld returned 1 exit status
Is there a configure test missing?
3
8
Pike_error
by Martin Nilsson (ja till euro, nej till cent) @ Pike (-) developers forum
22 Jul '03
22 Jul '03
It looks like something in Pike_error is broken, or is it an intentional
alteration that doesn't work this early in the boot process?
[nilsson@m222]$ pike70 -mx
No error recovery context!
Couldn't load master program. (x)
[nilsson@m222]$ pike72 -mx
No error recovery context!
Couldn't load master program. (x)
[nilsson@m222]$ pike74 -mx
[nilsson@m222]$ pike75 -mx
[nilsson@m222]$
hi,
i am excited to report that our booth at the linuxtag was a great success!
we had over 100 visitors to our booth asking for details about sTeam,
pike or caudium.
i want to thank you for your support
for translating, making and printing handouts and posters, providing
hardware, staffing the booth, guarding our machines, feeding the booth
staff.
we had an excellent location near the entrance of the hall, with one
hallway leading directly at us.
some photos are here: http://steam.upb.de:8080/linuxtag/
johan, xavier,
could you make news items for the pike and caudium sites please?
greetings, martin.
--
Pike Conference 2003 - Sep 25-27 - http://pike.ida.liu.se/conferences/2003/
--
interested in doing pike programming, sTeam/caudium/pike/roxen training,
sTeam/caudium/roxen and/or unix system administration anywhere in the world.
--
pike programmer working in europe open-steam.org
unix system- bahai.or.at iaeste.(tuwien.ac|or).at
administrator (stuts|black.linux-m68k).org is.(schon.org|root.at)
Martin Bähr http://www.iaeste.or.at/~mbaehr/
2
1
LIBGCC
by Martin Stjernholm, Roxen IS @ Pike developers forum
10 Jul '03
10 Jul '03
After upgrading gcc, I could no longer compile C modules with my
installed Pike. It turns out that dynamic_module_makefile contains
LIBGCC=/usr/lib/gcc-lib/i386-linux/3.3/libgcc.a
Using absolute paths from the build system is unfortunate. Can it be
avoided?
1
0
gnome.h
by Mirar @ Pike developers forum
07 Jul '03
07 Jul '03
My pike doesn't compile, it dies needing gnome.h:
| Compiling pgtk.c
|
| cc1: Cannot allocate 73664800 bytes after allocating 10441760 bytes
| WARNING: Compiler failure! Trying without optimization!
| cc1: warning: -Wuninitialized is not supported without -O
| In file included from pgtk.c:2:
| /home/mirar/pike/src/post_modules/GTK/pgtk.h:36:20: gnome.h: No such file or directory
| /home/mirar/pike/src/post_modules/GTK/pgtk.h:37:31: libgnorba/gnorba.h: No such file or directory
| [hundreds of lines of errors]
| pgtk.c:8617: parse error before '*' token
| Compilation command was:
| /home/mirar/pike/bumpy/smartlink gcc -I. -I/home/mirar/pike/src/post_modules/GTK -I/home/mirar/pike/bumpy -I/home/mirar/pike/src -I/usr/X11R6/include -DHAVE_CONFIG_H -I/usr/X11R6/include -W -Wall -Wno-unused -Wcomment -Wformat -Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long -c pgtk.c -o pgtk.o
| make[4]: *** [pgtk.o] Error 1
| make[4]: Leaving directory `/home/mirar/pike/bumpy/post_modules/GTK'
| make[3]: *** [compile1] Error 2
| make[3]: Leaving directory `/home/mirar/pike/bumpy/post_modules/GTK'
| make[2]: *** [GTK] Error 1
| make[2]: Leaving directory `/home/mirar/pike/bumpy/post_modules'
| make[1]: *** [post_module_objects] Error 2
| make[1]: Leaving directory `/home/mirar/pike/bumpy'
| make: *** [all] Error 2
Is there a difference between the include options for opimized and
non-optimized, perhaps?