Install MySQL on CentOS

How to install MySQL

Install MySQL
yum install mysql-server mysql php-mysql

How to configure MySQL

Set the MySQL service to start on boot
chkconfig –levels 235 mysqld on
Start the MySQL service
service mysqld start
Log into MySQL
mysql -u root
Set the root user password for all local domains
SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘new-password’);
SET PASSWORD FOR ‘root’@’localhost.localdomain’ = PASSWORD(‘new-password’);
SET PASSWORD FOR ‘root’@’’ = PASSWORD(‘new-password’);
Drop the Any user
DROP USER ”@’localhost’;
DROP USER ”@’localhost.localdomain’;
Exit MySQL

Install Scala on CentOS

cd /tmp
sudo rpm -i scala-2.11.2.rpm

Scala files are now here
tar xvf scala-2.10.1.tgz
sudo mv scala-2.10.1 /usr/lib
sudo ln -s /usr/lib/scala-2.10.1 /usr/lib/scala
export PATH=$PATH:/usr/lib/scala/bin
scala -version

Setting up python env

yum install python2.7
yum install lapack lapack-devel blas blas-devel

pip install virtualenv
cd ~/src/yourprojectdir
virtualenv -p `which python2.7` venv –distribute
source venv/bin/activate
vi requirements.txt
..add ipython, scipy and other dependencies

pip install -r requirements.txt



Design high frequency trading system

Approximation of Algo trading.

Within this post I will outline how high frequency trading systems (algorithmic trading system) are designed. the post is an extraction from a developer conference held in april 2010.

You can take it as a rough design guide for users looking for a way to build their own trading system or to learn how such systems are working. there are serveral posts covering the issue and each post goes deeper into the technical details of the system.

So what actually is high frequency trading? the definition varies from the person that describes it. all will agree to the following bullets:

  • piece of software running on a system to trade (buy/sell) certain asset classes
  • trading activity above the execution abilities of human possible
  • direct connected to a brokerage firm, a stock exchange or other trading network


По сути это сводится к определению оптимистического распределения приорных вероятностей по возможным вариантам среды и вынуждает агента на первых порах вести себя так, как если бы повсеместно были разбросаны замечательные познаграждения.

Becoming a Blogger

Traffic has started growing and I’ve got first referrals. Thanks for instance to for the post referring to my blog. Funny, but initially I considered my blog more as a tool for storing and organizing information rather than a “blog for readers”. However as soon as I got people interested, I’m going to make my posts.. neat and useful somewhat?