<?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>der&#124;Design</title>
	<atom:link href="http://der-design.com/feed" rel="self" type="application/rss+xml" />
	<link>http://der-design.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 30 Dec 2011 15:53:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress 3.1.2 Actions &amp; Filters Reference</title>
		<link>http://der-design.com/references/actions-filters-reference</link>
		<comments>http://der-design.com/references/actions-filters-reference#comments</comments>
		<pubDate>Wed, 11 May 2011 00:00:05 +0000</pubDate>
		<dc:creator>der</dc:creator>
				<category><![CDATA[References]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://der-design.com/?p=332</guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>This is a complete reference of all the WordPress Actions &amp; Filters available in version 3.1.2. Not all of the Actions and Filters are documented in the <a href="http://codex.wordpress.org/">Codex</a>.</p>
<p>You can also view the source code (from the <a href="http://core.trac.wordpress.org/">WordPress Trac</a>) of the files where the action or filter is being executed. You are brought directly to the line number in question. Really good to understand what’s going on under the Hood.</p>
<a class="button utility" href="http://docs.der-design.com/wp-actions-filters/" target="_blank">Actions Reference</a>
<a class="button utility" href="http://docs.der-design.com/wp-actions-filters/WP_Filters.html" target="_blank">Filters Reference</a>
]]></content:encoded>
			<wfw:commentRss>http://der-design.com/references/actions-filters-reference/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross Browser setTimeout in JavaScript</title>
		<link>http://der-design.com/javascripts/cross-browser-settimeout</link>
		<comments>http://der-design.com/javascripts/cross-browser-settimeout#comments</comments>
		<pubDate>Mon, 11 Apr 2011 22:09:26 +0000</pubDate>
		<dc:creator>der</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://der-design.com/?p=504</guid>
		<description><![CDATA[If you've written code in a way that the function patameter of <code>setTimeout</code> expect some arguments, then your code won't work on any version of Internet Explorer. I've coded a script that overcomes that limitation and allows you to use setTimeout without worrying it will break your code in Internet Explorer. The script has been tested in Internet Explorer 6,7,8 and 9.]]></description>
			<content:encoded><![CDATA[<p>According to the <a href="https://developer.mozilla.org/en/DOM/window.setTimeout">Mozilla Developer Network</a>, in the Documentation for the <code>window.setTimeout</code> method, here&#8217;s what it does:</p>
<blockquote><p>Executes a code snippet or a function after specified delay.</p></blockquote>
<p>And here&#8217;s the syntax (also from MDN):</p>
<pre>var timeoutID = window.setTimeout(func, delay, [param1, param2, ...]);
var timeoutID = window.setTimeout(code, delay);</pre>
<p>As can be noticed in the syntax above, <code>window.setTimeout</code> accepts a series of parameters after the delay has been specified. This is good for all browsers, except Internet Explorer.</p>
<h4>The Problem</h4>
<p>Internet explorer has a different implementation of the <code>window.setTimeout</code> method. According to the <a href="http://msdn.microsoft.com/en-us/library/ms536753(v=vs.85).aspx">Microsoft Developer Network</a>, here&#8217;s the syntax:</p>
<pre>iTimerID = object.setTimeout(vCode, iMilliSeconds [, sLanguage])</pre>
<p><code>vCode</code> represents the function pointer or string that indicates the code to be executed when the specified interval has elapsed. <code>iMilliSeconds</code> specifies the number of milliseconds, and <code>sLanguage</code> specifies a language string, which could be either <code>jScript</code>, <code>VBScript</code> or <code>JavaScript</code>.</p>
<p>This means that Internet Explorer expects a <strong>Source Language</strong> to be specified as the third parameter of <code>setTimeout</code>, instead of expecting one or more parameters to be passed to the function to be executed.</p>
<p>Microsoft&#8217;s Implementation differs from the Mozilla (and other modern browser&#8217;s) implementations. This means if you&#8217;ve written code in a way that the function patameter of <code>setTimeout</code> expect some arguments, then your code <span style="text-decoration: underline;">won&#8217;t work</span> on <strong>any</strong> version of Internet Explorer.</p>
<h4>The Solution</h4>
<p>To overcome this limitation, I&#8217;ve decided to code a native implementation of <code>setTimeout</code> for Internet Explorer, making it compatible with the implementations of all the other browsers.</p>
<p>This means you can safely use <code>setTimeout</code> without worrying it will break your code in Internet Explorer. The script has been tested in Internet Explorer 6,7,8 and 9.</p>
<p><a class="button utility" href="http://tutorials.der-design.com/cross-browser-settimeout/demo/index.html" target="_blank">Live Demo</a>     <a class="button utility" href="http://paste.pocoo.org/show/373691/" target="_blank">View Source</a>    <a class="button utility" href="http://tutorials.der-design.com/cross-browser-settimeout/ie-set_timeout.zip">Download</a></p>
<p>To load the script, add the following <a href="http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx">Conditional Comment</a> to your <code>&lt;head&gt;:</code></p>
<pre>&lt;!--[if IE]&gt; &lt;script type="text/javascript" src="ie-set_timeout.js"&gt;&lt;/script&gt; &lt;![endif]--&gt;</pre>
<p>This will only load the script if the site is loaded using any version of Internet Explorer. On the other browsers the script won&#8217;t be downloaded, and the code will be treated as a regular HTML Comment.</p>
<p>This work is licensed under a dual <a href="http://www.opensource.org/licenses/mit-license.php">MIT</a> &amp; <a href="http://www.gnu.org/licenses/gpl.html">GPL</a> License.</p>
]]></content:encoded>
			<wfw:commentRss>http://der-design.com/javascripts/cross-browser-settimeout/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Track empty directories with Mercurial/Git</title>
		<link>http://der-design.com/mercurial/track-emtpy-directories-scm</link>
		<comments>http://der-design.com/mercurial/track-emtpy-directories-scm#comments</comments>
		<pubDate>Mon, 14 Mar 2011 21:50:37 +0000</pubDate>
		<dc:creator>der</dc:creator>
				<category><![CDATA[Mercurial]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://der-design.com/?p=446</guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>Tracking empty directories is not a supported feature for all the SCM&#8217;s (Source Control Management tools) out there. <a href="http://mercurial.selenic.com/">Mercurial</a> and <a href="http://git-scm.com/">Git</a> can&#8217;t add empty directories to a repository, unless there is a file in it.</p>
<p>This limitation forces developers to create <em>dummy/empty</em> files inside a directory, in order for it to be added into the repository. I have coded a command line tool in python, that will help you create and delete these empty files dynamically.<span id="more-446"></span></p>
<p>Here&#8217;s the output when you run the command with the <code>-h</code> or <code>--help</code> option:</p>
<pre>Usage: hg-touch.py [options] filename

Add or Remove placeholder files for SCM (Source Control Management) tools that do not support empty directories.

Options:
  -h, --help            show this help message and exit
  -p PATH, --path=PATH  search within PATH
  -r, --remove          remove FILE from any directory found on PATH</pre>
<h4>Creating placeholder files</h4>
<p>When you run the command, it will create the files inside any empty directory in the directory specified by the <code>-p</code> or <code>--path</code> option.</p>
<p>The following command will create <em>.hidden</em> files in any empty directory found inside the /webroot/demo directory:</p>
<pre>python hg-touch.py -p /webroot/demo .hidden</pre>
<p>Internally, the script walks through the directory structure, finding empty directories and creating the placeholder files.</p>
<h4>Deleting placeholder files</h4>
<p>The command line tool can also remove the empty files you&#8217;ve just created, in case you want to rollback your last action.</p>
<p>The following command will remove the <em>.hidden</em> files from any directory found anywhere inside the /webroot/demo directory:</p>
<pre>python hg-touch.py --remove -p /webroot/demo .hidden</pre>
<p>You can also use the <code>-r</code> option instead of <code>--remove</code>.</p>
<div class="box alt warning">You need to be extra careful when using the <code>--remove</code> option, since it will delete the files based on the filename you specify. For this reason, you need to assign filenames that you are pretty sure are placeholders. I personally use <em>.hidden</em> or <em>.keep</em> for the filenames.</div>
<h4>Download</h4>
<p>You can download the script from the following link:</p>
<a class="button utility" href="http://tutorials.der-design.com/track-emtpy-directories-scm/hg-touch.zip">hg-touch.zip</a>
<p>If you want to see how the script works, you can also view its <a href="http://paste.pocoo.org/show/353722/">source code</a>.</p>
<p>This work is licensed under a dual <a href="http://www.opensource.org/licenses/mit-license.php">MIT</a> &amp; <a href="http://www.gnu.org/licenses/gpl.html">GPL</a> License.</p>
]]></content:encoded>
			<wfw:commentRss>http://der-design.com/mercurial/track-emtpy-directories-scm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read PDF Files on your PS3 System</title>
		<link>http://der-design.com/scripts/read-pdf-files-on-your-ps3</link>
		<comments>http://der-design.com/scripts/read-pdf-files-on-your-ps3#comments</comments>
		<pubDate>Sun, 27 Feb 2011 17:54:31 +0000</pubDate>
		<dc:creator>der</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://der-design.com/?p=383</guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>If you do a <a href="http://www.google.com/search?hl=en&amp;q=ps3+read+pdf&amp;btnG=Search&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=">google search</a>, you will see for yourself that a whole lot of people want to read PDF files on their PS3 Systems. There aren&#8217;t too many options available for those of us wanting to read our ebooks from the comfort of our beds, without having to sit in front of the computer (or have the laptop in bed the whole time).<span id="more-383"></span></p>
<h4>1a) Converting your PDF to JPEG Images (Mac)</h4>
<p>The first step of the process consists on converting your PDF File into a set of JPEG images, named sequentially. On OSX, You will use the <strong>Automator Script</strong> I have developed, which you can download from the link below:</p>
<a class="button utility" href="http://der-design.com/wp-content/uploads/2011/02/PDF-to-JPEG.zip">Convert-PDF-to-JPEG-action.zip</a>
<p>After you&#8217;ve downloaded &amp; extracted the Automator Action, double-click it to run it. It is going to prompt you for the <strong>PDF File</strong> you want to convert:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-401" title="select-pdf" src="http://der-design.com/wp-content/uploads/2011/03/select-pdf.jpg" alt="" width="500" height="342" /></p>
<p>You will then be prompted for the <strong>Output Directory</strong>, which will be used to store all the images after they have been exported from the PDF File:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-400" title="output-directory" src="http://der-design.com/wp-content/uploads/2011/03/output-directory.jpg" alt="" width="500" /></p>
<p style="text-align: left;">After you&#8217;ve chosen the Output Directory, the Automator Script will ask you for your desired <strong>Quality Settings</strong>, <strong>DPI</strong> &amp; <strong>Format</strong> of the images.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-409" title="export-settings" src="http://der-design.com/wp-content/uploads/2011/03/export-settings.jpg" alt="" width="500" height="287" /></p>
<p style="text-align: left;">Having a resolution setting of 200dpi makes the exported images considerably big. If you have a 1080p HDTV then you can definitely use such resolution. If you&#8217;re using a different resolution on your HDTV, then you can reduce the DPI setting until you&#8217;re satisfied with the results. You can start playing around from 72dpi, which is the default Resolution for screens.</p>
<p style="text-align: left;">You can set any resolution you want for the exported images. You can export to any of the image formats available.  JPEG is the default since it&#8217;s an industry standard and it&#8217;s fully supported by the Playstation 3 Browser.</p>
<p style="text-align: left;">When you click on Continue, the Script will start working and it will present you with a small gear on the top right hand side of your menu bar, which means the Script is currently exporting the pages of your PDF File. Be aware that this process might take <strong>several minutes</strong>, depending on the <strong>size</strong> of the PDF and the <strong>speed</strong> of your computer.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-412" title="working" src="http://der-design.com/wp-content/uploads/2011/03/working.jpg" alt="" width="446" height="47" /></p>
<p style="text-align: left;">After it&#8217;s done, you will be notified with a Growl Notification, letting you know the process has been completed:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-411" title="notification" src="http://der-design.com/wp-content/uploads/2011/03/notification.jpg" alt="" width="337" height="123" /></p>
<p style="text-align: left;">Just after the notification appears, the <strong>Output Directory </strong>you&#8217;ve chosen earlier will appear in Finder, showing you all the exported images:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-410" title="finder-reveal" src="http://der-design.com/wp-content/uploads/2011/03/finder-reveal.jpg" alt="" width="500" height="348" /></p>
<p style="text-align: left;">After you see those images, it&#8217;s now time to convert those images into a <strong>fully readable</strong> site, with navigation and all the bells &amp; whistles.</p>
<p style="text-align: left;">Before we proceed to the nitty gritty, it&#8217;s time to show some love to the fellow linux users.</p>
<h4>1b) Converting your PDF to JPEG Images (Linux/UNIX)</h4>
<p>On (Ubuntu) Linux, you don&#8217;t have Automator, so you need to convert the files in some other way. For this, you need the <strong>Image Magick package. </strong>To install it, open your terminal, and run the following command:</p>
<pre>sudo apt-get install imagemagick</pre>
<p>This will install Image Magick and all its dependencies.</p>
<p>Now it&#8217;s time to convert the file to a sequence of JPEG images. In this example, we&#8217;re using the <a href="http://www.ubuntu.com/files/server/UbuntuServerBrochure804LTS.pdf">UbuntuServerBrochure804LTS.pdf</a> file. As you can see in the command below, we set the image resolution using the <code>-density</code> command.</p>
<pre>convert -density 200 UbuntuServerBrochure804LTS.pdf page.jpg</pre>
<p>As in the previous section, we&#8217;re using a Resolution setting of 200dpi. As with the Automator Script method, this process takes a considerable amount of time, depending on the <strong>size</strong> of the PDF File, and the <strong>speed</strong> of your computer.</p>
<p style="text-align: left;">After you&#8217;re done, you will have all the images on the same directory where you&#8217;ve executed the command:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-416" title="imgs-linux" src="http://der-design.com/wp-content/uploads/2011/03/imgs-linux.jpg" alt="" width="500" height="342" /></p>
<p><strong>Important Note: </strong>It is very important for the <span style="text-decoration: underline;">next step,</span> that you <strong>only</strong> have the exported images <strong>inside the output directory</strong>. The <span style="text-decoration: underline;">only</span> thing that should be inside the output directory, are the exported images, <strong>nothing else</strong><em>. </em>If there files other than images, then when the HTML is generated, you might have unexpected results. The Python Script expects only images to be present in such directory.</p>
<p>You also might be asking: <em>But why didn&#8217;t you use Image Magick on OSX, it&#8217;s available on Darwin Ports?</em> Well, I&#8217;ve tried it, compiled Image Magick and the result was not the same. The exported images were not Antialiased. When you use Automator, you&#8217;re using the built-in export capabilities of OSX. On linux it works pretty well, since you&#8217;re using native software built for such OS.</p>
<h4>2) Generating the HTML from the Exported Images</h4>
<p>After you have exported the images, it&#8217;s now Showtime! This step is compatible with both Mac &amp; Linux, since they&#8217;re both UNIXes. To genereate the HTML, you need a <strong>Python Script </strong>that I generously coded and shared with you. Please download it below:</p>
<a class="button utility" href="http://der-design.com/wp-content/uploads/2011/02/img2web.py_.zip">img2web.py</a>
<p>After you&#8217;ve downloaded it and extracted it, copy and paste it to the <strong>same</strong> directory where the output directory is. For the geeks: You can copy it to any directory on your <code>$PATH</code>.</p>
<p>To generate the HTML from your images, assuming the images are located on the output/ directory, run the following command:</p>
<pre>python img2web.py output/</pre>
<p>The script will ask you for the <strong>Page Title</strong> to use. This will be the Title of your HTML Book. Enter <code>Ubuntu 8.04 Server</code>, when prompted:</p>
<pre>Page Title: Ubuntu 8.04 Server</pre>
<p>After that, the Script will generate all the HTML files for your Book. Here&#8217;s the whole output from the moment you first run the command:</p>
<pre>MacBook-Pro:test der$ ./img2web.py output/

  Copyright (c) 2011 Ernesto Mendez (der-design.com)
  Dual licensed under the MIT and GPL licenses.

 Page Title: Ubuntu 8.04 Server

