p = &p;
Erlend
This user hasn't shared any biographical information
Posts by Erlend
Tur til Estenstadmarka
Sep 5th
I finværet i dag gikk vi en tur til Estenstadmarka. My Tracks logget turen vår, og jeg tok også noen bilder:
View Tur til Estenstadmarka in a larger map
Mitosis Animation
May 11th
While studying for a biology class I came over the following gem and just had to share. Cute and educational!
Vector Drawing is fun!
May 10th
How Neurons do Differentiation
Mar 22nd
Nature is simply amazing.
Today I learnt…
…how neural networks (think brains) can do differentiation by using temporal inhibition – i.e. by using a delayed signal. In the figure below, the node α will send a signal to two nodes. One of them – β – will pass on an inhibitory signal of the same strength as its input signal, but with a delay. Thus, when β‘s signal gets sent to the final node, α will at the same time be sending its “next” output signal to the final node.

“Differentiation” by using delayed inhibition. Solid lines indicate excitatory signals and the dotted line an inhibitory signal.
Therefore, the final node will receive two signals: the current output of α and the inverted previous output of α. If the final node sums these together its output will therefore be α‘s current value minus its old value – i.e. positive if α‘s output signal is increasing and negative if it is decreasing. Simple and beautiful!
Game of Life
Mar 20th
While reading about cellular automata in preparation for an essay it struck me that I have never actually written Conway’s Game of Life. No, really!
To correct this embarrassing fact I quickly wrote a version in Haskell using the GLUT bindings.
Code Reading as a Team Activity
Mar 20th
I am currently reading “Coders at Work” by Peter Seibel, a really interesting read for a code monkey like me. The book is full of good tips and experiences from actual coders who learnt by doing. Peter Seibel’s questions are really good – no doubt because he himself is a programmer – and all his interview subject have different and interesting stories to tell.
HsUnixCompat.hs on Debian
Jan 17th
Just so that a others (hopefully) will be spared the annoying and time-consuming work of tracking down the source of the following error message:
* Missing header file: HsUnixCompat.h
On my Debian system (Debian 5.0.3 – “Lenny”) the missing package was libbsd-dev:
$ cabal unpack unix-compat
Unpacking unix-compat-0.1.2.1…
$ cd unix-compat-0.1.2.1/
$ runhaskell Setup.lhs configure -v3
[…]
/usr/bin/gcc returned ExitFailure 1 with error message:
In file included from include/HsUnixCompat.h:1,
from /tmp/18515.c:1:
/usr/lib/ghc-6.10.4/unix-2.3.2.0/include/HsUnix.h:79:21: error: libutil.h: No such file or directory
$ apt-file search libutil.h
libbsd-dev: /usr/include/libutil.h






