<?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>http://www.hilbring.de</title>
	<atom:link href="http://www.hilbring.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hilbring.de</link>
	<description>Hilbrings-Weblog</description>
	<lastBuildDate>Fri, 16 Dec 2011 08:57:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>TypoScript Syntax Highlighting f&#252;r Notepad++</title>
		<link>http://www.hilbring.de/2011/11/07/typoscript-syntax-highlighting-fur-notepad/</link>
		<comments>http://www.hilbring.de/2011/11/07/typoscript-syntax-highlighting-fur-notepad/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 13:38:06 +0000</pubDate>
		<dc:creator>Peter Hilbring</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[TYPO3]]></category>
		<guid isPermaLink="false">http://www.hilbring.de/?p=2027</guid>
		<description><![CDATA[Nach l&#228;ngerem Suchen nach einem TypoScript Syntax Highlighting f&#252;r Notepad++ bin ich endlich auf der russischen Seite ValidCat f&#252;ndig geworden. Dort werden die Dateien „userDefineLang.xml“ (Syntax Highlighting) und „typoscript.api“ bzw. „typoscript.xml“ (Auto Vervollst&#228;ndigung) zum download angeboten. Die Datei userDefineLang.xml muss in das Verzeichnis %appdata%\Notepad++ und die Datei typoscript.api und/oder typoscript.xml in das Verzeichnis c:\Program Files [...]]]></description>
			<content:encoded><![CDATA[<p>Nach l&#228;ngerem Suchen nach einem TypoScript Syntax Highlighting f&#252;r Notepad++ bin ich endlich auf der russischen Seite <a title="TypoScript Syntax Highlighting f&#252;r Notepad++" href="http://validcat.net/notepad-kak-redaktor-typoscript-s-podsvetkoj-i-avtodopolneniem-koda.html" target="_blank">ValidCat</a> f&#252;ndig geworden.</p>
<p>Dort werden die Dateien „userDefineLang.xml“ (Syntax Highlighting) und „typoscript.api“ bzw. „typoscript.xml“ (Auto Vervollst&#228;ndigung) zum download angeboten.</p>
<p>Die Datei <strong>userDefineLang.xml</strong> muss in das Verzeichnis <strong>%appdata%\Notepad++</strong> und die Datei <strong>typoscript.api</strong> und/oder <strong>typoscript.xml</strong> in das Verzeichnis <em><strong>c:\Program Files (x86)\Notepad++\plugins\APIs\</strong> kopiert werden.</em></p>
<p>Nach einem Neustart von Notepad++ stehen die neuen Erweiterungen zur Verf&#252;gung.</p>
<div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://www.hilbring.de/2011/11/07/typoscript-syntax-highlighting-fur-notepad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YouTube &#8211; 500 Internal Server Error</title>
		<link>http://www.hilbring.de/2011/10/15/youtube-500-internal-server-error/</link>
		<comments>http://www.hilbring.de/2011/10/15/youtube-500-internal-server-error/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 13:34:02 +0000</pubDate>
		<dc:creator>Peter Hilbring</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Entdeckt]]></category>
		<guid isPermaLink="false">http://www.hilbring.de/?p=2022</guid>
		<description><![CDATA[Das wurde mir heute Nacht von meinem Kollegen Gregor zugeschickt]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-large wp-image-2021" title="YouTube - 500 Internal Server Error" src="http://www.hilbring.de/wp-content/uploads/2011/10/youtube-363x480.png" alt="If you see them, show them this information" width="363" height="480" /></p>
<p>Das wurde mir heute Nacht von meinem Kollegen <a title="Homepage von Gregor" href="http://www.grex.de/" target="_blank">Gregor</a> zugeschickt <img src='http://www.hilbring.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://www.hilbring.de/2011/10/15/youtube-500-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin: googleCards Patch 20110830</title>
		<link>http://www.hilbring.de/2011/08/30/wordpress-plugin-googlecards-patch-20110830/</link>
		<comments>http://www.hilbring.de/2011/08/30/wordpress-plugin-googlecards-patch-20110830/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 12:13:53 +0000</pubDate>
		<dc:creator>Peter Hilbring</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[GooglePlus]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[Plugin]]></category>
		<guid isPermaLink="false">http://www.hilbring.de/?p=2016</guid>
		<description><![CDATA[Hier ist die n&#228;chste Patchrunde (Stand 30.08.2011): In der Datei „googleCardClass.php“ m&#252;ssen wieder die beiden Regular Expressions zur Ermittlung des Z&#228;hlers und der Profilbild-URL angepasst werden. Au&#223;erdem darf nicht vergessen werden die Datei „wp-content/cache/plus_cards.txt“ zu entfernen.]]></description>
			<content:encoded><![CDATA[<p>Hier ist die n&#228;chste Patchrunde (Stand 30.08.2011):</p>
<pre class="brush: diff; title: ; notranslate">--- googleCardClass.php.orig    2011-08-30 14:01:28.000000000 +0200
+++ googleCardClass.php 2011-08-30 14:02:49.000000000 +0200
@@ -124,7 +124,7 @@
        protected function parseHtml()
        {
                // parse the html to look for the h4 'have X in circles' element
-               preg_match('/&lt;h4 class=&quot;nPQ0Mb pD8zNd&quot;&gt;(.*?)&lt;\/h4&gt;/s', $this-&gt;html, $matches);
+               preg_match('/&lt;h4 class=&quot;Pv rla&quot;&gt;(.*?)&lt;\/h4&gt;/s', $this-&gt;html, $matches);
                if (isset($matches) &amp;&amp; !empty($matches))
                {
                        $count = $matches[1];
@@ -140,7 +140,7 @@
                $name = $matches[1];
                // parse the html for the img div
-               preg_match('/&lt;div class=&quot;DzkbSc&quot;&gt;(.*?)&lt;\/div&gt;/s', $this-&gt;html, $matches);
+               preg_match('/&lt;div class=&quot;c-i-Ra-L CK Xu&quot;&gt;(.*?)&lt;\/div&gt;/s', $this-&gt;html, $matches);
                $img_div = $matches[1];
                // parse the img div for the image src
</pre>
<p>In der Datei „googleCardClass.php“ m&#252;ssen wieder die beiden Regular Expressions zur Ermittlung des Z&#228;hlers und der Profilbild-URL angepasst werden.</p>
<p>Au&#223;erdem darf nicht vergessen werden die Datei „wp-content/cache/plus_cards.txt“ zu entfernen.</p>
<div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://www.hilbring.de/2011/08/30/wordpress-plugin-googlecards-patch-20110830/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin: googleCards Modifikation</title>
		<link>http://www.hilbring.de/2011/08/27/wordpress-plugin-googlecards-modifikation/</link>
		<comments>http://www.hilbring.de/2011/08/27/wordpress-plugin-googlecards-modifikation/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 14:59:11 +0000</pubDate>
		<dc:creator>Peter Hilbring</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[GooglePlus]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[Plugin]]></category>
		<guid isPermaLink="false">http://www.hilbring.de/?p=2005</guid>
		<description><![CDATA[F&#252;r mein Blog benutze ich das googleCards Plugin von Majubo. Leider &#228;ndert Goggle im Moment alle paar Tage  die Bezeichnung der CSS Klassen, sodass das Plugin jedes Mal angepasst werden muss. Ich habe die Regular Expressions zum Suchen des Profilbildes und des „In X people&#8217;s circles“ Elements so angepasst das die GoogleCard mit den &#196;nderungen [...]]]></description>
			<content:encoded><![CDATA[<p>F&#252;r mein Blog benutze ich das <a title="googleCards Autor Homepage" href="http://plusdevs.com/google-wordpress-plugin/" rel="external">googleCards</a> Plugin von <a href="https://profiles.wordpress.org/users/mabujo/" rel="external">Majubo</a>.</p>
<p>Leider &#228;ndert Goggle im Moment alle paar Tage  die Bezeichnung der CSS Klassen, sodass das Plugin jedes Mal angepasst werden muss. Ich habe die Regular Expressions zum Suchen des Profilbildes und des „In X people&#8217;s circles“ Elements so angepasst das die GoogleCard mit den &#196;nderungen vom 27.08.2011 wieder korrekt angezeigt wird. Zus&#228;tzlich habe ich einen Patch f&#252;r das PHP-cURL Dualstackproblem hinzugef&#252;gt.</p>
<pre class="brush: diff; title: ; notranslate">--- googleCardClass.php.orig	2011-08-04 16:07:22.000000000 +0200
+++ googleCardClass.php	2011-08-27 16:34:51.000000000 +0200
@@ -5,6 +5,10 @@
 *	http://plusdevs.com
 *	http://plusdevs.com/googlecard-googleplus-php-scraper/
 *
+*	Modified to match google+ classes from 2011/08/27 (see lines 128, 144)
+*	Added cURL IPv4 Patch (see line 170)
+*	Peter Hilbring
+*
 *	This program is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
@@ -121,8 +125,7 @@
 	protected function parseHtml()
 	{
 		// parse the html to look for the h4 'have X in circles' element
-		preg_match('/&lt;/pre&gt;
&lt;h4 class=&quot;a-b-Fa-ug&quot;&gt;(.*?)/s', $this-&gt;html, $matches);
-
+ preg_match('/&lt;/h4&gt;
&lt;h4 class=&quot;nPQ0Mb pD8zNd&quot;&gt;(.*?)/s', $this-&gt;html, $matches);
 if (isset($matches) &amp;&amp; !empty($matches))
 {
 $count = $matches[1];
@@ -138,12 +141,12 @@
 $name = $matches[1];
 // parse the html for the img div
- preg_match('/&lt;/h4&gt;
&lt;div class=&quot;a-R-Z-z-M&quot;&gt;(.*?)/s', $this-&gt;html, $matches);
+ preg_match('/
&lt;div class=&quot;DzkbSc&quot;&gt;(.*?)/s', $this-&gt;html, $matches);
 $img_div = $matches[1];
 // parse the img div for the image src
 preg_match('/&lt; *img[^&gt;]*src *= *[&quot;\']?([^&quot;\']*)/i', $img_div, $matches);
- $img = 'http:' . $matches[1];
+ $img = 'https:' . $matches[1];
 // put the data in an array
 $return = array('id' =&gt; $this-&gt;user_id, 'count' =&gt; $circles, 'name' =&gt; $name, 'img' =&gt; $img, 'url' =&gt; $this-&gt;url);
@@ -164,6 +167,7 @@
 curl_setopt($this-&gt;curl, CURLOPT_FOLLOWLOCATION, true);
 curl_setopt($this-&gt;curl, CURLOPT_SSL_VERIFYPEER, false);
 curl_setopt($this-&gt;curl, CURLOPT_SSL_VERIFYHOST, false);
+ curl_setopt($this-&gt;curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
 // execute the call to google+
 $this-&gt;html = curl_exec($this-&gt;curl);
+?&gt;
</pre>
<p>Zur Inbetriebnahme reicht es aus die Datei „googleCardClass.php“ einfach in das Verzeichnis „wp-content/plugins/googlecards/“ zu kopieren und die vorhandene Datei zu &#252;berschreiben. Die eventuell vorhandene Datei „wp-content/cache/plus_cards.txt“ muss auf jeden Fall gel&#246;scht werden.<br />
<div class="attachments"><h2>Downloads</h2><dl class="attachments attachments-large"><dt class="icon"><a title="googleCard Modifications" href="http://www.hilbring.de/2011/08/27/wordpress-plugin-googlecards-modifikation/?aid=2009&amp;sa=1"><img src="http://www.hilbring.de/wp-content/plugins/eg-attachments/img/flags/zip.png" width="48" height="48" alt="googleCard Modifications" /></a></dt><dd class="caption"><strong>Titel</strong> : <a title="googleCard Modifications" href="http://www.hilbring.de/2011/08/27/wordpress-plugin-googlecards-modifikation/?aid=2009&amp;sa=1">googleCard Modifications</a><br /><strong>Beschriftung</strong> : Klassendatei und Patch<br /><strong>Dateiname</strong> : googleCard-modifications.zip<br /><strong>Size</strong> : 4 kB</dd></dl></div></p>
<div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://www.hilbring.de/2011/08/27/wordpress-plugin-googlecards-modifikation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP cURL Dualstack DNS Problem</title>
		<link>http://www.hilbring.de/2011/07/25/php-curl-dualstack-dns-problem/</link>
		<comments>http://www.hilbring.de/2011/07/25/php-curl-dualstack-dns-problem/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 15:07:23 +0000</pubDate>
		<dc:creator>Peter Hilbring</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[Dualstack]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.hilbring.de/?p=1236</guid>
		<description><![CDATA[In einer Dualstackumgebung benutzt die PHP cURL Funktion IPv6 zur Namensaufl&#246;sung. Probleme treten nun auf wenn die Zieldomain keine IPv6 Adresse besitzt da die Library dann nicht auf IPv4 zur&#252;ck f&#228;llt. In der cURL C-API gibt es Parameter um eine IPv4 Namensaufl&#246;sung zu erzwingen. Seit PHP 5.3 funktioniert diese nun auch mit der PHP cURL [...]]]></description>
			<content:encoded><![CDATA[<p>In einer Dualstackumgebung benutzt die PHP cURL Funktion IPv6 zur Namensaufl&#246;sung.</p>
<p>Probleme treten nun auf wenn die Zieldomain keine IPv6 Adresse besitzt da die Library dann nicht auf IPv4 zur&#252;ck f&#228;llt. In der cURL C-API gibt es Parameter um eine IPv4 Namensaufl&#246;sung zu erzwingen. Seit PHP 5.3 funktioniert diese nun auch mit der PHP cURL Funktion.</p>
<p>Um die IPv4 Namensaufl&#246;sung zu benutzen tr&#228;gt man die folgende Zeile als <strong>curl_ setoption</strong> in sein PHP Script ein:</p>
<pre class="brush: php; title: ; notranslate">curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);</pre>
<p>Dieses beseitigt das Problem zwar nicht wirklich, schafft jedoch erst einmal einen guten Workaround.</p>
<div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://www.hilbring.de/2011/07/25/php-curl-dualstack-dns-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.hilbring.de @ 2012-05-19 12:38:50 by W3 Total Cache -->
