<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Weiqi Gao&#039;s Observations</title>
  <link>http://www.weiqigao.com/blog/</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>Friday Java Quiz: Know Your JDK</title>
    <link>http://www.weiqigao.com/blog/2012/05/11/friday_java_quiz_know_your_jdk.html</link>
    
      
        <description>
          &lt;p&gt;Haven&#039;t had one of these for a while.  I was busy doing other things.&lt;/p&gt;

&lt;p&gt;Since it&#039;s been so long, I&#039;ll pose an easy quiz today:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Q&lt;/b&gt;: What does the following command print?&lt;/p&gt;

&lt;pre style=&#034;margin-left:3em&#034;&gt;weiqi@gao /opt/jdk1.7.0_04/bin$ &lt;b&gt;ls | wc -l&lt;/b&gt;&lt;/pre&gt;

&lt;p&gt;(&lt;tt&gt;/opt/jdk1.7.0_04&lt;/tt&gt; is where I installed my JDK, your JDK installation locations may vary.)&lt;/p&gt;

&lt;p&gt;Strict rules apply today: You have twenty minutes to think about it and you must write down your answer before you go to your JAVA_HOME and run the command.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2012/05/11/friday_java_quiz_know_your_jdk.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2012/05/11/friday_java_quiz_know_your_jdk.html</guid>
    <pubDate>Fri, 11 May 2012 12:48:36 GMT</pubDate>
  </item>
  
  <item>
    <title>Software Engineering Tech Trend (SETT): Experiments With JavaFX 3D Scenes</title>
    <link>http://www.weiqigao.com/blog/2012/05/01/software_engineering_tech_trend_sett_experiments_with_javafx_3d_scenes.html</link>
    
      
        <description>
          &lt;p&gt;The last article I wrote for &lt;a href= &#034;http://www.ociweb.com/&#034; &gt;OCI&lt;/a&gt;&#039;s online newsletter Java News Brief (JNB) was &lt;a href= &#034;http://jnb.ociweb.com/jnb/jnbDec2010.html&#034; &gt;Six JDK Classes You Think You Know&lt;/a&gt;, which several readers have told me was fun.  That was the last article in the JNB series. The following month, the series began its publication under the new name &lt;a href= &#034;http://www.ociweb.com/sett/index.html&#034; &gt;Software Engineering Tech Trend (SETT)&lt;/a&gt;, with an expanded scope covering a broader array of software engineering topics.  Here&#039;s a sample of the articles that was published in SETT in the last year and a half:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href= &#034;http://sett.ociweb.com/sett/settJan2011.html&#034; &gt;Learning Programming Languages with Koans&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href= &#034;http://sett.ociweb.com/sett/settApr2011.html&#034; &gt;Sensing the World from an Android[tm] Device&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href= &#034;http://ociweb.com/sett/settJun2011.html&#034; &gt;Introduction to jQuery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href= &#034;http://ociweb.com/sett/settJul2011.html&#034; &gt;GPU Computing with OpenCL&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href= &#034;http://ociweb.com/sett/settFeb2012.html&#034; &gt;Spock for the Java Developer: An Introduction&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this months SETT article, &lt;a href= &#034;http://sett.ociweb.com/sett/settMay2012.html&#034; &gt;Experiments With JavaFX 3D Scenes&lt;/a&gt;, I show you one aspect of JavaFX, its 3D scenes support, through a set of experiments that go from simple animated squares moving along straight lines to an animated formation of a tetrahedron in 3D.  I was hoping to show you an animation of a dodecahedron being formed from a stack of pentagons,but I ran out of time for the article and have to settle for a tetrahedron there.&lt;/p&gt;

&lt;p&gt;I did, however, finish an animated dodecahedron after I submitted the article.  And here is how it goes:&lt;/p&gt;

