<?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>Reinhold Weber</title>
	<atom:link href="http://reinholdweber.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://reinholdweber.com</link>
	<description>Confessions of a web developer</description>
	<lastBuildDate>Fri, 13 Apr 2012 16:33:12 +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>40 signs you really are a lousy PHP programmer</title>
		<link>http://reinholdweber.com/2012/04/13/40-signs-you-really-are-a-lousy-php-programmer/</link>
		<comments>http://reinholdweber.com/2012/04/13/40-signs-you-really-are-a-lousy-php-programmer/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 07:31:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=19</guid>
		<description><![CDATA[Disclaimer: This collection was published a few years ago on my blog, it was met with heavy criticism about featuring micro-optimiziations which have little to no effect at all compared to other things you can do which was then and is still today very true As this was copied &#38; published on a few hundred [...]]]></description>
			<content:encoded><![CDATA[<p>Disclaimer: This collection was published a few years ago on my blog, it was met with heavy criticism about featuring micro-optimiziations which have little to no effect at all compared to other things you can do which was then and is still today very true <img src='http://reinholdweber.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As this was copied &amp; published on a few hundred blogs in the aftermath here again the original list exactly as I published it many years ago.</p>
<p>I will follow up shortly with an article on more effective methods. Until then &#8230;</p>
<p>This is something I prefer to call my &#8220;programming list of shame&#8221;. Although having a formal university education with courses on software engineering, enterprise software architecture &amp; database design I have been guilty of every single one of those things at one time or another. This is completely subjective &amp; <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> oriented.</p>
<p>You are a lousy PHP programmer if you</p>
<ol>
<li>don&#8217;t comment your code properly with something like <a href="http://www.phpdoc.org/">phpDoc</a></li>
<li>don&#8217;t see the need and/or benefits of a good programming IDE like <a href="http://www.zend.com/de/">Zend Studio</a> or <a href="http://www.zend.com/en/community/pdt" target="_blank">Eclipse PDT</a></li>
<li>have never used some form of version control like <a href="http://subclipse.tigris.org/" target="_blank">Subclipse</a></li>
<li>don&#8217;t adopt some <a href="http://pear.php.net/manual/en/standards.php" target="_blank">coding &amp; naming standards</a> and general conventions and stick to to them at least throughout the project</li>
<li>don&#8217;t use a consistent methodology</li>
<li>don&#8217;t escape and/or validate properly input or sql queries</li>
<li>don&#8217;t plan your application thoroughly before starting to code</li>
<li>don&#8217;t use test-driven development</li>
<li>don&#8217;t program &amp; test with error reporting on</li>
<li>don&#8217;t see the benefits of a debugger</li>
<li>don&#8217;t refactor your code</li>
<li>don&#8217;t keep the different layers seperated using something like <a href="http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html" target="_blank">MVC</a></li>
<li>don&#8217;t know what these stand for: <a href="http://en.wikipedia.org/wiki/KISS_principle" target="_blank">KISS</a>, <a href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself" target="_blank">DRY</a>, <a href="http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html" target="_blank">MVC</a>, <a href="http://www.php.net/manual/en/language.oop5.php" target="_blank">OOP</a>, <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" target="_blank">REST</a></li>
<li>don&#8217;t return content but echo or print it from your functions or classes</li>
<li>have never seen the advantage of unit tests or testing in general</li>
<li>return HTML, not data, strings, or objects.</li>
<li>hard code messages and configuration parameters</li>
<li>don&#8217;t optimize your sql queries</li>
<li>don&#8217;t use __autoload</li>
<li>don&#8217;t allow intelligent error handling</li>
<li>use $_GET instead of $_POST for any destructive actions</li>
<li>don&#8217;t know how to use regular expressions</li>
<li>you&#8217;ve never heard of sql injection or cross-site scripting</li>
<li>don&#8217;t allow simple configuration, can be parameters passed to a class’s constructor, set/get methods called later, or constants defined at a runtime.</li>
<li>don&#8217;t understand the benefits and limitations of Object Oriented Programming</li>
<li>misuse OOP / everything you write , no matter how small is OOP</li>
<li>you think reusable software equals/requires your code to be OOP</li>
<li>don&#8217;t choose intelligent defaults</li>
<li>don&#8217;t have one single configuration file</li>
<li>don&#8217;t want the file contents to be seen, but give it a .inc extension instead of .php</li>
<li>don&#8217;t use a database abstraction layer</li>
<li>don&#8217;t keep it DRY, Don&#8217;t repeat yourself. If you have to copy and paste or duplicate something your design may be off.</li>
<li>don&#8217;t make a function/class/method do just one thing and don&#8217;t make them interact.</li>
<li>don&#8217;t try to take advantage of OOP specific features like abstract/interface classes, inheritage polymorphism &amp; access modifiers.</li>
<li>don&#8217;t optimize your application design with established <a href="http://www.sitepoint.com/forums/showthread.php?t=248721" target="_blank">design patterns</a></li>
<li>don&#8217;t allow your user to define a base directory if you have multiple files and/or directories</li>
<li>pollute the global namespace, one option is to prefix the functions in your library with a common string</li>
<li>don&#8217;t allow a table prefix when using database tables</li>
<li>use a separate <a href="http://www.sitepoint.com/forums/showthread.php?t=67849" target="_blank">template engine</a></li>
<li>don&#8217;t take a look at established <a href="http://www.phpit.net/article/ten-different-php-frameworks/" target="_blank">php frameworks</a> for inspiration, most of them have advanced web dev concepts and good code</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2012/04/13/40-signs-you-really-are-a-lousy-php-programmer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Advanced CSS snippets collection</title>
		<link>http://reinholdweber.com/2012/04/12/advanced-css-snippets-collection/</link>
		<comments>http://reinholdweber.com/2012/04/12/advanced-css-snippets-collection/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 21:52:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=135</guid>
		<description><![CDATA[Not one week passes by where I have the recurring pleasure of meeting someone who thinks frontend development comes easy and he could teach himself CSS in a day or two. Especially print designers seem to have a pretty rough time understanding why the pixel-perfect design they&#8217;ve created with their DTP tools seems to be [...]]]></description>
			<content:encoded><![CDATA[<p>Not one week passes by where I have the recurring pleasure of meeting someone who thinks frontend development comes easy and he could teach himself CSS in a day or two. Especially print designers seem to have a pretty rough time understanding why the pixel-perfect design they&#8217;ve created with their DTP tools seems to be taking forever to get right in the web. </p>
<p>If you feel like CSS comes easy to you or you know someone who thinks that way &#8211; how about you let him explain to you what these few CSS snippets do?</p>
<p>If you have cool css snippets feel free to post them in the comments. These are excerpts form <a href="http://www.deviantart.com/" target="_blank">deviantART</a> and <a href="http://www.adobe.com/" target="_blank">Adobe</a></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	div<span style="color: #6666ff;">.stream</span> div<span style="color: #6666ff;">.tt-w</span><span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #3333ff;">:-moz-any-</span>link<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
	    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">205px</span><span style="color: #00AA00;">;</span>
	    <span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot; &quot;</span><span style="color: #00AA00;">;</span>
	    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">205px</span><span style="color: #00AA00;">;</span>
	    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</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: #00AA00;">&#125;</span>
	div<span style="color: #6666ff;">.stream</span> div<span style="color: #6666ff;">.tt-a</span><span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #3333ff;">:-moz-any-</span>link<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">205px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	div<span style="color: #6666ff;">.stream</span> div.tt-tv150<span style="color: #00AA00;">&gt;</span>div<span style="color: #6666ff;">.tt-w</span> <span style="color: #00AA00;">&#123;</span>
	    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">194px</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	div<span style="color: #6666ff;">.stream</span> div<span style="color: #6666ff;">.tt-tv150</span> div<span style="color: #6666ff;">.tt-w</span><span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #3333ff;">:-moz-any-</span>link<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
	div<span style="color: #6666ff;">.stream</span> div<span style="color: #6666ff;">.tt-a</span> div<span style="color: #6666ff;">.tt-w</span><span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #3333ff;">:-moz-any-</span>link<span style="color: #00AA00;">&#41;</span> span<span style="color: #6666ff;">.shadow</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
	    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">187px</span> !important<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: #00AA00;">&#125;</span>
	div<span style="color: #6666ff;">.stream</span> div<span style="color: #6666ff;">.tt-tv150</span> div<span style="color: #6666ff;">.tt-w</span><span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">:</span>safari<span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span>
	    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">194px</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #6666ff;">.price</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #808080; font-style: italic;">/*\*/</span><span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">nowrap</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/**/</span>
	_height<span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	<span style="color: #808080; font-style: italic;">/*\*/</span><span style="color: #808080; font-style: italic;">/*/ span.price, /**/</span>
	span<span style="color: #00AA00;">&#91;</span>className~<span style="color: #00AA00;">=</span>price<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">,</span>
	a<span style="color: #00AA00;">&#91;</span>className~<span style="color: #00AA00;">=</span>price<span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	htc-method<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;$getFirstChild &gt;$addClassToNode[p1-top-first-child]&quot;</span><span style="color: #00AA00;">;</span>
	_behavior<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">/lib/com.adobe/evaluateCss.htc</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	.p1-<span style="color: #000000; font-weight: bold;">top</span> <span style="color: #00AA00;">&#123;</span>
	htc-method<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;$getFirstChild &gt;$addClassToNode[p1-top-first-child]&quot;</span><span style="color: #00AA00;">;</span>
	_behavior<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">/lib/com.adobe/evaluateCss.htc</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	.p2-<span style="color: #000000; font-weight: bold;">top</span> <span style="color: #00AA00;">&#123;</span>
	htc-method<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;$getFirstChild &gt;$addClassToNode[p2-top-first-child]&quot;</span><span style="color: #00AA00;">;</span>
	_behavior<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">/lib/com.adobe/evaluateCss.htc</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	.p1-top<span style="color: #00AA00;">&gt;*</span><span style="color: #3333ff;">:first-child</span><span style="color: #00AA00;">,</span>
	.p2-top<span style="color: #00AA00;">&gt;*</span><span style="color: #3333ff;">:first-child</span><span style="color: #00AA00;">,</span>
	div.frame<span style="color: #00AA00;">&gt;*</span><span style="color: #3333ff;">:first-child </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-8px</span> <span style="color: #933;">.5em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.917em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#111111</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #00AA00;">*</span><span style="color: #00AA00;">&#91;</span>className~<span style="color: #00AA00;">=</span>frame<span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #00AA00;">*</span><span style="color: #00AA00;">&#91;</span>className~<span style="color: #00AA00;">=</span>frame<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&gt;*</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.top-acc</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#DDDDDD</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	html<span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#91;</span>lang<span style="color: #00AA00;">*=</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">*</span>.comma<span style="color: #00AA00;">&gt;</span>li<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/* Netscape 6 - 7 */</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;,&quot;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1ex</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.comma</span>  li<span style="color: #00AA00;">+</span>li<span style="color: #3333ff;">:after</span><span style="color: #00AA00;">,</span> 
	<span style="color: #6666ff;">.comma</span>  dd<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;,&quot;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1ex</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #00AA00;">*</span><span style="color: #3333ff;">:first-child</span><span style="color: #00AA00;">+</span>html <span style="color: #6666ff;">.comma</span> li a<span style="color: #00AA00;">,</span>
	<span style="color: #00AA00;">*</span><span style="color: #3333ff;">:first-child</span><span style="color: #00AA00;">+</span>html <span style="color: #6666ff;">.comma</span> dd a  <span style="color: #00AA00;">&#123;</span>
	htc-method<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;$addTextToNode[<span style="color: #000099; font-weight: bold;">\\</span>u201a ,after]&quot;</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">padding-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.5ex</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	html<span style="color: #00AA00;">:</span>not<span style="color: #00AA00;">&#40;</span><span style="color: #00AA00;">&#91;</span>lang<span style="color: #00AA00;">*=</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">*</span>.dash<span style="color: #00AA00;">&gt;</span>li<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;-&quot;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1ex</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	.pullout-<span style="color: #000000; font-weight: bold;">left</span> <span style="color: #00AA00;">&gt;</span> <span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&gt;</span> <span style="color: #6666ff;">.inputGroup</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> table<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*\*/</span>
<span style="color: #00AA00;">*</span> html <span style="color: #cc00cc;">#top</span> img<span style="color: #00AA00;">,</span>
<span style="color: #00AA00;">*</span> html div<span style="color: #6666ff;">.bubbleview</span> img<span style="color: #808080; font-style: italic;">/**/</span> <span style="color: #00AA00;">&#123;</span>
    filter<span style="color: #00AA00;">:</span>expression<span style="color: #00AA00;">&#40;</span>
            this<span style="color: #6666ff;">.napalmLoaded</span>
            ? <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #00AA00;">:</span>
            <span style="color: #00AA00;">&#40;</span>
                this<span style="color: #6666ff;">.src</span>.substr<span style="color: #00AA00;">&#40;</span>this<span style="color: #6666ff;">.src</span>.length-<span style="color: #cc66cc;">4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">==</span><span style="color: #ff0000;">&quot;.png&quot;</span>
                ?
                <span style="color: #00AA00;">&#40;</span>
                    <span style="color: #00AA00;">&#40;</span>!this.complete<span style="color: #00AA00;">&#41;</span>
                    ? <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #00AA00;">:</span>
                        this<span style="color: #6666ff;">.runtimeStyle</span>.filter<span style="color: #00AA00;">=</span>
                        <span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(src='&quot;</span><span style="color: #00AA00;">+</span>this.src<span style="color: #00AA00;">+</span><span style="color: #ff0000;">&quot;')&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">+</span>
                        <span style="color: #00AA00;">&#40;</span>this.onbeforeprint<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;this.runtimeStyle.filter='';this.src='&quot;</span><span style="color: #00AA00;">+</span>this.src<span style="color: #00AA00;">+</span><span style="color: #ff0000;">&quot;'&quot;</span><span style="color: #00AA00;">&#41;</span>.substr<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">+</span>
                        String<span style="color: #00AA00;">&#40;</span>this.napalmLoaded<span style="color: #00AA00;">=</span>true<span style="color: #00AA00;">&#41;</span>.substr<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">+</span>
                        <span style="color: #00AA00;">&#40;</span>this.src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://st.deviantart.com/minish/main/blank.png&quot;</span><span style="color: #00AA00;">&#41;</span>.substr<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#41;</span>
                <span style="color: #00AA00;">&#41;</span>
                <span style="color: #00AA00;">:</span>
                this<span style="color: #6666ff;">.runtimeStyle</span>.filter<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;&quot;</span>
            <span style="color: #00AA00;">&#41;</span>
        <span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2012/04/12/advanced-css-snippets-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random observations about art VS design</title>
		<link>http://reinholdweber.com/2012/04/11/random-observations-about-art-vs-design/</link>
		<comments>http://reinholdweber.com/2012/04/11/random-observations-about-art-vs-design/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 17:35:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=129</guid>
		<description><![CDATA[A potpourri of wise statements from all over the web on the difference between art and design. Art raises questions, design gives answers. Artists create something to appreciate, Designers create something to use. Design is about solving problems, Art is about creating them. Design is art without the bullshit. Art is about creating things to [...]]]></description>
			<content:encoded><![CDATA[<p>A potpourri of wise statements from all over the web on the difference between art and design.</p>
<ul>
<li>Art raises questions, design gives answers.</li>
<li>Artists create something to appreciate, Designers create something to use.</li>
<li>Design is about solving problems, Art is about creating them.</li>
<li>Design is art without the bullshit.</li>
<li>Art is about creating things to communicate while design is about creating things to solve problems.</li>
<li>Art is “the products of human creativity” a definition of design is “the opposite of purposelessness or randomness.”</li>
<li>Design is the skeleton of what can become art if applied to figurative realism.</li>
<li>Design makes you think or do something, art makes you feel something.</li>
<li>In art, red is never “wrong”, In design, red can be wrong, and the wrongness can be described in both technical and conceptual terms, and sometimes even measured.</li>
<li>The product of design is an abstract (high level) artefact. The art is a concrete (in contrast to abstract) artefact. The process of realising both artefacts (abstract vs. concrete) can/and is the same in many cases.</li>
<li>Art is some guy using a medium to change how you see the world, whereas design is changing how we live in it.</li>
<li>Design is not art. Design is a strategic approach to effective communication through a visual interface.</li>
<li>The litmus test. When people enjoy Art, they say “I like that”. When people enjoy Design, they say “That works well”. This is not by accident. Good Design is something that works well.</li>
<li>The main difference between Design and Art is that Design has more constraints (budget, time, problem to be solved, etc.) while Art is only constrained by the artist’s talent and chosen medium.</li>
<li>Art hides. Art has a meaning, and it hides it, on purpose. Art delivers a message, and that message is hidden, on purpose. It is an art to create art. Art is unusable, by definition.</li>
<li>Design reveals. Design reveals meaning, design reveals a message, design reveals function. Bad design does the opposite: It obscures, it hides. The reason why that almost never makes bad design art is that the subject is supposed to be revealed.</li>
<li>Genuinely honest art is created without the market in mind – you are simply creating. Design is created with the market in mind– and the medium does not matter. If you’re a musician or painter, and purposefully crafting your work in order to sell, you’ve become a designer.</li>
<li>Art and design are interchangeable agents of language that speak differently within different contexts.</li>
<li>At their root, art and design are inseperable components within a creative endeavor. Where they are placed determines their function within society.</li>
<li>“Design is first and foremost an intellectual process. Contrary to popular belief, designers are not artists. They employ artistic methods to visualize thinking and process, but, unlike artists, they work to solve a client’s problem, not present their own view of the world. If a design project, however, is to be considered successful – and that would be the true measure of quality – it will not only solve the problem at hand, but also add an aesthetic dimension beyond the pragmatic issues.</li>
<li>I consider design not to be a series of “creative” one-offs, but an integrated process, from planning the appropriate communications strategy to designing functional and beautiful objects as well as – for example – implementing electronic stationery on clients’ systems.</li>
<li>What clients say and what designers hear are too often very different things. Design is a powerful tool to help clarify the problem. It is only when a common understanding has been established between client and designer that effective results can be achieved.</li>
<li>Artists do not work for an audience. They work for themselves. When designers work we should not have to worry about what our favorite color is, or whether or not it looks “nice”. Our aesthetics opinions really do not matter, we have to solve a problem, seperating ourselves from what the culture tells us what is “in”.</li>
<li>Design quality needs an integrated approach: look more closely than expected, ask many questions, think laterally, get involved in things you shouldn’t, do more than you are supposed to and have fun doing it. Problem solving is one thing, aesthetic pleasure another. Combine the two, make the engineer sketch like an artist and make the artist analyze like an engineer, and you are half-way there.” -Erik Spiekermann Berlin, March 2005</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2012/04/11/random-observations-about-art-vs-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web font armageddon &#8211; may the type gods be with us</title>
		<link>http://reinholdweber.com/2012/04/11/web-font-armageddon-may-the-type-gods-be-with-us/</link>
		<comments>http://reinholdweber.com/2012/04/11/web-font-armageddon-may-the-type-gods-be-with-us/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 17:32:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=127</guid>
		<description><![CDATA[A little CSS snippet is about to change the face of the web as we know it. May the type gods be with us and lead our humble ways … @font-face { font-family: &#34;Your typeface&#34;; src: url&#40;&#34;type/filename.eot&#34;&#41;; src: local&#40;&#34;Alternate name&#34;&#41;, local&#40;&#34;Alternatename&#34;&#41;, url&#40;&#34;type/filename.woff&#34;&#41; format&#40;&#34;woff&#34;&#41;, url&#40;&#34;type/filename.otf&#34;&#41; format&#40;&#34;opentype&#34;&#41;, url&#40;&#34;type/filename.svg#filename&#34;&#41; format&#40;&#34;svg&#34;&#41;; &#125; @font-face { font-family: &#34;Your italic typeface&#34;; src: [...]]]></description>
			<content:encoded><![CDATA[<p>A little CSS snippet is about to change the face of the web as we know it. May the type gods be with us and lead our humble ways …</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@font-face {</span>
  <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Your typeface&quot;</span><span style="color: #00AA00;">;</span>
  src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;type/filename.eot&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  src<span style="color: #00AA00;">:</span> local<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;Alternate name&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> local<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;Alternatename&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
    <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;type/filename.woff&quot;</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;woff&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
    <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;type/filename.otf&quot;</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;opentype&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
    <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;type/filename.svg#filename&quot;</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;svg&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  <span style="color: #00AA00;">&#125;</span>
<span style="color: #a1a100;">@font-face {</span>
  <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Your italic typeface&quot;</span><span style="color: #00AA00;">;</span>
  src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;type/filename-ital.eot&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  src<span style="color: #00AA00;">:</span> local<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;Alternate name&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> local<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;Alternatename&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
    <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;type/filename-ital.woff&quot;</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;woff&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
    <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;type/filename-ital.otf&quot;</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;opentype&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span>
    <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;type/filename-ital.svg#filename-ital&quot;</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;svg&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  <span style="color: #00AA00;">&#125;</span>
h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Your typeface&quot;</span><span style="color: #00AA00;">,</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
h2 em <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Your italic typeface&quot;</span><span style="color: #00AA00;">,</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
em <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">italic</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2012/04/11/web-font-armageddon-may-the-type-gods-be-with-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Evolution Philosophy</title>
		<link>http://reinholdweber.com/2012/04/11/php-evolution-philosophy/</link>
		<comments>http://reinholdweber.com/2012/04/11/php-evolution-philosophy/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 17:25:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=124</guid>
		<description><![CDATA[I do not think much of a man who is not wiser today than he was yesterday. – Abraham Lincoln Sometimes, reflecting on mistakes from the past – you wish you knew then what you know now. Here are a few of my PHP developer truths, learned the hard way by being young, stubborn and [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>I do not think much of a man who is not wiser today than he was yesterday. – <cite>Abraham Lincoln</cite></p></blockquote>
<p>Sometimes, reflecting on mistakes from the past – you wish you knew then what you know now. Here are a few of my PHP developer truths, learned the hard way by being young, stubborn and most of the times an arrogant prick, refusing to accept that others may actually know better.</p>
<ol>
<li>If you don’t know OOP and OOP design patterns, you’re not playing the same game.</li>
<li>Code doesn’t exist unless it’s checked into a version control system. Use version control for everything you do. Any version control, SVN, Git, even CVS, master it and use it.</li>
<li>Choose an IDE or any text editor, learn to master it and stick to it. If you have found one you like and feel comfortable with, never waste time reading about the perfect IDE again. It’s not the tool but how you use it.</li>
<li>No matter how smart you think you are and no matter how readable you think your code is, commenting your code ought to be self-evident. Code alone only tells me what actually it does, not what it was supposed to do.</li>
<li>The users aren’t idiots, you are. All user input without exception should be treated as if it had the plague. Quarantine it, sanitize it and stri it to the bones. PHP has an excellent and comprehensive array of filtering functions.</li>
<li>Realizing something is “good enough” will be a major jump in your value as a programmer.</li>
<li>Premature optimization is not the root of all evil, lack of proper planning is the root of all evil.</li>
<li>Useful and clean high-level abstractions are significantly more important than performance.</li>
<li>Programming actually has little to do with language and everything to do with algorithm.</li>
<li>You should never test your own software, testing is about trying to uncover developer mistakes, find holes in their assumptions, and flaws in their logic, you simply cannot be objective about your own code.</li>
<li>90% of the project is completed in 10% of the time, unfortunately the remaining 10% is completed in 90% of the scheduled time.</li>
<li>Tools, Methodologies, Patterns, Frameworks, etc. are no substitute for a properly trained programmer.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2012/04/11/php-evolution-philosophy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My web design process</title>
		<link>http://reinholdweber.com/2011/11/03/my-web-design-process/</link>
		<comments>http://reinholdweber.com/2011/11/03/my-web-design-process/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 20:42:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=114</guid>
		<description><![CDATA[My web design/development process: » Right side of brain (intuition, creativity) » Left side of brain (rationality, logic) » Firebug]]></description>
			<content:encoded><![CDATA[<p>My web design/development process:</p>
<blockquote><p>» Right side of brain (intuition, creativity)<br />
» Left side of brain (rationality, logic)<br />
» Firebug</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2011/11/03/my-web-design-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming quote &#8211; on requirements</title>
		<link>http://reinholdweber.com/2011/11/03/programming-quote-on-requirements/</link>
		<comments>http://reinholdweber.com/2011/11/03/programming-quote-on-requirements/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 19:32:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[programming quotes]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=107</guid>
		<description><![CDATA[Without requirements or design, programming is the art of adding bugs to an empty text file. &#8212; Louis Srygley]]></description>
			<content:encoded><![CDATA[<blockquote><p>Without requirements or design, programming is the art of adding bugs to an empty text file. &#8212; Louis Srygley</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2011/11/03/programming-quote-on-requirements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typoscript snippet &#8211; intelligent HTML template layout</title>
		<link>http://reinholdweber.com/2011/11/03/typoscript-snippet-intelligent-html-template-layout/</link>
		<comments>http://reinholdweber.com/2011/11/03/typoscript-snippet-intelligent-html-template-layout/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 19:22:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[typo3]]></category>
		<category><![CDATA[adaptive layout]]></category>
		<category><![CDATA[typoscript]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=102</guid>
		<description><![CDATA[From working with other CMS like Joomla, Drupal and WordPress I&#8217;m used to have a certain logic to my template. Assuming a basic three column layout (left sidebar, main content, right sidebar) this is one approach which I will continue to refine in a later article &#8211; to only show an area if there is [...]]]></description>
			<content:encoded><![CDATA[<p>From working with other CMS like Joomla, Drupal and WordPress I&#8217;m used to have a certain logic to my template. Assuming a basic three column layout (left sidebar, main content, right sidebar) this is one approach which I will continue to refine in a later article &#8211; to only show an area if there is actual published content in this assigned to it.</p>
<p>So, consequently, you don&#8217;t have to manually assign a different layout to pages, post, articles, &#8230; but only fill the areas with content and the template will automatically adapt.</p>
<p>This snippet will only wrap an area if there is a published content element assigned to it.</p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>LEFTCONTENT <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">styles</span><span style="color: #339933; font-weight: bold;">.</span>content<span style="color: #339933; font-weight: bold;">.</span>getLeft
<span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>LEFTCONTENT<span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">stdWrap</span> <span style="color: #009900;">&#123;</span>
	wrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #3366CC;">&lt;div id=&quot;left&quot;&gt;</span> <span style="color: #339933; font-weight: bold;">|</span><span style="color: #3366CC;">&lt;/div&gt;</span>
	required <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>MAINCONTENT <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">styles</span><span style="color: #339933; font-weight: bold;">.</span>content<span style="color: #339933; font-weight: bold;">.</span>get
<span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>MAINCONTENT<span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">stdWrap</span> <span style="color: #009900;">&#123;</span>
	wrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #3366CC;">&lt;div id=&quot;main&quot;&gt;</span> <span style="color: #339933; font-weight: bold;">|</span> <span style="color: #3366CC;">&lt;/div&gt;</span>
	required <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>RIGHTCONTENT <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">styles</span><span style="color: #339933; font-weight: bold;">.</span>content<span style="color: #339933; font-weight: bold;">.</span>getRight
<span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>RIGHTCONTENT<span style="color: #339933; font-weight: bold;">.</span><span style="font-weight: bold;">stdWrap</span> <span style="color: #009900;">&#123;</span>
	wrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #3366CC;">&lt;div id=&quot;right&quot;&gt;</span> <span style="color: #339933; font-weight: bold;">|</span> <span style="color: #3366CC;">&lt;/div&gt;</span>
	required <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Assign the temp objects to available subparts in your HTML template file.</p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">page</span><span style="color: #339933; font-weight: bold;">.</span>10 <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #990000; font-weight: bold;">TEMPLATE</span>
<span style="color: #000066; font-weight: bold;">page</span><span style="color: #339933; font-weight: bold;">.</span>10 <span style="color: #009900;">&#123;</span>
&nbsp;
	workOnSubpart <span style="color: #339933; font-weight: bold;">=</span> document
&nbsp;
	subparts<span style="color: #339933; font-weight: bold;">.</span>leftcontent <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>LEFTCONTENT
	subparts<span style="color: #339933; font-weight: bold;">.</span>maincontent <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>MAINCONTENT
	subparts<span style="color: #339933; font-weight: bold;">.</span>rightcontent <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">temp</span><span style="color: #339933; font-weight: bold;">.</span>RIGHTCONTENT
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>More on styling these resulting areas soon &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2011/11/03/typoscript-snippet-intelligent-html-template-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typo3 Typoscript snippet Basic configuration</title>
		<link>http://reinholdweber.com/2011/11/03/typo3-typoscript-snippet-basic-configuration/</link>
		<comments>http://reinholdweber.com/2011/11/03/typo3-typoscript-snippet-basic-configuration/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 19:05:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[typo3]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[typoscript]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=96</guid>
		<description><![CDATA[I develop a lot of HTML Typoscript templates for Typo3, without Templavoila or any other fancy extensions. With the release of Typo3 4.5 and the introduction of Backend Layouts there have been a lot of improvements which make Templavoila obsolete in many scenarios. I will post a few Typoscript snippets I use in a lot [...]]]></description>
			<content:encoded><![CDATA[<p>I develop a lot of HTML Typoscript templates for Typo3, without Templavoila or any other fancy extensions. With the release of Typo3 4.5 and the introduction of Backend Layouts there have been a lot of improvements which make Templavoila obsolete in many scenarios.</p>
<p>I will post a few Typoscript snippets I use in a lot of projects over the next few weeks.</p>
<p>Basic configuration stuff</p>

<div class="wp_syntax"><div class="code"><pre class="typoscript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">config</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #ed7d14;">language</span> <span style="color: #339933; font-weight: bold;">=</span> de
  locale_all <span style="color: #339933; font-weight: bold;">=</span> de_DE
  doctype <span style="color: #339933; font-weight: bold;">=</span> html5
  htmlTag_setParams <span style="color: #339933; font-weight: bold;">=</span> lang<span style="color: #339933; font-weight: bold;">=</span>&quot;de
  prologue <span style="color: #339933; font-weight: bold;">=</span> none
  metaCharset <span style="color: #339933; font-weight: bold;">=</span> utf-<span style="color: #cc0000;">8</span>
  htmlTag_langKey <span style="color: #339933; font-weight: bold;">=</span> de-DE
  linkVars <span style="color: #339933; font-weight: bold;">=</span> L
  sys_language_uid <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span>
  spamProtectEmailAddresses <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span>
  spamProtectEmailAddresses_atSubst <span style="color: #339933; font-weight: bold;">=</span>  <span style="color: #009900;">&#40;</span>at<span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>What this does is to set the language to german, define language url parameters for a multi language setup and try to protect standard email addresses.</p>
<p>&nbsp;</p>
<p>More to come soon &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2011/11/03/typo3-typoscript-snippet-basic-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>if you don&#8217;t laugh you are not a programmer</title>
		<link>http://reinholdweber.com/2011/07/25/if-you-dont-laugh-you-are-not-a-programmer/</link>
		<comments>http://reinholdweber.com/2011/07/25/if-you-dont-laugh-you-are-not-a-programmer/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 21:01:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[programming quotes]]></category>

		<guid isPermaLink="false">http://reinholdweber.com/?p=92</guid>
		<description><![CDATA[Theory is when you know something, but it doesn&#8217;t work. Practice is when something works, but you don&#8217;t know why. Programmers combine theory and practice: Nothing works and they don&#8217;t know why.]]></description>
			<content:encoded><![CDATA[<blockquote><p>Theory is when you know something, but it doesn&#8217;t work. Practice is when something works, but you don&#8217;t know why. Programmers combine theory and practice: Nothing works and they don&#8217;t know why.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://reinholdweber.com/2011/07/25/if-you-dont-laugh-you-are-not-a-programmer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

