Monday, September 14, 2009

Battle Game - The computer thinks!

Recently I built a game and named 'Battle' as a consequence of my studies in the field of artificial intelligence. As a first step, I built a mathematical model instead of more flexible neural network model. The work on neural model is on the way and the work is very slow. The mathematical model also not much efficient but I took care to make the program 'act' as intelligent (I know intelligence is needed to act!). Rarely the program may crash. I not interested to make this game for commercial use and I am givin it under GPL. The program is not much pretty both in efficiency and it's intelligence. Since I am not a proffessional programmer, the rules for a good program may not be satisfied. I compiled it in C++, but the entire structure is like C.
The game is like ordinary 'Tic Tac Toe'. but has a little difference that maximum number of players is limited to 3 and If you placed your all three players, you can move them to adjacent places to align the players in a line. For the simplicity of learning the game I have put a video of how to play the game.



I have built a Qt (which is cross platform) GUI for my game for beginners but have put also the CUI mode game for code diggers. Even though this game is not intended for entertainment surely it provide some entertainment if you read the code. I need you comments to speed up the development of neural model of the game. I did all the work in win32 platform and linux users also can compile the code because, Qt is cross platform. But you need to install Qt on your distro.
Here's the download links:
GUI BattleGame (Recommended)
CUI version 1a.0
CUI version 1b.0

Hackthissite.org A hacker's university!

Hackthissite.org seems like a hacker's university. This website provides a good stuffs useful for hackers (crackers also). The hackers community is really powerful and active. Only you have to do is facing different types of hacking problems and find a quick and easy way to solve it. If you are a perl programmer or a javascript hacker, it is a plus. Innovative php users get the points more. A deep knowledge in html is not needed. Above all, the most important thing is your common sense. The problem phase is broadly classified in to:
personally I felt basic and javascript is good for beginners, but advanced problems like programming missions are needed to eat more points. Earning points is not for just earning points, but it will give you some reputation. You are ranked by your points:

Pentitioner-0 Points
Script Kiddie-700 points
Apprentice-1700 points
Wiseman-3200 points
Master-5400 points
Hacker-7000 points
Elite-8400 points
Sage-10000 points

W3schools help you a lot in learning web programming. Navigate to hackthissite.org and show who you are.

Friday, September 11, 2009

Make your own animations using Gimp


Hey Gimpers,
Gimp is not only an 'image manipulation' program. You can build your own animations using Gimp. It is very very easy. Just try it. There are plenty of tutorials available on the Gimp official website.
Click here for a nice and intuitive video tutorial.

Wednesday, September 2, 2009

Bhuvan, still have a lot of void


ISRO(Indian Space Research Organization), launched Bhuvan , a Google earth for India (But more than Google earth) after the successful launching of Chandrayan-1. In the first sight, it is like Google earth, but tons of information is there and covering almost all over India. Bhuvan is a strong rival for Google earth, and seems better view than Google earth and have some good features, and is more informative. Currently, Bhuvan works only on Win32 platform. You need a program (about 15MB) and a need a good broad band internet. Bhuvan works fairly well in my system with 2GB RAM. All you need to play with Bhuvan is included in their website.
Bhuvan has enough tools to find exact area, length and other terrestrial info. Bhuvan works well even though you have low bandwidth network because it is designed such a way that it covers almost Indians. I personally don't know Bhuvan supports current GPS systems.

Monday, August 31, 2009

Bluetooth interactive console using pyS60

Nowadays, text messages via mobile phones are shortening to small, but difficult to understand language. I don't think whether the major reason behind this shortening is economic, but most people feel tedious to type text through a 4*3 panel. Typing a program like, C or python in correct syntax is again a tedious work. You can use bluetooth console, in order to avoid this problem effectively. Here I describe how to setup bluetooth consloe communcation in your MS Windows XP platform. For beginners, this procedure may feel ambigous. So I tried my maximum to describe it with screenshots.

If you are not aware of pyS60 please read this.

You can find some other tutorials here:
s60python
nokia wiki
pys60 Library Referance
Yet another tutorial
Lecture

The above links were extremely useful to me. The procedure is repeated here, but I tried to describe it in rather simple way. If you feel any difficulties, please inform me.

Setting up bluetooth interactive console in winXP

step1: Plug your bluetooth device into your PC (any USB port). Then Run your bluetooth driver program which you installed from the CD/DVD when you buy your bluetooth dongle.
Then automatically a serial port is assigned for it. In my PC, it is COM6. You can do step 5 in case you don't know the COM port your PC supported.

