<?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>Hawn.be</title>
	<atom:link href="http://blog.hawn.be/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hawn.be</link>
	<description>Some things worth mentioning ...</description>
	<lastBuildDate>Mon, 17 Oct 2011 09:02:01 +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>How to force YouTube to use Expanded View by default (and even larger)</title>
		<link>http://blog.hawn.be/2011/10/07/how-to-force-youtube-to-use-expanded-view-by-default-and-even-larger/</link>
		<comments>http://blog.hawn.be/2011/10/07/how-to-force-youtube-to-use-expanded-view-by-default-and-even-larger/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 18:36:10 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Fixes for annoying problems]]></category>
		<category><![CDATA[User CSS]]></category>
		<category><![CDATA[bigger]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[expanded view]]></category>
		<category><![CDATA[higher resolution]]></category>
		<category><![CDATA[video player]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://blog.hawn.be/?p=161</guid>
		<description><![CDATA[So, the default size of the video player on YouTube is quite small. I know, right? Expanded view is much better. Tell me about it! But why doesn&#8217;t the damn website remember you switching to expanded view yesterday? Because it &#8230; <a href="http://blog.hawn.be/2011/10/07/how-to-force-youtube-to-use-expanded-view-by-default-and-even-larger/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, the default size of the video player on YouTube is quite small. I know, right?</p>
<p>Expanded view is much better. Tell me about it!</p>
<p>But why doesn&#8217;t the damn website remember you switching to expanded view yesterday? Because it just doesn&#8217;t offer the functionality.</p>
<p>I am about to change that and rock your world.</p>
<p><span id="more-161"></span></p>
<h2>The solution: User CSS</h2>
<p>Just create a file called <em>youtube.com.css</em>, or something like that, and put this code in it:</p>
<pre class="brush: css">div#watch-player.flash-player,
div#watch-video {
	width: /*854px*/ /*970px*/ 1280px !important;
	height: /*510px*/ /*580px*/ 765px !important;
}
div#watch-sidebar {
	margin-top: 10px !important;
}
div#watch-video-container {
	background-color: #555 !important;
}</pre>
<p>To elaborate on those values:</p>
<p>854 x 510 pixels is the <em>default size</em> of YouTube&#8217;s <em>Expanded View</em><br />
970 x 580 pixels is the <em>full width</em> of the YouTube website<br />
1280 x 765 pixels is <em>true 720p</em> size <strong>and will load videos at 720p by default, because of the player&#8217;s size, ZOMG!</strong></p>
<p>You can (un)comment any set of values you like, or choose your own. Be sure not to make it bigger than your screen is capable of showing, because that would be a waste.</p>
<p>As for putting this file to use on the YouTube website, I refer to <a title="Learn to search for yourself, preferably about setting up User CSS" href="http://www.google.com/search?q=set+user+css+firefox+chrome+opera" target="_blank">the internet</a>.</p>
<h2>Some visual examples</h2>
<p>(because people&#8217;s attention span isn&#8217;t getting any better any time soon, they may even have stopped reading after the first sentence &#8211; not because I&#8217;m a bad writer, oh no):</p>
<div id="attachment_175" class="wp-caption alignnone" style="width: 570px"><img class="alignnone size-full wp-image-175" title="youtube-videoplayer-default-small-560px" src="http://blog.hawn.be/wp-content/uploads/youtube-videoplayer-default-small-560px.jpg" alt="The video player at default size" width="560" height="438" /><p class="wp-caption-text">The video player at default size</p></div>
<div id="attachment_182" class="wp-caption alignnone" style="width: 570px"><img class="size-full wp-image-182" title="youtube-videoplayer-854px-560px" src="http://blog.hawn.be/wp-content/uploads/youtube-videoplayer-854px-560px.jpg" alt="The video player set to Expanded View" width="560" height="438" /><p class="wp-caption-text">The video player set to Expanded View</p></div>
<div id="attachment_183" class="wp-caption alignnone" style="width: 570px"><img class="size-full wp-image-183" title="youtube-videoplayer-970px-560px" src="http://blog.hawn.be/wp-content/uploads/youtube-videoplayer-970px-560px.jpg" alt="The video player at full website width" width="560" height="438" /><p class="wp-caption-text">The video player at full website width</p></div>
<div id="attachment_178" class="wp-caption alignnone" style="width: 570px"><img class="size-full wp-image-178" title="youtube-videoplayer-1280px-560px" src="http://blog.hawn.be/wp-content/uploads/youtube-videoplayer-1280px-560px.jpg" alt="The video player at full 720p width" width="560" height="438" /><p class="wp-caption-text">The video player at full 720p width</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.hawn.be/2011/10/07/how-to-force-youtube-to-use-expanded-view-by-default-and-even-larger/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Libre Office, how to change default styles permanently</title>
		<link>http://blog.hawn.be/2011/08/09/libre-office-how-to-change-default-styles-permanently/</link>
		<comments>http://blog.hawn.be/2011/08/09/libre-office-how-to-change-default-styles-permanently/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 14:26:50 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Fixes for annoying problems]]></category>
		<category><![CDATA[Libre Office / Open Office]]></category>
		<category><![CDATA[Open Source Software]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Change Default Style]]></category>
		<category><![CDATA[Libre Office]]></category>
		<category><![CDATA[Open Office]]></category>

		<guid isPermaLink="false">http://blog.hawn.be/?p=141</guid>
		<description><![CDATA[After I got bored with the default font families and font sizes of the Default, Text Body and Heading styles, I tried changing them permanently. But just pressing F11, modifying certain styles and Applying isn&#8217;t enough for Libre Office to &#8230; <a href="http://blog.hawn.be/2011/08/09/libre-office-how-to-change-default-styles-permanently/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After I got bored with the default font families and font sizes of the Default, Text Body and Heading styles, I tried changing them permanently. But just pressing F11, modifying certain styles and Applying isn&#8217;t enough for Libre Office to remember your specific choices.</p>
<p><span id="more-141"></span></p>
<p>No, what you actually have to do is apply your personal changes to the default styles in any Writer document, then delete all contents and go to <code>File - Templates - Save Template</code>. This file will be saved as a template for future use as a default template, but you need to make it default first.</p>
<p>Go to <code>File - Templates - Organize</code>. Double Click <em>My Templates</em> and select the template you saved just seconds ago. Click the <em>Command</em> button and click <em>Set Default Template</em>.</p>
<p>Now close Writer and reopen it. If you look at the styles by pressing F11 and modifying them, you&#8217;ll see they are exactly as you changed them in your previous document, and they will stay that way for eternity!</p>
<p>The actual source of this solution is found <a href="http://superuser.com/questions/297119/how-can-i-save-my-styles-modifications-for-eternity-in-libreoffice" title="SuperUser -- How can I save my styles' modifications for eternity in LibreOffice?">here</a>, but I just saved you the trouble of looking even further.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hawn.be/2011/08/09/libre-office-how-to-change-default-styles-permanently/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Additional (32-bit) Printer Drivers on a 64-bit Windows host</title>
		<link>http://blog.hawn.be/2011/08/09/additional-32-bit-printer-drivers-on-a-64-bit-windows-host/</link>
		<comments>http://blog.hawn.be/2011/08/09/additional-32-bit-printer-drivers-on-a-64-bit-windows-host/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 13:34:05 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Fixes for annoying problems]]></category>
		<category><![CDATA[Network Shares]]></category>
		<category><![CDATA[Printers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[32-bit client]]></category>
		<category><![CDATA[64-bit host]]></category>
		<category><![CDATA[Additional Drivers]]></category>
		<category><![CDATA[Windows Shared Printer]]></category>
		<category><![CDATA[Windows Update]]></category>

		<guid isPermaLink="false">http://blog.hawn.be/?p=131</guid>
		<description><![CDATA[Contemplation of the problem Sometimes it&#8217;s a pain to add 32-bit drivers to the Additional Drivers section when you install a printer on a 64-bit Windows machine and share it in your network, because of compatibility with the 64-bit drivers &#8230; <a href="http://blog.hawn.be/2011/08/09/additional-32-bit-printer-drivers-on-a-64-bit-windows-host/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Contemplation of the problem</h2>
<p>Sometimes it&#8217;s a pain to add 32-bit drivers to the <em>Additional Drivers</em> section when you install a printer on a 64-bit Windows machine and share it in your network, because of compatibility with the 64-bit drivers which needs both bit-versions of the drivers to go with the same name.</p>
<p>When you, for example, install 64-bit drivers through <em>Windows Update</em>, the drivers offered on the manufacturer&#8217;s website will not necessarily call your printer by exactly the same name. That&#8217;s a no-no for Windows, and your favorite OS will stubbornly refuse to accept those drivers.</p>
<p><span id="more-131"></span></p>
<p>Now you may think &#8216;Well, why can&#8217;t I let Windows use the 32-bit drivers that are installed using <em>Windows Update</em>?&#8217; Very clever, but you cannot let Windows Update install 32-bit drivers on a 64-bit machine.</p>
<p>But going down that same path on a detour, it is actually possible to achieve the result you thought you&#8217;d achieve, but by having to go through some extra steps and having a 32-bit Windows machine at your disposal.</p>
<h2>Solution</h2>
<p>For this solution to work, you will need to have both 32-bit and 64-bit Windows installed on one or several computers and be able to connect the printer directly to both versions of Windows.</p>
<h3>First step: Install printer on 64-bit Host</h3>
<p>This is easy: connect the printer, turn it on and install the drivers through <em>Windows Update</em>. Let it finish, then share the printer in your network. Do not yet attempt to add Additional 32-bit Drivers.</p>
<h3>Second step: Install printer on the 32-bit Client locally</h3>
<p>Roughly the same as the previous step: connect the printer to the 32-bit Windows machine, turn on the printer and let <em>Windows Update</em> check for updates and let it install the printer driver.</p>
<h3>Third step: Locate the 32-bit printer driver on your 32-bit machine&#8217;s hard disk</h3>
<p>This is more advanced than previous steps. Luckily there are constants we can hold on to to guide us through this step. The directory you must open in Explorer is <code>C:\Windows\System32\DriverStore\FileRepository\</code>.</p>
<p>You will see a lot of directories with cryptic names glaring back at you. One or more directories will be of importance in this step, and those can be identified by sorting the directories by <em>Date Modified</em>. Simply look for the directories that are modified at the time you let <em>Windows Update</em> run to install the printer drivers. Select the directories that fit the time-tag and <em>Copy</em> or <em>Share</em> them.</p>
<p>(If you cannot remember the time you installed your printer, you can always search for the correct directories knowing that a directory of a printer-driver starts with <strong>prn</strong>, followed by two characters indicating the printer&#8217;s manufacturer. For example: in case of an HP printer, it will be <code><strong>prnhp</strong>XXX.inf_x86_neutral_XXXXXXXXXXXXXXXX</code>, but in case of a Canon printer it will be <code><strong>prnca</strong>XXX.inf_x86_neutral_XXXXXXXXXXXXXXXX</code>.)</p>
<p>Do the same for this directory: <code>C:\Windows\System32\DriverStore\FileRepository\ntprint.inf_x86_neutral_XXXXXXXXXXXXXXXX</code>. (all X&#8217;s are random numbers or letters, there will be only one directory that starts with ntprint.inf_x86)</p>
<h3>Fourth Step: install the Additional 32-bit Driver on your host</h3>
<p>Now back on the 64-bit host on which the printer will be shared. Go to the printer&#8217;s properties, tab <em>Share</em> and click the button <em>Additional Drivers</em>. Now check <em>32-bit Drivers</em> and press OK. It will prompt you a dialog to browse for the .INF file that contains the 32-bit driver of the printer you shared.</p>
<p>The correct .INF file will be inside one of the directories you just copied or shared. Just try them all out until one works.</p>
<p>Then Windows will ask for correct the ntprint.inf file. That one can be found in the ntprint.inf_x86&#8230; directory you also copied or shared. The file will be accepted and the installation of the 32-bit driver will continue and finish.</p>
<h3>Fifth Step: Enjoy how things work!</h3>
<p>I know I did. I installed all shared printers (both a Canon inkjet and an HP laserjet) on all computers I could find in my home, all with great success.</p>
<h2>More details on specific cases</h2>
<p>The installation of the HP Laserjet on the 32-bit Windows machine created just one directory in the FileRepository and was called <code>prnhp001.inf_x86_neutral_XXXXXXXXXXXXXXXX</code>. That was easy.</p>
<p>More difficult was the installation of the Canon printer, which created a whole series of directories, all of them starting with <strong>prnca00</strong>, and only one of them (to be precise: prnca00n&#8230;) containing the driver of the printer I tried installing. Worse still was the <em>Core Driver</em>&#8216;s .INF file which was to be found in yet another directory and ultimately turned out split over two directories: <strong>prnca00x</strong> and <strong>prnca00y</strong>. A lot of tedious searching, but in the end everything works as it should, and that&#8217;s what&#8217;s important.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hawn.be/2011/08/09/additional-32-bit-printer-drivers-on-a-64-bit-windows-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sounds start with a *pop* in Windows 7</title>
		<link>http://blog.hawn.be/2011/06/09/sounds-pops-in-windows-7/</link>
		<comments>http://blog.hawn.be/2011/06/09/sounds-pops-in-windows-7/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 10:08:09 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Fixes for annoying problems]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[idle]]></category>
		<category><![CDATA[pop]]></category>
		<category><![CDATA[popping]]></category>
		<category><![CDATA[pops]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.hawn.be/?p=113</guid>
		<description><![CDATA[I&#8217;m using Windows 7 for two weeks now, and I immediately noticed that sometimes whenever a sound is played, it is preceeded by a loud popping noise. After some research, I found the cause to be the sound chip power &#8230; <a href="http://blog.hawn.be/2011/06/09/sounds-pops-in-windows-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using Windows 7 for two weeks now, and I immediately noticed that sometimes whenever a sound is played, it is preceeded by a loud popping noise.</p>
<p>After some research, I found the cause to be the sound chip power management on OS-level. It is all explained <a title="Windows 7 - Please help - speaker pop" href="http://www.sevenforums.com/sound-audio/80500-please-help-speaker-pop-3.html#post744860" target="_blank">here</a>.</p>
<p><span id="more-113"></span></p>
<p>To recapitulate:</p>
<blockquote><p>Sorry I should have posted more detail.<br />
The site that I got my information from was: <a title="Audio Device Class Inactivity Timer Implementation" href="http://msdn.microsoft.com/en-us/library/ff536193.aspx" target="_blank">Audio Device Class Inactivity Timer Implementation (Windows Driver Kit)</a></p>
<p>My &#8220;IdlePowerState&#8221; was set to 04, which is D3Cold in their terms; I changed it to 03 (which I assume is D3Warm, and which I also assume is the pre-Windows 7 setting); it made no difference. Since this is a desktop and not a laptop, I ignored the ConservationIdleTime setting (since that applies to running on battery power), and I increased toe PerformanceIdleTime from 012c (or in the registry, &#8220;2c 01 00 00&#8243;) which is 300 seconds, to &#8220;2c 0f 00 00&#8243; which is about 67 minutes. and so far that seems to have fixed it. I assume if I&#8217;m idle for over 67 minutes and then I get an email, it&#8217;ll &#8220;pop&#8221; again, so my choices are to change the IdlePowerState to 00, or increase the PerformanceIdleTime to an even bigger value. You may find many copies of these values in the registry, remember to only change the one under hkey_local_machine system CurrentControlSet.</p>
<p>Good luck. By the way, funny coincidence, I just bought my wife a dv7t, it doesn&#8217;t have this problem.</p>
<p>For those reading this anew, the sound is as if someone were plugging the speakers into the jack.</p></blockquote>
<p>So, basically it says to alter the value in the registry key to set the time-out value to be a lot higher.</p>
<p>I have put the value &#8220;2c ff 00 00&#8243; in this key: <strong>\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\xxxx\yyyy\PowerSettings\PerformanceIdleTime</strong>, which means that in <em>Performance Profile</em> the stand-by mode will only be initiated after a time of 0xff2c seconds of making no sound whatsoever, which means about 18 hours in human language.</p>
<p>In the key <strong>\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\xxxx\yyyy\PowerSettings\ConservationIdleTime</strong>, I&#8217;ve put the value &#8220;1e 0f 00 00&#8243;, which means 0xf1e seconds (~= about an hour) of required idling before the sound chips kicks into stand-by mode in <em>Power Saving Profile</em>.</p>
<p>(Note: the <strong>xxxx</strong> and <strong>yyyy</strong> are GUIDS, large identifier strings chosen by Windows. To find the right one, you need to look up your audio chip in the <em>Device Manager</em> and look at the <em>Properties</em>, tab <em>Details</em> and there <em>Device class guid</em>)</p>
<p>If you looked closely at the default values in your registry, you might have noticed an idle time of 300 seconds, as stated in the quote above. This means that if the audio chip didn&#8217;t play a sound for 5 minutes, it&#8217;s kicked into stand-by mode, which means that whenever a sound is played from that point onwards, it will start with a *pop*, and that&#8217;s annoying.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hawn.be/2011/06/09/sounds-pops-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera: websites using Facebook Social Plugin keep loading</title>
		<link>http://blog.hawn.be/2011/01/06/opera-websites-using-facebook-social-plugin-keep-loading/</link>
		<comments>http://blog.hawn.be/2011/01/06/opera-websites-using-facebook-social-plugin-keep-loading/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 19:35:09 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Opera]]></category>
		<category><![CDATA[Webbrowsers]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[high processor usage]]></category>
		<category><![CDATA[loading]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://blog.hawn.be/?p=76</guid>
		<description><![CDATA[If you use Opera to browse the internet, you someday might visit a website using the recognisable Facebook Social Plug-in &#8212; as viewed in the screenshot below. The problem in Opera is that when you visit a website that implements &#8230; <a href="http://blog.hawn.be/2011/01/06/opera-websites-using-facebook-social-plugin-keep-loading/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you use Opera to browse the internet, you someday might visit a website using the recognisable Facebook Social Plug-in &#8212; as viewed in the screenshot below.</p>
<div id="attachment_80" class="wp-caption aligncenter" style="width: 669px"><img class="size-full wp-image-80 " title="engadget-facebooksp-4" src="http://blog.hawn.be/wp-content/uploads/engadget-facebooksp-4.png" alt="Facebook Social Plug-in integration as seen on www.engadget.com" width="659" height="129" /><p class="wp-caption-text">Facebook Social Plug-in integration as seen on www.engadget.com</p></div>
<p>The problem in Opera is that when you visit a website that implements the Facebook Social Plug-in, Opera goes berserk and goes off and on loading for an eternity after the website itself finished loading, which is shown in the lovely screenshot below. The result is high and constant processor usage and a bogged down system.</p>
<p><img class="aligncenter size-full wp-image-83" title="opera-reloading-facebooksp-1" src="http://blog.hawn.be/wp-content/uploads/opera-reloading-facebooksp-1.png" alt="" width="668" height="18" /></p>
<p><span id="more-76"></span></p>
<p>When this is examined using Opera Dragonfly, it becomes clear that Facebook keeps sending AJAX requests that get rejected by Opera. The reason for this apparently is some incompatibility with the cross-domain counter-measures of Opera, or broken browser-sniffing inside the plug-in&#8217;s javascript code.</p>
<div id="attachment_84" class="wp-caption aligncenter" style="width: 658px"><img class="size-full wp-image-84" title="opera-network-facebooksp-1" src="http://blog.hawn.be/wp-content/uploads/opera-network-facebooksp-1.png" alt="Opera Dragonfly show repeated attempts to set a cookie originating from a facebook domain." width="648" height="211" /><p class="wp-caption-text">Opera Dragonfly show repeated attempts to set a cookie originating from a facebook domain.</p></div>
<div id="attachment_85" class="wp-caption aligncenter" style="width: 658px"><img class="size-full wp-image-85" title="opera-network-facebooksp-2" src="http://blog.hawn.be/wp-content/uploads/opera-network-facebooksp-2.png" alt="A detail of such an attempt showing the origin being a facebook domain." width="648" height="211" /><p class="wp-caption-text">A detail of such an attempt showing the origin being a facebook domain.</p></div>
<p>At the moment there are two ways to stop the constant attempts which appear to you as if the site keeps loading: a fix or a workaround.</p>
<h2>Workaround</h2>
<p>A possible workaround may be to block the plug-in&#8217;s domain and keep it from being loaded by, <a href="http://my.opera.com/community/forums/topic.dml?id=599712" target="_blank">which is explained on the Opera forum</a>.</p>
<p>The workaround consists of adding these two URL&#8217;s to your blocked content:</p>
<ul>
<li>http://www.facebook.com/plugins/activity.php*</li>
<li>http://www.facebook.com/widgets/activity.php*</li>
</ul>
<p>The biggest problem with this approach is that you cannot use the Facebook integration on the websites that use it.</p>
<h2>Fix</h2>
<p>The fix comes in the form of an <a href="https://addons.opera.com/addons/extensions/details/antibrowsniffer/">add-on named &#8220;AntiBrowsniffer</a>&#8220;, and requires Opera 11.</p>
<p>Comments show that the problem is solved:</p>
<blockquote><p>aaaaaaaaaaaaaaaaaaaaaaa. you fixed facebook connect problem with this. thank you a million <img src='http://blog.hawn.be/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  i can connect to facebook with external sites now, facebook comment works, facebook games work. incredibile.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.hawn.be/2011/01/06/opera-websites-using-facebook-social-plugin-keep-loading/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to properly set up Multicore Rendering in Source Games</title>
		<link>http://blog.hawn.be/2010/11/20/how-to-properly-set-up-multicore-rendering-in-source-games/</link>
		<comments>http://blog.hawn.be/2010/11/20/how-to-properly-set-up-multicore-rendering-in-source-games/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 23:04:57 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Source based games]]></category>
		<category><![CDATA[Counter Strike Source]]></category>
		<category><![CDATA[Mouse Lag]]></category>
		<category><![CDATA[Multicore Rendering]]></category>
		<category><![CDATA[Source Engine]]></category>
		<category><![CDATA[Team Fortress 2]]></category>

		<guid isPermaLink="false">http://blog.hawn.be/?p=56</guid>
		<description><![CDATA[After a lot of research and trial &#038; error, I finally got Multicore Rendering working in Team Fortress 2 without mood killers like enormous mouse lag or unplayable framerates. You can read all about that here, but in this post &#8230; <a href="http://blog.hawn.be/2010/11/20/how-to-properly-set-up-multicore-rendering-in-source-games/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After a lot of research and trial &#038; error, I finally got Multicore Rendering working in Team Fortress 2 without mood killers like enormous mouse lag or unplayable framerates. You can read all about that <a href="http://blog.hawn.be/2010/11/20/my-personal-quest-to-make-multicore-rendering-in-source-games-usable/">here</a>, but in this post I will merely give you some steps to hopefully reproduce my succesful result.</p>
<h2>Simplest step</h2>
<p>Simply try and <strong>enable Multicore Rendering</strong> in the <em>advanced video options</em> of your favourite source game. If the game is still fluent and without significant mouse lag, then you are set. But if it isn&#8217;t, they you aren&#8217;t. More drastic measures are in order.</p>
<p><span id="more-56"></span></p>
<h2>Some ways to try and make it work without much hassle</h2>
<p>I noticed that whenever I enabled Multicore Rendering in Team Fortress 2, it would cause insufferable mouse lag. You know, the kind where your cross hair seems to be connected to your mouse with an elastic. You swoosh your mouse to the left, and some tenths of seconds later the cross hair follows your movement.</p>
<p>There is a way to fix this, although it might not be pretty because there is a visual trade-off, and it is by <strong>disabling Vertical Sync (or &#8216;Vsync&#8217;)</strong>. This causes tearing in the image, but it also causes the computer not to wait for a completely filled buffer before outputting that buffer to the screen, therefore eliminating another step in the process that causes lag.</p>
<h2>Drastic ways to make it work if it still wouldn&#8217;t.</h2>
<p>There are a number of things you can try before giving up:</p>
<ol>
<li>enter <strong>&#8220;mat_queue_mode 2&#8243;</strong> in the console</li>
<li><strong>update your graphics driver</strong> to the most recent stable version</li>
<li><strong>restore the settings of your Graphics Card to default values</strong> as much as possible</li>
</ol>
<p>If that still did not make it work, well then, I don&#8217;t really know what to propose next.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hawn.be/2010/11/20/how-to-properly-set-up-multicore-rendering-in-source-games/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My personal quest to make Multicore Rendering in Source games usable</title>
		<link>http://blog.hawn.be/2010/11/20/my-personal-quest-to-make-multicore-rendering-in-source-games-usable/</link>
		<comments>http://blog.hawn.be/2010/11/20/my-personal-quest-to-make-multicore-rendering-in-source-games-usable/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 23:04:06 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Source based games]]></category>
		<category><![CDATA[Counter Strike Source]]></category>
		<category><![CDATA[Mouse Lag]]></category>
		<category><![CDATA[Multicore Rendering]]></category>
		<category><![CDATA[Source Engine]]></category>
		<category><![CDATA[Team Fortress 2]]></category>

		<guid isPermaLink="false">http://blog.hawn.be/?p=154</guid>
		<description><![CDATA[A familiar experience You know when you play Team Fortress 2 on a 32-player server, and when all of those players are in the same place at the same time, generating a lot of flying projectiles and explosions, the framerate &#8230; <a href="http://blog.hawn.be/2010/11/20/my-personal-quest-to-make-multicore-rendering-in-source-games-usable/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>A familiar experience</h2>
<p>You know when you play Team Fortress 2 on a 32-player server, and when all of those players are in the same place at the same time, generating a lot of flying projectiles and explosions, the framerate would free fall below the comfort-zone of 30 frames per second &#8211; or whatever your personal preference is in an online first person shooter.</p>
<p>Whenever you go look on the internet for a possible solution to this problem, you find that it helps if you enable Multicore Rendering, which is a setting in the Advanced screen of the Video Options. There is a big chance though that when you enable this setting, your ingame experience might worsen, which is the exact opposite of what you were trying to achieve by enabling this option in the first place. &#8220;Great.&#8221; you might think cynically, and turn it back off again and cope with the slowdowns in crowded areas for the rest of your otherwise fun day, which seems is all you can do.</p>
<p><span id="more-154"></span></p>
<h2>Or is it?</h2>
<p>Great news! I personally managed to get it working in an almost perfect way, at least to me. But first let&#8217;s start at the beginning of my encounters with this very weirdly behaving setting.</p>
<p>When I first enabled it, I suffered from enormous mouse lag, the kind where I would think the weapon I control with the mouse isn&#8217;t attached to the mouse, but to an elastic which is in turn attached to the mouse. Not very handy when you are trying to blast your enemies back to their spawn with lightning fast reactions and surgeon-like precision. No sir, it isn&#8217;t. &#8220;To hell with this!&#8221; I thought and disabled the setting immediately.  A while later I decided I&#8217;d have another go at it, but to no avail. The same weird problem I had still bugged me.</p>
<p>But a third time, months after the second one, I again got really annoyed by the way the framerate takes a dive whenever I have a lot of other players in my sight. &#8220;No more of this rubbish!&#8221; and I googled for everything I could think of that might be related to my problems. So first I found that a lot of other people were also suffering from the bad way this setting was functioning on their computers. But then I was so smart to think that adding the keywords &#8220;mouse lag&#8221; to the seach query might be a better way to find a solution to my problem.</p>
<h2>The Great Discovery</h2>
<p>I stumbled upon <a title="Multicore Rendering Mouse lag - Steam User's Forum" href="http://forums.steampowered.com/forums/showthread.php?t=1445858" target="_blank">this</a> thread on the Steam forum.  Some people there mentioned the mouse lag would disappear when Vertical Sync is disabled, which was enabled the entire time on my computer, because I fancy the way it makes the experience a lot smoother. The other thing they mentioned was this setting I&#8217;d have to change by entering something in the console: &#8220;mat_queue_mode 2&#8243;, which enables &#8220;Queued multithreading&#8221; supposedly.</p>
<p>So I changed both settings to the state where they should make Multicore Rendering work like it should. The result was that it was quite nice: the framerate didn&#8217;t go down the way it did, but somehow I noticed the game to be more choppy, although the reported framerate was telling me it really shouldn&#8217;t. To elaborate on this, at that time I was using an ATI Radeon HD4770 with ATI Catalyst 10.10 drivers on my computer with Windows 7 64-bit installed. In the Catalyst Control Centre, I had set Catalyst A.I. to an advanced level. I don&#8217;t know for sure if this had anything to do with it, but to me the choppyness of the way it felt looked like some form of microstuttering which I had read about on the internet.</p>
<h2>The last few tweaks</h2>
<p>But very recently, Microsoft pushed Catalyst 10.11 via Windows Update, and at the same time I was rumbling inside the CCC 3D-settings panel, and then I thought &#8220;Why don&#8217;t I disable this override thingy and set the Catalyst A.I. to basic, because maybe these settings were interfering with the Multicore Rendering setting of the Source engine.&#8221; So I did all that and then fired up the game, and would you look at that! It was barely noticeable  that I somehow had Multicore Rendering enabled. The game felt very fluent once again. The only thing that might still bother me is the VSync which still needs to be disabled. I tried to enable it again, and although the mouse lag had faded somewhat, it was still a tiny bit there. I can&#8217;t live with that. Not in this game. Although the screen tearing is less noticeable now that the game feels a lot more fluent again, it&#8217;s still there and I&#8217;m sad about that. But hey, now I don&#8217;t have the problem of my framerate collapsing like a weak pudding.</p>
<h2>Conclusion &amp; tl;dr</h2>
<p>So there, that&#8217;s my semi-bloggy story about my quest to have this shite of a setting properly working.</p>
<p>For people who couldn&#8217;t be bothered to read my great story, I will recap the necessary steps here:</p>
<ol>
<li> enter &#8220;mat_queue_mode 2&#8243; in the console</li>
<li>disable Vertical Sync in the Video Options &#8211; Advanced</li>
<li>restore the settings of your Graphics Card to default as much as possible</li>
</ol>
<p>Now, Up and Atom!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hawn.be/2010/11/20/my-personal-quest-to-make-multicore-rendering-in-source-games-usable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Comprehensive Guide to Getting Microsoft Fonts Right in Ubuntu</title>
		<link>http://blog.hawn.be/2009/03/22/a-comprehensive-guide-to-getting-microsoft-fonts-right-in-ubuntu/</link>
		<comments>http://blog.hawn.be/2009/03/22/a-comprehensive-guide-to-getting-microsoft-fonts-right-in-ubuntu/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 00:30:46 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu fonts msttcorefonts "microsoft fonts" tahoma arial "times new roman"]]></category>

		<guid isPermaLink="false">http://hawn.be/?p=5</guid>
		<description><![CDATA[While the default fonts in Ubuntu may look nice, they differ from the default fonts in Windows in an obvious way: their big size. This applies to other aspects of the GUI in Ubuntu as well, but I will discuss &#8230; <a href="http://blog.hawn.be/2009/03/22/a-comprehensive-guide-to-getting-microsoft-fonts-right-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While the default fonts in Ubuntu may look nice, they differ from the default fonts in Windows in an obvious way: their big size. This applies to other aspects of the GUI in Ubuntu as well, but I will discuss that in another post. Since having Microsoft fonts in your Ubuntu installation is an advantage anyway, I thought I might as well use them as my system fonts.</p>
<p>There is a problem, however, and that is the hassle to get the looks of those fonts right. After you figured it all out, which can take a while if you are on your own, it is actually quite simple. But like every &#8220;fix&#8221; for Ubuntu, it takes a lot of time learning what is causing your problems and finding a solution for it.</p>
<p><span id="more-5"></span></p>
<h2>How it&#8217;s done</h2>
<p>There are two steps involved to make it happen:</p>
<ol>
<li>set the system to use Microsoft fonts as the default system fonts</li>
<li>make them look good in every application you use, from native Gnome applications to native KDE applications to QT applications and GTK applications.</li>
</ol>
<p>The first step is done in a jiffy and a how-to is found quickly on the internet. The second step, however, while swiftly performed, was a pain in the ass to figure out completely, because of the variety of libraries a GUI can be built for.</p>
<h2>First Step</h2>
<p>This is done in the menu <strong>System</strong> which is located on the upper panel, then <strong>Preferences</strong> and finally <strong>Appearance</strong>.</p>
<p>Set every font and its size to your liking.</p>
<p><img class="size-full wp-image-15" title="system-preferences-appearance-fonts" src="http://hawn.be/blog/wp-content/uploads/system-preferences-appearance-fonts-cropped.png" alt="System - Preferences - Appearance - Fonts" width="600" height="461" /></p>
<h2>Second Step</h2>
<p>This step is about setting the rendering options for fonts to the correct values. While these options can be set in the window used in step 1, some applications refuse to use those set options and decide to use some default preset values which may differ from the values set in the options window. The clue is to make those applications use the font rendering settings that you chose. &#8220;Where do those applications get their settings from, if not from the gnome font options window?&#8221;, I hear you ask yourself. Well, there are multiple alternative sources to read font rendering settings from, which are all file based. The files in question are ~/.fonts.conf, ~/.Xresources and /etc/fonts/local.conf and are each the default settings sources for different sets of applications. Mozilla Firefox and OpenOffice.org for example both first rely on the file ~/.Xresources, while qt3 and qt4 applications rely on the ~/.fonts.conf and /etc/fonts/local.conf files.</p>
<p>Let&#8217;s start off with the most intuitive source of font rendering settings: the gnome appearance preferences window.</p>
<h3>Appearance Preferences</h3>
<p>In the same window as in the First Step, you have to set the font rendering options to the correct values, which is done selecting <em>Best Contrast</em> in the lower area of the window. More specific changes can be made by clicking the <strong>Details</strong> button. This opens the window shown below.</p>
<p><img class="size-full wp-image-17" title="system-preferences-appearance-fonts-fontrenderingdetails" src="http://hawn.be/blog/wp-content/uploads/system-preferences-appearance-fonts-fontrenderingdetails.png" alt="System - Preferences - Appearance - Fonts - Font Rendering Details" width="582" height="536" /></p>
<p>Since it doesn&#8217;t really matter you can set font <em>Smoothing</em> to <em>Subpixel</em> or <em>Greyscale</em>, whichever looks best for you. If you selected <em>Best Contrast</em> in the previous window, then <em>Smoothing</em> will be set to <em>Greyscale</em>.</p>
<p>The difference between the two settings is that <em>Greyscale</em> smoothing applies anti-aliasing to the fonts by adding grey coloured pixels to the edges of the fonts. <em>Subpixel</em> smoothing, on the other hand, adds coloured pixels to the edges of the fonts. Which colours depends on the <em>Subpixel Order</em>, which can be set in the same window. Depending on the screen you use, this will give an optimal or a sub-optimal result. Most screens have their subpixels arranged in the order <em>RGB</em>, which means Red Green Blue. Thus when <em>Subpixel Order</em> is set to <em>RGB</em>, then <em>Subpixel</em> smoothing will result in blueish coloured pixels around the left edge and reddish coloured pixels around the right edge of the fonts. While those colours might seem odd when used to smoothen the edges of black coloured fonts, the colours don&#8217;t become visible since a subpixel is too small to distinguish with the naked eye from a reasonable distance.</p>
<p>The last setting named <em>Hinting</em>, however, proves to be much more important, since it can make or break the looks of the classic Microsoft fonts like Arial, Times New Roman, Verdana, etc.</p>
<h3>~/.fonts.conf &amp; /etc/fonts/local.conf</h3>
<p>These files offer an XML based structure for your font rendering settings. Since it is our intention to copy the settings from the Gnome Appearance Preferences window as much as possible, I will just give you the contents of the file I put together:</p>
<pre class="brush: xml">&lt;?xml version='1.0'?&gt;
&lt;!DOCTYPE fontconfig SYSTEM 'fonts.dtd'&gt;
&lt;fontconfig&gt;
 &lt;match target="font" &gt;
  &lt;edit mode="assign" name="autohint" &gt;
   &lt;bool&gt;false&lt;/bool&gt;
  &lt;/edit&gt;
  &lt;edit mode="assign" name="rgba" &gt;
   &lt;const&gt;rgb&lt;/const&gt;
  &lt;/edit&gt;
  &lt;edit mode="assign" name="hinting" &gt;
   &lt;bool&gt;true&lt;/bool&gt;
  &lt;/edit&gt;
  &lt;edit mode="assign" name="hintstyle" &gt;
   &lt;const&gt;hintfull&lt;/const&gt;
  &lt;/edit&gt;
  &lt;edit mode="assign" name="antialias" &gt;
   &lt;bool&gt;true&lt;/bool&gt;
  &lt;/edit&gt;
  &lt;edit mode="assign" name="lcdfilter" &gt;
   &lt;const&gt;lcddefault&lt;/const&gt;
  &lt;/edit&gt;
 &lt;/match&gt;
 &lt;match target="font" &gt;
  &lt;test compare="eq" name="family" qual="any" &gt;
   &lt;string&gt;Calibri&lt;/string&gt;
   &lt;string&gt;Cambria&lt;/string&gt;
   &lt;string&gt;Candara&lt;/string&gt;
   &lt;string&gt;Corbel&lt;/string&gt;
   &lt;string&gt;Constantia&lt;/string&gt;
   &lt;string&gt;Consolas&lt;/string&gt;
  &lt;/test&gt;
  &lt;edit mode="assign" name="embeddedbitmap" &gt;
   &lt;bool&gt;false&lt;/bool&gt;
  &lt;/edit&gt;
 &lt;/match&gt;
 &lt;match target="font" &gt;
  &lt;test compare="eq" name="family" qual="any" &gt;
   &lt;string&gt;FreeSans&lt;/string&gt;
   &lt;string&gt;FreeSerif&lt;/string&gt;
  &lt;/test&gt;
  &lt;edit mode="assign" name="hintstyle" &gt;
   &lt;const&gt;hintslight&lt;/const&gt;
  &lt;/edit&gt;
 &lt;/match&gt;
&lt;/fontconfig&gt;</pre>
<p>The first &#8220;match&#8221; element is used for default settings, while the next two &#8220;match&#8221; elements are used to further specify or alter settings depending on the outcome of the test, of which the conditions are declared by the &#8220;test&#8221; element.</p>
<p>As you can see, the second &#8220;match&#8221; element tests if the font currently treated is one of the new Microsoft Office 2007 fonts. These fonts have broken bitmap rendering which results in non-smoothed fonts, so it is necessary to use an alternate rendering technique in order to avoid this. Too see for yourself: install the needed MS Office 2007 fonts and use them in an OpenOffice.org document with the second &#8220;match&#8221; element excluded from your ~/.fonts.conf file.</p>
<h3>~/.Xresources</h3>
<p>The same is true for the ~/.Xresources file. Just a reiteration of the font rendering settings mentioned previously.</p>
<pre class="brush: plain">Xft.antialias:  true
Xft.hinting:    true
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb</pre>
<h2>History and background of my personal conquest</h2>
<p>I have been doing a lot of research on how Ubuntu fonts are actually used by programs. It turns out there are four major sources of settings and each one is used by a different group of applications. For example: Mozilla Firefox and OpenOffice.org use the ~/.Xresources file, while other applications (most GTK and QTx applications) look at the ~/.fonts.conf file or the /etc/fonts/local.conf file if the gnome appearance settings are ignored.</p>
<p>Another thing I noticed is that while some fonts (like the Free font series) look horrible when font-hinting is set to medium or full, Microsoft fonts (e.g. from the msttcorefonts package) tend to look aweful when font-hinting is set to slight. I used FreeSans as my main system font since Ubuntu 8.04, but I always loathed the looks of the Microsoft fonts at slight hinting. Unaware of the cause of the uglyness of the Microsoft fonts, I blamed Ubuntu and its maintainers for letting a regression of this magnitude happen.</p>
<p>Lukily I have it all figured out and I&#8217;m happy to share this knowledge with everyone who is interested.</p>
<h2>Further investigation</h2>
<p>In the (hopefully near) future I will cover the behavior of certain widely used applications and fonts in relation to all possible font rendering settings and sources, which will uncover the great mysteries of font rendering in Ubuntu and GNU/Linux in general. But for now this is all you get from me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hawn.be/2009/03/22/a-comprehensive-guide-to-getting-microsoft-fonts-right-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

