<?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>Ethilien &#187; Javascript</title>
	<atom:link href="http://ethilien.net/archives/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://ethilien.net</link>
	<description>I need to redo this site...</description>
	<lastBuildDate>Wed, 12 Aug 2009 21:55:39 +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>Firefox about:config Tips and Tricks</title>
		<link>http://ethilien.net/archives/firefox-aboutconfig-tips-and-tricks/</link>
		<comments>http://ethilien.net/archives/firefox-aboutconfig-tips-and-tricks/#comments</comments>
		<pubDate>Sat, 13 Jan 2007 00:50:09 +0000</pubDate>
		<dc:creator>Connor</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ethilien.net/archives/firefox-aboutconfig-tips-and-tricks/</guid>
		<description><![CDATA[In this post I&#8217;ll outline some of my favorite custom configuration options for Firefox, which can be set from about:config. Some of these preferences do not exist by default, so you will have to right-click in about:config, select New, the type of preference, and then enter the preference name exactly as I have written it.

browser.urlbar.autoFill

Type: [...]]]></description>
			<content:encoded><![CDATA[<p>In this post I&#8217;ll outline some of my favorite custom configuration options for Firefox, which can be set from <a href="about:config">about:config</a>. Some of these preferences do not exist by default, so you will have to right-click in about:config, select New, the type of preference, and then enter the preference name exactly as I have written it.</p>

<h2>browser.urlbar.autoFill</h2>

<p><strong>Type</strong>: Boolean<br />
<strong>Possible Values</strong>: true, false<br />
Setting this option to true will cause the url bar to auto complete urls. With this option, you can type the first few characters of a url, hit enter, and bingo, your at the site!<br />
<img id="image20" src="http://ethilien.net/wp-content/uploads/2006/12/urlbarautofill.png" alt="urlbar autofill screenshot" /></p>

<p>Note: It isn&#8217;t at first apparent how to stop the auto-completion at a certain point without going to the entire URL. For instance, if you want to go to a root domain, but the URL that starts to auto complete includes a specific page, just hit space after the domain name to stop the auto completion.</p>

<p><span id="more-17"></span></p>

<h2>browser.urlbar.clickSelectsAll</h2>

<p><strong>Type</strong>: Boolean<br />
<strong>Possible Values</strong>: true, false<br />
<strong>Requires Restart</strong><br />
If editing urls is something you do regularly, you may want to turn this option off. When you click on the urlbar, instead of selecting the entire url, you will instantly have an edit cursor. Normally you would have to click twice about a second apart to achieve the same effect.</p>

<h2>browser.urlbar.matchOnlyTyped</h2>

<p><strong>Type</strong>: Boolean<br />
<strong>Possible Values</strong>: true, false<br />
Making this option true will cause only URLs you have actually typed in to appear in the drop down underneath the urlbar or auto complete. This feature is useful for eliminating all but your most frequently visited sites from the drop down (although you should probably bookmark them instead, so this feature really isn&#8217;t that useful).</p>

<h2>browser.tabs.closeButtons</h2>

<p><strong>Type</strong>: Integer<br />
If you don&#8217;t like the way Firefox 2 displays the tab closebuttons, this option will let you set them back.</p>

<p><strong>Possible Values</strong>:<br />
0 &#8211; Display a close button on the active tab only<br />
1 &#8211; Display a close button on all tabs (the default)<br />
2 &#8211; Don&#8217;t display any close buttons<br />
3 &#8211; Display a single close button at the end of the tab bar, just like FF 1.x  </p>

<h2>dom.disable<em>window</em>open<em>feature.scrollbars, dom.disable</em>window<em>open</em>feature.resizable, dom.disable<em>window</em>open<em>feature.close, dom.disable</em>window<em>open</em>feature.minimizable</h2>

<p><strong>Type</strong>: Boolean<br />
<strong>Possible Values</strong>: true, false<br />
These four settings should be set to true to prevent websites from opening popup windows without scrollbars, or that you can&#8217;t resize, minimize, or close. If you&#8217;ve ever been to a website that miscalculated the size of the content being displayed in a popup, but prevented it from being scrolled or resized, you will know how annoying this is.</p>

<h2>layout.spellcheckDefault</h2>

<p><strong>Type</strong>: Integer<br />
<strong>Requires Restart</strong><br />
This preference allows you to control what types of text controls should have spell checking enabled.</p>

<p><strong>Possible Values</strong>:<br />
0 &#8211; Disable all spell checking<br />
1 &#8211; Enable spell checking only for multi-line controls like textareas (the default)<br />
2 &#8211; Enable spell checking on all text controls (much more useful)</p>

<h2>extensions.checkCompatibility</h2>

<p><strong>Type</strong>: Boolean<br />
<strong>Possible Values</strong>: true, false<br />
This option is mainly useful soon after a new release of Firefox, when most extensions have not been updated for use with the new version. Setting this option to false will allow you to enable your old extensions even if they are not supposed to work with the new release (because most actually do).</p>

<p>Hopefully you will find these hidden preferences as useful as I do!</p>
]]></content:encoded>
			<wfw:commentRss>http://ethilien.net/archives/firefox-aboutconfig-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Achilles Heel of DTR</title>
		<link>http://ethilien.net/archives/the-achilles-heel-of-dtr/</link>
		<comments>http://ethilien.net/archives/the-achilles-heel-of-dtr/#comments</comments>
		<pubDate>Sat, 15 Oct 2005 22:09:43 +0000</pubDate>
		<dc:creator>Connor</dc:creator>
				<category><![CDATA[Graphics/3D]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ethilien.net/archives/5</guid>
		<description><![CDATA[When building this site, I wanted to use a custom font for all the headings, and after reading the tutorial on Dynamic Text Replacement at A List Apart, I decided to try it. Following my common philosophy of never using someone else&#8217;s code when I can write my own, I created a custom DTR script. [...]]]></description>
			<content:encoded><![CDATA[<p>When building this site, I wanted to use a custom font for all the headings, and after reading the tutorial on Dynamic Text Replacement at <a href="http://www.alistapart.com/articles/dynatext">A List Apart</a>, I decided to try it. Following my common philosophy of never using someone else&#8217;s code when I can write my own, I created a custom DTR script. The main difference between mine and the one on A List Apart is that I wanted to output transparent PNGs. Unfortunately, it turns out that the GD library in PHP is incapable of generating transparent text when any characters in a font overlap. You can see this problem in action in this image, where the end of the u is covered up by the x.</p>

<p><img alt="Picture of text " id="image4" src="http://ethilien.net/wp-content/uploads/2006/08/gdtext.png" /></p>

<p>After digging through the bug reporting system for PHP, I ran across one in which a guy wanted to output alpha anti-aliased lines to transparent PNGs, but was unable to because, for &#8220;historical reasons&#8221;, GD cannot blend images this way (<a href="http://bugs.php.net/bug.php?id=34357">the bug</a>). One more classic example of not treating transparency as just another channel I suppose.</p>

<p>So in order to output text that will be alpha blended, you have to run imagealphablending($img, false) so that all drawing to a pixel overwrites the existing contents of it without trying to blend the drawn color with its current color. So since imagettftext() and imagefttext() draw each character separately, if they overlap at all, they will overwrite the previous character.</p>

<p>So until GD is changed to use a different blending model, outputting transparent text is impossible. I thought of reporting this as a bug, but it seems that this is how the php and gd developers want it to behave. Of course IE&#8217;s complete inability to render transparent PNGs  means that there really isn&#8217;t much point anyway <img src='http://ethilien.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ethilien.net/archives/the-achilles-heel-of-dtr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
