<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Labs - Romeo Foxtrot</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/" />
    <link rel="self" type="application/atom+xml" href="http://labs.romeo-foxtrot.com/atom.xml" />
    <id>tag:,2008-09-19:/6</id>
    <updated>2010-02-24T15:46:37Z</updated>
    <subtitle>A journey of a thousand miles begins with a single step.</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.23-en</generator>

<entry>
    <title>ec2 pricing update 2010-2-24</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2010/02/ec2-pricing-update-2010-2-24/" />
    <id>tag:labs.romeo-foxtrot.com,2010://6.283</id>

    <published>2010-02-24T15:45:21Z</published>
    <updated>2010-02-24T15:46:37Z</updated>

    <summary> Type CPU Arch CPU Units CPU Scores Memory US East ($ per hour) EU/US West ($ per hour) US East on a reserved instance EU/US West on a reserved instance Reserved 1 yr Term ($) Reserved 3 yr Term...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<table>
    <tr>
        <th>Type</th>
        <th>CPU Arch</th>
        <th>CPU Units</th>
        <th>CPU Scores</th>
        <th>Memory</th>
        <th>US East ($ per hour)</th>
        <th>EU/US West ($ per hour)</th>
        <th>US East on a reserved instance</th>
        <th>EU/US West on a reserved instance</th>
        <th>Reserved 1 yr Term ($)</th>
        <th>Reserved 3 yr Term ($)</th>
    </tr>
    <tr>
        <td>Small (m1.small)</td>
        <td>32</td>
        <td>1 ECUs</td>
        <td>1 Cores</td>
        <td>1.7 GB</td>
        <td>0.085</td>
        <td>0.095</td>
        <td>0.03</td>
        <td>0.04</td>
        <td>227.50</td>
        <td>350</td>
    </tr>
    <tr>
        <td>High-CPU Medium (c1.medium)</td>
        <td>32</td>
        <td>5 ECUs</td>
        <td>2 Cores</td>
        <td>1.7 GB</td>
        <td>0.17</td>
        <td>0.19</td>
        <td>0.06</td>
        <td>0.08</td>
        <td>455</td>
        <td>700</td>
    </tr>
    <tr>
        <td>Large (m1.large)</td>
        <td>64</td>
        <td>4 ECUs</td>
        <td>2 Cores</td>
        <td>7.5 GB</td>
        <td>0.34</td>
        <td>0.38</td>
        <td>0.12</td>
        <td>0.16</td>
        <td>910</td>
        <td>1400</td>
    </tr>
    <tr>
        <td>Extra Large (m1.xlarge)</td>
        <td>64</td>
        <td>8 ECUs</td>
        <td>4 Cores</td>
        <td>15 GB</td>
        <td>0.68</td>
        <td>0.76</td>
        <td>0.24</td>
        <td>0.32</td>
        <td>1820</td>
        <td>2800</td>
    </tr>
    <tr>
        <td>High-CPU Extra Large (c1.xlarge)</td>
        <td>64</td>
        <td>20 ECUs</td>
        <td>8 Cores</td>
        <td>7 GB</td>
        <td>0.68</td>
        <td>0.76</td>
        <td>0.24</td>
        <td>0.32</td>
        <td>1820</td>
        <td>2800</td>
    </tr>
    <tr>
        <td>High-Memory Extra Large (m2.xlarge)</td>
        <td>64</td>
        <td>6.5 ECUs</td>
        <td>2 Cores</td>
        <td>17.1 GB</td>
        <td>0.50</td>
        <td>0.57</td>
        <td>0.17</td>
        <td>0.24</td>
        <td>1592</td>
        <td>2450</td>
    </tr>
    <tr>
        <td>Double Extra Large (m2.2xlarge)</td>
        <td>64</td>
        <td>13 ECUs</td>
        <td>4 Cores</td>
        <td>34.2 GB</td>
        <td>1.20</td>
        <td>1.34</td>
        <td>0.42</td>
        <td>0.56</td>
        <td>3185</td>
        <td>4900</td>
    </tr>
    <tr>
        <td>Quadruple Extra Large (m2.4xlarge)</td>
        <td>64</td>
        <td>26 ECUs</td>
        <td>8 Cores</td>
        <td>68.4 GB</td>
        <td>2.40</td>
        <td>2.68</td>
        <td>0.84</td>
        <td>1.12</td>
        <td>6370</td>
        <td>9800</td>
    </tr>
