<?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>geibi.de - Blog &#187; Computerwelt</title>
	<atom:link href="http://blog.geibi.de/category/computerwelt/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.geibi.de</link>
	<description>Ein weiteres tolles WordPress-Blog</description>
	<lastBuildDate>Sat, 14 Jan 2012 18:07:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<div id='fb-root'></div>
					<script type='text/javascript'>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/de_DE/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>timthumb &#8211; Thumbnails mal einfach</title>
		<link>http://blog.geibi.de/2011/06/timthumb-thumbnails-maleinfach/</link>
		<comments>http://blog.geibi.de/2011/06/timthumb-thumbnails-maleinfach/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 08:14:31 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[grafik]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=984</guid>
		<description><![CDATA[(PHP)-Programmierer aufpasst: Nicht ganz neu, aber um so besser: timthumb (Link) ist ein kleines PHP Script, das es Programmierern ungemein erleichtert, Bilder zu verkleinern (oder u.U. zu vergrößern) Ich möchte Euch heute einmal zeigen, wie einfach das geht. Und als kleinen Bonus, gibt es noch einen undokumentierten Bonus. Los geht&#8217;s! Vorarbeiten Zuerst einmal gilt es, [...]]]></description>
			<content:encoded><![CDATA[<p>(PHP)-Programmierer aufpasst: Nicht ganz neu, aber um so besser: timthumb (<a href="http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/" target="_blank">Link</a>) ist ein kleines PHP Script, das es Programmierern ungemein erleichtert, Bilder zu verkleinern (oder u.U. zu vergrößern)</p>
<p>Ich möchte Euch heute einmal zeigen, wie einfach das geht. Und als kleinen Bonus, gibt es noch einen undokumentierten Bonus. Los geht&#8217;s!</p>
<p><span id="more-984"></span></p>
<p><strong>Vorarbeiten</strong></p>
<p>Zuerst einmal gilt es, timthumb herunterzuladen.<br />
Den <strong>Downloadlink</strong> findet Ihr <a href="http://timthumb.googlecode.com/svn/trunk/timthumb.php" target="_blank">hier</a> und zwar als Textdatei.<br />
Kopiert Euch einfach den ganzen Text und erstellt in Eurem Hauptverzeichnis einen Ordner namens &#8220;timthumb&#8221;.<br />
In diesem Ordner erstellt Ihr eine Datei &#8220;timthumb.php&#8221;  und fügt den kopierten Quelltext ein.</p>
<p>Arbeitet Ihr lokal, solltet Ihr darauf achten, dass die ordnerrechte für den Ordner &#8220;timthumb&#8221; mindestens auf 775 stehen.</p>
<p>Euer Arbeitsverzeichnis sollte jetzt so aussehen:</p>
<ul>
<li>index.php</li>
<li>(timthumb)</li>
<li>
<ul>
<li>timthumb.php</li>
</ul>
</li>
</ul>
<p>Im timthumb Ordner legt Ihr noch zwei weitere ordner namens &#8220;cache&#8221; und &#8220;temp&#8221; an. Achtet wiederum auf die Ordnerrechte von mindestens 775</p>
<p>Euer Arbeitsverzeichnis sieht nun so aus:</p>
<ul>
<li>index.php</li>
<li>(timthumb)</li>
<li>
<ul>
<li>(cache)</li>
<li>(temp)</li>
<li>timthumb.php</li>
</ul>
</li>
</ul>
<p><strong>Mit timthumb arbeiten</strong></p>
<p>In der index.php kann nun mit timthumb gearbeitet werden.</p>
<p>Grundsätzlich gilt es für die Bildbearbeitung mit timthumb folgenden Code einzuhalten:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/img.html"><span class="kw2">img</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;timthumb/timthumb.php?src=[Bilddateiname]&amp;w=[Breite]&amp;h=[Hoehe]&amp;zc=[Zoom-Crop]&quot;</span> <span class="sy0">/</span>&gt;</span></pre></div></div>
<p>Angegeben wird also:</p>
<ul>
<li>Der Bilddateiname &#8211; Dieser kann relativ oder auch absolut, intern, oder aber auch von extern angegeben werden.</li>
<li>Breite &#8211; Die gewünschte Bildbreite. Wird keine zusätzliche Höhe angegeben, errechnet timthumb die Höhe automatisch!</li>
<li>Hoehe &#8211; Die gewünschte Bildhoehe. Wird keine zusätzliche Breite angegeben, errechnet timthumb die Breite automatisch!</li>
<li>ZoomCrop. Hier die Bonusinformation: Es gibt die Möglichkeiten eine 1,2 oder eine 3 einzutragen. Was bedeutetn aber diese Werte?
<ul>
<li>1: Das Bild wird aus der Mitte heraus gezoomt oder beschnitten. Das Seitenverhältnis bleibt gleich</li>
<li>2: Das Bild wird auf gewünschte Breite bzw. skaliert, und Mittig im gewünschten Bildausschnitt positioniert</li>
<li>3: Das Bild wird auf gewünschte Breite bzw. skaliert, und unten im gewünschten Bildausschnitt positioniert</li>
</ul>
</li>
</ul>
<p><strong>&#8220;Interne&#8221; Bilder<br />
</strong>Liegen die Bilder auf dem eigenen Server im Projektverzeichnis, kann ganz einfach relativ af die Bilder zugegriffen werden.<br />
Ein Beispiel:</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/img.html"><span class="kw2">img</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;timthumb/timthumb.php?src=images/test.jpg&amp;w=250&amp;h=150&amp;zc=1&quot;</span> <span class="sy0">/</span>&gt;</span></pre></div></div>
<p>&nbsp;</p>
<p><strong>Externe Bilder<br />
</strong>timthumb kann auch mit externen Bildern umgehen. Dazu ist allerding eine kleine Anpassung nötig.<br />
Will man externe Bilder einbinden, so muss man die Domains, von denen man sich die Bilder hohlen will zuerst frei schalten.<br />
Dazu geht man in die Datei &#8220;timthumb.php&#8221; und trägt etwa in Zeile 27 die &#8220;Allowed Sites&#8221;, erlaubten Domains mit in das PHP-Array ein.<br />
Mein Array sieht folgendermaßen aus, damit NUR auf Bilder auf der geibi.de Seite zugegriffen werden kann.</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><span class="co1">// external domains that are allowed to be displayed on your website</span>
<span class="re0">$allowedSites</span> <span class="sy0">=</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a> <span class="br0">&#40;</span>
    <span class="st_h">'geibi.de'</span>
<span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
<p>Hier können weitere Hosts, wie z.B. flickr.com eingetragen werden.<br />
<strong>ABER:</strong><br />
Dies stellt ein Sicherheitsrisiko dar!!!Es kann nämlich jeder von außen das Skript aufrufen und im Falle dass z.B. flickr. com aktiviert ist, den eigenen Server als Thumbnail Generator missbrauchen. So läuft dann der eigene Speicher (cache) voll und auch der Traffic der eigenen Seite erhöht sich!<br />
Diese Einstellung ist meiner Meinung nach also mit Vorsicht zu genießen!</p>
<p><strong>Beispiele</strong></p>
<p>Zum guten Schluß noch ein paar Beispiele. Den verwendeten Code findet Ihr immer unter dem Bild.</p>
<p>Zuerst einmal das Ausgangsbild:<br />
<img src="http://blog.geibi.de/timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=512" alt="" /></p>
<p>Verkleinerung auf 100 Pixel Breite, Höhe automatisch, kein Zoom<br />
<img src="http://blog.geibi.de/timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=100" alt="" /><br />
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/img.html"><span class="kw2">img</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=100&quot;</span> <span class="kw3">alt</span><span class="sy0">=</span><span class="st0">&quot;&quot;</span> <span class="sy0">/</span>&gt;</span></pre></div></div></p>
<p>Verkleinerung auf 450 Pixel Breite und 250 Pixel Höhe plus ZoomCrop<br />
<img src="http://blog.geibi.de/timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=450&amp;h=250&amp;z=1" alt="" /><br />
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/img.html"><span class="kw2">img</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=450&amp;h=250&amp;z=1&quot;</span> <span class="kw3">alt</span><span class="sy0">=</span><span class="st0">&quot;&quot;</span> <span class="sy0">/</span>&gt;</span></pre></div></div></p>
<p>Verkleinerung auf 450 Pixel Breite und 250 Pixel Höhe, Zentrierung über ZoomCrop = 2<br />
<img src="http://blog.geibi.de/timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=450&amp;h=250&amp;zc=2" alt="" /><br />
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/img.html"><span class="kw2">img</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=450&amp;h=250&amp;zc=2&quot;</span> <span class="kw3">alt</span><span class="sy0">=</span><span class="st0">&quot;&quot;</span> <span class="sy0">/</span>&gt;</span></pre></div></div></p>
<p>Verkleinerung auf 450 Pixel Breite und 250 Pixel Höhe, Ein-/Anpassung über ZoomCrop = 3 (Aufgepasst: Hier wird das Bild kleiner, nämlich 250 hoch anstatt wie erwartet 450 Breit)<br />
<img src="http://blog.geibi.de/timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=450&amp;h=250&amp;zc=3" alt="" /><br />
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/img.html"><span class="kw2">img</span></a> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;timthumb/timthumb.php?src=http://blog.geibi.de/timthumb/stephi.jpg&amp;w=450&amp;h=250&amp;zc=3&quot;</span> <span class="kw3">alt</span><span class="sy0">=</span><span class="st0">&quot;&quot;</span> <span class="sy0">/</span>&gt;</span></pre></div></div></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2011%2F06%2Ftimthumb-thumbnails-maleinfach%2F&amp;t=timthumb%20-%20Thumbnails%20mal%20einfach" id="facebook_share_button_984" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_984') || document.getElementById('facebook_share_icon_984') || document.getElementById('facebook_share_both_984') || document.getElementById('facebook_share_button_984');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_984') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2011/06/timthumb-thumbnails-maleinfach/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2011/06/timthumb-thumbnails-maleinfach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geibi Nummer 1 bei Google</title>
		<link>http://blog.geibi.de/2010/12/geibi-nummer-1-bei-google/</link>
		<comments>http://blog.geibi.de/2010/12/geibi-nummer-1-bei-google/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 09:40:42 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Erfreulich]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=891</guid>
		<description><![CDATA[Lange hat&#8217;s gedauert, aber nun ist es passiert. Mit Hilfe des &#8220;All-In-One-SEO&#8221; WordPress Plugins und einigen Modifikationen des Quelltextes zur Suchmaschinenoptimieren plus zuletzt Eurer Unterstützung, da Ihr immer wieder auf meiner Seite vorbei schaut, bin ich mit dem Suchwort &#8220;geibi&#8221; endlich Nummer 1 bei Google! (Und Numer 2 und Nummer 3 hihi ) Das gehört [...]]]></description>
			<content:encoded><![CDATA[<p>Lange hat&#8217;s gedauert, aber nun ist es passiert.<br />
Mit Hilfe des &#8220;All-In-One-SEO&#8221; WordPress Plugins und einigen Modifikationen des Quelltextes zur Suchmaschinenoptimieren plus zuletzt Eurer Unterstützung, da Ihr immer wieder auf meiner Seite vorbei schaut, bin ich mit dem Suchwort &#8220;geibi&#8221; endlich Nummer 1 bei Google! (Und Numer 2 und Nummer 3 hihi <img src='http://blog.geibi.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>Das gehört doch gefeiert&#8230;. Partyyyyyyyy! Ich kauf mir die &#8220;Geibi-Line Zugstrecke&#8221;^^</p>
<p><a rel="attachment wp-att-892" href="http://blog.geibi.de/2010/12/geibi-nummer-1-bei-google/geibi_google/"><img class="alignnone size-full wp-image-892" title="geibi_google" src="http://blog.geibi.de/wp-content/uploads/2010/12/geibi_google.gif" alt="" width="512" height="368" /></a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2010%2F12%2Fgeibi-nummer-1-bei-google%2F&amp;t=Geibi%20Nummer%201%20bei%20Google" id="facebook_share_button_891" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_891') || document.getElementById('facebook_share_icon_891') || document.getElementById('facebook_share_both_891') || document.getElementById('facebook_share_button_891');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_891') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2010/12/geibi-nummer-1-bei-google/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2010/12/geibi-nummer-1-bei-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Kick Awesome Show</title>
		<link>http://blog.geibi.de/2010/12/the-kick-awesome-show/</link>
		<comments>http://blog.geibi.de/2010/12/the-kick-awesome-show/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 08:18:57 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Programmierung]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=883</guid>
		<description><![CDATA[Heute mal ein Linktipp für alle Webprogrammierer und -designer dort draußen: The Kick Awesome Show So viel Spaß kann Webprogrammierung/-design machen, bzw. die Informationsbeschaffung. Erinnert ein bisschen an IT-Crowd oder? Share]]></description>
			<content:encoded><![CDATA[<p>Heute mal ein Linktipp für alle Webprogrammierer und -designer dort draußen:</p>
<p><a title="http://kickawesome.tv/" href="http://kickawesome.tv/" target="_blank">The Kick Awesome Show</a></p>
<p>So viel Spaß kann Webprogrammierung/-design machen, bzw. die Informationsbeschaffung.<br />
Erinnert ein bisschen an IT-Crowd oder? <img src='http://blog.geibi.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2010%2F12%2Fthe-kick-awesome-show%2F&amp;t=The%20Kick%20Awesome%20Show" id="facebook_share_button_883" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_883') || document.getElementById('facebook_share_icon_883') || document.getElementById('facebook_share_both_883') || document.getElementById('facebook_share_button_883');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_883') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2010/12/the-kick-awesome-show/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2010/12/the-kick-awesome-show/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Speed up with Google Chrome</title>
		<link>http://blog.geibi.de/2010/10/speed-up-with-google-chrome/</link>
		<comments>http://blog.geibi.de/2010/10/speed-up-with-google-chrome/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 14:00:16 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=803</guid>
		<description><![CDATA[&#8230;Oder: Firefox adé vorerst. Ich will ja keine Werbung machen, aber das muss einfach raus. Mein Arbeitsrechner hat 2 Gigabyte Speicher. Am Ende eines Tages nimmt mein seit Jahren geliebter, und den Internet Explorer in Geschwindigkeit weit abhängender, Firefox Browser nun sage und schreibe die Hälfte, also 1 Gigabyte an Arbeitsspeicher ein. Ein Klick um [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;Oder: Firefox adé vorerst.<br />
Ich will ja keine Werbung machen, aber das muss einfach raus. Mein Arbeitsrechner hat 2 Gigabyte Speicher. Am Ende eines Tages nimmt mein seit Jahren geliebter, und den Internet Explorer in Geschwindigkeit weit abhängender, Firefox Browser nun sage und schreibe die Hälfte, also 1 Gigabyte an Arbeitsspeicher ein.</p>
<p>Ein Klick um einen neuen Tab zu öffnen, das Eintippen der URL und das Warten, bis die Seite endlich angezeigt wird, strapaziert die Nerven wirklich tödlich.<br />
Als &#8220;normaler&#8221; Benutzer des Internets mag das ja noch erträglich sein, als Webprogrammierer brauche ich aber manchmal bis zu 15 offene Tabs und diverse Entwicklerwerkzeuge, die als Plugins installiert sind. Da geht der rote Fuchs schnell in die Knie &#8211; Schlimmer noch: Er zieht das komplette Betriebssystem runter, so dass es auch schon zur Qual wird, in der Zwischenzeit, bis z.B. Google aufgerufen wird, in ein anderes Programm zu wechseln.</p>
<p>Nach einem kurzen Tests des neuen Google Chrome Browsers, einem Check, ob dieser auch alle meine benötigten Entwicklertools besitzt, und der sofortigen Feststellung, dass man sich hier nicht mal um die Installation und Wartung des Flash-Players kümmern muss (&#8220;Firefox wurde aktualisiert &#8211; Bitte aktualisieren Sie Ihren Flash-Player&#8221; zum hundertsten Mal), konnte ich nicht mehr anders und habe dem Firefox nun erst einmal den Rücken gekehrt.</p>
<p>Viele Benutzer in Foren berichten von den gleichen Problemen, und da diese nun schon über ein Jahr spürbar andauern, konnte ich einfach nicht mehr anders.</p>
<p>R.I.P Firefox &#8211; Willkommen Produktivität und Augen schonen.</p>
<p>Als Goodie zum Schluß (und für mich als Gedächtnisstütze) meine favorisierten Plugins bzw. Extensions:</p>
<ul>
<li><a href="https://chrome.google.com/extensions/detail/ohcpnigalekghcmgcdcenkpelffpdolg?hl=de" target="_blank">Color Pick</a> (Zum schnellen Erfassen von Farbwerten in einer Webseite &#8211; Mit Lupenfunktion)</li>
<li><a href="https://chrome.google.com/extensions/detail/ckibcdccnfeookdmbahgiakhnjcddpki?hl=de" target="_blank">Webseiten-Screenshot</a> (Einen Screenshot einer Webseite erzeugen. Und zwar auch von mehr als einer Bildschirmseite plus Videoscreenshots plus nachträgliche Bearbeitungsmöglichkeit in einem kleinen Grafikprogramm. Alles komplett im Browser)</li>
<li><a href="https://chrome.google.com/extensions/detail/aonjhmdcgbgikgjapjckfkefpphjpgma?hl=de" target="_blank">Measure It!</a> (Zum Ausmessen von Größen und Abständen in einer Webseite)</li>
<li><a href="https://chrome.google.com/extensions/detail/gbkffbkamcejhkcaocmkdeiiccpmjfdi?hl=de" target="_blank">Pendule</a> Entwicklertools mit genialen Features</li>
<li><a href="http://www.chromeextensions.org/utilities/ie-tab/" target="_blank">IE TAB</a> Öffnet einen neuen Tab in Chrome. Der Inhalt wird wie im auf dem System installierten IE dargestellt</li>
<li><a href="https://chrome.google.com/extensions/detail/kkelicaakdanhinjdeammmilcgefonfh" target="_blank">Window Resizer</a> Verschiedene Fenstergrößen für den Browser setzen</li>
<li><a href="https://chrome.google.com/extensions/detail/dnfpcpfijpdhabaoieccoclghgplmpbd" target="_blank">CSS Reloader</a> Nur das CSS der Seite neu laden</li>
<li>Und dann noch die Entwicklertools, die bereits in Chrome eingebunden und über die Tastenkombination STRG#SHIFT+I erreichbar sind. Genial!</li>
</ul>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2010%2F10%2Fspeed-up-with-google-chrome%2F&amp;t=Speed%20up%20with%20Google%20Chrome" id="facebook_share_button_803" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_803') || document.getElementById('facebook_share_icon_803') || document.getElementById('facebook_share_both_803') || document.getElementById('facebook_share_button_803');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_803') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2010/10/speed-up-with-google-chrome/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2010/10/speed-up-with-google-chrome/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Skandal</title>
		<link>http://blog.geibi.de/2010/08/skandal/</link>
		<comments>http://blog.geibi.de/2010/08/skandal/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 18:06:47 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Erfreulich]]></category>
		<category><![CDATA[Lustig]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=746</guid>
		<description><![CDATA[Normalerweise unterstütze ich Werbung nicht, dieses virale Fundstück aber zauberte mir heute ein schönes Lächeln auf mein Gesicht. Gut gemacht, und deswegen zeige ich es Euch hier: (Ich bekomme übrigens keinen Cent dafür) Share]]></description>
			<content:encoded><![CDATA[<p>Normalerweise unterstütze ich Werbung nicht, dieses virale Fundstück aber zauberte mir heute ein schönes Lächeln auf mein Gesicht.<br />
Gut gemacht, und deswegen zeige ich es Euch hier: (Ich bekomme übrigens keinen Cent dafür)</p>
<p><a href="http://blog.geibi.de/2010/08/skandal/"><em>Click here to view the embedded video.</em></a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2010%2F08%2Fskandal%2F&amp;t=Skandal" id="facebook_share_button_746" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_746') || document.getElementById('facebook_share_icon_746') || document.getElementById('facebook_share_both_746') || document.getElementById('facebook_share_button_746');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_746') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2010/08/skandal/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2010/08/skandal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Piano Chatroulette</title>
		<link>http://blog.geibi.de/2010/03/piano-chatroulette/</link>
		<comments>http://blog.geibi.de/2010/03/piano-chatroulette/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 19:47:42 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Lustig]]></category>
		<category><![CDATA[Musik]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=693</guid>
		<description><![CDATA[Selten so etwas Geniales gesehen. Ein Hammer! Share]]></description>
			<content:encoded><![CDATA[<p>Selten so etwas Geniales gesehen. Ein Hammer!</p>
<p><a href="http://blog.geibi.de/2010/03/piano-chatroulette/"><em>Click here to view the embedded video.</em></a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2010%2F03%2Fpiano-chatroulette%2F&amp;t=Piano%20Chatroulette" id="facebook_share_button_693" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_693') || document.getElementById('facebook_share_icon_693') || document.getElementById('facebook_share_both_693') || document.getElementById('facebook_share_button_693');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_693') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2010/03/piano-chatroulette/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2010/03/piano-chatroulette/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHPUnit und Netbeans (Windows)</title>
		<link>http://blog.geibi.de/2010/02/phpunit-und-netbeans-windows/</link>
		<comments>http://blog.geibi.de/2010/02/phpunit-und-netbeans-windows/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 19:23:25 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Programmierung]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=668</guid>
		<description><![CDATA[Heute bin ich über die Anleitung zur Integration von PHPUnit in Netbeans gestolpert. Wie so oft war diese nicht ganz ausreichend, bzw. nicht weitreichend genug. Hier aber dann doch eine Komplettanleitung mit Erfolgsgarantie auf Windows Rechnern (Stand Netbeans 6.8 bzw. Netbeans 6.9M1) 1. Schritt: PHP Installieren Die Meisten, die dieses Thema hier bewegt, haben PHP [...]]]></description>
			<content:encoded><![CDATA[<p>Heute bin ich über die Anleitung zur Integration von PHPUnit in Netbeans gestolpert.</p>
<p>Wie so oft war diese nicht ganz ausreichend, bzw. nicht weitreichend genug.</p>
<p>Hier aber dann doch eine Komplettanleitung mit Erfolgsgarantie auf Windows Rechnern (Stand Netbeans 6.8 bzw. Netbeans 6.9M1)</p>
<p><span id="more-668"></span></p>
<p><strong style="font-size: 18px;">1. Schritt: PHP Installieren</strong></p>
<p>Die Meisten, die dieses Thema hier bewegt, haben PHP bestimt schon installiert. Entweder manuell, oder z.B. über das beliebte XAMPP Paket, deswegen gehe ich auf diesen Punkt nicht weiter ein, weil er eigentlich schon erledigt sein sollte.</p>
<p><strong style="font-size: 18px;">2. Schritt: PHPUnit installieren</strong></p>
<p>Dies geht am Einfachsten über PEAR.<br />
Dazu wird die Eingabeaufforderung gestertet (<strong>START-&gt;Alle Programme-&gt;Zubehör-&gt;Eingabeauforderung</strong>)<br />
Auf <strong>Vista</strong>-Rechnern empfielt es sich die Eingabeaufforderung mit <strong>Administratorrechten </strong>zu starten. Dazu wird mit der rechten Maustaste geklickt und &#8220;Als Administrator ausführen&#8221; ausgewählt.</p>
<p>Nun wechselt man in den PHP Ordner von XAMPP. Dieser befindet sich z.B. unter <strong>c:\xampp\php</strong></p>
<p>Dort wird dann eingegeben:</p>
<blockquote><p><code>pear channel-discover pear.phpunit.de [Enter]<br />
pear channel-discover pear.symfony-project.com [Enter]<br />
pear install phpunit/PHPUnit[Enter]</code></p></blockquote>
<p style="font-size: 18px;"><strong>3.Schritt: XDebug aktivieren</strong></p>
<p>In der Datei <strong>c:\xampp\php\php.ini</strong> müssen folgende Zeilen aktiviert werden (d.h. das ; Zeichen muss entfernt werden)</p>
<blockquote><p><code>zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"<br />
xdebug.remote_enable=on<br />
xdebug.remote_handler=dbgp<br />
xdebug.remote_host=localhost<br />
xdebug.remote_port=9000<br />
</code></p></blockquote>
<p><strong style="font-size: 18px;">4.Schritt: Integration in Netbeans</strong></p>
<p>Man wechselt in das Menü <strong>Tools-&gt;Options-&gt;PHP</strong></p>
<p>Im Tab &#8220;General&#8221; trägt man unter <strong>&#8220;PHP-Interpreter&#8221;</strong> den Pfad zur php.exe Datei ein z.B. <strong>C:\xampp\php\php.exe</strong></p>
<p>Im Tab &#8220;Unit Testing&#8221; trägt man unter <strong>&#8220;PHPUnit Script&#8221; </strong>den Pfad zum in Punkt 2 installierten PHPUnit ein z.B. <strong>C:\xampp\php\phpunit.bat</strong></p>
<p><strong style="font-size: 18px;">5.Schritt: Das Projekt aufsetzen<br />
</strong></p>
<p>Hier empfielt es sich ein neues Projekt zu starten und eine neue Klasse wie anzulegen.<strong><br />
</strong>Ein Beispiel wäre:</p>
<ul>
<li>ein neues Projekt mit dem Namen &#8220;Mathe&#8221;</li>
<li>und in diesem Projekt eine neue Klasse &#8220;Taschenrechner.php&#8221;</li>
</ul>
<p>Die Klasse Distanz.php enthält dann folgenden Code:</p>
<div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.geibi.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><span class="kw2">&lt;?php</span>
<span class="kw2">class</span> Taschenrechner<span class="br0">&#123;</span>
<span class="co4">/**
* @assert (0, 0) == 0
* @assert (0, 1) == 1
* @assert (1, 0) == 1
* @assert (1, 1) == 2
* @assert (1, 2) == 4
*/</span>
<span class="kw2">public</span> <span class="kw2">function</span> add<span class="br0">&#40;</span><span class="re0">$a</span><span class="sy0">,</span> <span class="re0">$b</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
<span class="kw1">return</span> <span class="re0">$a</span> <span class="sy0">+</span> <span class="re0">$b</span><span class="sy0">;</span>
<span class="br0">&#125;</span>
&nbsp;
<span class="kw2">public</span> <span class="kw2">function</span> add2<span class="br0">&#40;</span><span class="re0">$a</span><span class="sy0">,</span> <span class="re0">$b</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
<span class="kw1">return</span> <span class="re0">$a</span> <span class="sy0">+</span> <span class="re0">$b</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></div></div>
<p>Um nun automatisch eine Testdatei zu erstellen, klickt man mit der rechten Maustaste auf die Klassen-Datei Taschenrechner.php und wählt aus dem Kontextmenü <strong>&#8220;Tools-&gt;Create PHPUnit tests&#8221;</strong></p>
<p>Darauf hin öffnet sich ein weiteres Menü, indem man den Ordner für die Testdateien angeben soll. Da dieser noch nicht vorhanden ist, erstellt man selbst einen (am besten als Unterordner &#8220;tests&#8221; im Projekt-Rootverzeichnis) und wählt diesen aus.</p>
<p>Netbeans erstellt daraufhin automatisch eine Datei TaschenrechnerTest.php im &#8220;tests&#8221; Ordner.</p>
<p><strong style="font-size: 18px;">6.Schritt: PHPUnit endlich testen</strong></p>
<p>Wählt man nun bei ausgewählter Datei &#8220;Taschenrechner.php&#8221; (Diese muss im Code-Fenster angezeigt werden&#8221; auf <strong>&#8220;Run-&gt;Test File&#8221;</strong> oder <strong>STRG+F6</strong> so werden die Tests ausgeführt und im Fenster <strong>&#8220;Test Results&#8221;</strong> angezeigt.</p>
<p>Ist das Fenster &#8220;Test Results&#8221; nicht sichtbar, kann man es über <strong>&#8220;Window-&gt;Other-&gt;Test Results&#8221;</strong> einblenden</p>
<p><strong style="font-size: 18px;">7.Schritt: Mehr Komfort über Code-Coverage</strong></p>
<p>Weitaus komfortabler als das einzelne ausführen einzelner Tests ist die sogenannte &#8220;Code-Coverage&#8221;.</p>
<p>Diese wird eingeblendet, wenn man mit der rechten Maustaste auf das Projekt klickt und im Kontextmenü <strong>&#8220;Code-Coverage-&gt;Collect and display Code-Coverage&#8221; </strong>auswählt.<br />
Danach erscheint im unteren Bereich eine Statusleite und einige Buttons zum erweiterten Testen.<strong> </strong></p>
<p>Die Statusleite zeigt an, wieviel Prozent des Codes durch Tests abgedeckt sind, und hebt durch grüne (Durch Test abgedeckt) und rote (Nicht durch Test abgedeckt) Hinterlegung im Code die Methoden hervor, die durch Tests behandelt werden bzw. nicht.</p>
<p>Über den Button &#8220;All Tests&#8221; kann man dann alle vorhandenen Tests in einem Projekt auf einmal ausführen und alle Stati ansehen. (Wäre ja schlimm, wenn man ein einem Großprojekt jede Datei einzeln checken müsste)<strong> </strong></p>
<p>Ich hoffe dieser Artikel hat geholfen, vor allem der Tipp mit dem Aktivieren von XDebug über die php.ini sollte hilfreich sein, weil sonst die Code-Coverage und das automatische Ausführen aller Tests nicht funktionieren würde<strong> </strong>und es zu folgenden, nichtssagenden und nicht zu behebenden Fehlern kommen würde:</p>
<p>- No tests executet (0,0 s)<strong><br />
- </strong>Perhaps an error occured, verify in Output window.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2010%2F02%2Fphpunit-und-netbeans-windows%2F&amp;t=PHPUnit%20und%20Netbeans%20%28Windows%29" id="facebook_share_button_668" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_668') || document.getElementById('facebook_share_icon_668') || document.getElementById('facebook_share_both_668') || document.getElementById('facebook_share_button_668');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_668') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2010/02/phpunit-und-netbeans-windows/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2010/02/phpunit-und-netbeans-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nerd Comic</title>
		<link>http://blog.geibi.de/2010/02/nerd-comic/</link>
		<comments>http://blog.geibi.de/2010/02/nerd-comic/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 08:56:15 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Lustig]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=653</guid>
		<description><![CDATA[Muahaha&#8230; Share]]></description>
			<content:encoded><![CDATA[<p>Muahaha&#8230;</p>
<p><a href="http://blog.geibi.de/2010/02/nerd-comic/nerdcomic/" rel="attachment wp-att-654"><img src="http://blog.geibi.de/wp-content/uploads/2010/02/nerdComic.png" alt="" title="nerdComic" width="500" height="158" class="aligncenter size-full wp-image-654" /></a></p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2010%2F02%2Fnerd-comic%2F&amp;t=Nerd%20Comic" id="facebook_share_button_653" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_653') || document.getElementById('facebook_share_icon_653') || document.getElementById('facebook_share_both_653') || document.getElementById('facebook_share_button_653');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_653') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2010/02/nerd-comic/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2010/02/nerd-comic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optische Illusionen</title>
		<link>http://blog.geibi.de/2009/10/optische-illusionen/</link>
		<comments>http://blog.geibi.de/2009/10/optische-illusionen/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 11:17:16 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Interessant]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=628</guid>
		<description><![CDATA[Heute habe ich eine tolle Seite mit optischen Illusionen gefunden. Früher lag bei meinem Frisör auch mal so ein Buch rum, welches ich wirklich interessant fand. Auf dieser Seite (hier gibt es massig verschiedene Illusionen) kann man aber auch noch mitmachen, und z.B. Geschwindigkeiten oder Tansparenzen selbst bestimmen. Schaut einfach mal rein, das erklärt sich [...]]]></description>
			<content:encoded><![CDATA[<p>Heute habe ich eine tolle Seite mit optischen Illusionen gefunden.<br />
Früher lag bei meinem Frisör auch mal so ein Buch rum, welches ich wirklich interessant fand.</p>
<p>Auf dieser Seite (hier gibt es massig verschiedene Illusionen) kann man aber auch noch mitmachen, und z.B. Geschwindigkeiten oder Tansparenzen selbst bestimmen.</p>
<p>Schaut einfach mal rein, das erklärt sich dann von selbst, und drück oben links auf &#8220;prev&#8221; bzw. &#8220;next&#8221; um zur vorherigen bzw. nächsten Illusion zu gelangen.</p>
<p><a href="http://www.michaelbach.de/ot/mot_sam/index.html" target="_blank">http://www.michaelbach.de</a></p>
<p>Viel Spaß!</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2009%2F10%2Foptische-illusionen%2F&amp;t=Optische%20Illusionen" id="facebook_share_button_628" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_628') || document.getElementById('facebook_share_icon_628') || document.getElementById('facebook_share_both_628') || document.getElementById('facebook_share_button_628');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_628') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2009/10/optische-illusionen/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2009/10/optische-illusionen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fisting Attacken bei Google und Co</title>
		<link>http://blog.geibi.de/2009/10/fisting-attacken-bei-google-und-co/</link>
		<comments>http://blog.geibi.de/2009/10/fisting-attacken-bei-google-und-co/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 07:18:43 +0000</pubDate>
		<dc:creator>Geibi</dc:creator>
				<category><![CDATA[Computerwelt]]></category>
		<category><![CDATA[Lustig]]></category>

		<guid isPermaLink="false">http://blog.geibi.de/?p=616</guid>
		<description><![CDATA[Vorsicht! Wenn Ihr nicht aufpasst, könnt auch Ihr Opfer von Fisting Attacken werden. Das Gemeine: Die Programmierer der Fisting attacken wollen nicht an Eure Passwörter, sondern an Euren Code (Zu Deutsch: Kot). Fisting Attacken sind ein sehr neues Phänomen (noch vor einigen Monaten versuchten Verbrecher über die sogenannte &#8220;Brute Force&#8221; Methode an Informationen von Internetusern [...]]]></description>
			<content:encoded><![CDATA[<p>Vorsicht! Wenn Ihr nicht aufpasst, könnt auch Ihr Opfer von Fisting Attacken werden.</p>
<p>Das Gemeine: Die Programmierer der Fisting attacken wollen nicht an Eure Passwörter, sondern an Euren Code (Zu Deutsch: Kot).</p>
<p>Fisting Attacken sind ein sehr neues Phänomen (noch vor einigen Monaten versuchten Verbrecher über die sogenannte &#8220;Brute Force&#8221; Methode an Informationen von Internetusern zu kommen &#8211; dies klappte aber nicht so gut) weswegen noch keine Schutzmaßnahmen veröffentlicht wurden.</p>
<p>In Fachforen kursieren aber bereits Vorschläge wie z.B. der Keuschheitsgürtel beim Surfen, oder aber immer auf die Seife aufpassen und niemals am Computer damit rumspielen.<br />
Andere Benutzer gehen in die Offensive, wollen den Fisting Attacken sofort saures geben und skandieren: &#8220;ab 5.45 wird zurück gefistet!!&#8221;</p>
<p>Ein ernstzunehmendes Problem also. Hier noch der Bericht. Passt auf Euch auf!<br />
<p><a href="http://blog.geibi.de/2009/10/fisting-attacken-bei-google-und-co/"><em>Click here to view the embedded video.</em></a></p></p>
<p>P.S: Wer mir sagen kann, was &#8220;Blackcat supermerca&#8221; oder &#8220;Blackcat supermercat&#8221; ist, nachdem in dem Beitrag bei Google gesucht wird, bekommt ein Bild von einem großen Pferd.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.geibi.de%2F2009%2F10%2Ffisting-attacken-bei-google-und-co%2F&amp;t=Fisting%20Attacken%20bei%20Google%20und%20Co" id="facebook_share_button_616" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_616') || document.getElementById('facebook_share_icon_616') || document.getElementById('facebook_share_both_616') || document.getElementById('facebook_share_button_616');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_616') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div class='wpfblike' style='height: 40px;'><fb:like href='http://blog.geibi.de/2009/10/fisting-attacken-bei-google-und-co/' layout='default' show_faces='true' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://blog.geibi.de/2009/10/fisting-attacken-bei-google-und-co/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

