<?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>Santiance &#187; Flash</title>
	<atom:link href="http://santiance.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://santiance.com</link>
	<description>Kristopher Ives&#039;s Developer Notes</description>
	<lastBuildDate>Wed, 28 Jul 2010 10:07:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Bugs with GDK_NATIVE_WINDOWS</title>
		<link>http://santiance.com/2010/01/bugs-with-gdk_native_windows/</link>
		<comments>http://santiance.com/2010/01/bugs-with-gdk_native_windows/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 14:30:00 +0000</pubDate>
		<dc:creator>Kristopher Ives</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Compiz]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[GTK]]></category>

		<guid isPermaLink="false">http://santiance.com/?p=768</guid>
		<description><![CDATA[There are two bugs that I encounter a lot in Ubuntu 9.10 (Karmic) that irritate me a lot. Both bugs involve mouse clicks not being registered. I&#8217;ve got some workarounds and fixes, but first some background on these bugs. Flash Bug (#410407) This bug has been misidentified as a bug in Compiz, when in fact [...]]]></description>
			<content:encoded><![CDATA[<p>There are two bugs that I encounter a lot in Ubuntu 9.10 (Karmic) that irritate me a lot. Both bugs involve mouse clicks not being registered. I&#8217;ve got some workarounds and fixes, but first some background on these bugs.</p>
<h3>Flash Bug (<a title="Flash Bug in Launchpad" href="https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/410407" target="_blank">#410407</a>)</h3>
<p>This bug has been misidentified as a bug in <em>Compiz</em>, when in fact it&#8217;s a bug in Adobe&#8217;s Flash Player plug-in. It causes mouse clicks to not be handled by the Flash application. The bug is inconsistent &#8211; it&#8217;s an all or nothing thing. You&#8217;ll either get the bug on a video, or you won&#8217;t, and sometimes it can be coaxed into working by spamming clicks.</p>
<h3>Eclipse Bug (<a title="Eclipse Bug in Launchpad" href="https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/443004" target="_blank">#443004</a>)</h3>
<p>This bug has caused a lot of wasted time. Similar to the bug with Flash, clicking on a button with some dialogs will not register. It&#8217;s also inconsistent, which can be a real pain. Some dialogs in Eclipse can span many pages, such as the <em>Export to JAR</em> dialog.</p>
<p>Both of these bugs are related to a change that happened regarding GDK, the underlying method GTK-style applications use to draw things instead of calling X directly. I think the core problem is:</p>
<blockquote><p><em>A small gotcha is that the </em><a href="../../gdk/unstable/gdk-X-Window-System-Interaction.html#GDK-WINDOW-XID:CAPS"><code><em>GDK_WINDOW_XID()</em></code></a><em> call is no longer a trivial accessor for the XID of the window, and thus must not be called from another thread without taking locking precautions.</em></p></blockquote>
<p>This matches the inconsistency of the problems, since it&#8217;s a related to concurrency.</p>
<p>To combat the bug in Eclipse I&#8217;ve started using the repository version, since the SWT-related bug was fixed and they added support for user plugins.</p>
<p>The workaround for the Flash bug isn&#8217;t as nice, since Adobe is the master of making horrible &#8220;fixes.&#8221; For example, they pulled the rug out from underneath a lot of websites using Flash player to do the heavy lifting of uploading multiple files by requiring the file selection dialog to be initiated by a user interface interaction. Essentially you have to tell Flash not to enjoy the benefits of client-side windows by modifying <code>/usr/lib/nspluginwrapper/i386/linux/npviewer</code> to look something like this:</p>
<pre>#!/bin/sh
TARGET_OS=linux
TARGET_ARCH=i386
<strong>GDK_NATIVE_WINDOWS=1</strong>
. /usr/lib/nspluginwrapper/noarch/npviewer</pre>
<p>So that&#8217;s two features Adobe has nerfed in one configuration file (64-bit and client-side windows)</p>
]]></content:encoded>
			<wfw:commentRss>http://santiance.com/2010/01/bugs-with-gdk_native_windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tip: CPU Scaling Performance</title>
		<link>http://santiance.com/2009/10/tip-cpu-scaling-performance/</link>
		<comments>http://santiance.com/2009/10/tip-cpu-scaling-performance/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 19:56:15 +0000</pubDate>
		<dc:creator>Kristopher Ives</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Applet]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://santiance.com/?p=493</guid>
		<description><![CDATA[There is a GNOME Applet included by default in Ubuntu that allows you to adjust your CPU scaling frequency, which most hardware supports. You can right click any panel and select Add to Panel, then select the CPU Frequency Scaling Monitor applet. This is a misleading name because it does more than just monitor the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://santiance.com/wp-content/uploads/cpu-scaling.png"><img class="alignright size-full wp-image-494" title="CPU Scaling" src="http://santiance.com/wp-content/uploads/cpu-scaling.png" alt="CPU Scaling" width="147" height="222" /></a>There is a GNOME Applet included by default in Ubuntu that allows you to adjust your CPU scaling frequency, which most hardware supports. You can right click any panel and select <em>Add to Panel</em>, then select the <strong>CPU Frequency Scaling Monitor</strong> applet.</p>
<p>This is a misleading name because it does more than just <em>monitor</em> the scaling, it allows you to change it easily. Most people disregard these settings because many settings like this don&#8217;t make a huge difference in other applications. There is one place it makes a big difference, which is the mother of all CPU users: Web Flash-based video. This thing basically physically abuses your processor. You can use <a title="Flash Benchmarking 101" href="http://arstechnica.com/software/news/2008/10/benchmarking-flash-player-10.ars" target="_blank">flash little performance tests</a> to get an idea of how CPU scaling affects your hardware.</p>
<p>In the same way, I find that actually making use of the <em>Powersave</em> and other options when on battery. On desktop systems where power consumption isn&#8217;t an issue, this setting will always be set at <em>Performance</em>. While <em>Ondemand</em> is rather good for typical use, some users find that it degrades response-time for things like <em><a title="Compiz Related Articles" href="http://santiance.com/tag/compiz/" target="_self">Compiz</a></em>.</p>
<p>Also remember that <em>IOWait</em> is typically the bottleneck for a lot of applications. I chose to use Flash as an example because it does a poor job of accomplishing it&#8217;s job and as a result requires a magnitude of additional computational power. You can easily compare the amount of processor usage to anything like <em>VLC</em>, <em>Totem</em>, or <em>Mplayer</em> and they will be a fraction of the usage.</p>
]]></content:encoded>
			<wfw:commentRss>http://santiance.com/2009/10/tip-cpu-scaling-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