&lt;center&gt;
&lt;iframe width=&#034;640&#034; height=&#034;480&#034; src=&#034;http://www.youtube.com/embed/x243BZHweIw?rel=0&#034; frameborder=&#034;0&#034; allowfullscreen&gt;&lt;/iframe&gt;
&lt;/center&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2012/05/01/software_engineering_tech_trend_sett_experiments_with_javafx_3d_scenes.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2012/05/01/software_engineering_tech_trend_sett_experiments_with_javafx_3d_scenes.html</guid>
    <pubDate>Wed, 02 May 2012 03:28:20 GMT</pubDate>
  </item>
  
  <item>
    <title>An Updated JavaFX 2 Applet: Pythagorean Theorem</title>
    <link>http://www.weiqigao.com/blog/2012/04/04/an_updated_javafx_2_applet_pythagorean_theorem.html</link>
    
      
        <description>
          &lt;p&gt;Oracle announced the &lt;a href= &#034;https://blogs.oracle.com/javafx/entry/javafx_1_2_and_javafx&#034; &gt;EOL (end of life) for JavaFX 1.2 and 1.3&lt;/a&gt; 36 days ago:&lt;/p&gt;

&lt;blockquote&gt;
&lt;a href= &#034;https://blogs.oracle.com/javafx/entry/javafx_1_2_and_javafx&#034; &gt;javafx4you&lt;/a&gt;: Today, we are announcing that JavaFX 1.2 and JavaFX 1.3 will reach end of life (EOL) on &lt;b&gt;December 20, 2012&lt;/b&gt;. More specifically, the Oracle server providing access to the JavaFX Runtime for these versions will no longer be available after that date.
&lt;/blockquote&gt;

&lt;p&gt;So I spent some time in the last couple of days to update one of my JavaFX 1.1.1 applets published on this blog&amp;mdash;an animation that depicts a proof of the Pythagorean Theorem.  It appeared in &lt;a href= &#034;http://www.weiqigao.com/blog/2009/05/09/zhou_bi_mathematical_manual.html&#034; &gt;Zhou Bi Mathematical Manual (周髀算经)&lt;/a&gt; which I wrote 1061 days ago.  I wanted to update this applet because people have told me that it helped them or their kids to understand the Pythagorean Theorem better.&lt;/p&gt;

&lt;p&gt;JavaFX 1.x code, which is in JavaFX Script, translates easily into JavaFX 2.0 code, which is simply Java.  The two facilities of JavaFX 1.x that made the original applet work, bindings and animations, are major APIs in JavaFX 2.0.  And the porting is almost mechanical.  Naturally the Java code is more verbose than the equivalent JavaFX Script code.  But that&#039;s the price we pay for converting JavaFX into the wider-reaching Java APIs.&lt;/p&gt;

&lt;p&gt;While I was at it, I added a background image that was merely put side by side with the applet in the original post.  Since JavaFX 2.0 applets only works on Windows, I have put the applet on a &lt;a href= &#034;./files/Pythagorean.html&#034; &gt;separate page here&lt;/a&gt;.  The source code is &lt;a href= &#034;./files/Pythagorean.java&#034; &gt;here&lt;/a&gt;.  The background image is &lt;a href= &#034;./images/gou-gu.jpg&#034; &gt;here&lt;/a&gt;.  The following is a video showing the applet at work.  Notice the actual jpg file is bigger than the applet&#039;s Stage size.  I used a &lt;tt&gt;viewport&lt;/tt&gt; on an &lt;tt&gt;ImageView&lt;/tt&gt; to pick out a portion of the image.&lt;/p&gt;

&lt;center&gt;
&lt;video style=&#034;padding: 10px 0px 10px 0px&#034; src=&#034;http://www.weiqigao.com/blog/files/Pythagorean.mov&#034;  controls=&#034;true&#034;&gt;Your browser does not support HTML 5 video.  Here&#039;s the &lt;a href= &#034;./files/Pythagorean.mov&#034; &gt;link to the video file&lt;/a&gt;.&lt;/video&gt;
&lt;/center&gt;

&lt;p&gt;Enjoy the elegance of geometry and JavaFX.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2012/04/04/an_updated_javafx_2_applet_pythagorean_theorem.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2012/04/04/an_updated_javafx_2_applet_pythagorean_theorem.html</guid>
    <pubDate>Wed, 04 Apr 2012 12:25:27 GMT</pubDate>
  </item>
  
  </channel>
</rss>