step2: Run command 'hypertrm' in your run window. Run window can be opened by clicking Run option from the start menu.

step3:You will get hyperterminal opened like this:

Enter any valid name for your connection and select a suitable icon and forward.

step4:Then you will get another box like this:

Type any 3 digit area code and phone number.Your country or region may be automatically filled. If not, do it manually. Select COM6 from 'connection using' lineEdit tab. It may be changed. You will get which COM port your computer assigned (If you didn't get it, notice first screenshot)

step5:Take your symbian smart phone with pys60 installed. Turn your bluetooth ON and open pys60 application. From 'options' menu, select 'bluetooth console'. Your application then searches for blutooth device. You can optionally select it as your default connection.

step6 (Error Debugging): You are now probably connected successfully. Not yet? Check your connections. Check whether you run your bluetooth driver.If your bluetooth driver is running, a symbol of bluetooth will appear on the panel (see screenshot 1). I used Enter blutooth dongle (part number:E-UBTV) from entermultimedia. and it's driver(BlueSoleil). The driver is downloadable in case you lost the CD/DVD with your dongle. If you can type anythong on the white blank screen of hyperterminal, you are probably done everything. Else, you should check the whole procedure.
In any case, you should plug out the dongle and replug.
Didn't connected yet? Some mysterious powers are playing around you ;-)
I am happy to help if you can't find any way to connect.


step7: If you are successful in connecting your mobile, you are done.

step8:You can do anythong with python. Try these

step9: While you close application, you get a dialogue box and click yes.

You can save hyperterminal settings for the future use. Then when you run 'hypertrm' command, you will get a window like screenshot 2. simply close the box named 'Connection Description' and then you can open the saved file (here, pybluetooth.ht). Again there is an option to save the connection in your mobile and make it as default connection.

Friday, August 28, 2009

Slax- A brief review

Yesterday, I found some good stuff on the official website of Slax (It is a simple but very beautiful distro. Yes, it's build up of KDE). Website itself is very cute and everything is simple as like SUSE or Mandriva. I know some real geeks may not like the entire structure of slax, but it will be stunning those who were allured with Microsoft Windows OSs. The simplicity makes everything easy.
One more advantage is that they give a free 30MB online memory which can be easily be used like ordinary disk drives. The memory of 30MB is free for slax users for unlimited period even if you didn't use it for a long time (The info is from the official blog, the unlimited period may be varied. But they didn't commented about it yet). You can use the online memory from any machines that supports slax, or any other OS, even Windows. A 200MB iso file or tar file is to be downloaded in order to make a liveCD or USB. I installed latest version of slax (slax6.1.2) to my SanDisk Cruizer 4GB pendrive and it works fine. A live CD can easily be created, but to do USB installation, you need to work for 2 minutes.
The whole procedure can be done in your windows platform itself. Try this link.
Another fantastic feature I've seen in their website is to run an application without actually installing on our system known as 'activat'ion. Almost all general purpose applications are available as .lzm binary format which is ready for the installation without any dependencies. You can select which software you want to use from modules page. There are three options - first to download (normal download for later installation), secondly 'add to build' which helps to customize your distro before download. If you want to check whether the software listed is good, just do the third method -activate. Then you can use the software as you have installed it in your system, but actually not.

The major advantage is that it is pocket linux (handy) and can be used everywhere. But personally I felt that it has less hardware support compared to Puppy Linux. But I stil like slax because of it's greenish beauty!

Happy slaxing!

Wednesday, August 26, 2009

Linux Demo? What's the hell?

One of the reason why I love linux a lot is that it has no barriers at all. Many programs usually comes as a demo version which will not not be as much handy as a proffessional or full version. Demo versions seems sometimes nasty, and is too dry to wet out appetite. So I hate the word 'Demo' itself.
But what's going on there is the arrival of "Demo Linux". I just wondered for a while and navigated to the official website.
But I found there is nothing to afraid and found some good stuff. How many of you felt boring while repeatedly installing and formating to find a suitable distro. Live CD's reduces this problem to a great extend. But now this problem is greatly dealt by Pendrives (Memory stick). Demo Linux is specially built linux distro to be alive!. That means there is no need of a hard disk at all. A 32MB of RAM is enough to work with it. Hope it will be useful for those people who loves to be small.
Also read about Puppy Linux Slax and Kolibri