<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Weiqi Gao&#039;s Observations - flash tag</title>
  <link>http://www.weiqigao.com/blog/tags/flash/</link>
  <description>Sharing My Experience...</description>
  <language>en</language>
  <copyright>Weiqi Gao</copyright>
  <lastBuildDate>Fri, 11 May 2012 12:48:36 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  <image>
    <url>http://pebble.sourceforge.net/common/images/powered-by-pebble.gif</url>
    <title>Weiqi Gao&#039;s Observations</title>
    <link>http://www.weiqigao.com/blog/</link>
  </image>
  
  
  <item>
    <title>Killing Flash But Not Firefox: Yes You Can (On 64-bit Debian)</title>
    <link>http://www.weiqigao.com/blog/2008/09/08/killing_flash_but_not_firefox_yes_you_can_on_64_bit_debian.html</link>
    
      
        <description>
          &lt;p&gt;Reading the Google Chrome comic book last week lead me to the following line of thoughts:&lt;/p&gt;

&lt;p style=&#034;margin-left:3em&#034;&gt;&lt;b&gt;A&lt;/b&gt;: It would be nice if I can kill a tab as easily in Firefox as in Google Chrome.&lt;br/&gt;
&lt;b&gt;B&lt;/b&gt;: Nah, I can&#039;t because everything runs in the same process.&lt;br/&gt;
&lt;b&gt;A&lt;/b&gt;: But those darn Flash/Flex apps&amp;mdash;they routinely eats 100% of my CPU and hang all tabs, all the time&lt;br/&gt;
&lt;b&gt;B&lt;/b&gt;: Too bad they are in-proc.  But wait, &lt;span style=&#034;color:red&#034;&gt;they aren&#039;t on 64-bit Debian&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;Recall that Adobe provides their Flash plug-in for 32-bit Linux only.  And to use it in 64-bit Linux, a &lt;a href= &#034;http://gwenole.beauchesne.info//en/projects/nspluginwrapper&#034; &gt;nspluginwrapper&lt;/a&gt; is needed (as I reported &lt;a href= &#034;http://www.weiqigao.com/blog/2007/07/26/flash_player_9_for_64_bit_debian_4_0_heres_the_link.html&#034; &gt;410 days ago&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;Yesterday, I got into one of those situations where Firefox is using 100% CPU and is not responding.  I fired up SystemMonitor and sure enough, underneath &lt;tt&gt;firefox-bin&lt;/tt&gt; there is a subprocess called &lt;tt&gt;nsviewer.bin&lt;/tt&gt;.  I killed the &lt;tt&gt;nsviewer.bin&lt;/tt&gt; process and Firefox (well, IceWeasel, to be precise) became responsive again.&lt;/p&gt;

&lt;p&gt;I was happy.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2008/09/08/killing_flash_but_not_firefox_yes_you_can_on_64_bit_debian.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2008/09/08/killing_flash_but_not_firefox_yes_you_can_on_64_bit_debian.html</guid>
    <pubDate>Mon, 08 Sep 2008 16:31:35 GMT</pubDate>
  </item>
  
  <item>
    <title>Flash Player 9 for 64-Bit Debian 4.0: Here&#039;s The Link</title>
    <link>http://www.weiqigao.com/blog/2007/07/26/flash_player_9_for_64_bit_debian_4_0_heres_the_link.html</link>
    
      
        <description>
          &lt;p&gt;It took 37 days since I installed 64-bit &lt;a href= &#034;http://www.weiqigao.com/blog/2007/06/19/goodbye_fedora_hello_debian.html&#034; &gt;Debian 4.0&lt;/a&gt; on my amd64 machine, but I&#039;ve finally gotten Flash Player 9 to work in my browser.&lt;/p&gt;

&lt;p&gt;There are several reasons for the 37 days delay.  The biggest reason is that the &lt;a href= &#034;http://www.dipconsultants.com/debian/&#034; &gt;procedure I followed&lt;/a&gt;, which is the &#034;I&#039;m Feeling Lucky&#034; page for the Google search for &#034;&lt;a href= &#034;http://www.google.com/search?hl=en&amp;q=nspluginwrapper+etch&amp;btnG=Google+Search&#034; &gt;nspluginwrapper etch&lt;/a&gt;&#034;, is not the obvious search target for anyone who want to get &lt;a href= &#034;http://youtube.com/&#034; &gt;YouTube&lt;/a&gt; going on an amd64 Debian 4.0 installation.&lt;/p&gt;