</table>
]]>
        

    </content>
</entry>

<entry>
    <title>ec2 pricing</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/10/ec2-pricing/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.282</id>

    <published>2009-10-30T07:12:50Z</published>
    <updated>2010-01-26T05:31:37Z</updated>

    <summary> Type CPU Arch CPU Units CPU Scores Memory US Pricing ($ per hour) EU Pricing ($ per hour) US Pricing on a reserved instance EU Pricing on a reserved instance Reserved 1 yr Term ($) Reserved 3 yr Term...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<table>
    <tr>
        <th>Type</th>
        <th>CPU Arch</th>
        <th>CPU Units</th>
        <th>CPU Scores</th>
        <th>Memory</th>
        <th>US Pricing ($ per hour)</th>
        <th>EU Pricing ($ per hour)</th>
        <th>US Pricing on a reserved instance</th>
        <th>EU Pricing on a reserved instance</th>
        <th>Reserved 1 yr Term ($)</th>
        <th>Reserved 3 yr Term ($)</th>
    </tr>
    <tr>
        <td>Small (m1.small)</td>
        <td>32</td>
        <td>1 ECUs</td>
        <td>1 Cores</td>
        <td>1.7 GB</td>
        <td>0.10</td>
        <td>0.11</td>
        <td>0.03</td>
        <td>0.04</td>
        <td>227.50</td>
        <td>350</td>
    </tr>
    <tr>
        <td>High-CPU Medium (c1.medium)</td>
        <td>32</td>
        <td>5 ECUs</td>
        <td>2 Cores</td>
        <td>1.7 GB</td>
        <td>0.20</td>
        <td>0.22</td>
        <td>0.06</td>
        <td>0.08</td>
        <td>455</td>
        <td>700</td>
    </tr>
    <tr>
        <td>Large (m1.large)</td>
        <td>64</td>
        <td>4 ECUs</td>
        <td>2 Cores</td>
        <td>7.5 GB</td>
        <td>0.40</td>
        <td>0.44</td>
        <td>0.12</td>
        <td>0.16</td>
        <td>910</td>
        <td>1400</td>
    </tr>
    <tr>
        <td>Extra Large (m1.xlarge)</td>
        <td>64</td>
        <td>8 ECUs</td>
        <td>4 Cores</td>
        <td>15 GB</td>
        <td>0.80</td>
        <td>0.88</td>
        <td>0.24</td>
        <td>0.32</td>
        <td>1820</td>
        <td>2800</td>
    </tr>
    <tr>
        <td>High-CPU Extra Large (c1.xlarge)</td>
        <td>64</td>
        <td>20 ECUs</td>
        <td>8 Cores</td>
        <td>7 GB</td>
        <td>0.80</td>
        <td>0.88</td>
        <td>0.24</td>
        <td>0.32</td>
        <td>1820</td>
        <td>2800</td>
    </tr>
    <tr>
        <td>Double Extra Large (m2.2xlarge)</td>
        <td>64</td>
        <td>13 ECUs</td>
        <td>4 Cores</td>
        <td>34.2 GB</td>
        <td>1.20</td>
        <td>1.34</td>
        <td>0.42</td>
        <td>0.56</td>
        <td>3185</td>
        <td>4900</td>
    </tr>
    <tr>
        <td>Quadruple Extra Large (m2.4xlarge)</td>
        <td>64</td>
        <td>26 ECUs</td>
        <td>8 Cores</td>
        <td>68.4 GB</td>
        <td>2.40</td>
        <td>2.68</td>
        <td>0.84</td>
        <td>1.12</td>
        <td>6370</td>
        <td>9800</td>
    </tr>
