<body margintop="0" marginright="0" marginbottom="0" marginleft="0"><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=13750602&amp;blogName=BreakThrough&amp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http%3A%2F%2Fhenrynews.blogspot.com%2Fsearch&amp;blogLocale=en_US&amp;homepageUrl=http%3A%2F%2Fhenrynews.blogspot.com%2F" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>

Tuesday, September 20, 2005

Discover of Computer Programming by Playing a Board Game: C-Jump

It's interesting that computer programmer Igor Kholodov has created a game that can entertain while teaching the basics of computer programming languages like Java or C++.

"...The board game turns players into skiers who must race down a mountain in the quickest way possible. With each roll of the die, players must follow instructions that are similar to computer program codes...like "if (X==1)" then you can take the green path or "while (X<4)>" (full story)

Story photos

Monday, September 19, 2005

Esther Visit Vancouver, Douglas Friends Reunion

Esther, one of my buddy in college and university, visited Vancouver last week. We have a small old college classmate reunion in a Japanese restaurant of downtown Vancouver.
(view large photo)

from left: Esther, Wendy, Michael, me and Wing

Microsoft Delivers IE Developer Toolbar

An article reports that an new IE developer Toolbar will be added to IE7 on window vista,
"...late last week, The Internet Explorer (IE) team rolled out a new IE Developer Toolbar, designed to expose new features for designing Web pages..." (view article)

Microsoft not only imitate FireFox's "Tab" and "Search bar" functions, and also now added FireFox liked "Web Developer" extension to their new IE7. Hey, what a copycat.

Related Posts:
  1. view IE7 in action (video demo of window vista)
  2. window vista hardware requirement

Friday, September 16, 2005

Firefox has more vulnerabilities than Internet Explorer

I'm not sure you're a supporter of Firefox or not, but I'm dead sure I'm one of the follower. I like Firefox coz it does not only let you download any plug-in/extensions/dev tools/themes, but also it has less security holes than Internet Explorer. To my surprise, I'm wrong...

I recently came across an article wrote by George Ou - "Is the Firefox honeymoon over?"
"...Firefox not only has more vulnerabilities per month than Internet Explorer, but it is now surpassing Internet Explorer for the number of exploits available for public download in recent months..."

Read full story #1 | #2

Summary:
  • In past 6 months, FireFox has total 40 vulnerabilities, but IE only have 10 vulnerabilities
  • a break down of recent published exploits: FireFox has 11 and IE has 6
  • April 2005 browser market share: IE - 83.07%, Firefox - 10.28%
Related post: View IE7 take action in window Vista

Nintendo "Revolution" Console Coming 2006

Nintendo continues to lead the video game industry in innovation. Except the Game Boy Micro, Nintendo Wi-Fi projects, Nintendo reveals new 'Revolution' - ary controller in keynote speech and planning to launch on 2006. I hate the Game Boy Micro idea, it seems to me that it's the end of game boy's life. However, Nintendo "Revolution" is pretty cool idea that may bring game play to next level.
(view detail story #1 | #2 )

One of the Nintendo "Revolution"console photo


Nintendo "Revolution" Console in Action (Video Demo: click on the small triangle on the bottom to start playing)


Related Post: Game Boy Micro

Thursday, September 15, 2005

Tha's the iPod I want - iPod nano (TM)

iPod nano(TM) relase 5 days ago. Man, I can't wait to get it, it looks just awesome and sleek compares to the gameboy mobile :); and it's not too expensive, us$199 for size 2GB and us$249 for size 4GB.

Check it out, I like the black one better.


Wing I want nano as my birthday gift :)

Game Boy Micro

Recently I came across an article talk about mobile version of gameboy.
"Nintendo's new mobile-phone-size game console, Game Boy Micro, which launches Sept. 19, takes this philosophy to the extreme. At 4 inches wide by 2 inches long by 0.7 inches tall, it's just a bit larger than an iPod mini. At 2.8 ounces, it's lighter than a Motorola Razr phone."

story image from www.wired.com

Woo, it looks ugly I won't spend US$110 to buy a square dump box as my cell phone. Anyway, one more mobile toy.

(view full story)

Wednesday, September 14, 2005

Windows Vista hardware requirements

Vista is much more graphics focused. There is a fundamental shift from bitmap images to vector graphics, much more focus on shifting workload from the CPU to the GPU, and will require a serious display card to be included in the machine. A 128 megabyte display card will be good, and a 256 megabyte or better display card will be ideal.... (view full story)