&lt;p&gt;Most of my time is spent on the transition from searching for &#034;Flash 9 Debian 4.0 amd64&#034; to searching for &#034;nspluginwrapper etch&#034;.  It went something like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I want Flash&lt;/li&gt;
&lt;li&gt;But Flash doesn&#039;t work for 64-bit browsers&lt;/li&gt;
&lt;li&gt;I can install a 32-bit browser, but that&#039;s going to be painful&lt;/li&gt;
&lt;li&gt;Wait a minute, there is this thing called &lt;a href= &#034;http://gwenole.beauchesne.info/projects/nspluginwrapper/&#034; &gt;nspluginwrapper&lt;/a&gt; that will allow me to use the &lt;a href= &#034;http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&amp;P2_Platform=Linux&#034; &gt;32-bit Flash player&lt;/a&gt; with 64-bit browsers&lt;/li&gt;
&lt;li&gt;But &lt;tt&gt;feta search nspluginwrapper&lt;/tt&gt; turned up nothing&lt;/li&gt;
&lt;li&gt;I&#039;m going to build nspluginwrapper myself&lt;/li&gt;
&lt;li&gt;The &lt;tt&gt;./configure&lt;/tt&gt; script complains about GLIB 2.0 not being available.  Surely it&#039;s available, how else could I have run a GNOME desktop?&lt;/li&gt;
&lt;li&gt;Oh, I need 32-bit GLIB 2.0.  How do I get it?&lt;/li&gt;
&lt;li&gt;It should be in &lt;tt&gt;ia32-libs-gtk&lt;/tt&gt;.  But I can&#039;t find it.  I can find &lt;tt&gt;ia32-libs&lt;/tt&gt;, but not &lt;tt&gt;ia32-libs-gtk&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;I hope I don&#039;t have to rebuild the 32-bit Gtk+.&lt;/li&gt;
&lt;li&gt;Someone must have done it.  Let me search for &#034;&lt;a href= &#034;http://www.google.com/search?hl=en&amp;q=ia32-libs-gtk+etch&amp;btnG=Google+Search&#034; &gt;ia32-libs-gtk etch&lt;/a&gt;&#034; (I know Debian people likes to use names like Sarge or Etch or Sid to describe the OS version)&lt;/li&gt;
&lt;li&gt;Bingo!  There it is&amp;mdash;ia32-libs-gtk &lt;span style=&#034;color:red&#034;&gt;and nspluginwrapper&lt;/span&gt;.  All packaged up for Debian 4.0 amd64, ready to be installed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The whole point of this post is to show you the detours I&#039;ve taken to get a functioning Flash Player 9 on Debian 4.0  (Etch) amd64 so that you can go directly to the destination.&lt;/p&gt;

&lt;p&gt;Link to this blog, or better yet, link to &lt;a href= &#034;http://www.dipconsultants.com/debian/&#034; &gt;http://www.dipconsultants.com/debian/&lt;/a&gt;, if you find it useful.  &lt;/p&gt;

&lt;p&gt;And Oh, Thank you, Markybob.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2007/07/26/flash_player_9_for_64_bit_debian_4_0_heres_the_link.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2007/07/26/flash_player_9_for_64_bit_debian_4_0_heres_the_link.html</guid>
    <pubDate>Thu, 26 Jul 2007 22:48:37 GMT</pubDate>
  </item>
  
  <item>
    <title>He&#039;s Been Thinking In Java, Now He&#039;s Thinking In Flex</title>
    <link>http://www.weiqigao.com/blog/2007/02/17/hes_been_thinking_in_java_now_hes_thinking_in_flex.html</link>
    
      
        <description>
          &lt;p&gt;&lt;a href=&#034;http://m1.2mdn.net/1387398/160x600_25k_ee015.swf&#034;&gt;