</table>
]]>
        

    </content>
</entry>

<entry>
    <title>mount windows shared folder into a directory under linux</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/09/mount-windows-shared-folder-into-a-directory-under-linux/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.281</id>

    <published>2009-09-28T06:48:55Z</published>
    <updated>2009-09-28T06:51:04Z</updated>

    <summary>mount -t cifs -o username=administrator,password=123 //10.12.2.86/shared /var/lib/vmware/Virtual\ Machines/winshare/...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<p>mount -t cifs -o username=administrator,password=123 //10.12.2.86/shared /var/lib/vmware/Virtual\ Machines/winshare/</p>
]]>
        

    </content>
</entry>

<entry>
    <title>gwt 64</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/09/gwt-64/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.280</id>

    <published>2009-09-26T08:00:03Z</published>
    <updated>2009-09-26T10:25:30Z</updated>

    <summary>GWT hosted web browser does not work in 64-bit Linux Exception in thread &#8220;main&#8221; java.lang.UnsatisfiedLinkError: /&#8230;/gwt-linux-1.7.0/libswt-pi-gtk-3235.so: /&#8230;/gwt-linux-1.7.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) To solve the problem, install a 32bit version of jre sudo aptitude install...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<p>GWT hosted web browser does not work in 64-bit Linux</p>

<blockquote>
  <p>Exception in thread &#8220;main&#8221; java.lang.UnsatisfiedLinkError: /&#8230;/gwt-linux-1.7.0/libswt-pi-gtk-3235.so: /&#8230;/gwt-linux-1.7.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)</p>
</blockquote>

<p>To solve the problem, install a 32bit version of jre</p>

<blockquote>
  <p>sudo aptitude install ia32-sun-java5-bin</p>
</blockquote>

<p>Then follow the steps</p>

<blockquote>
  <ol>
<li><p>Also install a 32-bit JVM; you can download directly from Sun and install somewhere on 
your system
http://java.sun.com/javase/downloads/index.jsp</p></li>
<li><p>Register this JVM with Eclipse:
 Windows -> Preferences
 Java -> Installed JREs
 Add&#8230; -> (Use a name like &#8220;jdk1.6.0_07 32-bit&#8221;)</p></li>
<li><p>Modify your *.launch files to explicitly use a 32-bit JRE
Run -> Run Configurations&#8230;
Java Application -> (Your launch config)
JRE -> Alternate JRE -> (select 32-bit JVM setup in previous step)</p></li>
<li><p>Modify your &#8220;<em>-shell&#8221; scripts to explicitly use the 32-bit JVM. Your &#8220;</em>-compile&#8221; scripts 
can continue to use the default 64-bit Java</p></li>
</ol>
</blockquote>

<p>(see also http://code.google.com/p/google-web-toolkit/issues/detail?id=134#c39 )</p>
]]>
        

    </content>
</entry>

<entry>
    <title>java delete non-empty directory / folder with files inside recursively</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/09/java-delete-non-empty-directory-folder-with-files-inside-recursively/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.279</id>

    <published>2009-09-17T13:25:33Z</published>
    <updated>2009-09-17T13:29:17Z</updated>

    <summary>http://commons.apache.org/io/apidocs/org/apache/commons/io/FileUtils.html#deleteDirectory(java.io.File)...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<p>http://commons.apache.org/io/apidocs/org/apache/commons/io/FileUtils.html#deleteDirectory(java.io.File)</p>
]]>
        

    </content>
</entry>

<entry>
    <title>online image editor</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/09/online-image-editor/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.278</id>

    <published>2009-09-08T08:18:55Z</published>
    <updated>2009-09-08T08:51:15Z</updated>

    <summary> http://www.pixlr.com/editor/ http://www.sumopaint.com/home/ more at http://www.techieblogger.com/2009/09/online-image-editing-tools-websites.html this is probably the best https://www.photoshop.com/...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<ul>
