06/23 Yeah right…
Suddenly referees make bad judgments; other teams steal victories; and the competition is fixed. Right.
It’s not about football, really, is it? Just misplaced pride… Sigh…
At least, Seoul is going to be quiet, which is a plus.
Suddenly referees make bad judgments; other teams steal victories; and the competition is fixed. Right.
It’s not about football, really, is it? Just misplaced pride… Sigh…
At least, Seoul is going to be quiet, which is a plus.
<nickee> how can i se the size on layers in photoshop ?? <unhold> ctrl+acn return ctrl+v alt+ii <unhold> common shortcut <nickee> huh o_O <unhold> yeah, sometimes i think photoshop evolved from emacs
I had heard about Erlang’s hot code swapping. But never used it so far. Well, I just tried it today, and I am still the bits of my jaw, which dropped while running the following code:
Eshell V5.4.3 (abort with ^G)
1> c(m).
{ok,m}
2> Pid=m:init().
rebooting...
<0.36.0>
3> Pid!{self(),status}.
M/status: tagadax
{<0.29.0>,status}
Here I change the code to return “tagada” [no -x] next time the code is run.
4> c(m).
{ok,m}
5> Pid!{self(),code_switch}.
Requesting reboot...
{<0.29.0>,code_switch}
6> Pid!{self(),status}.
M/status: tagada
{<0.29.0>,status}
7>
And, hang on to your socks, here’s the full code:
-module(m).
-export([init/0,loop/1,message/0]).
message() -> tagada.
init() ->
io:format("rebooting...~n",[]),
spawn(m,loop,[message()]).
loop(M) ->
receive
{_, code_switch} ->
io:format("Requesting reboot...~n",[]),
m:loop(m:message());
{Nugu, status} ->
Nugu ! M,
io:format("M/status: ~w~n",[M]),
loop(message())
end.
m:loop(m:message()); is the full code doing the hot swap. Nice eh? When you do a call to a fully qualified function, MODULE:FUNCTION, the code is hot swapped. That’s it… Amazing!
Via Standblog, Open Web Korea. Nice design – albeit by Andreas Viklund, not très Korean… – but would have been better had they pushed the envelope a bit and converted to UTF-8… I guess another decade is required for that.
Note the 고발 [file a complaint; report someone] activities, something that is very Korean. I like the idea of reporting official websites that require IE to function – and they’re gonna be fuckin’ busy, pardon mon French, since ActiveX/IE-only web sites are the norm in Korea, not the exception! I am a little more reserved about their planned Hall of Shame!, pointing out personal web sites that are of “low quality”…
It’s nice to see Koreans move toward Open Standards – I’ve noticed a few web sites that are friendly to non-IE browsers, but as far as Firefox, Opera and Safari are concerned, it’s still the dark ages over there. I guess I’ll be watching this site…