Gui Guan’s BLOG

There’s more than one way to do it

Age 1.0beta1

Here is my first Robocode robot - Age.

Age_1.0beta1.png

No need to have an introduction, just have a try if you want. BTW, it uses anti-gravity motion.

  • 3 Comments
  • Filed under: Java
  • Upgraded to Wordpress 2.3

    Finally, I upgraded my Wordpress to 2.3. There is an error with Google XML Sitemaps 3.0b4 or below.

    WordPress database error: [Table 'yourdatabasetable.wp_categories' doesn't exist]
    SELECT cat_id, cat_name FROM wp_categories WHERE link_count >= 1

    For details, see here.

    At this stage, I wish myself upgraded as well. :-D

  • 1 Comment
  • Filed under: Website Log
  • Those ppl met errors in 1.0 or upgrade from 1.0, to save your time, please download config.php directly, and replace the previous one.

    Monsters Editor (MsE) : bring the magic of Fckeditor back to TinyMCE, created by Laurel

    Right, as a plugin for WP Super Edit, Monsters Editor (MsE) brings the magic of Fckeditor back to TinyMCE. So if you prefer TinyMCE as its concision, but used to Fckeditor’s powerful functions, then MsE is your good choice. Let’s take a look at what it can do.

    To open MsE, just click the “MsE” button in TinyMCE.
    Open MsE
    Read the rest of this entry »

    Those ppl met errors in 1.0 or upgrade from 1.0, to save your time, please download config.php directly, and replace the previous one.

    Fullscreen 1.1 for WP Super Edit is a plugin for WP Super Edit. By using it, you can enlarge your TinyMCE editor to fit the full screen of the browser, and toggle between those two views.

    fullscreen_1_thumbnail.png
    Read the rest of this entry »

    Australian English

    Whilst Australians speak English, there are some words and expressions used that are unique to Australia. Here are some of them:

    A
    ANZAC — Australia and New Zealand Army Corps

    B
    barbie(BBQ) — barbecue
    bathers — word used in South Australia to refer to a swimming garment
    battler — someone who works hard but stills only just makes a living
    bikie — motorcyclist, usually a member of a motorcycle gang
    bloke — a man Read the rest of this entry »

  • 3 Comments
  • Filed under: Life
  • Watch BBC World online

    BBC World

    Because I haven’t gotten a TV set in my house, I was trying to watch BBC World via Internet. Without luck, the official site of BBC World didn’t put the video stream as a free service, and I also tried lots of online TV sites, all of them has a invalid stream feed for BBC World. :-( However, I finally found a p2p TV software written by Zhejiang University (China).

    TvAnts_thumbnail.png

    It’s called TvAnts, which is based on BT transfer technology and provide us an awesome quality of live BBC World, and I think it is the best online TV program I met up to now. For more information, please visit http://tvants.com/

    Now, I am just enjoying BBC World. Hoho :P

  • 4 Comments
  • Filed under: Life
  • 老师出书了,学生理应推荐。在Thin写这本书的时候,我有幸试看了第7章 设计时支持。写得非常的不错,十分精炼,pf pf!详情请访问http://www.cnblogs.com/thinhunan/archive/2007/08/13/853292.html

  • 2 Comments
  • Filed under: Life
  • Java simulation for Brownian motion

    RacingParticles

    Here is the Java program written by me to simulate the Brownian motion. In this prac, I tried to use double buffering to improve the performances, but actually it is triple buffering. That’s because the JPane has already implemented the double buffering, so plus mine own copy of buffer to store the background coordinate system and the path of particles, it is triple! Ho ho :P

  • 0 Comments
  • Filed under: Java, Life
  • repaint(), paint() and update()

    Many Java programmers are befuddled by the three methods repaint(), paint(Graphics), and update(Graphics). This is because they are designed to work in a wide variety of circumstances, and they interact in a non-obvious fashion. This happens in several contexts in Java, but GUIs are the most obvious. The designers of Java wanted Java programs to be able to run on any machine that had a Java VM. So, a particular program might be running on a desktop machine, or a laptop, or a hand-held machine, like a personal assistant or a phone. This presents quite a challenge for the designer of an abstract windows toolkit (AWT). It also makes the job of a novice programmer more difficult than it might otherwise be. So it goes.

    i) public void update(Graphics)
    By default update(Graphics) fills the drawable area of a Component with its background color, and then sends paint(Graphics) to the object. Thus, flicker that comes from redrawing the background over and over, can sometimes be fixed by overriding update() (see Code Example 9 on page 238, Simple Java).

    ii) public void paint(Graphics)
    Every Java Component implements paint(Graphics), which is responsible for painting that component in the Graphics context passed in the parameter. When you extend a Component (like when you write a Applet), if you want to display it differently than its superclass, you override public void paint(Graphics) . This was first illustrated in Chapter 3, Simple Java. Read the rest of this entry »

  • 0 Comments
  • Filed under: Java