<?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>TalkWeb</title>
	<atom:link href="http://talkweb.eu/feed" rel="self" type="application/rss+xml" />
	<link>http://talkweb.eu</link>
	<description>A blog about Open Web</description>
	<lastBuildDate>Fri, 27 Aug 2010 15:49:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Our new community website is ready</title>
		<link>http://talkweb.eu/openweb/363</link>
		<comments>http://talkweb.eu/openweb/363#comments</comments>
		<pubDate>Fri, 27 Aug 2010 15:43:47 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Community Management]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Mozilla in Bulgaria]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=363</guid>
		<description><![CDATA[We have a new community site. It is based on Wordpress 3.0.1 and Budypress. What are the features:
1. We have community. Anyone can:
- register;
- share information to the website activity wall;
- write to his/her own blog;
- join groups by topic (SUMO, Thunderbird, Firefox, L10n, Development and others);
- join and create events;
- read the information from [...]]]></description>
			<content:encoded><![CDATA[<p>We have a <a href="http://bgzilla.org">new community site.</a> It is based on Wordpress 3.0.1 and Budypress. What are the features:</p>
<p>1. We have community. Anyone can:<br />
- register;<br />
- share information to the website activity wall;<br />
- write to his/her own blog;<br />
- join groups by topic (SUMO, Thunderbird, Firefox, L10n, Development and others);<br />
- join and create events;<br />
- read the information from other members;<br />
- use the usable control panel to manage an account and to connect with other mozillians.</p>
<p>2. We have a cute and simple design:<br />
<a href="http://talkweb.eu/wp-content/uploads/2010/08/bgzilla.png"><img src="http://talkweb.eu/wp-content/uploads/2010/08/bgzilla-1024x469.png" alt="" title="bgzilla" width="550" class="alignnone size-large wp-image-364" /></a></p>
<p>3. We are ready to extend with web 2.0 services like twitter and other (no Facebook sorry);<br />
4. The platform (Wordpress and Budypress) is very easy to install and run a community website. If you want we can help you to create a Mozilla community website. We will do it together, just send us a note (and a beer).</p>
<p>The champagne will be open on your next community meeting.  We have some improvements in our roadmap. </p>
<p><strong><br />
Help needed</strong><br />
We are searching for a good <a href="http://support.mozilla.com">SUMO</a> forum for our community. Any suggestions? </p>
<p><strong>Idea</strong><br />
It will be very cool if we have a global Mozilla network, not only hundreds of community sites. Something like a profile in a server with OpenID or Oauth support. I would like to use our website like an interface to this service only and to be able to connect with a lot of mozillians, not only registered in my country.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/363/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick short URL PHP function</title>
		<link>http://talkweb.eu/openweb/358</link>
		<comments>http://talkweb.eu/openweb/358#comments</comments>
		<pubDate>Fri, 27 Aug 2010 11:03:04 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Short url]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=358</guid>
		<description><![CDATA[
1
2
3
4
5
function shortURL&#40;$long&#41;
&#123;
 $short=file_get_contents&#40;&#34;http://is.gd/api.php?longurl=&#34;.$long&#41;;
 return $short;
&#125;

Usage:

1
2
$short = shortURL&#40;&#34;http://veryveryveryverylongurl.tld/something/verylong.php&#34;&#41;;
echo $short;

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> shortURL<span style="color: #009900;">&#40;</span><span style="color: #000088;">$long</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
 <span style="color: #000088;">$short</span><span style="color: #339933;">=</span><span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://is.gd/api.php?longurl=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$long</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">return</span> <span style="color: #000088;">$short</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Usage:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$short</span> <span style="color: #339933;">=</span> shortURL<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://veryveryveryverylongurl.tld/something/verylong.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$short</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/358/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Posting to Facebook fan page wall as an admin using Facebook API</title>
		<link>http://talkweb.eu/openweb/351</link>
		<comments>http://talkweb.eu/openweb/351#comments</comments>
		<pubDate>Tue, 17 Aug 2010 09:58:56 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Closed Technologies]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=351</guid>
		<description><![CDATA[I know,  I know. This is a blog about Open Technologies and Open Web and  I am writing about Facebook. Shame on me 
It&#8217;s a little bit tricky and I&#8217;ve lost 3 hours to resolve it and that&#8217;s the reason to post it here
Here is the solution.:
1. If you are reading this, probably [...]]]></description>
			<content:encoded><![CDATA[<p>I know,  I know. This is a blog about Open Technologies and Open Web and  I am writing about Facebook. Shame on me <img src='http://talkweb.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
It&#8217;s a little bit tricky and I&#8217;ve lost 3 hours to resolve it and that&#8217;s the reason to post it here</p>
<p><strong>Here is the solution.</strong>:</p>
<p><strong>1</strong>. If you are reading this, probably you have Application setup-ed already in Facebook;<br />
<strong>2</strong>. Add your application to your Page;<br />
<strong>3</strong>. Run this link in your <strong>Browser</strong>. Please replace ~URL~  with your connect URL (Facebook Application dialog) and ~APPID~ with your application ID</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">https<span style="color: #339933;">:</span><span style="color: #006600; font-style: italic;">//graph.facebook.com/oauth/authorize?type=user_agent&amp;client_id=~APPID~&amp;redirect_uri=~URL~&amp;scope=publish_stream,offline_access,manage_pages</span></pre></div></div>

<p><strong>4</strong>. This URL will return to you a URL parameter access_token.<br />
<strong>5</strong>. Save the token somewhere;<br />
<strong>6</strong>. Load This URL. Replace ~TOKEN~ with the token received from Facebook at point 4.;</p>
<pre>https://graph.facebook.com/me/accounts?access_token=~TOKEN~</pre>
<p><strong>7</strong>. As a result you will get the json with all your pages and all access tokens. Save them somewhere;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#123;</span>
         <span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Electronic Frontier Bulgaria&quot;</span><span style="color: #339933;">,</span>
         <span style="color: #3366CC;">&quot;category&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;Websites&quot;</span><span style="color: #339933;">,</span>
         <span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;29469045921&quot;</span><span style="color: #339933;">,</span>
         <span style="color: #3366CC;">&quot;access_token&quot;</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;some secret string.&quot;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></pre></div></div>

<p><strong>8</strong>. Use FB js SDK to update your page. Replace ~PAGE_AUTH~ with access_token from the previous point. (some secret string)</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> wallPost <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
    access_token<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;~PAGE_AUTH~&quot;</span><span style="color: #339933;">,</span>
    message<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Talkweb.eu is the best :)'</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
FB.<span style="color: #660066;">api</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'/me/feed'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'post'</span><span style="color: #339933;">,</span> wallPost<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>response<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>response <span style="color: #339933;">||</span> response.<span style="color: #660066;">error</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Error occurred'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Success!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>9</strong>. Check the page to see the result;<br />
<strong>10</strong>. Bye me a beer or hire me <img src='http://talkweb.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you have any questions, please let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/351/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vTiger SOAP bridge from Wordpress and Imap server</title>
		<link>http://talkweb.eu/openweb/341</link>
		<comments>http://talkweb.eu/openweb/341#comments</comments>
		<pubDate>Tue, 03 Aug 2010 12:00:36 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[Imap]]></category>
		<category><![CDATA[Leads]]></category>
		<category><![CDATA[SOAP]]></category>
		<category><![CDATA[vTiger]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=341</guid>
		<description><![CDATA[In my last project I have to make to work together a vTiger instalation, a Wordpress form and an Imap account. The best decision was to create 2 SOAP services to handle 2 requests:

Show me the code
1. Setup the webforms.php. The good thing is &#8211; you can use this SOAP service to fill ALL of [...]]]></description>
			<content:encoded><![CDATA[<p>In my last project I have to make to work together a vTiger instalation, a Wordpress form and an Imap account. The best decision was to create 2 SOAP services to handle 2 requests:</p>
<p><a href="http://talkweb.eu/wp-content/uploads/2010/08/vtiger1.png"><img src="http://talkweb.eu/wp-content/uploads/2010/08/vtiger1-300x99.png" alt="" title="vtiger1" width="300" height="99" class="alignnone size-medium wp-image-342" /></a></p>
<p><strong>Show me the code</strong><br />
1. Setup the webforms.php. The good thing is &#8211; you can use this SOAP service to fill ALL of your custom fields:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;config.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include/logging.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include/nusoap/nusoap.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$NAMESPACE</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://www.vtiger.com/vtigercrm/'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$server</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> soap_server<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// declare all of your data here. Including all of your custom fields.</span>
<span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configureWSDL</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'vtigersoap'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$server</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">register</span><span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'create_newlead'</span><span style="color: #339933;">,</span>
	<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>	<span style="color: #0000ff;">'firstname'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'lastname'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'email'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'phone'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>              
                <span style="color: #0000ff;">'lp'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'tr'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'tp'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'ch'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'assigned_user_id'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'cs'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'pt'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'occ'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'pv'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'la'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'terms'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'dr'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #339933;">,</span>
                <span style="color: #0000ff;">'ratealert'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'xsd:string'</span>
	     <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'return'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'xsd:string'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #000088;">$NAMESPACE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>1.1 Write a simple function to handle the requests and to save your vTiger LEAD.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// you have to give as arguments the same fields you declared previously</span>
<span style="color: #000000; font-weight: bold;">function</span> create_newlead<span style="color: #009900;">&#40;</span><span style="color: #000088;">$firstname</span><span style="color: #339933;">,</span> <span style="color: #000088;">$lastname</span><span style="color: #339933;">,</span> <span style="color: #000088;">$email</span><span style="color: #339933;">,</span> <span style="color: #000088;">$phone</span><span style="color: #339933;">,</span> <span style="color: #000088;">$lp</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tr</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tp</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> <span style="color: #000088;">$assigned_user_id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$cs</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pt</span><span style="color: #339933;">,</span> <span style="color: #000088;">$occ</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pv</span><span style="color: #339933;">,</span> <span style="color: #000088;">$la</span><span style="color: #339933;">,</span> <span style="color: #000088;">$terms</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dr</span><span style="color: #339933;">,</span><span style="color: #000088;">$ratealert</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;modules/Leads/Leads.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Leads<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'firstname'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$firstname</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lastname'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$lastname</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$email</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'phone'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$phone</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//here are my custom fields</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_541'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$lp</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_542'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$cs</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_544'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$occ</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_545'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pv</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'assigned_user_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//admin</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_546'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pt</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_547'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$terms</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_548'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$la</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_549'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tr</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_550'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$tp</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_551'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$ch</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">column_fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cf_552'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$dr</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Leads&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$focus</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$msg</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;OK&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">else</span>
		<span style="color: #000088;">$msg</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Error&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$msg</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>2. Upload the code to &#8217;soap&#8217; folder of your vTiger app.<br />
3. Call the method from somwhere.</p>
<p><strong>Important</strong><br />
<strong>If you have any questions or want to hire me for your Wordpress project, please see the information in the right sidebar.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/341/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sending SMS messages via Twilio Rest API</title>
		<link>http://talkweb.eu/openweb/338</link>
		<comments>http://talkweb.eu/openweb/338#comments</comments>
		<pubDate>Fri, 30 Jul 2010 12:10:19 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[Twilio]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=338</guid>
		<description><![CDATA[I am looking at Twilio API right now for a project and I am surprised how easy is to handle voice and SMS messages. Here is an example, written by me:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
&#60;?php
//get this from twillio website
require &#34;twilio.php&#34;;
&#160;
class Twillio_SMS
&#123;
	var $ApiVersion;
	var $AccountSid;
	var $AuthToken;
	var $smsServer;
&#160;
  function __construct&#40;&#41;
&#123;
	$this-&#62;ApiVersion = &#34;2008-08-01&#34;;
	$this-&#62;AccountSid = &#34;Axxxxxxxxxxxxxxxxxxxx&#34;; //get your own after trial registration on [...]]]></description>
			<content:encoded><![CDATA[<p>I am looking at Twilio API right now for a project and I am surprised how easy is to handle voice and SMS messages. Here is an example, written by me:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//get this from twillio website</span>
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">&quot;twilio.php&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Twillio_SMS
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$ApiVersion</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$AccountSid</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$AuthToken</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$smsServer</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ApiVersion</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;2008-08-01&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AccountSid</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Axxxxxxxxxxxxxxxxxxxx&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//get your own after trial registration on Twilio.com</span>
	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AuthToken</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;axxxxxxxxxxxxxxxxxxxxx&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">smsServer</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> TwilioRestClient<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AccountSid</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AuthToken</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> sendSMS<span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #339933;">,</span> <span style="color: #000088;">$from</span><span style="color: #339933;">,</span> <span style="color: #000088;">$whattosend</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">smsServer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">request</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/<span style="color: #006699; font-weight: bold;">$this-&gt;ApiVersion</span>/Accounts/<span style="color: #006699; font-weight: bold;">$this-&gt;AccountSid</span>/SMS/Messages&quot;</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">&quot;POST&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			<span style="color: #0000ff;">&quot;To&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$to</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">&quot;From&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$from</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">&quot;Body&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$whattosend</span>
		<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$response</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">IsError</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Error: <span style="color: #006699; font-weight: bold;">{$response-&gt;ErrorMessage}</span>&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">else</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Done&quot;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> __destruct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ApiVersion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AccountSid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AuthToken</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000088;">$s</span><span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Twillio_SMS<span style="color: #339933;">;</span>
<span style="color: #000088;">$s</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sendSMS</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'4155992671'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'4155992671'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'this is a test'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><strong>GitHub</strong><br />
If you are interested in this topic, or if you have some ideas, please join me at <a href="http://github.com/bogomil/Code-samples/">my test repo @ Github</a></p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/338/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Word Cloud during the keynotes (#moz10)</title>
		<link>http://talkweb.eu/openweb/334</link>
		<comments>http://talkweb.eu/openweb/334#comments</comments>
		<pubDate>Wed, 07 Jul 2010 18:11:07 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Mashup]]></category>
		<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=334</guid>
		<description><![CDATA[
#moz10
]]></description>
			<content:encoded><![CDATA[<p><a href="http://talkweb.eu/wp-content/uploads/2010/07/wordcloud-keynotes.png"><img class="alignnone size-medium wp-image-335" title="wordcloud-keynotes" src="http://talkweb.eu/wp-content/uploads/2010/07/wordcloud-keynotes-300x185.png" alt="" width="300" height="185" /></a></p>
<p>#moz10</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/334/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hup Holaaaaaaaaaaaaaaaand HUP !</title>
		<link>http://talkweb.eu/openweb/328</link>
		<comments>http://talkweb.eu/openweb/328#comments</comments>
		<pubDate>Fri, 02 Jul 2010 16:04:45 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=328</guid>
		<description><![CDATA[
Wilhelmus van Nassouwe
Ben ik van Duitsen bloed,
Den vaderland getrouwe
Blijf ik tot in den dood.
Een Prinse van Oranje
Ben ik, vrij onverveerd,
Den Koning van Hispanje
Heb ik altijd geлerd.

Hup Holland Hup!
Hup Holland hup
Laat de leeuw niet in zijn hempie staan
Hup Holland hup
Trek het beestje geen pantoffels aan
Hup Holland hup
Laat je uit het veld niet slaan
Want de leeuw op [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://sphotos.ak.fbcdn.net/photos-ak-sf2p/v282/101/3/764878697/n764878697_1011929_2636.jpg" alt="" width="550"/></p>
<p>Wilhelmus van Nassouwe<br />
Ben ik van Duitsen bloed,<br />
Den vaderland getrouwe<br />
Blijf ik tot in den dood.<br />
Een Prinse van Oranje<br />
Ben ik, vrij onverveerd,<br />
Den Koning van Hispanje<br />
Heb ik altijd geлerd.</p>
<p><img src="http://www.vadimuspost.com/wp-content/themes/mimbo2.2/images//holland-fans-full.JPG" alt="hup" /><br />
<strong>Hup Holland Hup!</strong><br />
Hup Holland hup<br />
Laat de leeuw niet in zijn hempie staan<br />
Hup Holland hup<br />
Trek het beestje geen pantoffels aan<br />
Hup Holland hup<br />
Laat je uit het veld niet slaan<br />
Want de leeuw op voetbalschoenen<br />
Durft de hele wereld aan.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/328/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CaCert assurance party @ MozSummit 2010</title>
		<link>http://talkweb.eu/openweb/326</link>
		<comments>http://talkweb.eu/openweb/326#comments</comments>
		<pubDate>Thu, 01 Jul 2010 12:00:49 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Mozilla]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=326</guid>
		<description><![CDATA[What is Cacert?
CAcert.org is a community-driven certificate authority that issues free public key certificates to the public. CAcert has nearly 150,000 verified users and has issued over 548,000 certificates as of January 2010
These certificates can be used to sign and encrypt email, authenticate and authorize users connecting to websites and secure data transmission over the [...]]]></description>
			<content:encoded><![CDATA[<h2>What is Cacert?</h2>
<p><strong>CAcert.org</strong> is a <strong>community-driven certificate authority</strong> that issues free public key certificates to the public. CAcert has nearly <em>150,000 verified</em> users and has issued over<em> 548,000 certificates</em> as of January 2010</p>
<p>These certificates can be used to<strong> sign and encrypt email, authenticate and authorize users connecting to websites and secure data transmission over the Internet.</strong> Any application that supports the Secure Socket Layer (SSL) can make use of certificates signed by CAcert, as can any application that uses X.509 certificates, e.g. for encryption or code signing and document signatures.</p>
<h2>How</h2>
<p>To create higher-trust certificates, users can participate in a web of trust system whereby users physically meet and verify each other&#8217;s identities. CAcert maintains the number of assurance points  for each account. Assurance points can be gained through various means, primarily by having one&#8217;s identity physically verified by users classified as <strong>&#8220;Assurers&#8221;</strong>.</p>
<h2>Party</h2>
<p>If you want to join this web of trust, <em>bring your passport and one more id</em>, <a href="https://www.cacert.org/index.php?id=1">join the website</a>, <a href="https://www.cacert.org/cap.php">print THIS form</a> and come and <a href="http://perso.hirlimann.net/~ludo/blog/archives/2010/07/cacert-signing-party-at-the-mozilla-summ.html">let&#8217;s Rock</a>.</p>
<h2>Mozilla and Cacert</h2>
<p>What&#8217;s up with Mozilla and Cacert? See this <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=215243">bug in Bugzilla</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/326/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WRT: How to post to your Wordpress using Ajax (+code)</title>
		<link>http://talkweb.eu/openweb/299</link>
		<comments>http://talkweb.eu/openweb/299#comments</comments>
		<pubDate>Thu, 01 Jul 2010 08:28:39 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[nokia.ajax]]></category>
		<category><![CDATA[symbian]]></category>
		<category><![CDATA[wgz]]></category>
		<category><![CDATA[wordpress. metablog]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=299</guid>
		<description><![CDATA[I just finished my &#8220;share2&#8243; WRT (Web Runtime Toolkit) widget. It allows me to post quick messages to my WordpPress blog or to any blog that uses MetaWeblog API.
Here are some key parts from the script:
Ajax function that sends the requests and gets the result

function ajExec&#40;url, param, callback, isXML&#41; &#123;
    var req [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished my &#8220;share2&#8243; WRT (Web Runtime Toolkit) widget. It allows me to post quick messages to my WordpPress blog or to any blog that uses MetaWeblog API.</p>
<p>Here are some key parts from the script:</p>
<h2>Ajax function that sends the requests and gets the result</h2>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> ajExec<span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span> param<span style="color: #339933;">,</span> callback<span style="color: #339933;">,</span> isXML<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> req <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    req.<span style="color: #660066;">onreadystatechange</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>req.<span style="color: #660066;">readyState</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">4</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> req.<span style="color: #000066;">status</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>isXML <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> req.<span style="color: #660066;">responseText</span> <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
                callback<span style="color: #009900;">&#40;</span>req.<span style="color: #660066;">responseText</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>isXML <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> req.<span style="color: #660066;">responseXML</span> <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
                callback<span style="color: #009900;">&#40;</span>req.<span style="color: #660066;">responseXML</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">else</span>
                callback<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>req.<span style="color: #660066;">readyState</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">4</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> req.<span style="color: #000066;">status</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            <span style="color: #003366; font-weight: bold;">var</span> err <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Error: &quot;</span><span style="color: #339933;">+</span>req.<span style="color: #000066;">status</span><span style="color: #339933;">;</span>
            <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            callback<span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
        req.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;POST&quot;</span><span style="color: #339933;">,</span> url<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        req.<span style="color: #660066;">setRequestHeader</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Content-type&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;application/x-www-form-urlencoded&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        req.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span>param<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<h2>Let&#8217;s click on Publish button</h2>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> sendButtonClicked<span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     saved_username <span style="color: #339933;">=</span> widget.<span style="color: #660066;">preferenceForKey</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;username&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 saved_pass <span style="color: #339933;">=</span> widget.<span style="color: #660066;">preferenceForKey</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;pass_s&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 saved_tags <span style="color: #339933;">=</span> widget.<span style="color: #660066;">preferenceForKey</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;tag&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 saved_server <span style="color: #339933;">=</span> widget.<span style="color: #660066;">preferenceForKey</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;server&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	 pub <span style="color: #339933;">=</span> blogField.<span style="color: #660066;">getText</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	ajExec<span style="color: #009900;">&#40;</span>saved_server<span style="color: #339933;">,</span><span style="color: #3366CC;">'&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;methodCall&gt;&lt;methodName&gt;metaWeblog.newPost&lt;/methodName&gt;&lt;params&gt;&lt;param&gt;&lt;value&gt;&lt;string&gt;MyBlog&lt;/string&gt;&lt;/value&gt;&lt;/param&gt;&lt;param&gt;&lt;value&gt;&lt;string&gt;'</span><span style="color: #339933;">+</span>saved_username<span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/string&gt;&lt;/value&gt;&lt;/param&gt;&lt;param&gt;&lt;value&gt;&lt;string&gt;'</span><span style="color: #339933;">+</span>saved_pass<span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/string&gt;&lt;/value&gt;&lt;/param&gt;&lt;value&gt;&lt;struct&gt;&lt;member&gt;&lt;param&gt;&lt;name&gt;title&lt;/name&gt;&lt;value&gt;&lt;string&gt;This is a post&lt;/string&gt;&lt;/value&gt;&lt;/param&gt;&lt;/member&gt;&lt;member&gt;&lt;param&gt;&lt;name&gt;description&lt;/name&gt;&lt;value&gt;&lt;string&gt;'</span><span style="color: #339933;">+</span>pub<span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/string&gt;&lt;/value&gt;&lt;/param&gt;&lt;/member&gt;&lt;/struct&gt;&lt;/value&gt;&lt;param&gt;&lt;value&gt;&lt;boolean&gt;1&lt;/boolean&gt;&lt;/value&gt;&lt;/param&gt;&lt;/params&gt;&lt;/methodCall&gt;'</span><span style="color: #339933;">,</span>showAnswer<span style="color: #339933;">,</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The milestone was to find correct XML structure for the query, because the examples from Wordpress website and other websites are all wrong. <strong>Please see the XML and it&#8217;s structure</strong></p>
<h2>Download this script</h2>
<p>You can download the application and see how works <a href="http://talkweb.eu/wp-content/uploads/2010/07/share21.zip">from here.</a>.</p>
<h2>Run it</h2>
<p>The logo:<br />
<img src="http://talkweb.eu/wp-content/uploads/2010/07/share2-1.png" alt="" title="share2-1" width="375" height="188" class="alignnone size-full wp-image-319" /></p>
<p>The Settings screen:<br />
<img src="http://talkweb.eu/wp-content/uploads/2010/07/share2-2.png" alt="" title="share2-2" width="396" height="237" class="alignnone size-full wp-image-320" /></p>
<p>HOW?:<br />
If you want to run it into your Symbian device &#8211; <strong>rename it</strong> to share2.wgz and upload it to your device. The Symbian will do the rest. Tested on Nokia N95.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/299/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Many browsers on Fedora (Safari and IE)</title>
		<link>http://talkweb.eu/openweb/289</link>
		<comments>http://talkweb.eu/openweb/289#comments</comments>
		<pubDate>Wed, 30 Jun 2010 08:53:16 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Mashup]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=289</guid>
		<description><![CDATA[If you need a lot of browsers, like me, to test some web stuff, this info can be useful for you.
Safari on Fedora

 1. You need Wine (yum install wine*)
 2. Download Safari from here (choose &#8211; Safari 5.0 for Windows XP, Vista or 7)
 3. Click on exe file to install.
 4. Done


IE on [...]]]></description>
			<content:encoded><![CDATA[<p>If you need a lot of browsers, like me, to test some web stuff, this info can be useful for you.</p>
<h2><strong>Safari on Fedora</strong></h2>
<ul>
<li> 1. You need Wine (yum install wine*)</li>
<li> 2. Download Safari<a href="http://www.apple.com/safari/download/"> from here</a> (choose &#8211; Safari 5.0 for Windows XP, Vista or 7)</li>
<li> 3. Click on exe file to install.</li>
<li> 4. Done</li>
</ul>
<p><a href="http://talkweb.eu/wp-content/uploads/2010/06/safari-fedora.png"><img class="alignnone size-medium wp-image-290" title="safari-fedora" src="http://talkweb.eu/wp-content/uploads/2010/06/safari-fedora-300x191.png" alt="" width="300" height="191" /></a></p>
<h2><strong>IE on Fedora</strong></h2>
<p>I know, yes, I know. What a hell I need IE on Linux. Some of my clients still using this &#8216;most used browser&#8217;&#8230;</p>
<blockquote>
<pre>yum -y install wine*
yum -y install cabextract
</pre>
</blockquote>
<p>Get the package and install it. But before that, read the legal stuff f<a href="http://www.tatanka.com.br/ies4linux/page/Legal_notices">rom here</a>.  Yes, IE is FREE, but you still NEED a valid license for Windows to use it. WTF?!?</p>
<blockquote>
<pre>wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
</pre>
</blockquote>
<p><a href="http://talkweb.eu/wp-content/uploads/2010/06/ie-fedora.png"><img class="alignnone size-full wp-image-293" title="ie-fedora" src="http://talkweb.eu/wp-content/uploads/2010/06/ie-fedora.png" alt="" width="430" height="154" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/289/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
