Showing posts from February, 2010

Live, evolution and computational programs

I just came up with a quote that I think it´s cool. Well, to be honest I haven´t done the research to see wether someone else has came up with it already. The Post it´s open to comments if so but I´ll give it a shot:

Life can be described as an evolving network of computational programs, in which the consciousness of our own minds it´s just a side effect.

To come up with it, I have been greatly influenced by my computer science background, Alan Kay and this post by Richard P. Feynman.

For gods sake Windows! just want a daemon!

Today I found myself trying to run an Erlang detached process on a Windows box. I copied all the files to the server, wrote a very simple batch file and ... yep, Erlang was running in the background!

I then logged out and came back to my cubicle and tried to ping the node. There was no way I could talk to it. Back to the server, I noticed that the Erlang detached process wasn't running any more.

So, here is the first conclusion: When you log out, Windows kills all the processes started by the user that was logged in. I asked the admin guy and he told me to set a task to call the batch file. This would allow me to avoid having to log in to launch the process.

That indeed solved the problem but how do you schedule the task? If you set it to start on every machine startup, the process might die or be killed and the process wouldn't be restarted until the machine is rebooted.

If you schedule it periodically, and the process hasn´t died, the second time around, the batch will crash whe…