<li>http://www.pixlr.com/editor/</li>
<li>http://www.sumopaint.com/home/</li>
</ul>

<p>more at http://www.techieblogger.com/2009/09/online-image-editing-tools-websites.html</p>

<p>this is probably the best https://www.photoshop.com/</p>
]]>
        

    </content>
</entry>

<entry>
    <title>ubuntu environment variable</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/06/ubuntu-environment-variable/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.277</id>

    <published>2009-06-14T06:26:32Z</published>
    <updated>2009-06-14T06:59:54Z</updated>

    <summary>Session-wide environment variables In order to set environment variables in a way that effects a user&#8217;s entire desktop session, one may place commands to set their values in one of the &#8220;hidden&#8221; script files in the user&#8217;s home directory. The...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<h2>Session-wide environment variables</h2>

<p>In order to set environment variables in a way that effects a user&#8217;s entire desktop session, one may place commands to set their values in one of the &#8220;hidden&#8221; script files in the user&#8217;s home directory. The more common such files are outlined below.</p>

<p>~/.profile - This is probably the best file for placing environment variable assignments in, since it gets executed automatically by the DisplayManager during the startup process desktop session as well as by the login shell when one logs-in from the textual console.</p>

<p>~/.bash<em>profile or ~./bash</em>login - If one of these file exist, bash executes it rather then &#8220;~/.profile&#8221; when it is started as a login shell. (Bash will prefer &#8220;~/.bash<em>profile&#8221; to &#8220;~/.bash</em>login&#8221;). However, these files won&#8217;t influence a graphical session by default.</p>

<p>~/.bashrc - Because of the way Ubuntu currently sets up the various script files by default, this may be the easiest place to set variables in. The default configuration nearly guarantees that this file will be executed in each and every invocation of bash as well as while logging in to the graphical environment. However, performance-wise this may not be the best thing to do since it will cause values to be unnecessarily set many times.</p>

<h2>System-wide environment variables</h2>

<p>Environment variable settings that effect the system as a whole (rather then just a particular user&#8217;s desktop session) can be placed in any of the many system-level scripts that get executed when the system or the desktop session are loaded. Ubuntu defines several locations dedicated to placing such settings:</p>

<p>/etc/profile - This file gets executed whenever a bash login shell is entered (e.g. when logging in from the console or over ssh), as well well as by the DisplayManager when the desktop session loads. This is probably the file you will get referred to when asking veteran UNIX system administrators about environment variables. In Ubuntu, however this file does little more then invoke the /etc/bash.bashrc file.</p>

<p>/etc/bash.bashrc - This is is the system-wide version of the ~/.bashrc file. Ubuntu is configured by default to execute this file whenever a user enters a shell or the desktop environment.</p>

<p>/etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide locale and path settings.</p>

<p>See also</p>

<ul>
<li><a href="https://help.ubuntu.com/community/EnvironmentVariables">Environment Variables - Community Ubuntu Documentation</a></li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>JSObject</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/06/jsobject/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.276</id>

    <published>2009-06-14T01:01:38Z</published>
    <updated>2009-06-14T01:12:29Z</updated>

    <summary> How Java to Javascript Communication Works in Java Plug-in Java-to-Javascript Communication JSObject Java applet Including an applet: the APPLET element Generic inclusion: the OBJECT element...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<ul>
<li><a href="http://java.sun.com/products/plugin/1.3/docs/jsobject.html">How Java to Javascript Communication Works in Java Plug-in</a></li>
<li><a href="http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/java_js.html">Java-to-Javascript Communication</a></li>
<li><a href="https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/LiveConnect/JSObject">JSObject</a></li>
<li><a href="http://en.wikipedia.org/wiki/Java_applet">Java applet</a></li>
<li><a href="http://www.w3.org/TR/html401/struct/objects.html#edef-APPLET">Including an applet: the APPLET element</a></li>
<li><a href="http://www.w3.org/TR/html401/struct/objects.html#edef-OBJECT">Generic inclusion: the OBJECT element</a></li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>How to Convert Ubuntu Server to Desktop</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/06/how-to-convert-ubuntu-server-to-desktop/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.275</id>

    <published>2009-06-13T11:03:49Z</published>
    <updated>2009-06-13T11:19:35Z</updated>

    <summary> If your running Ubuntu Server Edition you can install a KDE or Gnome graphical desktop with a couple of apt installation. For a bare minimal install, you will be able to login to a full desktop with one of...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<blockquote>
  <p>If your running Ubuntu Server Edition you can install a KDE or Gnome graphical desktop with a couple of apt installation. For a bare minimal install, you will be able to login to a full desktop with one of the following:</p>

<p>sudo apt-get install gnome-core <br />
   sudo apt-get install kde-core</p>

<p>For a baseline set of package you can install the following:</p>

<p>sudo apt-get install gnome <br />
   sudo apt-get install kde</p>

<p>For the entire package set released with either Kubuntu or Ubuntu you can install:</p>

<p>sudo apt-get install ubuntu-desktop <br />
   sudo apt-get install kubuntu-dekstop</p>

<p>These commands will install all the files associated with the default graphical desktop that comes with either Ubuntu or Kubuntu.</p>
</blockquote>

<p>See also</p>

<p>-<a href="http://www.bgevolution.com/blog/ubuntu-server-convert-to-graphical/">Ubuntu Server - Convert to Graphical</a></p>
]]>
        

    </content>
