Predix.io: Example Graph Expression Language (GEL)
Cloud Foundry Starter Guide for Predix.io
Installation
Install Command Line Interface (CLI)
Install UAAC using command
$ gem install cf-uaac
Continue reading
Cloud Foundry Barber Shop Simulator using RabbitMq service
How to use Kafka message broker for Dijkstra’s Sleeping Barber problem.
How to install Aerospike using Vagrant on your local machine.
How to deploy MySQL service in Cloud Foundry on your local.
In previous post we talk how to deploy Cloud Foundry on your local machine.
Today I want to share some experience how to deploy MySQL service.
Continue reading
Tic-Tac-Toe Fork Tactics
Nice! Very amazing even Tic-Tac-Toe has a fork tactic.
Recently I have made a tic-tac-toe game and uploaded it onto Google Play. Here are the types of strategies in my Tic-Tac-Toe game.
1. Impossible difficulty: the computer blocks all attempts to win, and can detect when certain strategies are being used against it, which it knows how to counter.
2. Medium difficulty: the computer blocks obvious victories and takes the center, but is susceptible to fork strategies, which it cannot anticipate and counter.
3. Easy difficulty: the computer picks a random tile that is available and moves there.
Below I want to talk about fork tactics that can implemented to beat the computer program. In medium difficulty, the computer can only see one step ahead of when selecting its move. It will win, prevent the player from winning, or select a random tile to move to. With basic planning and some luck, it is possible to win the medium setting…
View original post 208 more words
How to deploy Cloud Foundry on your local machine.
In this article, we’ll look at bosh-lite open source project to deploy CF in a single Virtual Machine (VM) using Vagrant and VirtualBox.
Prerequisites
You must have a mac with 16GB ram. Continue reading
Sleeping Barber Problem
Summary
A year ago I got an interview where the interviewer asked me to solve the well known Dijkstra’s Sleeping Barber Problem. I did it with blocking queue. The code is clean and simple. I hope you enjoy it as well.
Continue reading
