<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>lautr.com</title>
	
	<link>http://www.lautr.com</link>
	<description>Hannes Blog for Development and Stuff besides</description>
	<lastBuildDate>Tue, 13 Mar 2012 17:15:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Lautr" /><feedburner:info uri="lautr" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>jquery slug plugin for input fields</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/uMme7vAkoLk/</link>
		<comments>http://www.lautr.com/jquery-slug-plugin-for-input-fields/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 09:33:32 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[java script]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[sideblog]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[slug]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=336</guid>
		<description><![CDATA[A small jQuery Plugin i wrote to slug input fields, enjoy; (function( $ ){ function stringToSlug(str){ str = str.replace(/^\s+&#124;\s+$/g, &#039;&#039;); // trim str = str.toLowerCase(); // remove accents, swap ñ for n, etc var from = &#34;àáäâèéëêìíïîòóöôùúüûñç·_,:;&#34;; var to = &#8230; <a href="http://www.lautr.com/jquery-slug-plugin-for-input-fields/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A small jQuery Plugin i wrote to slug input fields, enjoy;</p>
<pre class="brush: javascript">
(function( $ ){
    function stringToSlug(str){
      str = str.replace(/^\s+|\s+$/g, &#039;&#039;); // trim
      str = str.toLowerCase();

      // remove accents, swap ñ for n, etc
      var from = &quot;àáäâèéëêìíïîòóöôùúüûñç·_,:;&quot;;
      var to   = &quot;aaaaeeeeiiiioooouuuunc-----&quot;;
      for (var i=0, l=from.length ; i&lt;l ; i++) {
        str = str.replace(new RegExp(from.charAt(i), &#039;g&#039;), to.charAt(i));
      }

      str = str.replace(/[^a-z0-9 -/]/g, &#039;&#039;) // remove invalid chars
        .replace(/\s+/g, &#039;-&#039;) // collapse whitespace and replace by -
        .replace(/-+/g, &#039;-&#039;); // collapse dashes

      return str;
    }

    $.fn.slug = function(){
        var inputField = this;
        $(this).closest(&#039;form&#039;).submit(function(){
            $(inputField).val(stringToSlug($(inputField).val()));
            return true;
        });
        $(this).blur(function(){
            $(this).val(stringToSlug($(this).val()));
        });
    }
})( jQuery );

$(document).ready(function() {
    $(&#039;input.slug&#039;).slug();
});
</pre>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/uMme7vAkoLk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/jquery-slug-plugin-for-input-fields/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.lautr.com/jquery-slug-plugin-for-input-fields/</feedburner:origLink></item>
		<item>
		<title>Drupal hook_nodeapi op operation order</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/OnfbFOc_Wfs/</link>
		<comments>http://www.lautr.com/drupal-hook_nodeapi-op-operation-order/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 13:13:34 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[sideblog]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=325</guid>
		<description><![CDATA[Just in Case someone every wonders in which order drupal provides operats for the hook_nodeapi, at the time being its: &#8216;prepare&#8217;,'load&#8217;,'validate&#8217;,'presave&#8217;,'update&#8217;,'view&#8217;]]></description>
			<content:encoded><![CDATA[<p>Just in Case someone every wonders in which order drupal provides operats for the hook_nodeapi, at the time being its: &#8216;prepare&#8217;,'load&#8217;,'validate&#8217;,'presave&#8217;,'update&#8217;,'view&#8217;</p>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/OnfbFOc_Wfs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/drupal-hook_nodeapi-op-operation-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lautr.com/drupal-hook_nodeapi-op-operation-order/</feedburner:origLink></item>
		<item>
		<title>Convert Object of class stdClass to XML Object</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/xDr3KthLEH8/</link>
		<comments>http://www.lautr.com/convert-object-of-class-stdclass-to-xml-object/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 09:29:47 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[sideblog]]></category>
		<category><![CDATA[Convert]]></category>
		<category><![CDATA[StdClass]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xmlWriter]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=319</guid>
		<description><![CDATA[I had to do that recently and since i didn't found anything PHP native to do it i had to code it myself, just 2 SMall Functions to Convert an stdClass Object in to an XML (Writer) Object, or an XML String at the End. <a href="http://www.lautr.com/convert-object-of-class-stdclass-to-xml-object/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had to do that recently and since i didn&#8217;t found anything PHP native to do it i had to code it myself, just 2 SMall Functions to Convert an stdClass Object in to an XML (Writer) Object, or an XML String at the End.</p>
<p>/**<br />
 * Adds Nodes to an Existing XML Writer Object<br />
 *<br />
 * @param XMLWriter $xml<br />
 * @param string $nodeName<br />
 * @param string | array | stdObject $nodeValue<br />
 */<br />
 function _addNodeToXML(&#038;$xml,$nodeName,$nodeValue){<br />
	 if(is_array($nodeValue)){<br />
		 $xml->startElement($nodeName);<br />
		 foreach($nodeValue as $nodeValueKey => $nodeValueValue){<br />
			_addNodeToXML($xml, $nodeValueKey, $nodeValueValue);<br />
		 }<br />
	 $xml->endElement();<br />
	 }elseif(is_a($nodeValue,&#8221;stdClass&#8221;)){<br />
		$xml->startElement(&#8220;item&#8221;);<br />
	 foreach($nodeValue as $nodeValueKey => $nodeValueValue){<br />
		_addNodeToXML($xml, $nodeValueKey, $nodeValueValue);<br />
	 }<br />
	 $xml->endElement();<br />
	 }else{<br />
		$xml->writeElement($nodeName,$nodeValue);<br />
	 }<br />
 }</p>
<p>/**</p>
<p>* Converts an Object of stdClass to an XML (XMLWriter) “Object”<br />
 *<br />
 * @param stdClass|array $stdClass<br />
 * @return s<br />
 */<br />
 function _stdClassToXML($stdClass){<br />
	$xml = new XMLWriter();<br />
	$xml->openMemory();</p>
<p>	_addNodeToXML($xml,&#8221;root&#8221;,$stdClass);<br />
	return $xml->outputMemory();<br />
 }</p>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/xDr3KthLEH8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/convert-object-of-class-stdclass-to-xml-object/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.lautr.com/convert-object-of-class-stdclass-to-xml-object/</feedburner:origLink></item>
		<item>
		<title>replace your plesk favicon (god damn it!)</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/n0WUYQHVD8Y/</link>
		<comments>http://www.lautr.com/replace-your-plesk-favicon-god-damn-it/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 10:53:29 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[sideblog]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[webroot]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=298</guid>
		<description><![CDATA[I've seen it again and again, I mean, using Plesk for anything professional is bad enough in itself, but why don't people replace this stupid default Favicon.  <a href="http://www.lautr.com/replace-your-plesk-favicon-god-damn-it/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen it again and again, I mean, using Plesk for anything professional is bad enough in itself, but why don&#8217;t people replace this stupid default Favicon. Just go to your webroot and place your own stupid &#8220;favicon.ico&#8221; everything is better then having the same favicon as a million other wannabe-web-projects <img src='http://static.lautr.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/n0WUYQHVD8Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/replace-your-plesk-favicon-god-damn-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.lautr.com/replace-your-plesk-favicon-god-damn-it/</feedburner:origLink></item>
		<item>
		<title>simple image view helper for zend framework</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/xQhQ8mxVTBA/</link>
		<comments>http://www.lautr.com/simple-image-view-helper-for-zend-framework/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 07:46:28 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[gd2]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[zf]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=288</guid>
		<description><![CDATA[This Helper I use to store and resize Images (external or not) &#8211; it uses GD so make sure to have it, of course this is just an example, so you must change the structure of paths/URLs to your needs. &#8230; <a href="http://www.lautr.com/simple-image-view-helper-for-zend-framework/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This Helper I use to store and resize Images (external or not) &#8211; it uses GD so make sure to have it, of course this is just an example, so you must change the structure of paths/URLs to your needs.</p>
<p><span id="more-288"></span></p>
<pre class="brush: php">

class Zend_View_Helper_Images
{
private $_name;
private $_source;
static private $_webpath;
static private $_fspath;

public function __construct() {
if(null == $this-&gt;_fspath){
$this-&gt;_fspath = str_replace(&#039;application&#039;,&#039;&#039;,APPLICATION_PATH).&quot;public/images/tumbs/&quot;;
$this-&gt;_webpath = &quot;/images/thumbs/&quot;;
}
}

public function scale($x = false,$y = false)
{

if(!file_exists($this-&gt;_fspath.&#039;x&#039;.$x.&#039;y&#039;.$y.$this-&gt;_name)){
$infos = getimagesize($this-&gt;_source);

switch($infos[&#039;mime&#039;]) {
case &quot;image/pjpeg&quot;:
case &quot;image/jpeg&quot;:
case &quot;image/jpg&quot;:
$image=imagecreatefromjpeg($this-&gt;_source);
break;
case &quot;image/gif&quot;:
$image=imagecreatefromgif($this-&gt;_source);
break;
case &quot;image/png&quot;:
case &quot;image/x-png&quot;:
$image=imagecreatefrompng($this-&gt;_source);
break;
}
$newImage = imagecreatetruecolor($x,$y);
imagecopyresampled($newImage,$image,0,0,0,0,$x,$y,$infos[0],$infos[1]);

imagejpeg($newImage,$this-&gt;_fspath.&#039;x&#039;.$x.&#039;y&#039;.$y.$this-&gt;_name);
imagedestroy($newImage);
}

return $this-&gt;_webpath.&#039;x&#039;.$x.&#039;y&#039;.$y.$this-&gt;_name;

}

public function images($imageurl)
{
$this-&gt;_source = $imageurl;
preg_match(&#039;#[^/]+\.[\w]+$#&#039;,$imageurl,$match);
$this-&gt;_name = $match[0];
return $this;
}
}
</pre>
<p>in that cas the Implementation looks like:</p>
<pre class="brush: php">

&lt;img src=&quot;&lt;?= $this-&gt;images($this-&gt;some_image_url)-&gt;scale(150,200) ?&gt;&quot; alt=&quot;&quot;/&gt;
</pre>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/xQhQ8mxVTBA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/simple-image-view-helper-for-zend-framework/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.lautr.com/simple-image-view-helper-for-zend-framework/</feedburner:origLink></item>
		<item>
		<title>zootool wordpress plugin</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/65qedtmi4pI/</link>
		<comments>http://www.lautr.com/zootool-wordpress-plugin/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 16:14:10 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[badge]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[zootool]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=219</guid>
		<description><![CDATA[I Took the Time to program a neat ZooTool Wordpress Plugin. For everyone out there who likes wordpress, zootool, badges and doesn't like to use to much extern Javascript on his Page this might be Something for you.  <a href="http://www.lautr.com/zootool-wordpress-plugin/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I Took the Time to program a neat ZooTool WordPress Plugin. For everyone out there who likes wordpress, zootool, badges and doesn&#8217;t like to use to much extern Javascript on his Page this might be Something for you. You can find more Details on <a href="http://www.lautr.com/wordpress-zootool">my dedicated Page</a> .</p>
<p>Or if you&#8217;ve no Idea what I&#8217;m talking about check out <a href="http://zootool.com/user/justhannes/" target="_blank">zootool</a>.</p>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/65qedtmi4pI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/zootool-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lautr.com/zootool-wordpress-plugin/</feedburner:origLink></item>
		<item>
		<title>Convert all applicable characters to Numeric entities for use in XML</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/sPKcK8VMWEI/</link>
		<comments>http://www.lautr.com/convert-all-applicable-characters-to-numeric-entities-for-use-in-xml/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 16:09:14 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[sideblog]]></category>
		<category><![CDATA[htmlentities]]></category>
		<category><![CDATA[Numeric entities]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=215</guid>
		<description><![CDATA[If you wanna make sure your text gets parsed  correctly you mostly use htmlentities. However this method has 2 downsides: 1. It does not convert in to numeric entities so you'll have problems when parsing as XML 2. It does NOT cover all characters that are like to show up. <a href="http://www.lautr.com/convert-all-applicable-characters-to-numeric-entities-for-use-in-xml/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you wanna make sure your text gets parsed  correctly you mostly use <a href="http://de2.php.net/manual/en/function.htmlentities.php" target="_blank">htmlentities</a>. However this method has 2 downsides:</p>
<p>1. It does not convert in to numeric entities so you&#8217;ll have problems when parsing as XML</p>
<p>2. It does NOT cover all characters that are like to show up.</p>
<p>So, to address this Issues, first for Point 1:</p>
<pre class="brush: php">
function _convertAlphaEntitysToNumericEntitys($entity){
return &#039;&amp;amp;amp;#&#039;.ord(html_entity_decode($entity[0])).&#039;;&#039;;
}
$content = preg_replace_callback(&#039;/&amp;amp;amp;([\w\d]+);/i&#039;,&#039;_convertAlphaEntitysToNumericEntitys&#039;,$content);
</pre>
<p>Here all &#8220;normal&#8221; entities are taken (which you already have, using  <a href="http://de2.php.net/manual/en/function.htmlentities.php" target="_blank">htmlentities</a>) and replaced by their numeric counterparts so they can be parsed as XML, now that leaves us with our second Problem, the Fact that only a small range of characters is covered in the first Place:</p>
<pre class="brush: php">
function _convertAsciOver127toNumericEntitys($entity){
if(($asciCode = ord($entity[0])) &gt; 127){
return &#039;&amp;amp;amp;#&#039;.$asciCode.&#039;;&#039;;
}else{
return $entity[0];
}
}
$content = preg_replace_callback(&#039;/[^\w\d ]/i&#039;,&#039;_convertAsciOver127toNumericEntitys&#039;), $content);
</pre>
<p>And there you go, the resulting Text should have no entitie Problems in XML.</p>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/sPKcK8VMWEI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/convert-all-applicable-characters-to-numeric-entities-for-use-in-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lautr.com/convert-all-applicable-characters-to-numeric-entities-for-use-in-xml/</feedburner:origLink></item>
		<item>
		<title>Utilizing HTML5 Geolocation API and Yahoo! PlaceFinder Example</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/4afx-sMB8vI/</link>
		<comments>http://www.lautr.com/utilizing-html5-geolocation-api-and-yahoo-placefinder-example/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 12:06:55 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[placefinder]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=209</guid>
		<description><![CDATA[Yeah yeah i know, HTML5 is the new web 2.0 or whatever and everyone has to blag about it, but to be honest, most of the improvments are pretty good, I'm not just talking about the semantics and the end of XHTML (Hooray) but i wont cover that here. Here is what I'm gonna do, show you what you can do with the geolocation API and Yahoos Placefinder API. <a href="http://www.lautr.com/utilizing-html5-geolocation-api-and-yahoo-placefinder-example/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yeah yeah i know, HTML5 is the new web 2.0 or whatever and everyone has to blag about it, but to be honest, most of the improvments are pretty good, I&#8217;m not just talking about the semantics and the end of XHTML (Hooray) but i wont cover that here. Here is what I&#8217;m gonna do, show you what you can do with the <a href="http://dev.w3.org/geo/api/spec-source.html">geolocation API </a>and <a href="http://developer.yahoo.com/geo/placefinder/" target="_blank">Yahoos Placefinder API</a>.</p>
<p>Geolocation API is by now implementet in most of the browsers besides IE, of course, so its as usual a nice-to-have thing for desktop devices, of course for mobile, its a completly different matter. But if you wanna know more about it, read it up, there are <a href="http://www.google.com/search?hl=de&amp;client=opera&amp;hs=V6z&amp;rls=en&amp;q=geolocation+api&amp;aq=f&amp;aqi=g9g-s1&amp;aql=&amp;oq=&amp;gs_rfai=">plenty of rescources avaible on the net</a>.</p>
<p>Yahoos Place finder is, in there own words &#8220;Yahoo! PlaceFinder is a geocoding Web service that helps developers make their applications location-aware by converting street addresses or place names into geographic coordinates (and vice versa).&#8221; And yeah, besides the marketing spin, that is what it does, you provide latitude and latitude and Placefinder tells you where the hell you are.</p>
<p>I made<a href="http://www.lautr.com/sandbox/utilizing-html5-geolocation-api-and-yahoo-placefinder-example.php" target="_blank"> a short example you can check it out here</a>.</p>
<p>The Code is as slim as they come:<br />
PHP:</p>
<pre class="brush: php">
$search = &#039;http://where.yahooapis.com/geocode?q=&#039;.$_POST[&#039;lat&#039;].&#039;,+&#039;.$_POST[&#039;lon&#039;].&#039;&amp;amp;amp;amp;gflags=R&amp;amp;amp;amp;appid=[yourappidhere]&#039;;
$xml = simplexml_load_file($search,&#039;SimpleXMLElement&#039;, LIBXML_NOCDATA);
echo $xml-&gt;asXML();
</pre>
<p>HTML/JS</p>
<pre class="brush: html">
&lt;h1&gt;Utilizing HTML5 Geolocation API and Yahoo! PlaceFinder Example&lt;/h1&gt;
&lt;div&gt;You are currently in &lt;strong&gt; &lt;/strong&gt; - &lt;strong&gt; &lt;/strong&gt;, well to be more precisely in &lt;strong&gt; &lt;/strong&gt; and your ZIP is &lt;strong&gt; &lt;/strong&gt;&#039;ish&lt;/div&gt;
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt;// &lt;![CDATA[
$(document).ready(function() {
navigator.geolocation.getCurrentPosition(
function(position){
$.ajax({
type: &#039;POST&#039;,
url: &#039;/sandbox/utilizing-html5-geolocation-api-and-yahoo-placefinder-example.php&#039;,
dataTyoe: &#039;xml&#039;,
data: ({
lat: position.coords.latitude,
lon: position.coords.longitude
}),
success: function(xml){
$(&#039;#city&#039;).html($(xml).find(&#039;city&#039;).text());
$(&#039;#country&#039;).html($(xml).find(&#039;country&#039;).text());
$(&#039;#neighborhood&#039;).html($(xml).find(&#039;neighborhood&#039;).text());
$(&#039;#plz&#039;).html($(xml).find(&#039;uzip&#039;).text());
}
});
}
);
});
// ]]&gt;&lt;/script&gt;
</pre>
<p>So you see, with literally no Work whatsoever you can get quite some Information, whatever you with them, is of course up to you, but remember if the user provides the Information or not is up to him!</p>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/4afx-sMB8vI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/utilizing-html5-geolocation-api-and-yahoo-placefinder-example/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.lautr.com/utilizing-html5-geolocation-api-and-yahoo-placefinder-example/</feedburner:origLink></item>
		<item>
		<title>XML-RPC “read timeout” after 10 Seconds with Zend_XmlRpc_Client</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/5pIBz88vhn8/</link>
		<comments>http://www.lautr.com/xml-rpc-read-timeout-after-10-seconds-with-zend_xmlrpc_client/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 13:44:19 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[xml rpc]]></category>
		<category><![CDATA[Zend_XmlRpc_Client]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=194</guid>
		<description><![CDATA[Recently i had a small Problem with the Service of a Partner we use for a new Project, it worked all together just fine, but just was a little bit slow at times, so i often got a Red Timeout after 10 Seconds. <a href="http://www.lautr.com/xml-rpc-read-timeout-after-10-seconds-with-zend_xmlrpc_client/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently i had a small Problem with the Service of a Partner we use for a new Project, it worked all together just fine, but just was a little bit slow at times, so i often got a Red Timeout after 10 Seconds.<br />
All you&#8217;ve to do here is, of course, increase the timeout by configuring the Zend_Http_Client that is used here, unfortunately you ether have to set it in every method you use like:</p>
<pre class="brush: php">
$this-&gt;_httpClient-&gt;setConfig(array(&#039;timeout&#039; =&gt; &#039;60&#039;));
</pre>
<p>(if you like me has an own class that extends from Zend_XmlRpc_Client to do your bidding). O</p>
<p>r must supply a full new, configured HTTP Client like:</p>
<pre class="brush: php">
$httpClient = new Zend_Http_Client;
$httpClient-&gt;setConfig(array(&#039;timeout&#039; =&gt; &#039;60&#039;));
$xmlrpcClient = new Zend_XmlRpc_Client(&#039;http://www.foobar.com/service&#039;,$httpClient);
</pre>
<p>(or something along those lines)</p>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/5pIBz88vhn8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/xml-rpc-read-timeout-after-10-seconds-with-zend_xmlrpc_client/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.lautr.com/xml-rpc-read-timeout-after-10-seconds-with-zend_xmlrpc_client/</feedburner:origLink></item>
		<item>
		<title>Drupal Fatal error: Call to undefined function field_file_load() in /home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_field.inc on line 97 with php 5.3</title>
		<link>http://feedproxy.google.com/~r/Lautr/~3/iHmqdSZSQ4E/</link>
		<comments>http://www.lautr.com/drupal-fatal-error-call-to-undefined-function-field_file_load-in-homejohannesworkspacedrupalsitesallmodulesfilefieldfilefield_field-inc-on-line-97-with-php-5-3/#comments</comments>
		<pubDate>Tue, 04 May 2010 08:07:40 +0000</pubDate>
		<dc:creator>Hannes</dc:creator>
				<category><![CDATA[sideblog]]></category>
		<category><![CDATA[drupal error php 5.3]]></category>

		<guid isPermaLink="false">http://www.lautr.com/?p=182</guid>
		<description><![CDATA[After Updating on PHP 5.3 (and some other related updates) i got this nice Error Message:

Fatal error: Call to undefined function field_file_load() in /home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_field.inc on line 97 <a href="http://www.lautr.com/drupal-fatal-error-call-to-undefined-function-field_file_load-in-homejohannesworkspacedrupalsitesallmodulesfilefieldfilefield_field-inc-on-line-97-with-php-5-3/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After Updating on PHP 5.3 (and some other related updates) i got this nice Error Message:</p>
<p>Fatal error: Call to undefined function field_file_load() in /home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_field.inc on line 97</p>
<p>The Fix was to add the Line:<br />
module_load_include(&#8216;inc&#8217;, &#8216;filefield&#8217;, &#8216;field_file&#8217;);</p>
<p>In File:<br />
/home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_field.inc at line 96</p>
<p><strong>UPDATE</strong></p>
<p>Also got the Error:</p>
<p>Fatal error: Call to undefined function field_file_save() in /home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_field.inc  on line 130</p>
<p>Same game,</p>
<p>The Fix was to add the Line:<br />
module_load_include(&#8216;inc&#8217;, &#8216;filefield&#8217;, &#8216;field_file&#8217;);</p>
<p>In File:<br />
/home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_field.inc at line 129</p>
<p><strong>Update</strong></p>
<p>This is getting ridicules -.-</p>
<p>Fatal error: Call to undefined function field_file_load() in /home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_widget.inc on line 163</p>
<p>The Fix was to add the Line:<br />
module_load_include(&#8216;inc&#8217;, &#8216;filefield&#8217;, &#8216;field_file&#8217;);</p>
<p>In File:<br />
/home/johannes/workspace/drupal/sites/all/modules/filefield/filefield_widget.inc on line 162</p>
<p><strong>Update</update></p>
<p>yet another one &#8216;Fatal error: Call to undefined function filefield_widget_value()&#8217;</p>
<p>In File:<br />
/home/johannes/workspace/drupal/sites/all/modules/imagefield/imagefield_widget.inc  on line 209</p>
<p>add module_load_include(&#8216;inc&#8217;, &#8216;filefield&#8217;, &#8216;filefield_widget&#8217;);</p>
<p>Ah, hopfefully the last one: Call to undefined function imagefield_file_admin_thumb_path() </p>
<p>in File:<br />
/home/johannes/workspace/drupal/sites/all/modules/imagefield/imagefield.module  on line 373</p>
<p>add  module_load_include(&#8216;inc&#8217;, &#8216;imagefield&#8217;, &#8216;imagefield_file&#8217;);</p>
<img src="http://feeds.feedburner.com/~r/Lautr/~4/iHmqdSZSQ4E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.lautr.com/drupal-fatal-error-call-to-undefined-function-field_file_load-in-homejohannesworkspacedrupalsitesallmodulesfilefieldfilefield_field-inc-on-line-97-with-php-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.lautr.com/drupal-fatal-error-call-to-undefined-function-field_file_load-in-homejohannesworkspacedrupalsitesallmodulesfilefieldfilefield_field-inc-on-line-97-with-php-5-3/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 1/35 queries in 0.074 seconds using apc
Object Caching 613/715 objects using apc
Content Delivery Network via static.lautr.com

Served from: www.lautr.com @ 2012-03-13 17:52:46 -->

