Skip to main content

Posts

Simple neural network that learns to predict colors (AI Color Predictor)

This is a single layer neural network consists of 4 inputs __4 neurons__ (first is bias=1 & others is RGB color values) and one output __1 neuron__. This neural net trains itself on 4 samples of (RGB) red & blue colors using signum & signum_derivative & dirac_delta functions to classify your inputed color to blue +1 or red -1. You can view the source code on GitHub . Here is the mathematical representation of the idea: - Trainning data samples & Neural Network: - Calculation of the output Y with signum function: - The weight adaptation steps: Screenshots of some tests:
Recent posts

xCrypto 2.0

Secure your files with unbroken NTRU algorithm from quantum attacks. With xCrypto 2.0 you can use Public/Private Key NTRU algorithm to secure (Encrypt/Decrypt) your sensitive files on your android. NTRU is a cryptography algorithm based on lattice cryptography. NTRU is unbroken for now from Quantum Computing Attacks. You can download it from Google play store:

Morse Coder

What is Morse code? So, according to Wikipedia , Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer without special equipment. It is named for Samuel F. B. Morse, an inventor of the telegraph. The International Morse Code encodes the ISO basic Latin alphabet, some extra Latin letters, the Arabic numerals and a small set of punctuation and procedural signals (prosigns) as standardized sequences of short and long signals called "dots" and "dashes", or "dits" and "dahs", as in amateur radio practice. I designed this application (Morse Coder) to help you to encode/decode your messages with Morse code and then you can convert them to (light / sound / vibration) signals on your Android phone. You can download the APK from here . You can also see the source code on github from here .

Zen of Python

Writing programs that actually do what they are supposed to do is just one component of being a good Python programmer. It's also important to write clean code that is easily understood, even weeks after you've written it. One way of doing this is to follow the Zen of Python, a somewhat tongue-in-cheek set of principles that serves as a guide to programming the Pythoneer way. So the Zen of Python is a listing of python principles and philosophies that are helpful in understanding and using language effectively. Use the following code to access the Zen of Python. import this If you run this code, it will print the following text out: >>> The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although

FAT32 File Sorter

FAT32Sorter is an Android app that helps you to sort mp3 files on your memory card formatted with FAT/FAT32 file system. The idea came from one of my friends (A.G), he is using an Mp3 Player device, and when he copy some mp3 files to Mp3 Player Memory card, he found that files is not sorted alphabetically despite he was renamed them like this: 000.mp3,001.mp3...999.mp3. So after doing some research on the internet, i've found that the problem is with FAT32 File system, and i discovered that the FAT file system is sorting files as its precedence in copying (by Last modified date). So if we moves files from sdcard to any other memory (internal or phone memory) and reading them in Array list, then sort this array alphabetically and copying them back to sdcard as they sorted in the array... now files will be sorted. I've wrote this app on android phone with AIDE in Java programming language, it consists of 2 classes: - MainActivity class (App interface functions) - ‎F

Simple AI ChatBot with Python

This is a simple basic code of my Sara AI brain written in Python, Just say Hi, and she will recognize it and respond appropriately. The program consists of 2 parts: 1) [Arrays] of what user inputs to our chat bot. 2) ‎[Conditions] of responses that Chat bot will reply with. So if you add more arrays with more conditions, Sara will be more smarter than now! You can change her name as you like and feel free to teach her something new :) The code:

AI Snake Game

This is an A.I Snake game, written by me in Java script, the snake has a simple memory that is used to store its mistakes in the game to try to avoid later. Its artificial intelligence is still limited. It depends on the next cell checking that needs to move to without taking into consideration its length. So you will see it collides with itself!, so I'm working to develop it to make it more smarter. Here is the source code of the game for learning & developing: Download   Later, I'll publish some comments to explain the code ... Good luck :) Game Preview: *Click on [Play A.I] to start game AI Snake Game By Dev.Hima Score: 0 Play A.I Best Score: 0