<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0" -->
<rss version="0.92">
<channel>
	<title>Blog of Meng Yan</title>
	<link>http://mengyan.org/english</link>
	<description>Life is a sweet but sometime a bitter melody, and I love every note.</description>
	<lastBuildDate>Mon, 29 May 2006 09:17:43 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Why use do {} while(0) in macro?</title>
		<description>Morgan wrote a good article which discussed how debugger works. You can check 
this entry here(This article is in Chinese :P).
I noticed one code in Morgan's comments:
[code lang="c"]
#ifdef _DEBUG
#define LOG_INFO(format, str) do { printf(format, str); } while (0)
#else
#define LOG_INFO(format, str)
#endif
[/code]
So, do you know why he use "do {} while (0)" ...</description>
		<link>http://mengyan.org/english/2006/05/29/why-use-do-while0-in-macro/</link>
			</item>
	<item>
		<title>Singleton &#038; Lazy Initialization</title>
		<description>Do you know how to use lazy initialization in Java? There's already many thread discussing this problem in the comunity, just to conclude here.
Due to the JVM memory model, Double-Checking Locking (DCL) will not work in Java, I'd like to recommend two articles talking about this.
The &#34;Double-Checked Locking is Broken&#34; ...</description>
		<link>http://mengyan.org/english/2006/03/20/singleton-lazy-initialization/</link>
			</item>
	<item>
		<title>Really! Simple Sharing!</title>
		<description>Just read Ray Ozzie's post of "Really Simple Sharing" and many comments, mark it here.

"Microsoft XML News" - Tim Bray

"Sharing at so many levels!" - Dave Winer

"Microsoft proposal: Simple Sharing Extensions for RSS and OPML" - Alex Barnett

"RSS + OPML/ SSE = Really Simple Synchronization"

And here's the SSE spec

Simple Sharing ...</description>
		<link>http://mengyan.org/english/2005/11/25/really-simple-sharing/</link>
			</item>
	<item>
		<title>Method signatures of delegate and interface in C#</title>
		<description>I ever write an article about the  event handling of Java and C#, just want to add some of C#'s delegate.
Delegate has no semantics carried, so does interface, it only provide method signatures.
Let's look at the following example:
[code lang="java"]
class Person
{
    public interface Runnable
    ...</description>
		<link>http://mengyan.org/english/2005/11/18/method-signatures-of-delegate-and-interface-in-c/</link>
			</item>
	<item>
		<title>Farewell, Sun</title>
		<description> </description>
		<link>http://mengyan.org/english/2005/11/14/farewell-sun/</link>
			</item>
	<item>
		<title>Get the Stack trace information in Java SE 5.0</title>
		<description>JAVA SE 5.0 provides two very useful APIs to help us debug our program, All this two are all class &#34;Thread&#34;'s method:
public StackTraceElement[] getStackTrace()

  Returns an array of stack trace elements representing the stack dump of this thread.  This method will return a zero-length array if this thread ...</description>
		<link>http://mengyan.org/english/2005/10/21/get-the-stack-trace-information-in-java-se-50/</link>
			</item>
	<item>
		<title>My English Blog</title>
		<description>I have not updated my english blog for a long time, I decided to start a new one here. I will backup all my english posts here, sorry for the incovenience and hope these will do you some help. 
BTW: I also write chinese blog, if you are interested, you ...</description>
		<link>http://mengyan.org/english/2005/10/15/my-english-blog/</link>
			</item>
	<item>
		<title>How to offset Lilina&#8217;s display timezone?</title>
		<description>One of my US friends ask me how to offset the timestamp of Lilina RSS aggregator. He lives in the east coast but his web host is in the west. 
In fact, it's very easy to do that, and I do think Lilina should add such support.
1) Add the following ...</description>
		<link>http://mengyan.org/english/2005/08/22/how-to-offset-lilinas-display-timezone/</link>
			</item>
	<item>
		<title>Scripting for Java</title>
		<description> JSR223 &#34;describe mechanisms allowing scripting language programs to access information developed in the Java Platform and allowing scripting language pages to be used in Java Server-side Applications.&#34;
 
   This defines a framework to allow scripting language programs to access information developed in the Java platform. We currently ...</description>
		<link>http://mengyan.org/english/2005/08/11/scripting-for-java/</link>
			</item>
	<item>
		<title>Events Handling in Java and C#</title>
		<description>Actually, this article is posted about one year before, at here. Today, I happened to see this article, interesting. So, I found my old entry and post here. Also, I post all the comments at the end, it's really valuable I think. 
Recently(2004.08.06), a friend of mine discussed the Event ...</description>
		<link>http://mengyan.org/english/2005/07/22/events-handling-in-java-and-c/</link>
			</item>
</channel>
</rss>
