COEL is Open-source

On June 3, 2015, in News, by peter

I’m happy to announce that Apr 28th COEL framework became open-source as defined by the standard Apache Licence 2.0.

Check out the code at https://github.com/peterbanda/coel. If you want to contribute to the project contact me at mail@peterbanda.net.

Tagged with:
 

ALIFE 14 Talks

On August 1, 2014, in News, by peter

Giving two talks this week at ALIFE 14 conference at the Artificial Chemistry session and the CoSMoS workshop. The papers available here and here.

Tagged with:
 

UCNC Paper Accepted

On April 14, 2014, in News, by peter

Our paper titled “Learning Two-input Linear and Nonlinear Analog Functions with a Simple Chemical System” has been accepted to Unconventional Computing & Natural Computing 2014 conference which will be held in London, Ontario this summer. Check out a preprint of our paper here.

Tagged with:
 

Our work on chemical learning was featured in a recent article published at Chemistry World by renowned science writer Philip Ball.
Our papers referenced in the article are:
P. Banda, C. Teuscher and M. R. Lakin, Artif. Life, 2013, 19, 195 (DOI: 10.1162/artl_a_00105)
P. Banda, C. Teuscher and D. Stefanovic, J. R. Soc. Interface, 2014, DOI: 10.1098/rsif.2013.1100

Tagged with:
 

Collaboration with GridGain

On February 26, 2014, in News, by peter

Thanks to a GridGain academic licence the COEL framework enjoyes a scalable zero-deployment computational grid, which flawlessly fits to our Spring-backed IoC container. The grid can employ up to 512 cores to run mainly chemical simulations, dynamics analyses, and evolutionary optimizations of rate constants.
In Sept ’13 GridGain and PSU released a short press statement (260 pick-ups) describing our colaboration:
prnewswire.com, bio-medicine.org, hpcwire.com

Tagged with:
 

MySQL Create DB Script with Linux Variables

On July 18, 2012, in News, by peter

Recently I was trying to set up a MySQL database for one of my projects. The major difficulty I’ve faced is that MySQL apparantly does not provide any support for Linux (user-defined) variables… or maybe I’m just lame since I was not able to find that. So after I’ve spent a couple of hours browsing and cursing, I decided to write a bash script that parses a given SQL file, replaces (evaluates) all ${..} ocurrences with the values of Linux variables, and finally runs the adjusted SQL.

It worked well on Ubuntu 11.10 with MySQL 5.1.63.

If you want to use it replace the assigments of all DB variables such as DB_HOST and DB_USER in the following bash script (create_DB.sh) with your own setting.

#!/bin/bash

# The name of the script
SCRIPT_NAME=create_DB.sql

# Variables
DB_HOST=localhost
DB_PORT=3306
DB_ADMIN=root
DB_USER=dbadmin
DB_USER_PASSWORD=xxxx
DB_NAME=db

# Collect variables and substitute
for var in `grep -o "\\$*{\([^{]*\)}" $SCRIPT_NAME`
do
val=`eval echo ${var}`
vars+=("-e s/$var/$val/g")
done

# Run the SQL script
sed "${vars[@]}" $SCRIPT_NAME | sudo -u $DB_ADMIN mysql -v -p -h $DB_HOST -P $DB_PORT

Here is the referenced MySQL script (create_DB.sql):

-- CREATE USER
CREATE USER '${DB_USER}'@'%' IDENTIFIED BY '${DB_USER_PASSWORD}';</code>

-- CREATE DB
CREATE DATABASE IF NOT EXISTS ${DB_NAME} CHARACTER SET utf8;

-- GRANT PRIVILEDGES
GRANT ALL PRIVILEGES ON ${DB_NAME}.* TO '${DB_USER}'@'%' WITH GRANT OPTION;

eNjOY!

Tagged with:
 

Let’s get started

On February 12, 2011, in News, by peter

Hey there… Welcome to my slowly emerging blog / web site! This is supposed to be my very first post so I just would like to assure you that a lot of cool stuff is coming up. I will give my best to mix you a truly epic cocktail of science, technology and culture. At least that’s my intention :)

Stay tuned and check out the site from time to time.

Peace

 

Notice: Undefined variable: wp_sh_class_name in /nfsmnt/hosting1_1/6/f/6fd795a0-0268-4174-9a82-e07e7fb80a35/peterbanda.net/web/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002

Notice: Use of undefined constant XML - assumed 'XML' in /nfsmnt/hosting1_1/6/f/6fd795a0-0268-4174-9a82-e07e7fb80a35/peterbanda.net/web/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048