<?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>DevReference.org</title>
	<atom:link href="http://www.devreference.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devreference.org</link>
	<description>Short notes about development</description>
	<lastBuildDate>Fri, 23 Mar 2012 16:44:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>LESS editor for Windows and Mac</title>
		<link>http://www.devreference.org/bookmarks/editor-windows-mac.html</link>
		<comments>http://www.devreference.org/bookmarks/editor-windows-mac.html#comments</comments>
		<pubDate>Fri, 23 Mar 2012 16:44:32 +0000</pubDate>
		<dc:creator>Alessandro Coscia</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[less]]></category>
		<category><![CDATA[less editor]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=429</guid>
		<description><![CDATA[less editor to edit and compile less files, made with Adobe Air.
Taste it: Crunch! &#8211; The tastiest LESS editor.
]]></description>
			<content:encoded><![CDATA[<p>less editor to edit and compile less files, made with Adobe Air.</p>
<p>Taste it: <a href="http://crunchapp.net/">Crunch! &#8211; The tastiest LESS editor</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/editor-windows-mac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internationalization for javascript</title>
		<link>http://www.devreference.org/bookmarks/internationalization-javascript.html</link>
		<comments>http://www.devreference.org/bookmarks/internationalization-javascript.html#comments</comments>
		<pubDate>Tue, 20 Mar 2012 21:24:48 +0000</pubDate>
		<dc:creator>Claudio Venturini</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[gettext]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=433</guid>
		<description><![CDATA[Internationalization (or i18n), is the process of providing translation for the parts of the application which are language-dependent, or culture-dependent. While there are consolidate approaches for i18n in server side languages (e.g. the gettext() function provided by the major programming languages), there&#8217;s no standard solution to translate elements on the client side.
In this post, an [...]]]></description>
			<content:encoded><![CDATA[<p>Internationalization (or <em>i18n</em>), is the process of providing translation for the parts of the application which are language-dependent, or culture-dependent. While there are consolidate approaches for i18n in server side languages (e.g. the <code>gettext()</code> function provided by the major programming languages), there&#8217;s no standard solution to translate elements on the client side.</p>
<p>In this post, an easy but powerful approach is explained, which allows to dynamically load the translation from the server, and apply them when they are needed by the client&#8217;s javascripts. Translation can be called with the method <code>_(text)</code>, like existing i18n frameworks for many other languages do.</p>
<p>Here is the complete post: <a href="http://24ways.org/2007/javascript-internationalisation">24 ways: JavaScript Internationalisation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/internationalization-javascript.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install wget on Mac</title>
		<link>http://www.devreference.org/bookmarks/install-wget-mac.html</link>
		<comments>http://www.devreference.org/bookmarks/install-wget-mac.html#comments</comments>
		<pubDate>Fri, 16 Mar 2012 15:39:36 +0000</pubDate>
		<dc:creator>Alessandro Coscia</dc:creator>
				<category><![CDATA[Bookmarks]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=426</guid>
		<description><![CDATA[Use macport (install macport).
The command to install wget is simply:
sudo port install wget
]]></description>
			<content:encoded><![CDATA[<p>Use macport (<a href="http://www.macports.org/install.php" target="_blank">install macport</a>).</p>
<p>The command to install wget is simply:<br />
<code>sudo port install wget</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/install-wget-mac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wget a page with images and ignore robots.txt</title>
		<link>http://www.devreference.org/code-snippets/wget-page-images-ignore-robots-txt.html</link>
		<comments>http://www.devreference.org/code-snippets/wget-page-images-ignore-robots-txt.html#comments</comments>
		<pubDate>Fri, 09 Mar 2012 15:39:21 +0000</pubDate>
		<dc:creator>Alessandro Coscia</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=424</guid>
		<description><![CDATA[How to wget a page with images, css and js?
Simply use the following command:
wget -p http://www.example.com
What if robots.txt is blicking me? Use the &#8220;erobots&#8221; parameter:
wget -p -erobots=off http://www.example.com
]]></description>
			<content:encoded><![CDATA[<p>How to wget a page with images, css and js?</p>
<p>Simply use the following command:</p>
<p><code>wget -p http://www.example.com</code></p>
<p>What if robots.txt is blicking me? Use the &#8220;erobots&#8221; parameter:</p>
<p><code>wget -p -erobots=off http://www.example.com</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/code-snippets/wget-page-images-ignore-robots-txt.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Htaccess Authentication &#8211; Password protect directory</title>
		<link>http://www.devreference.org/bookmarks/htaccess-authentication-password-protect-directory.html</link>
		<comments>http://www.devreference.org/bookmarks/htaccess-authentication-password-protect-directory.html#comments</comments>
		<pubDate>Mon, 05 Mar 2012 16:26:16 +0000</pubDate>
		<dc:creator>Alessandro Coscia</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[protection]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=422</guid>
		<description><![CDATA[Password protect one or more directories with Basic HTTP Authentication using .htaccess. A .htpasswd file will be used to store login details. Use the .htpassswd generator to create entries in the .htpasswd file.
via Htaccess Authentication &#8211; Password protect directory.
]]></description>
			<content:encoded><![CDATA[<p>Password protect one or more directories with Basic HTTP Authentication using .htaccess. A .htpasswd file will be used to store login details. Use the .htpassswd generator to create entries in the .htpasswd file.</p>
<p>via <a href="http://www.htaccesstools.com/htaccess-authentication/">Htaccess Authentication &#8211; Password protect directory</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/htaccess-authentication-password-protect-directory.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Apache/PHP/MySQL on Snow Leopard</title>
		<link>http://www.devreference.org/bookmarks/install-apachephpmysql-on-snow-leopard.html</link>
		<comments>http://www.devreference.org/bookmarks/install-apachephpmysql-on-snow-leopard.html#comments</comments>
		<pubDate>Thu, 02 Feb 2012 20:42:00 +0000</pubDate>
		<dc:creator>Alessandro Coscia</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mamp stack]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=420</guid>
		<description><![CDATA[Install Apache/PHP/MySQL on Snow Leopard
via Install Apache/PHP/MySQL on Snow Leopard.
]]></description>
			<content:encoded><![CDATA[<p>Install Apache/PHP/MySQL on Snow Leopard</p>
<p>via <a href="http://maestric.com/doc/mac/apache_php_mysql_snow_leopard">Install Apache/PHP/MySQL on Snow Leopard</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/install-apachephpmysql-on-snow-leopard.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the INTL extension on MAMP</title>
		<link>http://www.devreference.org/bookmarks/installing-the-intl-extension-on-mamp.html</link>
		<comments>http://www.devreference.org/bookmarks/installing-the-intl-extension-on-mamp.html#comments</comments>
		<pubDate>Sat, 07 Jan 2012 15:11:07 +0000</pubDate>
		<dc:creator>Alessandro Coscia</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[intl extension]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=413</guid>
		<description><![CDATA[Install the INTL extension with MacPort intalling php5-intl (sudo port install php5-intl), then copying the library to MAMP:
cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/
Check the correct folder.
Maybe you will need to change the architecture of the MacPort compiler because MAMP is compiled in 32bit
# /opt/local/etc/macports/macports.conf
build_arch               [...]]]></description>
			<content:encoded><![CDATA[<p>Install the INTL extension with MacPort intalling php5-intl (sudo port install php5-intl), then copying the library to MAMP:</p>
<blockquote><p>cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/</p></blockquote>
<p>Check the correct folder.</p>
<p>Maybe you will need to change the architecture of the MacPort compiler because MAMP is compiled in 32bit</p>
<blockquote><p># /opt/local/etc/macports/macports.conf<br />
build_arch                      i386</p></blockquote>
<p><a href="http://blog.geertvd.be/2011/05/18/installing-the-intl-extension-on-mamp/">Installing the INTL extension on MAMP | Geert Van Damme</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/installing-the-intl-extension-on-mamp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change PHP settings with Apache directives</title>
		<link>http://www.devreference.org/bookmarks/change-php-settings-apache-directives.html</link>
		<comments>http://www.devreference.org/bookmarks/change-php-settings-apache-directives.html#comments</comments>
		<pubDate>Mon, 02 Jan 2012 22:35:54 +0000</pubDate>
		<dc:creator>Claudio Venturini</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[directive]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=396</guid>
		<description><![CDATA[Suppose you have to change some PHP settings for specific projects or directories. Well, you can do so using four useful Apache directives, directly in your Apache configuration files, or even in .htaccess files.  To change the value of a boolean directive use the following Apache directive:

php_flag [directive_name] on&#124;off

To set the value of a [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose you have to change some PHP settings for specific projects or directories. Well, you can do so using four useful Apache directives, directly in your Apache configuration files, or even in .htaccess files.  To change the value of a boolean directive use the following Apache directive:</p>
<pre class="brush: plain;">
php_flag [directive_name] on|off
</pre>
<p>To set the value of a non-boolean directive you can use the following Apache directive:</p>
<pre class="brush: plain;">
php_value [directive_name] [value]
</pre>
<p>Last, you can also use the two following directives, which behaves like the previous two directives, respectively, with a small difference. When you set a value using these directives, you can&#8217;t override it in the .htaccess file. And obviously, you can&#8217;t use them in that file.</p>
<pre class="brush: plain;">
php_admin_flag [directive_name] on|off
php_admin_value [directive_name] [value]
</pre>
<p>For example, if you want to alter the error reporting rules for a specific virtual host, just use something like this in the virtual host configuration:</p>
<pre class="brush: plain;">
php_flag display_errors on
# Equal to &quot;E_ALL | E_DEPRECATED&quot;
php_value error_reporting 30719
</pre>
<p>Finally, remember that you cannot use the various PHP constants. You must use the numerical codes in place of them. E.g. E_DEPRECATED is 8192. <strong>Note that you can&#8217;t add comments in the same line of the directive: put it before or after! Otherwise Apache will not start up!</strong><br />
For computing the value of the combination of two or more constants (like in the example above), you can use a PHP script like the following one:</p>
<pre class="brush: plain;">
&lt;?php

echo (E_ALL | E_DEPRECATED); # Prints 30719
</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/change-php-settings-apache-directives.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selectivizr: CSS3 pseudo-class and attribute selectors for IE 6-8</title>
		<link>http://www.devreference.org/bookmarks/selectivizr-css3-pseudo-class-attribute-selectors-6-8.html</link>
		<comments>http://www.devreference.org/bookmarks/selectivizr-css3-pseudo-class-attribute-selectors-6-8.html#comments</comments>
		<pubDate>Tue, 27 Dec 2011 17:54:23 +0000</pubDate>
		<dc:creator>Alessandro Coscia</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=391</guid>
		<description><![CDATA[
selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
via Selectivizr &#8211; CSS3 pseudo-class and attribute selectors for IE 6-8.
]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-393" title="selectivizr-ie-css3-selectors" src="http://www.devreference.org/wp-content/uploads/2011/12/selectivizr-ie-css3-selectors.jpg" alt="" width="248" height="140" /></p>
<blockquote><p>selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.</p></blockquote>
<p>via <a href="http://selectivizr.com/">Selectivizr &#8211; CSS3 pseudo-class and attribute selectors for IE 6-8</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/selectivizr-css3-pseudo-class-attribute-selectors-6-8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When should I use article, section or div html5 tags?</title>
		<link>http://www.devreference.org/bookmarks/when-should-i-use-or-html5-tags.html</link>
		<comments>http://www.devreference.org/bookmarks/when-should-i-use-or-html5-tags.html#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:39:58 +0000</pubDate>
		<dc:creator>Alessandro Coscia</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://www.devreference.org/?p=387</guid>
		<description><![CDATA[There’s been a lot of confusion over the difference (or perceived lack of a difference) between the &#60;article&#62; and &#60;section&#62; elements in HTML5. The &#60;article&#62; element is a specialised kind of &#60;section&#62;; it has a more specific semantic meaning than &#60;section&#62; in that it is an independent, self-contained block of related content. We could use [...]]]></description>
			<content:encoded><![CDATA[<p>There’s been a lot of confusion over the difference (or perceived lack of a difference) between the &lt;article&gt; and &lt;section&gt; elements in HTML5. The &lt;article&gt; element is a specialised kind of &lt;section&gt;; it has a more specific semantic meaning than &lt;section&gt; in that it is an independent, self-contained block of related content. We could use &lt;section&gt;, but using &lt;article&gt; gives more semantic meaning to the content.</p>
<p>By contrast &lt;section&gt; is only a block of related content, and &lt;div&gt; is only a block of content. Also as mentioned above the pubdate attribute doesn’t apply to &lt;section&gt;. <span style="text-decoration: underline;">To decide which of these three elements is appropriate, choose the first suitable option</span>:</p>
<p><strong>1. Would the content would make sense on its own in a feed reader? If so use &lt;article&gt;</strong></p>
<p><strong>2. Is the content related? If so use &lt;section&gt;</strong></p>
<p><strong>3. Finally if there’s no semantic relationship use &lt;div&gt;</strong></p>
<p>Dr Bruce has written HTML5 &lt;article&gt;s and &lt;section&gt;s, what’s the difference?, so we recommend reading that if you are still fuzzy on when to use &lt;article&gt;.</p>
<p>via <a href="http://html5doctor.com/the-article-element/">The article element | HTML5 Doctor</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devreference.org/bookmarks/when-should-i-use-or-html5-tags.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

