土曜日, 2月 24, 2007

The Use of A Thread Class

Here is a short reminder for Thread class -- the use of a Thread class in a class that implements a Runnable interface. My point is pretty simple. Supply _this_ argument at construction time! The file will compile all right but the thread won't start if the argument is null.

If you ever care, try with this one. The following link will lead you to the page that will start a Java applet that shows a circle that changes its size with time. The source file is linked on that same page. Here is this:

Thread thread=new Thread(this);

ThreadTest

Flask の Blueprint のテンプレート問題

  Flask の Blueprint は、ルート、静的ファイル、テンプレートをまとめて管理できます。しかし、テンプレートが指定できません。 ここでは、Blueprint の template_folder の問題点と回避策を説明します。 Blueprint のテンプレート問題...