&lt;img src=&#034;http://www.weiqigao.com/blog/images/thinking-in-flex.png&#034; title=&#034;Bruce Eckel Product Endorsement&#034; style=&#034;float:left;margin-right:12pt&#034; height=&#034;531&#034; width=&#034;147&#034; border=&#034;0&#034; /&gt;&lt;/a&gt; I read Bruce Eckel&#039;s &lt;a href= &#034;http://mindview.net/Books/TIJ4&#034; &gt;books&lt;/a&gt; and &lt;a href= &#034;http://www.artima.com/weblogs/index.jsp?blogger=beckel&#034; &gt;blogs&lt;/a&gt;.  I usually &lt;a href= &#034;http://www.weiqigao.com/blog/2005/12/22/java_people_stop_worrying_and_start_coding.html&#034; &gt;agree&lt;/a&gt; with &lt;a href= &#034;http://www.artima.com/weblogs/viewpost.jsp?thread=141312&#034; &gt;what he says&lt;/a&gt;.  So naturally I read Bruce&#039;s latest blog article &lt;a href= &#034;http://www.artima.com/weblogs/viewpost.jsp?thread=193593&#034; &gt;Hybridizing Java&lt;/a&gt; seriously.&lt;/p&gt;

&lt;p&gt;What I didn&#039;t realize was that Bruce was also working as a spokesman for Adobe in its Flex 2 advertising campaign until I spotted the Flash advertisement on some technology website.  I didn&#039;t remember which site I spotted the ad on, however I did save a link to the &lt;a href= &#034;http://m1.2mdn.net/1387398/160x600_25k_ee015.swf&#034; &gt;actual swf file&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I don&#039;t know how many people have read the article without seeing the ad, or how many people have seen the ad without reading the article.  For me, reading the article first without any knowledge of his role in the ad campaign, and then seeing the ad popping up, gave me somewhat of a surprise.  And, maybe I&#039;m being a little bit of oversensitive, it works to completely negate whatever impact  Bruce&#039;s article had on me.  For example, after reading the article, especially the following assessment of Flex:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href= &#034;http://www.artima.com/weblogs/viewpost.jsp?thread=193593&#034; &gt;Bruce Eckel&lt;/a&gt;: Of course, if my dream is to be able to learn a single GUI system in depth, is Flex the right tool, since it was originally designed for web RIAs?&lt;/p&gt;

&lt;p&gt;A Flex UI can initiate communication with its server, or any other server it chooses. A server cannot initiate communication with a Flex UI, which makes sense because of security (it would be effectively the same as having an open port on your machine).&lt;/p&gt;

&lt;p&gt;However, a Flex UI is not limited to communicating with a
server. It can also communicate with a local application. Thus, you can create an application in any language you prefer, even a dynamic language like Python or Ruby, and use Flex to build a beautiful UI.&lt;/p&gt;

&lt;p&gt;Adobe is developing a new tool called &lt;a href=&#034;http://labs.adobe.com/wiki/index.php/Apollo&#034;&gt;Apollo&lt;/a&gt;, a cross-OS runtime that allows you to use Flex to create desktop RIAs. This means that your Flex skills can be further employed for creating smooth desktop applications,
but it also means that you can more easily build  applications that will work on &lt;i&gt;both&lt;/i&gt; web and desktop (I’ve seen expensive and difficult-to-use tools that allow other languages to do this).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I went as far as to have registered with Adobe&#039;s website and downloaded the Flex 2 SDK.  I was about to give it a whirl this weekend to see if I like it.  Then I saw the ad, and my mind went, &#034;Wait a minute!  If Bruce is doing a celebrity product endorsement gig for Adobe Flex 2, how objective could his assessment be?  Especially since he did not disclose his connection with Adobe in the article.&#034;&lt;/p&gt;

&lt;p&gt;They almost had me.&lt;/p&gt;

&lt;p&gt;(Since I haven&#039;t played with Flex 2 yet, I don&#039;t know enough about it to say whether it&#039;s good or bad.  But judging from the amount of Flash content on the web, I&#039;d imagine it to be pretty good.  Bruce&#039;s assessment may still be accurate.  His criticism of Java is certainly on the mark.  I wish the Java community take Bruce&#039;s criticism as motivation to improve the platform.)&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2007/02/17/hes_been_thinking_in_java_now_hes_thinking_in_flex.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2007/02/17/hes_been_thinking_in_java_now_hes_thinking_in_flex.html</guid>
    <pubDate>Sat, 17 Feb 2007 23:26:02 GMT</pubDate>
  </item>
  
  </channel>
</rss>