</entry>

<entry>
    <title>JavaScript Location</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/06/javascript-location/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.274</id>

    <published>2009-06-10T14:29:23Z</published>
    <updated>2009-06-10T14:41:35Z</updated>

    <summary><![CDATA[属性 Properties Description &nbsp; We will use the URL &quot;http://www.mysite.com/good.htm#section2&quot; as basis below to explain the various properties. hash Specifies the anchor portion of the URL, including the leading hash. (ie: &quot;#section2&quot;). host Specifies the hostname and port (if available)...]]></summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<p>属性</p>

<table border="1" cellspacing="0" cellpadding="2" width="100%">
  <tbody>
    <tr>
      <th class="captions" width="25%" valign="top">

      Properties</th>
      <th class="captions" width="75%">Description</th>
    </tr>
    <tr>
      <th width="25%" valign="top">
      &nbsp;</th>
      <th width="75%">
      <p align="left">We will use the URL &quot;<span style="color:blue">http://www.mysite.com/good.htm#section2</span>&quot; 
      as basis below to explain the various properties.</th>

    </tr>
    <tr>
      <td width="25%" valign="top">hash</td>
      <td width="75%">Specifies the anchor portion of the 
      URL, including the leading hash. (ie: &quot;#section2&quot;).</td>
    </tr>
    <tr>
      <td width="25%" valign="top">host</td>

      <td width="75%">Specifies the hostname and port (if available) of 
      a URL. (ie: &quot;www.mysite.com&quot; or &quot;www.mysite.com:563&quot;).</td>
    </tr>
    <tr>
      <td width="25%" valign="top">hostname</td>
      <td width="75%">Specifies the hostname portion of the 
      URL (ie: &quot;www.mysite.com&quot;).</td>

    </tr>
    <tr>
      <td width="25%" valign="top">href</td>
      <td width="75%">Specifies the entire URL.</td>
    </tr>
    <tr>
      <td width="25%" valign="top">pathname</td>

      <td width="75%">Specifies the path name of the URL 
      (ie: &quot;/good.htm&quot;).</td>
    </tr>
    <tr>
      <td width="25%" valign="top">port</td>
      <td width="75%">Specifies the port portion of the URL (ie: &quot;563&quot; 
within the host &quot;www.mysite.com:563&quot;).</td>

    </tr>
    <tr>
      <td width="25%" valign="top">protocol</td>
      <td width="75%">Specifies the protocol portion of the 
      URL, <b>including</b> the trailing colon (ie: &quot;http:&quot; or &quot;https:&quot;).</td>

    </tr>
    <tr>
      <td width="25%" valign="top">search</td>
      <td width="75%">Specifies the query portion of the URL, including 
the question mark 
      (ie: &quot;?sort=alpha&quot;)</td>
    </tr>
  </tbody>
</table>

<p>URL示意</p>

<pre><code>&lt;protocol&gt;//&lt;hostname&gt;[:&lt;port&gt;]/&lt;pathname&gt;[&lt;search&gt;][&lt;hash&gt;]
</code></pre>

<p>方法</p>

<table border="1" cellspacing="0" cellpadding="2" width="100%">
  <tbody>
    <tr>

      <th class="captions" width="25%" valign="top">Methods</th>
      <th class="captions" width="75%" valign="top">Description</th>
    </tr>
    <tr>
      <td width="25%" valign="top">reload([forceGet])</td>
      <td width="75%" valign="top">Reloads the current 
      document. If &quot;forceGet&quot; set to true, document is completely reloaded 
      even if server reports it hasn&#8217;t been modified since last reload. 
      Default is false.</td>

    </tr>
    <tr>
      <td width="25%" valign="top">replace(url)</td>
      <td width="75%" valign="top">Loads the specified URL 
      over the current history entry. <a href="#e1">Example(s)</a></td>
    </tr>
  </tbody>
</table>

<ul>
<li><a href="http://www.javascriptkit.com/jsref/location.shtml">JavaScript Kit- Location Object</a></li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>Spring Bean in Servlet</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/06/spring-bean-in-servlet/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.273</id>

    <published>2009-06-09T11:48:07Z</published>
    <updated>2009-06-09T11:51:32Z</updated>

    <summary>ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext()); Object myDao = context.getBean(&#8220;daoBeanName&#8221;); 参见 Accessing a Spring bean from a servlet...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<pre><code>ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
</code></pre>

<p>Object myDao = context.getBean(&#8220;daoBeanName&#8221;);</p>

<p>参见</p>

<ul>
<li><a href="http://javageek.org/2005/09/23/accessing_a_spring_bean_from_a_servlet.html">Accessing a Spring bean from a servlet</a></li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>ESXi Supported Device</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/05/esxi-supported-device/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.268</id>

    <published>2009-05-19T02:33:12Z</published>
    <updated>2009-05-19T02:38:16Z</updated>

    <summary>Google the topic, and you will see these. Need to try them out. Install ESXi 3.5 to an IDE drive « BlueTech IT Solutions || News, Tips and Tricks ESXi does not install to an IDE drive - Lushsoft Ltd...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<p>Google the topic, and you will see these. Need to try them out.</p>

<ul>
<li><a href="http://bluetechit.com/NewsandTips/2009/04/install-esxi-35-to-an-ide-drive/">Install ESXi 3.5 to an IDE drive « BlueTech IT Solutions || News, Tips and Tricks</a></li>
<li><a href="https://support.lushsoft.com/Customer/KBArticle.aspx?articleid=27">ESXi does not install to an IDE drive - Lushsoft Ltd</a></li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>Java Sound</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/05/java-sound/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.267</id>

    <published>2009-05-18T10:24:41Z</published>
    <updated>2009-05-19T00:01:47Z</updated>

    <summary> Java Sound API: Java Sound Demo Java Media Framework - Wikipedia, the free encyclopedia...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<ul>
<li><a href="http://java.sun.com/products/java-media/sound/samples/JavaSoundDemo/">Java Sound API: Java Sound Demo</a></li>
<li><a href="http://en.wikipedia.org/wiki/Java_Media_Framework">Java Media Framework - Wikipedia, the free encyclopedia</a></li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>Maven Applet Jar Sign</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/05/maven-applet-jar-sign/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.266</id>

    <published>2009-05-18T07:46:32Z</published>
    <updated>2009-05-18T10:21:47Z</updated>

    <summary> Signed Applet Tutorial Tree-Axis » krister » Ess Sign your applet for using ESS online. keytool-Key and Certificate Management Tool jarsigner-JAR Signing and Verification Tool Processing 1.0 - Ess no sound in applet Maven Maven Jar Plugin - Usage...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<ul>
<li><a href="http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html">Signed Applet Tutorial</a></li>
<li><a href="http://www.tree-axis.com/Ess/signed_applets.html">Tree-Axis » krister » Ess</a></li>
<li><a href="http://processing.org/discourse/yabb2/YaBB.pl?board=Sound;action=display;num=1182948677">Sign your applet for using ESS online.</a>
<ul>
<li><a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html">keytool-Key and Certificate Management Tool</a></li>
<li><a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/jarsigner.html">jarsigner-JAR Signing and Verification Tool</a></li>
</ul></li>
<li><a href="http://processing.org/discourse/yabb2/YaBB.pl?num=1219260953/1">Processing 1.0 - Ess no sound in applet</a></li>
</ul>

<p>Maven</p>

<ul>
<li><a href="http://maven.apache.org/plugins/maven-jar-plugin/usage.html">Maven Jar Plugin - Usage</a></li>
<li><a href="http://maven.apache.org/plugins/maven-jar-plugin/sign-mojo.html">Maven Jar Plugin - maven-jar-plugin - jar:sign</a></li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>Java Applet and Javascript Interaction</title>
    <link rel="alternate" type="text/html" href="http://labs.romeo-foxtrot.com/2009/05/java-applet-and-javascript-interaction/" />
    <id>tag:labs.romeo-foxtrot.com,2009://6.264</id>

    <published>2009-05-16T12:45:02Z</published>
    <updated>2009-05-16T13:22:39Z</updated>

    <summary>This sounds quite an old topic. However, the following recalls my respect. [http://www.voxforge.org/home/read Record Your Voice to Help Free Speech&#8230; Recognition - voxforge.org] Read these, and be armed with another javascript extension. Objects, Images, and Applets in HTML documents The...</summary>
    <author>
        <name>Frank Ren</name>
        <uri>http://romeo-foxtrot.com/mt/mt-cp.cgi?__mode=view&amp;blog_id=6&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://labs.romeo-foxtrot.com/">
        <![CDATA[<p>This sounds quite an old topic. However, the following recalls my respect.</p>

<ul>
<li>[http://www.voxforge.org/home/read Record Your Voice to Help Free Speech&#8230; Recognition - voxforge.org]</li>
</ul>

<p>Read these, and be armed with another javascript extension.</p>

<ul>
<li><a href="http://www.w3.org/TR/REC-html40/struct/objects.html#edef-APPLET">Objects, Images, and Applets in HTML documents</a></li>
<li><a href="http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/applet.html">The APPLET Tag</a></li>
<li><a href="http://java.sun.com/docs/books/tutorial/deployment/applet/deployindex.html">Deploying Applets (The Java™ Tutorials > Deployment > Applets)</a></li>
<li><a href="http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/autodl-files.html">Autodownload Files</a></li>
<li><a href="http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/js_java.html">JavaScript to Java Communication (Scripting)</a></li>
<li><a href="http://www.galiel.net/el/howto/jvjvs.html">How to connect Java applet, Javascript and HTML form</a></li>
<li><a href="http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/java_js.html">Java-to-Javascript Communication</a></li>
<li><a href="https://developer.mozilla.org/En/Core_JavaScript_1.5_Guide:LiveConnect_Overview:Java_to_JavaScript_Communication">Java to JavaScript Communication</a></li>
</ul>

<p>MAYSCRIPT is not required for ie 8 and firefox 3 to allow applet to access js. While it is for opera. See Google result on &#8220;Applet not allowed to access javascript&#8221;</p>

<ul>
<li><a href="http://my.opera.com/community/forums//topic.dml?id=265530">Java applet not allowed to access javascript - Opera browser - Opera Community</a></li>
<li><a href="http://my.opera.com/community/forums/topic.dml?id=222482">javascript from java applet: net*e.javascript.JSException: Applet not allowed - User JavaScript - Opera Community</a></li>
</ul>
]]>
        

    </content>
</entry>

</feed>

