Archive for September, 2009

Kayako API extension: CreateUser, UpdatePassword, DeleteUser

Wednesday, September 16th, 2009

I’ve played with the nice and clear Craig Brass Kayako API, and added some extensions to allow the following remote functions:

CreateUser, UpdatePassword, DeleteUser

get the patch from here: http://interhost.co.il/api.class.patch
installation: patch -p0 < api.class.patch

and also apply this patch:

http://interhost.co.il/wsdl.patch
install:
patch -p0 < wsdl.patch
location: integrationapi/lib

and I also extended the example (api client), get it from here:
http://www.interhost…ako.api.php.txt

usage example:

http://api.caller.com/kayako.api.php?cmd=updateEmailAddress&oldEmail=old@email.com&newEmail=new@email.com&api_password=cleartext

interface: GET/POST
usage: kayako.api.php?cmd=<command>..args..&api_password=<api_password>
Availble commands:
cmd=updateEmailAddress
a1=oldEmail
a2=newEmail

cmd=changePassword
a1=email
a2=newpassword

cmd=deleteUser
a1=email

cmd=registerUser
a1=email
a2=userpassword
a3=fullname

any comments will be appriciated.
p.s its a proof of concept example, use on your own responsibility only.

thanks

lighttpd burst aka “faststart” patch

Tuesday, September 1st, 2009

I’ve created this patch for Lighttpd 1.4.19 (tested and compiled on Debian Lenny amd64). This patch adds configuration option:

‘connection.burst’

You should use it only with:

‘connection.kbytes-per-second’ setting.

Example:
connection.kbytes-per-second = 100
connection.burst        = 50

In this example user will get 50 seconds fast-start and will be throttled down to 100KBp/s after fast start “burst” download of first 50sec.

It’s very useful for letting fast speed for downloading small files or for usage for FLV streaming when you like to give fast buffer burst speed and then throttle down.

I wrote this patch after looked long time in Google and had unfortune expirience with LARTC ‘s tools.

I hope this will be useful for you, for any comments, questions or bugs please write me a note.

Download:

http://www.debian.co.il/2009/09/lighttpd-burst-aka-faststart-patch/lighttpd-1419-burst/

Installation on Debian:

cd /usr/local/src/

apt-get source lighttpd

cd lighttpd-1.4.19

wget http://www.debian.co.il/wp-content/uploads/2009/09/lighttpd-1419-burst.patch

patch -p0 < lighttpd-1419-burst.patch

now compile and configure:

./configure

make

make install