[erlang-questions] Charging your phone with Erlang
Sat Feb 7 18:55:48 CET 2009
but you better charge your phone with Basic with it's superior GOTO
10 GOTO 10
John Hughes-7 wrote:
> Here's a little tip.
> Imagine you're in a hotel room with your laptop, but you forgot your phone
> charger. Luckily, you can plug in the lap-top, connect your phone to it
> a USB cable, and then the phone charges... but only while the laptop
> awake. So you need a way to prevent Windows (in my case) from putting the
> laptop into stand-by mode during the night.
> Simple! Start the Erlang shell, and type
> 1> F=fun(F)->F(F)end, F(F).
> The shell will sit there 'till morning, keeping your machine awake and
> phone charging. (Thank you, tail-call optimisation!)
> It's no doubt more environmentally friendly to remember your phone
> but I'm only human and this tip has served me well a number of times!
> erlang-questions mailing list
View this message in context: http://www.nabble.com/Charging-your-phone-with-Erlang-tp21887632p21890719.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
More information about the erlang-questions