- Creating Project Directory: 'Ubuntu 8.04 Server/'
- Copying images from source to img/
- Creating file index.html
- Creating file page-2.html
- Creating file page-3.html
- Creating file page-4.html
- Creating file page-5.html
- Creating file page-6.html
- Creating file pages.html
- Finished!

MacBook-Pro:test der$</pre>
<p>And that&#8217;s it! you now have a directory with the same name of the <strong>Project Title </strong>you&#8217;ve specified. If you want, you can open the <code>index.html</code> file inside such directory, and start browsing the Book right away!</p>
<p>The next step, shows you how to setup a Web Server to be able to access the Book from yoru Playstation 3 System.</p>
<h4>3) Starting a Web Server on your Computer</h4>
<p>OSX has a built-in Web Server, which is started when you enable <strong>Web Sharing</strong> from your Preferences. To do that, go to your <strong>System Preferences » Sharing</strong>, and enable <strong>Web Sharing</strong>, as seen in the image below:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-423" title="web-sharing" src="http://der-design.com/wp-content/uploads/2011/03/web-sharing.jpg" alt="" width="500" height="417" /></p>
<p>In this case, my LAN IP Address is <code>10.0.0.4</code>, so this is the address that will be used to access your Book from your Playstation 3 System.</p>
<p>In this case, I can access my local Site by going to <code>http://10.0.0.4/~der/</code>. This will be different in your computer. Make sure you write down the address that appears on the Preferences window.</p>
<p>To make your book available in your local Site, just move or copy the <code>Ubuntu 8.04 Server/</code> directory you&#8217;ve just created on the previous steps, to the  <code>Sites</code> Folder, which is inside your <strong>Home Directory</strong>.</p>
<p>After you&#8217;ve copied your site to the <strong>Sites/ </strong>directory, you will be able to view the Book from your browser,  when you access your local Web Server</p>
<h4>3a) If you&#8217;re using Linux&#8230;</h4>
<p>Linux doens&#8217;t come with a Web Server built-in by default. You need to either install Apache, Lighttpd or any other web server of your preference. This falls outside of the scope of this document. You can read <a href="https://help.ubuntu.com/community/ApacheMySQLPHP">this tutorial</a> to get yourself started configuring a Web Server on your (Ubuntu) Linux system.</p>
<h4>4) Reading the Book from your Playstation  3 Browser</h4>
<p>After you have the Web Server setup, you can access the Book from your Playstation 3 Browser. The following image shows the awesomeness (Click to see the High Resolution version):</p>
<p style="text-align: center;"><a href="http://der-design.com/wp-content/uploads/2011/03/hdtv-1.jpg"><img class="aligncenter size-full wp-image-425" title="hdtv-1" src="http://der-design.com/wp-content/uploads/2011/03/hdtv-1.jpg" alt="" width="560" height="364" /></a></p>
<p style="text-align: center;"><a href="http://der-design.com/wp-content/uploads/2011/03/hdtv-2.jpg"><img class="aligncenter size-full wp-image-425" title="hdtv-1" src="http://der-design.com/wp-content/uploads/2011/03/hdtv-2.jpg" alt="" width="560" height="395" /></a></p>
<h4>Final Notes</h4>
<p>I hope this tutorial is useful to those of you looking for a way of reading PDF files on your Playstation 3 Systems.</p>
<p>Below are the links to donwload the Scripts used on this tutorial:</p>
<ul>
<li><a href="http://der-design.com/wp-content/uploads/2011/02/PDF-to-JPEG.zip">Convert-PDF-to-JPEG-action.zip</a></li>
<li><a href="http://der-design.com/wp-content/uploads/2011/02/img2web.py_.zip">img2web.py</a></li>
</ul>
<p>You can have a look at the Live Demo to see the end result:</p>
<a class="button utility" href="http://tutorials.der-design.com/read-pdf-files-on-your-ps3/Ubuntu8.04Server/" target="_blank">Live Demo</a>
<p>To access the live demo from your PS3, you can use the following short link:</p>
<pre>http://bit.ly/pdf2ps3</pre>
<p>This work has been licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT</a> &amp; <a href="http://www.gnu.org/licenses/gpl.html">GPL</a> Licenses.</p>
]]></content:encoded>
			<wfw:commentRss>http://der-design.com/scripts/read-pdf-files-on-your-ps3/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Chrome Extension: Personalized Web</title>
		<link>http://der-design.com/discoveries/personalized-web</link>
		<comments>http://der-design.com/discoveries/personalized-web#comments</comments>
		<pubDate>Sat, 08 Jan 2011 12:23:04 +0000</pubDate>
		<dc:creator>der</dc:creator>
				<category><![CDATA[Discoveries]]></category>

		<guid isPermaLink="false">http://der-design.com/?p=354</guid>
		<description><![CDATA[Sometimes, I wish I could change some sites, in a way that it would be better for me to browse their content. Some of them have so many blinking annoyances, that  make the site look like a Christmas Tree.

After researching for a Chrome Extension to provide me with the flexibility to hide elements from webpages by using CSS code, I came across a cute little extension, called Personalized Web.]]></description>
			<content:encoded><![CDATA[<p>Sometimes, I wish I could change some sites, in a way that it would be better for me to browse their content. Some of them have so many <strong>blinking</strong> annoyances, that  make the site look like a <strong>Christmas Tree</strong>.</p>
<p>After researching for a <a href="https://chrome.google.com/extensions">Chrome Extension</a> to provide me with the flexibility to hide elements from webpages by using CSS code, I came across this cute little extension:</p>
<a class="button utility" href="https://chrome.google.com/extensions/detail/plcnnpdmhobdfbponjpedobekiogmbco">Personalized Web</a>
<p>It is tremendously helpful, since it allows you to add custom CSS code to any website you visit, by using <a href="http://en.wikipedia.org/wiki/Regular_expression">Regular Expressions</a>. Now, that&#8217;s how you do it.</p>
<p>After you install the plugin, you won&#8217;t see any visual feedback as of where the extension button is placed on the top right hand side of your browser. You need to navigate through <em>Window » Extensions</em>, then locate the <strong>Personalized Web</strong> entry and click on <strong>Options</strong>. This will bring you to the interface where you are able to create rules, specify <em>CSS</em> and <em>JavaScript</em> code to run on any site(s) you define.</p>
<h3>Example: Hiding Gmail Ads</h3>
<p>On the Personalized Web Options, click on <em>Add New Rule</em> and then, specify its <em>Name</em> on the <code>Rule Name</code> field.</p>
<p>Now, set the following regexp on the <code>Match URLs</code> field:</p>
<pre>^https://mail.google.com</pre>
<p>Set the following code on the <code>Add CSS</code> field:</p>
<pre>div.nH.mq { display: none; }</pre>
<p>And that&#8217;s it! This will hide the Ads from your Gmail interface.</p>
<h3>What could be done with this ?</h3>
<p>Besides Hiding annoying advertising from some sites, you could also hide sections of a site that you&#8217;re not interested in, and make your browsing more enjoyable, without letting forced content to distract your experience on the site.</p>
]]></content:encoded>
			<wfw:commentRss>http://der-design.com/discoveries/personalized-web/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

