Sunday, April 21, 2013

R Package: mcga

Machine coded genetic algorithm (MCGA) is a fast tool for real-valued optimization problems. It uses the byte representation of variables rather than real-values. It performs the classical crossover operations (uniform) on these byte representations. Mutation operator is also similar to classical mutation operator, which is to say, it changes a randomly selected byte value of a chromosome by +1 or -1 with probability 1/2. In MCGAs there is no need for encoding-decoding process and the classical operators are directly applicable on real-values. It is fast and can handle a wide range of a search space with high precision. Using a 256-unary alphabet is the main disadvantage of this algorithm but a moderate size population is convenient for many problems. Package also includes multi_mcga function for multi objective optimization problems. This function sorts the chromosomes using their ranks calculated from the non-dominated sorting algorithm.

Package Url:

http://cran.r-project.org/web/packages/mcga/index.html

R Installation:

  install.packages ("mcga")

For help and example type

  ?mcga

in R console.


Tuesday, December 25, 2012

Space Wars Android Game

Hi everyone! Today, I would like to share the Android game I have just developed. This is the Beta version for now on. The name of the game is "Space Wars Beta". The game was developed with Unity3D Game Engine and coded with JavaScript programming language. Animations and modelling in the game were designed with Blender.

Space Wars Beta
Space Wars Beta
Space Wars Beta
In this game, you'll drive an ufo in space. Your mission is so simple, destroy meteors. Some kind of meteors are going to come to you. All you have to do is to knock off'em. Good luck.

Space Wars Beta
Notice: There are some bugs. That's why it is the Beta release. If you find any errors or bugs, please report them us. Thanks in advance.

You can download Space Wars Beta from this Google Market URL.

Hope you have fun!

Sunday, December 16, 2012

Fast Boy Android Game!

Hi everyone!

Today I would like to share Android game I just developed. This is Beta versiyon for now. The name of the game is Fast Boy. The game was developed with Unity3D game engine and coded in JavaScript programming language. Animations in the game were designed with Blender




Fast Boy Android Oyun
Fast Boy Android Oyun
Fast Boy Android Oyun
The introduction: Fast Boy is a game character. He always runs and picks golds and rings up. Fast Boy also escapes from cannon balls. Here the point is getting 5 at first-level, and minimum 25 at other levels as score and reach checkpoints. By the way, during the game you will see different scenes.

Notice: There are some bugs. That's why it is the Beta release. If you find any errors or bugs, please report them us. Thanks in advance.

There are some bugs. That's why it is the Beta release. If you find any errors or bugs, please report them us. Thanks in advance.

You can download Fast Boy from this Google Market URL

I wish have fun!

Tuesday, October 16, 2012

Encryption Functions in PHP: crypt() and md5()

Hi! In this article, I am going to share encryption functions on PHP programming language with you. Well, there are several functions about this subject, but here the point is crypt and md5.


md5 function is a text encryption. Here the text or string may be probably as password. md5 function makes the text a value which is 32-digit. Sure this value is probably going to be more complex than older text value.
print md5("phpservisi.com");
md5 function's output
The example given above shows us phpservisi.com string value's output with md5 function.

crypt function is the same mission with md5. Namely this is encryption function too. Here the variety is complexity of output. Because of it is some of us use this one, like me :) 

One more feature is the output of crypt function's about making one-way string hashing. crypt function will return a hashed string using alternative algorithms that may be available on the system.

Now, I'm coding about this:


echo crypt("phpservisi.com"); 
echo "\n".crypt("phpservisi.com"); 
echo "\n".crypt("phpservisi.com"); 
echo "\n".crypt("phpservisi.com"); 
echo "\n".crypt("phpservisi.com"); 
echo "\n".crypt("phpservisi.com"); 
echo "\n".crypt("phpservisi.com"); 
echo "\n".crypt("phpservisi.com");

crypt function's output
As you've seen on the top is crypt function's output. I did the same thing 8 times, and crypt function has just given us different results about those.

If you want to learn more information about this subject, you can visit the PHP Manual web page: md5cryptsha1_filecrc32sha1hash

Friday, August 17, 2012

A nice video on RCaller 2.0


A nice video on RCaller is in Youtube now. The original link is in Quantlabs.net. Thanks for the uploader.