Archive for June, 2006

06/18 Tasteless

I have just seen two Japanese supporters, watching the Japan-Croatia game, wearing the traditional Kamikaze’s Victory headband. I think it is not only deluded, but also very tasteless.

But what can you expect from football supporters?

The Kamikaze headband

Apparently, idiotic practitioners of martial arts in the West are fond of such headbands… Wonder if so many people died in the Pacific for nothing, really… [do a Google search for Kamikaze headband, too]

Japan Football Idiots

06/16 He loves all our banners

Can’t be arsed to register in order to post a comment there, so I am tracking back…

Got the same email, to a t, but for the name of course, and apparently he loves my banner too…

06/14 Min/Max

Oh well, apparently there are no min/max BIFs in Erlang. Here’s my version, giving back the smallest/largest integer in a lit:

-module(minmax).
-compile(export_all).

max(X)-> max(X,[]).
min(X)-> min(X,[]).

max([H|T],[]) -> max(T,H);
max([],Acc) -> Acc;
max([H|T],Acc) ->
  case (H>Acc) of
    true -> max(T,H);
    false -> max(T,Acc)
  end.

min([H|T],[]) -> min(T,H);
min([],Acc) -> Acc;
min([H|T],Acc) ->
  case (H<Acc ) of
    true -> min(T,H);
    false -> min(T,Acc)
  end.

Erlang

06/14 How?

“Turn On [MSN] Messenger”

How’s one supposed to know to turn on MSN Messenger, if we’re not online anyway? :D

tsk tsk tsk

06/11 Erlang/gs Event loop

I have now a cool-ish event loop in place that declares a buttonpress/click for each known GUI element. An event loop is created with all elements referenced, and basic messages are implemented [clicks/buttonpresses]. If a pushbutton as “quit” as caption, app termination is provided for. Ditto when closing the window. [Mouse] Button presses provide the number of the mouse button, and the position. What else do ya need? ;-)

Erlang