<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Miracle World</title>
	<atom:link href="http://miracleweblog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://miracleweblog.wordpress.com</link>
	<description>Miracle's technology blog dedicated to discussing technology that interests me with all cool stuff.</description>
	<lastBuildDate>Thu, 28 Oct 2010 20:41:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='miracleweblog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Miracle World</title>
		<link>http://miracleweblog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://miracleweblog.wordpress.com/osd.xml" title="Miracle World" />
	<atom:link rel='hub' href='http://miracleweblog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Windows 7 Network Slow – 6 Easy Ways to Make it Fast &#8211;ZT</title>
		<link>http://miracleweblog.wordpress.com/2010/10/28/windows-7-network-slow-%e2%80%93-6-easy-ways-to-make-it-fast-zt/</link>
		<comments>http://miracleweblog.wordpress.com/2010/10/28/windows-7-network-slow-%e2%80%93-6-easy-ways-to-make-it-fast-zt/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 20:41:00 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=92</guid>
		<description><![CDATA[Windows 7 got some improved features than Vista including speed of network.  Sometimes you may notice the network slowness compare to XP due to more advanced features and requirements. These 6 easy steps to help solving Windows 7 network slow problem by disabling some features. Network is a major factor in computing. Windows 7 computers will be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=92&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="Windows 7" href="http://www.sysprobs.com/category/windows-7-problems/">Windows 7</a> got some improved features than Vista including speed of network.  Sometimes you may notice the network slowness compare to XP due to more advanced features and requirements. These 6 easy steps to help solving Windows 7 network slow problem by disabling some features.</p>
<p>Network is a major factor in computing. Windows 7 computers will be slow in accessing shares on old MS Windows servers and non MS Operating systems including Sun and Linux. Accessing data and transferring data over network are still problem in this case. Resolving DNS requests internally (LAN or WAN) and externally (Internet) also could be slow in Windows 7. The following methods I’m listing out is worked for me to speed up Windows 7 networking with NT,2003 and Sun servers.</p>
<h2>How to Fix Windows 7 network slow problem?</h2>
<p><strong>1) </strong><strong>Disable Autotuning</strong></p>
<p>Disabling autotuning will help much on DNS lookup and network discovery. It improves the data transfer speed also over the network. Disabling autotuning in windows 7 is very similar to <a title="Windows vista" href="http://www.sysprobs.com/category/vista-problems/">Windows vista</a> method. <a href="http://www.sysprobs.com/network-is-very-slow-in-windows-vista">Read more here about disabling autotuning in windows vista.</a></p>
<p>To recap important steps,</p>
<p>Start command prompt as administrator, and follow the commands as shown in below example.</p>
<p>netsh interface tcp show global</p>
<p>netsh interface tcp set global autotuning=disabled</p>
<p><strong>2) Remove RDC ( Remote Differential Compression)</strong></p>
<p>This feature introduced with Windows Vista to transfer data over network in compressed format. The same RDC feature continued in Windows 7 also. Since most of the old operating systems came before vista do not support this RDC feature, it slows down network data transfer in windows 7. You can remove this RDC (Remote Differential Compression) in windows 7 by visiting control panel and programs and features. Click on ‘Turn Windows features on or off’, as shown below.</p>
<p><strong>3) Remove IPv6 from network properties.</strong></p>
<p>If your internal or external networks do not  require  IPv6 protocol, better remove it under network connection properties. Keeping IPv6 in your computer sometimes slows down network by trying to register IPv6 addresses, or trying to get IPv6 address, or trying to resolve IPv6. Better remove it if it’s not required.<br />
<a href="http://www.sysprobs.com/network-slow-in-vista-part-2">Remove IPv6 in Windows Vista</a></p>
<p><strong>4) Clear DNS Cache</strong></p>
<p>You can remove any DNS cache from computer, so next time DNS request will be solved by updated DNS server. This will avoid your computer to try broken or changed DNS records from cache. To clear DNS cache, open command prompt as administrator and type <strong><em>ipconfig /flushdns<br />
</em></strong></p>
<p><strong>5) Disable Wireless Network and any additional (including Virtual adapters) network adapters.</strong></p>
<p>If you will not be using wireless network or it’s your secondary network, I recommend you to disable wireless network in windows 7 under network connection.  If it’s enabled, windows 7 computer will be trying to connect available wireless network around you, and trying to login though its network. Loading your profiles and start up programs will be slow while booting because of this.</p>
<p><strong>6) Modifying Link Speed &amp; Duplex Value in Network adapter Properties.</strong></p>
<p>This step also helps sometimes when you face problem with windows 7 network slow. I can’t say which option will work better, because it depends on your physical network setup (network adapter, cable type, LAN speed and network switch). By default it is set for Auto Negotiation. But you can play around with Value options and find out which is working better for your computer and network.</p>
<p><strong><em> </em></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=92&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2010/10/28/windows-7-network-slow-%e2%80%93-6-easy-ways-to-make-it-fast-zt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>
	</item>
		<item>
		<title>My view of service componnent Architecture I</title>
		<link>http://miracleweblog.wordpress.com/2010/09/30/my-view-of-service-componnent-architecture-i/</link>
		<comments>http://miracleweblog.wordpress.com/2010/09/30/my-view-of-service-componnent-architecture-i/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 03:24:48 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=87</guid>
		<description><![CDATA[SCA is service componnent Architecture which includes a set of specifications that describe a model for building applications and systems using SOA. It&#8217;s based on idea that business functions are provided as a set of services. Those functions are assebled together for perticular business service. This is so called composite applicaiton.  There a lot of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=87&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SCA is service componnent Architecture which includes a set of specifications that describe a model for building applications and systems using SOA. It&#8217;s based on idea that business functions are provided as a set of services. Those functions are assebled together for perticular business service. This is so called composite applicaiton.  There a lot of ways to build SCA components, IBM WID, Oracle, and even Spring SCA frameworks.</p>
<p>Then, what are SCA components?<br />
•SCA libraries<br />
each library provides a number of XSD and WSDL documents that describe the services artefacts that are being reused or referenced within the module.<br />
•SCA module file<br />
this provides the definition of the module in terms of the internal components used within the module. WSRR does not interpret the internal content information but does identify any externalized dependencies as imports and exports.<br />
•SCA imports<br />
these provide the definitions of the external services that the module depends on. These import files define the interfaces, bindings and endpoints that the module will need to resolve when it is deployed.<br />
•SCA exports<br />
these provide the endpoint descriptions that the module exposes in terms of interfaces, bindings and endpoints.</p>
<p>The two most important are the SCA library and module file which define the core piece of SCA.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=87&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2010/09/30/my-view-of-service-componnent-architecture-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring MVC  &#8211; I</title>
		<link>http://miracleweblog.wordpress.com/2008/11/28/spring-mvc-i/</link>
		<comments>http://miracleweblog.wordpress.com/2008/11/28/spring-mvc-i/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 15:46:23 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=78</guid>
		<description><![CDATA[Many Java developer must have been familar with Struts MVC framework. However, is it the WEB GUI framework that we&#8217;ll use for several years in future? I don&#8217;t know the anwser and I don&#8217;t have to  anwser. Obviously, there is another choice provided by Spring framework. The Spring Web MVC. When we talk about Spring, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=78&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many Java developer must have been familar with Struts MVC framework. However, is it the WEB GUI framework that we&#8217;ll use for several years in future? I don&#8217;t know the anwser and I don&#8217;t have to  anwser. Obviously, there is another choice provided by Spring framework. The Spring Web MVC.</p>
<p>When we talk about Spring, it&#8217;s very easily to recall the IoC (<span class="txtplain1"> Inversion of Control</span>) design pattern in Spring core package. The basic idea is BeanFatory, which provides a sophisticated implementation of the factory pattern.  It allows you to decouple the configuration and specification of dependencies from your actual  program. logic.BeanFatory creates object for you based on XML configuration. SPring provided major 7 packages as below:</p>
<ol>
<li>core    &#8230;  A. Constructor Injection  B. Setter Injection  C.Interface Injection</li>
<li>Context</li>
<li>DAO</li>
<li>ORM</li>
<li>AOP</li>
<li>Web</li>
<li>MVC  &#8230; Something I want to learn</li>
</ol>
<p><a href="http://miracleweblog.files.wordpress.com/2008/11/spring01.jpg"> <img class="alignnone size-full wp-image-79" title="spring01" src="http://miracleweblog.files.wordpress.com/2008/11/spring01.jpg?w=450" alt="spring01"   /></a></p>
<p>It&#8217;s curious to me how to use Spring MVC to build a WEB project. For any MVC framework, I really wan tto know what are M, V, C and how?</p>
<p>DispatcherServlet is core servlet for Spring and dispatches requests to Controllers and offers other functionalities for web applications. DispatcherServlet completely integrated  with the Spring IoC container and allows you to use every other feature that  Spring has.</p>
<blockquote><p>&lt;web-app&gt; &#8230;  &lt;servlet&gt;<br />
&lt;servlet-name&gt;test&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;<br />
&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;test&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;*.do&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;</p></blockquote>
<p>Once you have a Servlet in web.xml, you need add the file <span>&#8216;/WEB-INF/<strong>test</strong>-servlet.xml&#8217;to hook them together. The definition of beans could be defined as below:</span></p>
<blockquote><p><span>&lt;bean  class=&#8221;org.springframework.web.servlet.handler.SimpleUrlHandlerMapping&#8221;&gt;<br />
&lt;property  name=&#8221;mappings&#8221;&gt;<br />
&lt;value&gt;<br />
/*/account.form=editAccountFormController<br />
/*/editaccount.form=editAccountFormController<br />
/ex/view*.html=helpController<br />
/**/help.html=helpController<br />
&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;/bean&gt;</span></p></blockquote>
<p>And example for a VIEW mdel :</p>
<blockquote><p><span>&lt;bean  id=&#8221;viewResolver&#8221;<br />
class=&#8221;org.springframework.web.servlet.view.UrlBasedViewResolver&#8221;&gt;<br />
&lt;property  name=&#8221;prefix&#8221; value=&#8221;/WEB-INF/jsp/&#8221;/&gt;<br />
&lt;property name=&#8221;suffix&#8221;  value=&#8221;.jsp&#8221;/&gt;<br />
&lt;/bean&gt;</span></p></blockquote>
<p><span>And example of the Controller:</span></p>
<blockquote><p><code>public interface Controller {<br />
/**<br />
* Process the request and return a  ModelAndView object which the DispatcherServlet<br />
* will  render.<br />
*/<br />
ModelAndView handleRequest(<br />
HttpServletRequest  request,<br />
HttpServletResponse response) throws Exception;<br />
}</code></p></blockquote>
<p><span>From Spring document: &#8220;As you can see, the Controller interface defines a single method that is  responsible for handling a request and returning an appropriate model and  view.<br />
Command controllers provide a way to interact with data objects and  dynamically bind parameters from the HttpServletRequest to the data object  specified. &#8220;</span></p>
<p><span><br />
<strong>AbstractCommandController </strong>: This class does not offer form  functionality;<br />
<strong>AbstractFormController </strong>: an abstract controller  offering form submission support.After a user has filled the form, the  AbstractFormController binds the fields, validates the command object, and hands  the object back to the controller to take the appropriate  action.<br />
<strong>SimpleFormController </strong>: a form controller that provides even  more support when creating a form with a corresponding command object. The  SimpleFormController let&#8217;s you specify a command object, a viewname for the  form, a viewname for page you want to show the user when form submission has  succeeded.<br />
<strong>AbstractWizardFormController </strong>: as the class name suggests,  this is an abstract class &#8211; your wizard controller should extend it. This means  you have to implement the validatePage(), processFinish() and processCancel()  methods.</span></p>
<p>TBC&#8230;</p>
<p><span><br />
</span></p>
<p><span><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=78&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2008/11/28/spring-mvc-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>

		<media:content url="http://miracleweblog.files.wordpress.com/2008/11/spring01.jpg" medium="image">
			<media:title type="html">spring01</media:title>
		</media:content>
	</item>
		<item>
		<title>When Struts meets Spring</title>
		<link>http://miracleweblog.wordpress.com/2008/11/08/when-struts-meets-spring/</link>
		<comments>http://miracleweblog.wordpress.com/2008/11/08/when-struts-meets-spring/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 03:06:45 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=69</guid>
		<description><![CDATA[Struts has been widely used in Java worlds. Struts MVC framework is a typical structure that separate presentation layer with data and control layer. Three four years ago, people would like to use struts to build their web applications, however, there are not many people use struts directly. A lot of GUI framework are provided [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=69&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Struts has been widely used in Java worlds. Struts MVC framework is a typical structure that separate presentation layer with data and control layer. Three four years ago, people would like to use struts to build their web applications, however, there are not many people use struts directly. A lot of GUI framework are provided for different purposes, such as JSF, Spring and groovy. Even Struts itself provided version 2.0 which also included some other frameworks&#8217; features.</p>
<p>To set up a struts web application is not difficult for a new Java Web developer. Struts configuration file will bind View (jsp), model (Form) and  control (action) together. Whole MVC structure is designed based on a  ActionServlet to accept or response client web requests. As project growing, the struts configuration xml file will grow as well. Once the control (action class) has any issues with View output, such as miss configured in struts-config.xml or cannot dispatch request to next action service method. The framework wil throw Apache internal exception, and it&#8217;s very difficult to debug.</p>
<blockquote><p>&lt;web-app xmlns=&#8221;http://java.sun.com/xml/ns/javaee&#8221; xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221; version=&#8221;2.5&#8243; xsi:schemaLocation=&#8221;http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&#8221;&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;action&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;<strong>org.apache.struts.action.ActionServlet</strong>&lt;/servlet-class&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;config&lt;/param-name&gt;<br />
&lt;param-value&gt;/WEB-INF/struts-config.xml&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;debug&lt;/param-name&gt;<br />
&lt;param-value&gt;3&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;detail&lt;/param-name&gt;<br />
&lt;param-value&gt;3&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&lt;load-on-startup&gt;0&lt;/load-on-startup&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;action&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;*.do&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;</p></blockquote>
<p>Realizing issues in Struts, Interface 21 inc. has developed a MVC framework in Spring. Spring MVC framework is more focus on DispatcherServlet. All response processor can be handler, view, local, theme, and controller. Spring provides a series of default controller , such as AbstractController, AbstractCommandController, SimpleFormController, etc. which is much simplier and more flexible for user to use. The difference from Struts is you don;t even need a FormController, any object can be a Form object. And it doesn&#8217;t need to be inherit from a base class. So, Spring MVC doesn&#8217;t need an action and action form.</p>
<blockquote>
<pre class="programlisting">&lt;web-app&gt;
    &lt;servlet&gt;
        &lt;servlet-name&gt;example&lt;/servlet-name&gt;
        &lt;servlet-class&gt;<strong>org.springframework.web.servlet.DispatcherServlet</strong>&lt;/servlet-class&gt;
        &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;

    &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;example&lt;/servlet-name&gt;
        &lt;url-pattern&gt;*.form&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
&lt;/web-app&gt;</pre>
</blockquote>
<p>Besides these, Spring provided may view resolver, interceptor, handler and command controller. It&#8217;s really much more flexible than original Struts. However, we can see Struts team has relized this and add new Spring like feature in 2.0 and latest versions. Although, currently Spring is one step ahead of Stuts, we wil see if there is any chance for Stuts or another framework to dominate the market.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=69&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2008/11/08/when-struts-meets-spring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>
	</item>
		<item>
		<title>Java 5 , changed again?</title>
		<link>http://miracleweblog.wordpress.com/2008/11/05/java-5-change-again/</link>
		<comments>http://miracleweblog.wordpress.com/2008/11/05/java-5-change-again/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 06:08:42 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=62</guid>
		<description><![CDATA[Back to nine years ago,  sun Java had changed from 1.0/1.1 to 1.2 which is major release and had lot of JVM structure adjustments. It&#8217;s so called Java 2. Many old java developers have to refresh Java knowledge to catch up this change. I was one of them and felt so pain. I used to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=62&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Back to nine years ago,  sun Java had changed from 1.0/1.1 to 1.2 which is major release and had lot of JVM structure adjustments. It&#8217;s so called Java 2. Many old java developers have to refresh Java knowledge to catch up this change. I was one of them and felt so pain. I used to familiar with Java 1.0/1.1 action and adaptors and have to learn new listener and other stuff.</p>
<p>Last year, Sun Java change Java J2SE again from 1.4.* to version 1.5, so called Java 5. It made a big splash in the market and seems we need learn new Java grammar again. Otherwise, we, senior Java developer,  will not read Java code in future.  Oh, is it really cool?</p>
<p>Before considering any new cool features,  I want to read some code as below:</p>
<blockquote><p><code>import static java.lang.System.out; </code></p>
<p><code>public class LinkedList &lt;Element&gt;{ </code></p>
<p><code> int num = 23;<br />
Integer numObject = num;</code></p>
<p><code> boolean add(Element o) {<br />
// code omitted </code></p>
<p><code> out.print("stuff"); </code><br />
<code> }<br />
Element getFirst(){<br />
// code omitted<br />
}<br />
}</code></p></blockquote>
<p>As I saw this code, I felt it&#8217;s not java, it&#8217;s something like C++ that I coded in 10 years ago. Actually, it&#8217;s exactly some new features add by sun Java. In summary, new features in Java 5 can be desribed as below :</p>
<p><a href="http://miracleweblog.files.wordpress.com/2008/11/java5.jpg"> <img class="alignnone size-full wp-image-63" title="java5" src="http://miracleweblog.files.wordpress.com/2008/11/java5.jpg?w=450&#038;h=234" alt="java5" width="450" height="234" /></a></p>
<p>The features on the left (foreach, varargs, auto-boxing, enum) are very useful. Annotation is very cool feature, however, developers also have to figure out when and where to use it properly. Static import provides only marginal value benefits (and may also lead to poor code), and Generics feature is commented as pretty bad.</p>
<p><strong>Auto boxing</strong>:  It just makes programmer&#8217;s life uch easiler</p>
<blockquote><p><code>int num = 23;<br />
Integer numObject = new Integer(num);</code></p></blockquote>
<p>===&gt;</p>
<blockquote><p><code>int num = 23;<br />
Integer numObject = num;</code></p></blockquote>
<blockquote><p><code>Boolean isBigBoolean = new Boolean(true);<br />
if(</code><code>isBigBoolean </code><code>){<br />
System.out.println("Yeah, it works in Java 5!");<br />
}</code></p></blockquote>
<p><strong>var-agrs:</strong> It gives developers more flexible to pass in arguments dynamically. However, the argument must be an Object. Inside method pass-in process , all parameters are composed into an ArrayList [].  Fro example, printf method.</p>
<blockquote><p><code>public void myMethod(Object … args);</code></p>
<p><code>myMethod(23, 34, 78);<br />
myMethod("Hello", "Goodbye");<br />
myMethod(123);</code></p></blockquote>
<p><strong>Scanner</strong>: it&#8217;s simplified the io.in</p>
<blockquote><p><code>Scanner keyboard = Scanner.create(System.in);</code></p></blockquote>
<p>For-loop: it&#8217;s really a simple way to invoke loop conditions</p>
<blockquote><p>package com.agiledeveloper;<br />
import java.util.ArrayList;<br />
import java.util.Iterator;<br />
public class Test<br />
{<br />
public static void main(String[] args)<br />
{<br />
String[] messages = {&#8220;Hello&#8221;, &#8220;Greetings&#8221;, &#8220;Thanks&#8221;};<br />
for (int i = 0; i &lt; messages.length; i++)<br />
{<br />
System.out.println(messages[i]);<br />
}<br />
<strong>for (String msg : messages)<br />
{<br />
System.out.println(msg);<br />
}</strong></p>
<p>ArrayList lst = new ArrayList();<br />
lst.add(1);<br />
lst.add(4.1);<br />
lst.add(&#8220;test&#8221;);<br />
for (Iterator iter = lst.iterator(); iter.hasNext();)<br />
{<br />
System.out.println(iter.next());<br />
}<br />
<strong> for (Object o : lst)<br />
{<br />
System.out.println(o);<br />
}</strong></p>
<p><strong>ArrayList&lt;Integer&gt; values = new ArrayList&lt;Integer&gt;();</strong><br />
values.add(1);<br />
values.add(2);<br />
int total = 0;<br />
<strong> for (int val : values)<br />
{<br />
total += val;<br />
}</strong><br />
System.out.println(&#8220;Total : &#8221; + total);<br />
}<br />
}</p></blockquote>
<p><strong>Statis Import</strong>: In Java 5, you can import a class&#8217;s static members and refer to them without the usual class name prefix.</p>
<blockquote><p><code>import static java.lang.System.out;<br />
// other code here.<br />
<strong>out.print</strong>("stuff");<br />
<strong>out.print</strong>("more stuff");</code></p>
<p>Once the static member is imported, you can use it in your code without the <code>System</code> class prefix. Here&#8217;s an even better example from the <a class="glossary" title="Graphical User Interface" href="http://www.sitepoint.com/glossary.php?q=G#term_62">GUI</a> world of Swing.</p>
<p><code>// without static import.<br />
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);</code></p>
<p>// with static import.<br />
import static javax.swing.WindowConstants.*;<br />
// other code<br />
setDefaultCloseOperation(<strong>EXIT_ON_CLOSE</strong>);</p></blockquote>
<p><strong>Enumerated Types:</strong>change enum fro integer to sequence or string</p>
<blockquote><p>//Old Java code</p>
<p><code>class FizzyDrink {<br />
static final int PEPSI = 1;<br />
static final int COKE = 2;<br />
static final int SCHWEPPES = 3<br />
}</code></p>
<p>//New Code, Now, we really do have a <code>FizzyDrink</code> type. In fact, if we printed the value of <code>todaysFizzyDrink</code>, we&#8217;d get the string <code>pepsi</code> and not some meaningless integer value. Here&#8217;s the really cool part: no dependant class recompilation is required, and Java will even warn you when you change an enumerated type but still have code elsewhere that uses the old enumerated values!</p>
<p><code>enum FizzyDrink{ pepsi, coke, schweppes }</code></p>
<p><code>FizzyDrink todaysFizzyDrink = FizzyDrink.pepsi;</code></p></blockquote>
<p><strong>Generics</strong>: Type genericity is by far the most radical enhancement to the core Java language. In a nutshell, generics allows java programmers to pass types as arguments to classes just as values are passed to methods.</p>
<blockquote><p><code>String custName = (String) myList.getFirst();   // without generics<br />
String custName = myList.getFirst();     // with generics</code></p>
<p><code>LinkedList&lt;String&gt; myList = new LinkedList&lt;String&gt;();</code></p></blockquote>
<p>TBC&#8230;&#8230;&#8230;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=62&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2008/11/05/java-5-change-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>

		<media:content url="http://miracleweblog.files.wordpress.com/2008/11/java5.jpg" medium="image">
			<media:title type="html">java5</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Web Toolkit &#8211; think and try</title>
		<link>http://miracleweblog.wordpress.com/2008/11/04/google-web-toolkits-think-and-try/</link>
		<comments>http://miracleweblog.wordpress.com/2008/11/04/google-web-toolkits-think-and-try/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 05:26:00 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=50</guid>
		<description><![CDATA[When I first heard of GWT and some piece of words on it, I think it&#8217;s cool.  I even dream to use it to transfer existing Swing Apps to GWT browser based Apps. However, when I dig into it, I found it&#8217;s far different from what I thought, although, it&#8217;s still cool. To introduce what [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=50&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When I first heard of GWT and some piece of words on it, I think it&#8217;s cool.  I even dream to use it to transfer existing Swing Apps to GWT browser based Apps. However, when I dig into it, I found it&#8217;s far different from what I thought, although, it&#8217;s still cool.</p>
<p>To introduce what is GWT is not part of my interests, since everyone can use Google to find out official definition. However, it might like blinders touching elephant that everyone has it&#8217;s own interpretation.  Based on my own understanding, some GWT ideas are really give me a light in my current project.</p>
<p>Rich-Client-Programming (RCP) is a new trend in recent web application. Google has GWT, and Yahoo has YUI, and Open source has prototype and Scripttaculous. All vendors have different Ajax solution with Java scripts, but it&#8217;s really not easy work to debuging complex Java scripts code in many browsers.  GWT can provide cross-browser java scripts and debug within Java IDE which are really a cool features.</p>
<p>I can&#8217;t help resisting to rush into GWT and build GWT code.</p>
<p>First,  I need install GWT package from a link http://code.google.com/webtoolkit/download.html and add GWT package into your env&#8217;s PATH. It&#8217;s provided by Google as open source.</p>
<p>Second, Create a GWT project in eclipse which contains both Host package and client package. Or you can import GWT sample project into eclipse, which is the most ofen way that I do. In general, the development process can be summarized as below:</p>
<div id="attachment_52" class="wp-caption alignnone" style="width: 405px"><a href="http://miracleweblog.files.wordpress.com/2008/11/gwt001.jpg"><img class="size-full wp-image-52" title="GWT Design Process" src="http://miracleweblog.files.wordpress.com/2008/11/gwt001.jpg?w=450" alt="GWT Design Process"   /></a><p class="wp-caption-text">GWT Design Process</p></div>
<p><!--[if gte mso 9]&gt;  Normal 0  7.8 pt 0 2  false false false               MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:宋体; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-alt:SimSun; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;} @font-face 	{font-family:"\@宋体"; 	panose-1:2 1 6 0 3 1 1 1 1 1; 	mso-font-charset:134; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:3 135135232 16 0 262145 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	text-align:justify; 	text-justify:inter-ideograph; 	mso-pagination:none; 	font-size:10.5pt; 	mso-bidi-font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:宋体; 	mso-font-kerning:1.0pt;}  /* Page Definitions */  @page 	{mso-page-border-surround-header:no; 	mso-page-border-surround-footer:no;} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]&gt; &lt;!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="text-indent:5.25pt;"><span lang="EN-US">JSNI : Java scripts Native Interface</span></p>
<p class="MsoNormal" style="text-indent:5.25pt;"><span lang="EN-US">Allowing native Java method to be implement with java scripts</span></p>
<blockquote>
<p class="MsoNormal" style="text-indent:5.25pt;"><span lang="EN-US">Native String flipName(String name)/*-{</span></p>
<p class="MsoNormal" style="margin-left:10.5pt;text-indent:5.25pt;"><span lang="EN-US">//JavaScript source</span></p>
<p class="MsoNormal" style="margin-left:10.5pt;text-indent:5.25pt;"><span lang="EN-US">Var re = /(\w+)\s(\w+)/;</span></p>
<p class="MsoNormal" style="margin-left:10.5pt;text-indent:5.25pt;"><span lang="EN-US">Return name.replace(re, ‘$2,$1’);</span></p>
<p class="MsoNormal" style="text-indent:5.25pt;"><span lang="EN-US">}-*/;</span></p>
</blockquote>
<p>GWT Java Packages:</p>
<p>It&#8217;s not difficult to find GWT java API packages from web link http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html</p>
<p>And developer guide http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&amp;s=google-web-toolkit-doc-1-5&amp;t=google-web-toolkit-doc-1-5</p>
<p>However, only several JAVA core packages are support by GWT. They are more like java.lang.util and java.lang.object some generic packages. Gor any panel and action swing like package are provided with <a href="http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/animation/client/package-tree.html">com.google.gwt.*</a> Developers need check DWT API to get more detail with web GUI wedgets.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=50&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2008/11/04/google-web-toolkits-think-and-try/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>

		<media:content url="http://miracleweblog.files.wordpress.com/2008/11/gwt001.jpg" medium="image">
			<media:title type="html">GWT Design Process</media:title>
		</media:content>
	</item>
		<item>
		<title>Era of Web 2.0 &#8211; II</title>
		<link>http://miracleweblog.wordpress.com/2008/11/02/era-of-web-20-ii/</link>
		<comments>http://miracleweblog.wordpress.com/2008/11/02/era-of-web-20-ii/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 02:53:46 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=35</guid>
		<description><![CDATA[Combined business model and IT technologies, web 2.0 provided many new features that affected media transmission in public internet. New features not only enhanced existing business model, but also  created new models.  As a summary, core web 2.0 competence should include following several aspects: Extensible Service Unique, none replicable data source Team work and client [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=35&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Combined business model and IT technologies, web 2.0 provided many new features that affected media transmission in public internet. New features not only enhanced existing business model, but also  created new models.  As a summary, core web 2.0 competence should include following several aspects:</p>
<ul>
<li>Extensible Service</li>
<li>Unique, none replicable data source</li>
<li>Team work and client knowledge contribution</li>
<li>Light way user interface and development model.</li>
<li>Business model replicable</li>
</ul>
<p>AS we talked about many aspects in web 2.0, what is design pattern in web 2.0?  In overall, it can be summarized as several points.</p>
<blockquote><p>long tail &#8211; Utilizing client self-service, and algorithm in data management to extend tails in internet</p>
<p>data Intel inside &#8211; Data driven extended model.</p>
<p>client additional value &#8211; data value has been extended by network clients.</p>
<p>Potential network effects &#8211; client plug in model</p>
<p>Open software structure model</p>
<p>cooperation not control</p>
<p>Multiply information access portal</p></blockquote>
<p>In the light of these features, what is future directions on web technologies?  One famous consultant (Ms. MIT) has a these about future internet. He summarized it as 4C + 1P + VS.  4C stands for Content, Commercial, community, and  circumstances. 1P stands for personalize. VS mean vertical information search. <strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=35&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2008/11/02/era-of-web-20-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>
	</item>
		<item>
		<title>Era of Web 2.0 &#8211; I</title>
		<link>http://miracleweblog.wordpress.com/2008/11/01/web-20-keynotes-i/</link>
		<comments>http://miracleweblog.wordpress.com/2008/11/01/web-20-keynotes-i/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 01:30:16 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=25</guid>
		<description><![CDATA[We&#8217;re now in an internet era. Most of you use computer and internet everyday, either in office or at home. Looking back, the web browser has been evolved from NetScape Navigator, Oprea, IE 3.0 to IT 7.0, Firefox, and Google Chrome. The media inside internet browser has been changed from normal html to dynamic html, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=25&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re now in an internet era. Most of you use computer and internet everyday, either in office or at home. Looking back, the web browser has been evolved from NetScape Navigator, Oprea, IE 3.0 to IT 7.0, Firefox, and Google Chrome. The media inside internet browser has been changed from normal html to dynamic html, ASP, JSP, PHP, etc. So many cool features and ideas are provided in today&#8217;s internet world such as amazon, ebay, youtube, blog, flickr, google net office, and facebook.</p>
<p>Therefor, most people may feel curious what is web 2.0 and what it can bring to us. I&#8217;m definitely one of them. I &#8216;m an IT professional staff, however, I don&#8217;t know what exactly web 2.0 is. I have same questions with all people around and curious about this changing internet world.</p>
<p>After learning some so-called Web 2.0 products, I got sense on what web 2.0 means. Before we talk about  web 2.0, let&#8217;s take a look at what current web 2.0 products are.</p>
<blockquote>
<ul>
<li>Blog : customer content publishing and  management system</li>
<li>RSS : Content distribution and subscription</li>
<li>Podcasting : view /audio media publishing and subscription</li>
<li>SNS : blog plus social association</li>
<li>wiki : user maintaining/constructing encyclopaedia</li>
<li>facebook / linkedin / Hi5 :  media sharing and user association</li>
<li>Flickr, pbase : online photo sharing, management and ordering/printing</li>
<li>youtube : Online video media sharing</li>
</ul>
</blockquote>
<p>Consequently, it&#8217;s not difficult to find new changes from these products. From knowledge point of view, if web 1.0 is focusing on publishing existing knowledge on internet, web 2.0 is more enhancing human being  with knowledge  domains.  Knowledge are more organized and more efficient to access.</p>
<p>From content point of view, web 1.0&#8242;s content is more likely provided by commercial companies. Web 2.0 is far more provided by organized user groups.</p>
<p>From interaction point of view, web 1.0 is more like a service to client. Web 2.0 is more focus on P2P.</p>
<p>From technology point of view, web 1.0 is browser based thin client. Web 2.0 is Browser (RSS) based on thick client such as Ajax in google map, gmail, yahoo mail, ect.</p>
<p>TBC&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=25&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2008/11/01/web-20-keynotes-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>
	</item>
		<item>
		<title>Media wiki &#8211; II</title>
		<link>http://miracleweblog.wordpress.com/2008/10/31/media-wiki-ii/</link>
		<comments>http://miracleweblog.wordpress.com/2008/10/31/media-wiki-ii/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 04:22:19 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=19</guid>
		<description><![CDATA[If someone tells me that upgrading a software is always simpler than installing a software,  I will not believe it anymore.  After I download the Media wiki 1.13.2 package, I found I already have an old version. Hence, I think I just need upgrade it simply. However,  upgrade Media WiKi is not a simple as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=19&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If someone tells me that upgrading a software is always simpler than installing a software,  I will not believe it anymore.  After I download the Media wiki 1.13.2 package, I found I already have an old version. Hence, I think I just need upgrade it simply.</p>
<p>However,  upgrade Media WiKi is not a simple as what I thougt. After copied all files in the original folder, I can&#8217;t find the Upgrade.php file. As I installed XAMPP in my computer, it does have PHP env. So it&#8217;s not so difficult for me to get the existing commands.</p>
<p>To upgrade Media Wiki,  you need at least do the following steps</p>
<p>(1) backup existing database and wiki file folder, copy downloaded package into existing file folder.</p>
<p>(2) start the Apache server together with MySQL and PHP</p>
<p>(3) configure the AdminSettings.php in the &lt;wiki-home&gt; folder with MySQL db user id and password</p>
<p>(4) go to &lt;wiki_home&gt;/maintenance folder and run command  !&gt;PHP upgrade.php</p>
<p>(5) restart the XAMPP server</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=19&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2008/10/31/media-wiki-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle 11g &#8211; installation from a newbie &#8211; I</title>
		<link>http://miracleweblog.wordpress.com/2008/10/31/oracle-11g-installation-from-a-newbie-i/</link>
		<comments>http://miracleweblog.wordpress.com/2008/10/31/oracle-11g-installation-from-a-newbie-i/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 03:05:54 +0000</pubDate>
		<dc:creator>Gary Li</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://miracleweblog.wordpress.com/?p=6</guid>
		<description><![CDATA[I installed oracle 11g by downloading it from www.oracle.com web site. The installation process is very dummy and doesn&#8217;t need any brain. However, after installation, I found I don;t know anything about it! I want to install it just because it&#8217;s very famous, I used oracle 8.7, and I&#8217;m familiar with DB2. Hence, I thought [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=6&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I installed oracle 11g by downloading it from www.oracle.com web site. The installation process is very dummy and doesn&#8217;t need any brain. However, after installation, I found I don;t know anything about it!</p>
<p>I want to install it just because it&#8217;s very famous, I used oracle 8.7, and I&#8217;m familiar with DB2. Hence, I thought I should not have any problem to use it. After installation, I found myself can not even find my database. I don&#8217;t know where is my schema, and how to create a user, how to set connection. I don&#8217;t use SQL/plus. too bad&#8230;.</p>
<p>Luckly, I&#8217;m in the google times. Here you go, I found everything I need in internet. Here are some notes I learned at this time.</p>
<p>(1) Download 11g from oracle  http://www.oracle.com/technology/software/products/database/index.html</p>
<p>(2)  unzip it and run setup.exe in windows</p>
<p>(3) all default and select create a <span style="font-weight:bold;">ORCL </span>default db</p>
<p>(4) set <span style="font-weight:bold;">sys, system, dbsnmp, sysman</span> all 4 DBA accounts with the same password</p>
<p>(5) You could select default sample schema  (by checking checkbox) or leave it empty</p>
<p>(6) click finish, wait until whole process completed.</p>
<p>(8) Congratulations! you&#8217;ve installed Oracle 11g !</p>
<p>(7)  however, it is very very very important to launch https://:1158/em in Microsoft IE, not firefox. It take me a very long time to figure out this link doesn&#8217;t work in firefox, which is my favorite internet browser.</p>
<p>(8) login as <span style="font-weight:bold;">sys</span>/, mange DB access, schedule, and other settings in <span style="font-weight:bold;">IE</span></p>
<p>(9) Or you can log in as DBA user in TOAD (earlier version, it&#8217;s free),  db , user, password</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<span style="font-weight:bold;">Questions</span>?</p>
<p>Now, you can create table space, schema, and tables. However, I don&#8217;t understand the different on schema in oracle and DB2.</p>
<p>In DB2, database is a building block in a DB instance. One computer system (box) could have many DB2 instance, one DB2 instance can have many database. Inside database, you can define schema, tablespace, trigger, user/user group, index, views, and tables.</p>
<p>In oracle,  one computer box, can have many database (equivalent to Db2 instance<span style="font-weight:bold;">?</span>). In a database (instance) , it has many tablespace and schema (<span style="font-weight:bold;">?</span>).  In a schema, it has tables, table index and views.</p>
<p>Therefor, two structure are obvious different. I&#8217;m so confused with Oracle structure. So, I need google to get more info.</p>
<p>All of all, it&#8217;s enought for today since I only spent 3-4 hours to set up Oracle 11g from scratch. Especially I&#8217;m a pretty dummy user and it&#8217;s my first time trying to use it.</p>
<p>So, what&#8217;s next?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miracleweblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miracleweblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miracleweblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miracleweblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miracleweblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miracleweblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miracleweblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miracleweblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miracleweblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miracleweblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miracleweblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miracleweblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miracleweblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miracleweblog.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miracleweblog.wordpress.com&amp;blog=5354992&amp;post=6&amp;subd=miracleweblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miracleweblog.wordpress.com/2008/10/31/oracle-11g-installation-from-a-newbie-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864e8858057e27f6285b1e2f77353627?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Miracle</media:title>
		</media:content>
	</item>
	</channel>
</rss>
