<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Debian Israel Mirror &#187; how-to</title>
	<atom:link href="http://www.debian.co.il/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debian.co.il</link>
	<description>Public Unique Israeli Debian Archive</description>
	<lastBuildDate>Sat, 29 Oct 2011 07:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Kayako API extension:  CreateUser, UpdatePassword, DeleteUser</title>
		<link>http://www.debian.co.il/2009/09/kayako-api-extension-createuser-updatepassword-deleteuser/</link>
		<comments>http://www.debian.co.il/2009/09/kayako-api-extension-createuser-updatepassword-deleteuser/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 06:27:01 +0000</pubDate>
		<dc:creator>MadDog</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[kayako]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.debian.co.il/?p=92</guid>
		<description><![CDATA[I&#8217;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 &#60; api.class.patch and also apply this patch: http://interhost.co.il/wsdl.patch install: patch -p0 &#60; wsdl.patch location: integrationapi/lib and I also extended the example (api [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve played with the nice and clear<a href="http://www.craigbrasssystems.com/forum/forum/63-integration-api/"> Craig Brass Kayako API</a>, and added some extensions to allow the following remote functions:</p>
<p>CreateUser, UpdatePassword, DeleteUser</p>
<p>get the patch from here: <a title="External link" rel="nofollow" href="http://interhost.co.il/api.class.patch">http://interhost.co.il/api.class.patch</a><br />
installation: patch -p0 &lt; api.class.patch</p>
<p>and also apply this patch:</p>
<p><a title="External link" rel="nofollow" href="http://interhost.co.il/wsdl.patch">http://interhost.co.il/wsdl.patch</a><br />
install:<br />
patch -p0 &lt; wsdl.patch<br />
location: integrationapi/lib</p>
<p>and I also extended the example (api client), get it from here:<br />
<a title="External link" rel="nofollow" href="http://www.interhost.co.il/kayako.api.php.txt">http://www.interhost&#8230;ako.api.php.txt</a></p>
<p>usage example:</p>
<pre><span>http</span><span>:</span><span>//api.caller.com/kayako.api.php?cmd=updateEmailAddress&amp;oldEmail=old@email.com&amp;newEmail=new@email.com&amp;api_password=cleartext</span></pre>
<p>interface: GET/POST<br />
usage: kayako.api.php?cmd=&lt;command&gt;..args..&amp;api_password=&lt;api_password&gt;<br />
Availble commands:<br />
cmd=updateEmailAddress<br />
a1=oldEmail<br />
a2=newEmail</p>
<p>cmd=changePassword<br />
a1=email<br />
a2=newpassword</p>
<p>cmd=deleteUser<br />
a1=email</p>
<p>cmd=registerUser<br />
a1=email<br />
a2=userpassword<br />
a3=fullname</p>
<p>any comments will be appriciated.<br />
p.s its a proof of concept example, use on your own responsibility only.</p>
<p>thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debian.co.il/2009/09/kayako-api-extension-createuser-updatepassword-deleteuser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php gtk application example</title>
		<link>http://www.debian.co.il/2008/04/php-gtk-application-example/</link>
		<comments>http://www.debian.co.il/2008/04/php-gtk-application-example/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 10:06:01 +0000</pubDate>
		<dc:creator>MadDog</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.debian.co.il/?p=37</guid>
		<description><![CDATA[Have you heard about PHP GTK? You can create GUI php application which can run on every operation system on which php-gtk is installed (Windows, Linux, MacOS). The programming part is very simple, php-gtk provides you easy intuitive classes to work with. Here is a short fast example for simple password generator  which I created [...]]]></description>
			<content:encoded><![CDATA[<p>Have you heard about PHP GTK? You can create GUI php application which can run on every operation system on which php-gtk is installed (Windows, Linux, MacOS).</p>
<p>The programming part is very simple, php-gtk provides you easy intuitive classes to work with.</p>
<p>Here is a short fast example for simple password generator  which I created using php-gtk examples:</p>
<p align="justify"> &lt;?php</p>
<pre>if (!class_exists('gtk')) {</pre>
<pre>die("Please load the php-gtk2 module in your php.ini\r\n");</pre>
<pre>}</pre>
<pre> </pre>
<pre>$wnd = new GtkWindow();</pre>
<pre>$wnd-&gt;set_title('random pass');</pre>
<pre>$wnd-&gt;connect_simple('destroy', array('gtk', 'main_quit'));</pre>
<pre> </pre>
<pre>$txtPassword = new GtkEntry();</pre>
<pre> </pre>
<pre>$tbl = new GtkTable(3, 2);</pre>
<pre>$tbl-&gt;attach($txtPassword, 1, 2, 2, 3);</pre>
<pre> </pre>
<pre>$btnGen = new GtkButton('_Generate');</pre>
<pre>$btnGen-&gt;connect_simple('clicked', 'generate', $txtPassword);</pre>
<pre> </pre>
<pre>$bbox = new GtkHButtonBox();</pre>
<pre>$bbox-&gt;set_layout(Gtk::BUTTONBOX_EDGE);</pre>
<pre>$bbox-&gt;add($btnGen);</pre>
<pre> </pre>
<pre>$vbox = new GtkVBox();</pre>
<pre>$vbox-&gt;pack_start($tbl);</pre>
<pre>$vbox-&gt;pack_start($bbox);</pre>
<pre> </pre>
<pre>$wnd-&gt;add($vbox);</pre>
<pre>$wnd-&gt;show_all();</pre>
<pre>Gtk::main();</pre>
<pre> </pre>
<pre>function generate(GtkEntry $txtPassword)</pre>
<pre>{</pre>
<pre>$chars = "abcdefghijkmnopqrstuvwxyz023456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";</pre>
<pre>srand((double)microtime()*1000000);</pre>
<pre>$i = 0;</pre>
<pre>$pass = '' ;</pre>
<pre>while ($i &lt;= 7) {</pre>
<pre>$num = rand() % 56;</pre>
<pre>$tmp = substr($chars, $num, 1);</pre>
<pre>$pass = $pass . $tmp;</pre>
<pre>$i++;</pre>
<pre>}</pre>
<pre>$random=$pass;</pre>
<pre>$txtPassword-&gt;set_text($random);</pre>
<pre>}</pre>
<pre>?&gt;</pre>
<p> </p>
<p> <span style="color: #000000;">Running this: D:\php-gtk\php-gtk2&gt;php myproj/random_pass_gtk.php</span></p>
<p> <img src="http://www.debian.co.il/wp-content/uploads/image/rp_php-gtk.jpg" alt="" width="257" height="127" /></p>
<p align="left"> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.debian.co.il/2008/04/php-gtk-application-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

