has_index()
by Peter Lundqvist (disjunkt) @ Pike (-) developers forum
05 Aug '03
05 Aug '03
Just now on IRC I got a question on has_index() and multisets.
It turns out (in various pike versions) that
Pike v7.4 release 11 running Hilfe v3.5 (Incremental Pike Frontend)
> mixed m= (<"foo","bar">);
> m["foo"];
(1) Result: 1
> has_index(m,"foo");
(2) Result: 0
> search(indices(m),"foo");
(3) Result: 1
>
wich is not consistent with the documentation, right?
2
4
Protocols.IMAP
by Peter Bortas (med ny klient) @ Pike (-) developers forum
04 Aug '03
04 Aug '03
Protocols.IMAP is totally without documentation. Is there a client
part and where do I start unraveling it?
7
8
Nettle
by Martin Nilsson (ja till euro, nej till cent) @ Pike (-) developers forum
03 Aug '03
03 Aug '03
I've been poking a bit with Nettle and the Crypto module and have made a
few advancements. I could use some help though, to have the transition
from Pikes crypto lib to nettle done as soon as possible. Things left to
do is
- Implementing MD4 in Nettle. I made one attempt, but it needs a
review.
- Implementing MD2 in Nettle.
- Adding MD2 glue to Pike.
- Adding Arcfour glue to Pike.
- Adding DES glue to Pike.
- Adding DES3 glue to Pike.
- Adding Blowfish glue to Pike.
All of those are fairly straight forward. The following are a bit more
complicated.
- Decide if we should use a Pike implementation of HMAC or use the
Nettle one (and if so write a glue).
- Make a glue to the Yarrow random code.
- Figure out how to make cbc mode crypto (as now?)
- Decide what to do with Crypto.pipe. (Implement in Pike?)
- Create compatibility functions that doesn't need the Pike C crypto
lib.
- Create a testsuite that tests both the new Crypto stuff and the old.
1
0
/tmp/mysql.sock
by edde (nu med b�ge!!!) @ Pike (-) developers forum
03 Aug '03
03 Aug '03
Det där är något som jag poängterat i 2-3 år nu... Har visst något att
göra med byggsystemet på Roxen.
Vill du ha en bättre lösning än en symlänk i /tmp så kolla min sajt
www.nutshell.nu där det finns en del tips.
/ edde (nu med båge!!!)
Previous text:
>2003-08-02 13:45:
>Subject: /tmp/mysql.sock
>--------------------------------------------------------------------
>Önskemål:
>
>RH-paketet av Roxen (dvs dess Pike?) borde som default leta efter
>/var/lib/mysql/mysql.sock i stället för /tmp/mysql.sock.
>
>Jag sköt mig just själv i foten när jag skapade en symlänk från
>/var/lib/mysql/mysql.sock till /tmp/mysql.sock som tmpwatch raderade
>några dagar senare.
>
> / Hedda (Det är enklare med euro!)
>
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]$