Posts from 2012-10

Install Node.js, NPM and node-bitcoin-explorer on Debian Squeeze

http://benreuven.com/udiwiki/index.php?title=Bitcoinjs&printable=yes#Install.2Frun_bitcoin-explorer http://www.giantflyingsaucer.com/blog/?p=2775

su
apt-get update
apt-get install git-core curl build-essential openssl libssl-dev
exit
git clone https://github.com/joyent/node.git && cd node
./configure
make
su
make install
exit
node -v
cd ..
wget http://npmjs.org/install.sh
sh install.sh
npm -v

Let's install node-bitcoin-explorer

https://github.com/bitcoinjs/node-bitcoin-explorer#readme

su
apt-get install libgmp3-dev pkg-config
npm install bitcoin-p2p
npm install express
exit
git clone git://github.com/justmoon/node-bitcoin-explorer.git
node node-bitcoin-explorer/app.js

Not working yet! Maybe I should wait for some more days...

...

Read on

Maximum Value in 2D Array in Matlab

Finding the value and the position of the maximum value in a 2D array (or the first one if there are more than one maximum values) can be done like this:

[v,ind]=max(X);
[v1,ind1]=max(max<span...

Read on

Creating a Gaussian Window in 3D Using Matlab

If you want to create a gaussian window with Matlab in three dimensions (as you can do in two dimensions with the built-in gausswin()) you can use the function gauss3D() found on MATLAB Central:

S = gauss3D(20,20,7);
slice(<span...

Read on