<?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>Lars Schweisthal - professional web development</title>
	<atom:link href="http://blog.larsschweisthal.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.larsschweisthal.de</link>
	<description>My precious thoughts</description>
	<lastBuildDate>Wed, 18 Jan 2012 10:19:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Suchmaschinen-Robots &#8211; beispielsweise Googlebot &#8211; komplett aussperren</title>
		<link>http://blog.larsschweisthal.de/suchmaschinen-robots-googlebot-komplett-aussperren/</link>
		<comments>http://blog.larsschweisthal.de/suchmaschinen-robots-googlebot-komplett-aussperren/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 10:13:52 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=134</guid>
		<description><![CDATA[Möchte man sichergehen, dass eine Seite nicht durch Suchmaschinen-Spider indiziert wird, gibt es zwei relativ zuverlässige Methoden. Das ist beispielsweise notwendig, wenn die Seite &#8220;aus Versehen&#8221; im Index der Suchmaschine gelandet ist. Vielleicht handelt es sich &#8220;Preview-Seite&#8221;, die zunächst nur für den potenziellen Kunden bestimmt ist und daher nicht über Google oder andere Suchmaschinen auffindbar [...]]]></description>
			<content:encoded><![CDATA[<p>Möchte man sichergehen, dass eine Seite nicht durch Suchmaschinen-Spider indiziert wird, gibt es zwei relativ zuverlässige Methoden.<br />
<span id="more-134"></span><br />
Das ist beispielsweise notwendig, wenn die Seite &#8220;aus Versehen&#8221; im Index der Suchmaschine gelandet ist. Vielleicht handelt es sich &#8220;Preview-Seite&#8221;, die zunächst nur für den potenziellen Kunden bestimmt ist und daher nicht über Google oder andere Suchmaschinen auffindbar sein soll.</p>
<p>Die beste Methode wäre natürlich, die Seite mit einem Passwort zu schützen. Manchmal möchte das der Kunde aber einfach nicht (oder man selbst).</p>
<p>Um zu verhinden, dass die Seite in den Index aufgenommen wird, sollte man zunächst in das Document-Root-Verzeichnis (also das &#8220;Mutter&#8221;-Verzeichnis) eine Datei mit dem Namen <em>robots.txt</em> legen.</p>
<p>Die meisten Spider suchen automatisch nach dieser Datei, in der angegeben wird, welche Verzeichnise der Spider durchsuchen darf und welche nicht.</p>
<p>Der Inhalt der Dtai sollte wie folgt sein (sofern man die Spider aus allen Verzeichnissen, also komplett, aussperren möchte:</p>
<pre class="php">
User-agent: *
Disallow: /
</pre>
<p>Weitere Informationen zur <em>robots.txt</em> findet man unter anderem bei <a href="http://de.wikipedia.org/wiki/Robots_Exclusion_Standard">Wikipedia</a>.</p>
<p>Da sich jedoch nicht alle Spider an die <em>robots.txt</em> halten, sollte man zusätzlich noch eine <em>Rewrite Condition</em> hinzufügen.</p>
<p>Diese kann man entweder in die VHost-Datei des Servers schreiben oder aber in die <em>.htaccess</em>, welche wiederum im Document-Root liegt (oder dort hingelegt werden kann).</p>
<p>Die Condition die dem Spider sagt, dass es die Seite nicht oder nicht mehr gibt, lautet wie folgt:</p>
<pre class="php">
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} AltaVista [OR]
RewriteCond %{HTTP_USER_AGENT} Googlebot [OR]
RewriteCond %{HTTP_USER_AGENT} msnbot [OR]
RewriteCond %{HTTP_USER_AGENT} Slurp
RewriteRule .* - [G]
</pre>
<p>Hierzu gibt es ebenfalls weitere Informationen bei <a href="http://de.wikipedia.org/wiki/Htaccess">Wikipedia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/suchmaschinen-robots-googlebot-komplett-aussperren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eigene Tweets via Twitter API auslesen</title>
		<link>http://blog.larsschweisthal.de/eigene-tweets-via-twitter-api-auslesen/</link>
		<comments>http://blog.larsschweisthal.de/eigene-tweets-via-twitter-api-auslesen/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 15:32:06 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Allgemein]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=125</guid>
		<description><![CDATA[Heute habe ich mich mal daran gesetzt, meine letzten Tweets via Twitter-API auszulesen. Eine Dokumentation dazu findet man unter http://dev.twitter.com/doc/get/statuses/user_timeline. Ich habe fix eine Klasse zusammengeschraubt, die das Request absetzt und eine bestimmte Anzahl von Tweets zurückgibt: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [...]]]></description>
			<content:encoded><![CDATA[<p>Heute habe ich mich mal daran gesetzt, meine letzten Tweets via Twitter-API auszulesen. Eine Dokumentation dazu findet man unter <a href="http://dev.twitter.com/doc/get/statuses/user_timeline">http://dev.twitter.com/doc/get/statuses/user_timeline</a>.<span id="more-125"></span></p>
<p>Ich habe fix eine Klasse zusammengeschraubt, die das Request absetzt und eine bestimmte Anzahl von Tweets zurückgibt:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p1256"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code" id="p125code6"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Twitter
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> static <span style="color: #000000; font-weight: bold;">function</span> getTweets<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">20</span><span style="color: #339933;">,</span> <span style="color: #000088;">$with_responses</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$return</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$page</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$request_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=<span style="color: #006699; font-weight: bold;">{$user}</span>&amp;count=1&amp;page=&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$return</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$xml_object</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/simplexml_load_file"><span style="color: #990000;">simplexml_load_file</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$request_url</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$page</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml_object</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$with_responses</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span><span style="color: #000088;">$xml_object</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">in_reply_to_status_id</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">continue</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$return</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
          <span style="color: #0000ff;">&quot;time&quot;</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/strtotime"><span style="color: #990000;">strtotime</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span><span style="color: #000088;">$xml_object</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">created_at</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
          <span style="color: #0000ff;">&quot;text&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #004000;">linkify</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span><span style="color: #000088;">$xml_object</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">text</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #b1b100;">else</span>
      <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$return</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$return</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">private</span> static <span style="color: #000000; font-weight: bold;">function</span> linkify<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$tweet</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span>
      <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">&quot;/http(.*)(.$|. | |$)/Uis&quot;</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">&quot;/#(.*)(.| |$)/Uis&quot;</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">&quot;/@(.*)(.| |$)/Uis&quot;</span>
      <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">&quot;&lt;a href=&quot;</span>http$<span style="color: #cc66cc;">1</span><span style="color: #0000ff;">&quot;&gt;http<span style="color: #006699; font-weight: bold;">$1</span>&lt;/a&gt;<span style="color: #006699; font-weight: bold;">$2</span>&quot;</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">&quot;&lt;a href=&quot;</span>https<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//twitter.com/#search?q=%23$1&quot;&gt;#$1&lt;/a&gt;$2&quot;,</span>
        <span style="color: #0000ff;">&quot;&lt;a href=&quot;</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//twitter.com/$1&quot;&gt;@$1&lt;/a&gt;$2&quot;</span>
      <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <span style="color: #000088;">$tweet</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tweet</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Auf meiner Seite habe ich eine Liste <em>twitterlist</em>, die ich nun mit den Tweets befüllen kann</p>

<div class="wp_codebox"><table width="100%" ><tr id="p1257"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p125code7"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;twitterlist&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Tweet No. 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>
  ...
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></pre></td></tr></table></div>

<p>Da der ganze Request je nach Twitter-Auslastung mitunter recht lange dauert, habe ich mich entschlossen die Tweets via Ajax zu aktualisieren, um die Ladezeit meiner Seite nicht unnötig zu verlängern. Ich verwende dazu einen MooTools-Request mit der zusätzlichen <a href="http://code.google.com/p/mootimeout/">mootimeout-Klasse</a>, mit der man dem Request einen Timeout-Callback verpassen kann:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p1258"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p125code8"><pre class="javascript" style="font-family:monospace;">  <span style="color: #003366; font-weight: bold;">new</span> Request<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
    method<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;get&quot;</span><span style="color: #339933;">,</span>
    onSuccess<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>response<span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;twitterlist&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">set</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;html&quot;</span><span style="color: #339933;">,</span> response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
    onTimeout<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;twitterlist&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">set</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;html&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&lt;li&gt;&lt;strong style=&quot;</span>color<span style="color: #339933;">:</span>red<span style="color: #3366CC;">&quot;&gt;Error: &lt;/strong&gt; Timeout&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
    timeout<span style="color: #339933;">:</span> <span style="color: #CC0000;">10000</span><span style="color: #339933;">,</span>
    url<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;/ajax/get_tweets.php&quot;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Der Request sollte natürlich im <em>domready</em>-Event stattfinden.</p>
<p>Der Inhalt der <em>get_tweets.php</em> ist recht überschaubar:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p1259"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code" id="p125code9"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">include_once</span> <span style="color: #0000ff;">&quot;Twitter.class.php&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$return</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$tweets</span> <span style="color: #339933;">=</span> Twitter<span style="color: #339933;">::</span><span style="color: #004000;">getTweets</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;pw81&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tweets</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tweets</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$return</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$return</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;text&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$return</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;time datetime=&quot;</span><span style="color: #0000ff;">&quot; . date(&quot;</span>Y<span style="color: #339933;">-</span>m<span style="color: #339933;">-</span>d<span style="color: #0000ff;">&quot;, <span style="color: #006699; font-weight: bold;">$tweet</span>[&quot;</span><a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><span style="color: #0000ff;">&quot;]) . &quot;</span><span style="color: #0000ff;">&quot;&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$return</span> <span style="color: #339933;">.=</span> <a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;d.m.Y, H:i&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tweet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;time&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$return</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot; Uhr&lt;/time&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$return</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;/li&gt;
  &quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$return</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&lt;strong style=&quot;</span>color<span style="color: #339933;">:</span>red<span style="color: #0000ff;">&quot;&gt;Error: &lt;/strong&gt; Cannot retrieve tweets.&lt;/li&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$return</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Da die Anzahl der Request von Twitter auf 150 Stück begrenzt ist, habe ich noch einen kleinen Fallback eingebaut, der eine Fehlermeldung zurückgibt, falls die Anzahl der möglichen Requests überschritten wurde.</p>
<p>Ich habe noch ein wenig die Liste angepasst, indem ich mir über <a href="http://ajaxload.info/">http://ajaxload.info/</a> eine kleine Ladegrafik erstellt habe, die angezeigt wird bis der Request abgeschlossen ist:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p12510"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p125code10"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;twitterlist&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>
    Loading Tweets...<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">br</span></a> <span style="color: #66cc66;">/</span>&gt;</span>
    <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/img/layout/loading.gif&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Loading&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></pre></td></tr></table></div>

<p>Das war&#8221;s auch schon. Ich hoffe ich konnte damit einigen weiterhelfen ;-).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/eigene-tweets-via-twitter-api-auslesen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tickertext mit jQuery</title>
		<link>http://blog.larsschweisthal.de/tickertext-mit-jquery/</link>
		<comments>http://blog.larsschweisthal.de/tickertext-mit-jquery/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 09:54:37 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=107</guid>
		<description><![CDATA[Anbei eine relativ einfache und pragmatische Art, einen dynamischen Tickertext in eine Seite zu integrieren. Allerdings ist das bestimmt nicht der Weisheit letzter Schluss, da es doch etwas sehr unsauber ist und das unkonforme &#8220;marquee&#8221;-Element benutzt. Für Verbesserungsvorschläge oder Alternativen wäre ich sehr dankbar. CSS: 1 2 3 4 5 6 7 8 9 10 [...]]]></description>
			<content:encoded><![CDATA[<p>Anbei eine relativ einfache und pragmatische Art, einen dynamischen Tickertext in eine Seite zu integrieren.<br />
<span id="more-107"></span><br />
Allerdings ist das bestimmt nicht der Weisheit letzter Schluss, da es doch etwas sehr unsauber ist und das unkonforme &#8220;marquee&#8221;-Element benutzt. Für Verbesserungsvorschläge oder Alternativen wäre ich sehr dankbar.</p>
<p>CSS:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p10714"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p107code14"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#tickertext</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">590px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>HTML:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p10715"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p107code15"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tickertext&quot;</span>&gt;</span>Ich bin ein Tickertext<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></pre></td></tr></table></div>

<p>Javascript:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p10716"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p107code16"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span>
<span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> ticker_text <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#tickertext'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>ticker_text <span style="color: #339933;">!=</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> inhalt <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#tickertext'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#tickertext'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'none'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> marquee <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;marquee id=&quot;tickertext&quot; scrollamount=&quot;2&quot; scrolldelay=&quot;10&quot;&gt;'</span> <span style="color: #339933;">+</span> ticker_text <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'/marquee&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#tickertext'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span>marquee<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><a href="/wp-content/uploads/tickertext.html" title="Tickertext mit jQuery - Demo">Hier</a> geht&#8217;s zur Demo!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/tickertext-mit-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML-Grundgerüst</title>
		<link>http://blog.larsschweisthal.de/xhtml-grundgerust/</link>
		<comments>http://blog.larsschweisthal.de/xhtml-grundgerust/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 11:35:33 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=96</guid>
		<description><![CDATA[Inspiriert von dem wirklich hervorragenden Blog-Beitrag The Incredible Em &#038; Elastic Layouts with CSS von Ty Gossman (und weil ich grade eine neue Internet-Seite anfange) habe ich mich mal daran gesetzt, ein XHTML-Grundgerüst zu erstellen. Die Seite soll möglichst flexibel sein, einige grundsätzliche Regeln beinhalten (z.B. erhalten alle Elemente ein Margin- und Padding-Reset) und leicht [...]]]></description>
			<content:encoded><![CDATA[<p>Inspiriert von dem wirklich hervorragenden Blog-Beitrag <a href="http://jontangerine.com/log/2007/09/the-incredible-em-and-elastic-layouts-with-css">The Incredible Em &#038; Elastic Layouts with CSS</a> von Ty Gossman (und weil ich grade eine neue Internet-Seite anfange) habe ich mich mal daran gesetzt, ein XHTML-Grundgerüst zu erstellen.<br />
<span id="more-96"></span><br />
Die Seite soll möglichst flexibel sein, einige grundsätzliche Regeln beinhalten (z.B. erhalten alle Elemente ein Margin- und Padding-Reset) und leicht anzupassen sein.</p>
<p>Hier also nun das Resultat, was gerne jeder verwenden/ändern darf:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p9618"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
</pre></td><td class="code" id="p96code18"><pre class="html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;</span>
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span> xml:<span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span> &gt;</span>
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span>
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span>Seitentitel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content-type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;author&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Lars Schweisthal&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">style</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
&nbsp;
    /* very basic CSS reset */
    * {
      padding: 0;
      margin: 0;
    }
&nbsp;
    html {
      width: 100%;
      background: white;
      color: black;
      overflow-y: scroll; /* prevent Firefox scrollbar jump when resizing window/content */
      font-size: 100%; /* Fix for IE; Most Browsers have 16px as standard font-size */
    }
&nbsp;
    body {
      background: white;
      margin: 3.125em auto; /* center the body, top-/bottom-margin of 50px */
      width: 56.25em; /* Base-width 900px */
    }
&nbsp;
    ul {
      list-style-type: none;
    }
&nbsp;
    a {
      color: black;
      text-decoration: underline;
    }
&nbsp;
    a:hover {
      color: red;
      text-decoration: none;
    }
&nbsp;
    h1 {
      clear: both;
      font-size: 1.875em; /* 30px base */
      font-weight: bold;
    }
&nbsp;
    h2 {
      clear: both;
      font-size: 1.5em; /* 24px base */
      font-weight: bold;
    }
&nbsp;
    p {
      font-size: 0.875em; /* 14px base */
      margin: 0 0 0.5em 0;
    }
&nbsp;
    ul#navigation {}
&nbsp;
    ul#navigation li {
      display: block;
      float: left;
      margin: 0 1em 0 0;
    }
&nbsp;
    ul#navigation li:last-child {
      margin: 0;
    }
&nbsp;
    ul#navigation li a {
      text-decoration: none;
    }
&nbsp;
    ul#navigation li a:hover,
    ul#navigation li a.active {
      color: blue;
    }
&nbsp;
    ul#navigation li a:hover {
      text-decoration: underline;
    }
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">style</span></a>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navigation&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Seite 1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;active&quot;</span>&gt;</span>Seite 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>
    <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Seite 2&quot;</span>&gt;</span>Seite 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>
    <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Seite 3&quot;</span>&gt;</span>Seite 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>
    <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Seite 4&quot;</span>&gt;</span>Seite 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span>Seitentitel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/h2.html"><span style="color: #000000; font-weight: bold;">h2</span></a>&gt;</span>Untertitel<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/h2.html"><span style="color: #000000; font-weight: bold;">h2</span></a>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
    ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis
    parturient montes, nascetur ridiculus mus. Get to
    <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://google.de&quot;</span>&gt;</span>Externer Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span>.
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>
    Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla
    consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec,
    vulputate eget, arcu. <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Interner Link<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span> <span style="color: #ddbb00;">&amp;hellip;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>
    In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam
    dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus.
    Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean
    leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam
    lorem ante, dapibus in, viverra quis, feugiat a.
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>
&nbsp;
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
  /* <span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span> *<span style="color: #66cc66;">/</span></span>
<span style="color: #009900;">  <span style="color: #66cc66;">//</span></span>
<span style="color: #009900;">  <span style="color: #66cc66;">/</span>* <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span> */
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></pre></td></tr></table></div>

<p>
<a href="/wp-content/uploads/2009/09/basic.html">Hier</a> gibt&#8217;s das ganze dann noch als eigenständige Seite.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/xhtml-grundgerust/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Relaunch hammer-heimtex.de</title>
		<link>http://blog.larsschweisthal.de/relaunch-hammer-heimtex-de/</link>
		<comments>http://blog.larsschweisthal.de/relaunch-hammer-heimtex-de/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 13:21:34 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Cufón]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jwPlayer]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=77</guid>
		<description><![CDATA[Und wieder startet eine komplett überarbeitete Seite: hammer-heimtex.de Auch bei dieser Seite habe ich/haben wir viele aktuelle Technologien eingesetzt. Die ganze Seite kann über unser &#8220;State-of-the-Art&#8221;-CMS administriert werden und bietet kleine Gimmicks, wie z.B. eine standortabhängige Prospektpräsentation. Eine besondere Herausforderung bei dieser Seite war, ein durch eine externe Firma erstelltes Screendesign wie angeliefert umzusetzen, was [...]]]></description>
			<content:encoded><![CDATA[<p>Und wieder startet eine komplett überarbeitete Seite: <a href="http://hammer-heimtex.de">hammer-heimtex.de</a></p>
<p><a href="/relaunch-hammer-heimtex-de/"><img src="http://blog.larsschweisthal.de/wp-content/uploads/2009/09/hammer_screen.jpg" alt="Relaunch hammer-heimtex.de" title="Relaunch hammer-heimtex.de" width="654" class="alignnone size-full wp-image-78" /></a></p>
<p><span id="more-77"></span><br />
Auch bei dieser Seite habe ich/haben wir viele aktuelle Technologien eingesetzt. Die ganze Seite kann über unser &#8220;State-of-the-Art&#8221;-CMS administriert werden und bietet kleine Gimmicks, wie z.B. eine standortabhängige Prospektpräsentation.<br />
Eine besondere Herausforderung bei dieser Seite war, ein durch eine externe Firma erstelltes Screendesign wie angeliefert umzusetzen, was uns aber insgesamt eigentlich recht gut gelungen ist.<br />
<a href="http://hammer-heimtex.de" title="Zur Seite hammer-heimtex.de">Zur Seite hammer-heimtext.de</a></p>
<p>Edit: Auf der Internetseite unserer Agentur gibt es dazu auch noch einen kleinen Beitrag: <a href="http://www.medienpark.net/blog/relaunch-der-website-von-hammer-heimtex/">www.medienpark.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/relaunch-hammer-heimtex-de/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elemente am unteren Rand ausrichten</title>
		<link>http://blog.larsschweisthal.de/elemente-am-unteren-rand-ausrichten/</link>
		<comments>http://blog.larsschweisthal.de/elemente-am-unteren-rand-ausrichten/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 12:03:55 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=53</guid>
		<description><![CDATA[Das braucht man ja immer mal wieder: Elemente sollen am unteren Rand des umgebenden Elements ausgerichtet werden. Ist gar nicht so schwer. Dabei muss nur beachtet werden, das das umgebende Eltern-Element das Attribut position: relative und das Kind-Element position: absolute bekommt. Dann kann man das Kind-Element mit den Attributen bottom, right/left wie gewünscht positionieren. Beispiel: [...]]]></description>
			<content:encoded><![CDATA[<p>Das braucht man ja immer mal wieder: Elemente sollen am unteren Rand des umgebenden Elements ausgerichtet werden.<br />
<span id="more-53"></span><br />
Ist gar nicht so schwer. Dabei muss nur beachtet werden, das das umgebende Eltern-Element das Attribut <em>position: relative</em> und das Kind-Element <em>position: absolute</em> bekommt. Dann kann man das Kind-Element mit den Attributen <em>bottom, right/left</em> wie gewünscht positionieren.</p>
<p>Beispiel:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p5320"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code" id="p53code20"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">style</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
    #aussen {
      width: 500px;
      height: 500px;
      background: #f00;
      margin: 100px auto;
      position: relative;
    }
&nbsp;
    #innen {
      width: 100px;
      height: 100px;
      background: #0f0;
      position: absolute;
      bottom: 0px;
      right: 10px;
    }
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">style</span></a>&gt;</span>
...
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;aussen&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;innen&quot;</span>&gt;</span>
    Aloha!
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></pre></td></tr></table></div>

<p><a href="/wp-content/uploads/2009/09/am_unteren_rand.html">Hier geht&#8217;s zur Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/elemente-am-unteren-rand-ausrichten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Relaunch moebel-berning.de</title>
		<link>http://blog.larsschweisthal.de/relaunch-moebel-berning-de/</link>
		<comments>http://blog.larsschweisthal.de/relaunch-moebel-berning-de/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 09:36:43 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=47</guid>
		<description><![CDATA[Heute ist die durch uns neu erstellte Internetseite der Firma Möbel Berning an den Start gegangen. Die Seite besitzt nun ein weit moderneres Design als vorher und wurde technisch komplett überarbeitet. Unter Verwendung verschiedener Frameworks und Module bietet die Seite jetzt unter anderem eine ausführliche Produktpräsentation mit Wohnbüchern und Prospekten, einen Kunden-Loginbereich und eine Darstellung [...]]]></description>
			<content:encoded><![CDATA[<p>Heute ist die durch uns neu erstellte Internetseite der Firma Möbel Berning an den Start gegangen.</p>
<p><img src="http://blog.larsschweisthal.de/wp-content/uploads/2009/09/berning_teaser.jpg" alt="Screenshot der moebel-berning.de" title="Screenshot der moebel-berning.de" width="658" class="alignnone size-full wp-image-48" /><br />
<span id="more-47"></span><br />
Die Seite besitzt nun ein weit moderneres Design als vorher und wurde technisch komplett überarbeitet. Unter Verwendung verschiedener Frameworks und Module bietet die Seite jetzt unter anderem eine ausführliche Produktpräsentation mit Wohnbüchern und Prospekten, einen Kunden-Loginbereich und eine Darstellung der verschiedenen Standorte mit Fotos und dynamischen Anfahrtsskizzen.<br />
Insgesamt ein sehr gelungener Relaunch wie ich finde, aber seht selbst: <a href="http://www.moebel-berning.de">Zur Seite www.moebel-berning.de</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/relaunch-moebel-berning-de/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IT-Professional, Pt. II</title>
		<link>http://blog.larsschweisthal.de/it-professional-pt-ii/</link>
		<comments>http://blog.larsschweisthal.de/it-professional-pt-ii/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 20:48:45 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=23</guid>
		<description><![CDATA[So, das wär&#8217;s &#8211; Ich bin durch. Nachdem ich am Dienstag meine endgültige Projektpräsentation mit anschließendem Fachgespräch hatte, trudelten gestern meine offiziellen Noten per Post ein. Was soll ich groß drum &#8216;rumreden: Ich bin einfach der Größte. Meine Gesamtnote von 90% setzt sich wie folgt zusammen: 86% in der schriftlichen Prüfung, 92% in der betrieblichen [...]]]></description>
			<content:encoded><![CDATA[<p>So, das wär&#8217;s &#8211; Ich bin durch. Nachdem ich am Dienstag meine endgültige Projektpräsentation mit anschließendem Fachgespräch hatte, trudelten gestern meine offiziellen Noten per Post ein.</p>
<p><span id="more-23"></span>Was soll ich groß drum &#8216;rumreden: Ich bin einfach der Größte. Meine Gesamtnote von 90% setzt sich wie folgt zusammen:</p>
<p>86% in der schriftlichen Prüfung,<br />
92% in der betrieblichen Projektarbeit und<br />
93% im Fachgespräch.</p>
<p>Dafür habe ich mich dann auch erstmal mit einem neuen MacBook Pro belohnt ;) Als nächstes bekommt dann dieses hässliche Blog hier mal ein neues Aussehen. Wird ja auch Zeit, vor allem wenn ich das Teil hier mal als Referenzen-Dump nutzen möchte.</p>
<p>In den nächsten Tagen gibt&#8217;s dann mal wieder was neues.</p>
<p>Bis dahin!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/it-professional-pt-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IT-Professional, Pt. I</title>
		<link>http://blog.larsschweisthal.de/it-professional-pt-i/</link>
		<comments>http://blog.larsschweisthal.de/it-professional-pt-i/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 18:57:44 +0000</pubDate>
		<dc:creator>Lars Schweisthal</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.larsschweisthal.de/?p=17</guid>
		<description><![CDATA[Im Büro trudelten heute die Ergebnisse meiner schriftlichen Abschlussprüfung ins Haus (Für diejenigen die&#8217;s nicht wissen: Ich befinde mich in den letzten Zügen meiner Ausbildung zum Fachinformatiker Anwendungsentwicklung in der Firma medienPARK). Ich muss sagen, ich bin durchaus positiv überrascht: Mit solch einer guten Leistung habe ich wirklich nicht gerechnet. Mit einer durchschnittlichen Gesamtnote von [...]]]></description>
			<content:encoded><![CDATA[<p>Im Büro trudelten heute die Ergebnisse meiner schriftlichen Abschlussprüfung ins Haus (Für diejenigen die&#8217;s nicht wissen: Ich befinde mich in den letzten Zügen meiner Ausbildung zum Fachinformatiker Anwendungsentwicklung in der Firma <a title="medienPARK GmbH" href="http://www.medienpark.net">medienPARK</a>).</p>
<p><span id="more-17"></span>Ich muss sagen, ich bin durchaus positiv überrascht: Mit solch einer guten Leistung habe ich wirklich nicht gerechnet.</p>
<p>Mit einer durchschnittlichen Gesamtnote von 87% habe ich meine Erwartungen übertroffen und muss zugeben, dass ich schon ein wenig stolz auf mich bin. Ich habe natürlich nicht eine Sekunde auch nur die Spur eines Selbstzweifels verspürt, mir ist damit allerdings schon ein wenig Last von den Schultern genommen worden.</p>
<p>Bleibt jetzt nur noch zu hoffen, dass ich auch den mündlichen Teil mit Bravour abschließen werde und die Prüfer meinem durchaus gelungenen Projekt zu einer angemessenen Wertung verhelfen.</p>
<p>Daumen drücken ist also angesagt, ich halte euch auf dem Laufenden!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.larsschweisthal.de/it-professional-pt-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