holy... I need to upgrade my crap computer soon.

Video demo of Windows Vista

Check out this video of the Vista beta demo hosted by Patrick Norton. Kinda cool to see whats coming in the later months.
http://zdpub.vo.llnwd.net/o2/eseminarvista.wmv

Key Features
  • the latest IE7 with build in search bar combining with google+yahoo+aol+etc search capability
  • Firefox like tab function supported.
  • Don't forget to see the new security/filter function control panel.
  • And ACDSee like photo surfing explorer
  • a pretty interface is a plus
Finally, IE has caught up with everyone else lol

Macromedia Flash Player 8 & Macromedia Studio 8 Now Available

Macromedia has release the latest Flash Professional 8.
View detail of Macromedia Studio 8
Download FREE Macromedia Flash Player 8

Friday, September 09, 2005

JBoss Wiki 1.0 Alpha is available for Download

The current feature set of JBoss Wiki is:
* Full support of the JBoss Portal 2.0 security constructs to allow users and roles to be associated with editing and display of wiki pages and attachments within the context of a JSR 168 compliant portal.
* Full support of wiki page histories and rollback.
* An integrated DIFF tool.
* A Plugin framework which allows different wiki types to be defined and associated with different plugin stacks which add contextual content to wiki pages or do translations.
* Full support for attachments (attachment histories are pending).
* Currently supports the JSPWiki wikitext syntax.
* Includes a prototype search engine.
* Simple URL support even while running within JBoss Portal so users can access wikipages by the URL pattern: http://host/wiki/PageName

View Full Story
Download JBoss Wiki 1.o Alpha

Thursday, September 08, 2005

Kayaking in Deep Cove, Vancouver

I had a company team event that we all took one working day off and go to kayaking. I posted some photos on flickr.com (view photos).

Wednesday, September 07, 2005

JavaOne 2005 Technical Session PDFs

JavaOne 2005 Technical Sessions are available for download in PDF format. You can download the presentations from here.

XBox Velocity

A article talking a portable version of the Xbox in Mobile Magazine. Microsoft hasn't even made a peep about a portable version of its Xbox, so they took it upon themselves to design one for Microsoft. (full story...)

It looks awesome! See some photos of the XBox Velocity.



Thursday, September 01, 2005

Tutorial: Watermark Image on The Fly using JSP and Servlet

I'm currently working on projects that required generated watermark image on the fly using Java. I search on the Internet and try to find a third party Java API to help me accomplish my object. The result is little, some Java API like GIF4J, even a light version, will cost me couple hundreds US bucks. I tried to search for Java tutorials, but there is almost none. Luckily, I got some hints from different Java forums and finally get it to work :). I want to shared it with you on here.

Tutorial
I assume you have basic knowledge of Java Servlet, JSP and HTML before you start.

Sample Picture:

Sample Watermark:

Result:


JSP Source:
While define the source "src" of the image in your JSP, point it to your watermark servlet that you will create next.

<img name="myphoto" src="/servlet/WatermarkUtil" alt="mytest" style="background-color:#FFFFFF" />

Remember to config your web.xml for your servlet in JSP container.

Servlet Source:
Create a Java servlet class, add the following code in your doGet & doPost methods.

import java.awt.*;
import java.awt.image.*;
import java.io.*;
import java.net.*;
import javax.imageio.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class WatermarkUtil extends HttpServlet
{
    public void doGet(...) throws ...
    {
        doPost(...);
    }

    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ...
    {
        // load in the sample picture
        URL url1 = new URL( "http://sample_picture.jpg" );
        BufferedImage im = ImageIO.read(url1);

        // load in the watermark image
        URL url2 = new URL("http://watermark_image.gif");
        BufferedImage im2 = ImageIO.read(url2);

        // adjust the Alpha value of watermark image
        Graphics2D g = im.createGraphics();
        g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.6f));

        // combine(overlay) both images, you can adjust the pos of watermark here.
        g.drawImage(im2, (im.getWidth()-im2.getWidth())/2, (im.getHeight()-im2.getHeight())/2, null);
        g.dispose();

        // remember to define your content type of your response
        response.setContentType("image/jpg");

        // grab the servlet outputstream
        ServletOutputStream out = response.getOutputStream();

        // write your combined imaged to the response output stream
        ImageIO.write( im, "jpeg", out );

        //display and close output stream
        out.flush();
        out.close();
    }
}


I hope you enjoy this tutorial.