Saturday, October 17, 2009

Let's do a simple hack!


If you are not aware of the difference between the words 'Hack' and 'Crack', I recommend you to hear what wikipedia says. Anything you want to do in a propitiatory program like MS Windows which is prohibited by license or it is not intended to do so may be called as crack. But the word 'hacking' has a great meaning which is different from 'cracking'. You can do anything on your open source program. If you are trying to crack your Linux OS which is open source, it may be called as 'hacking'. What is I want to say is that, an open source program can't be cracked because, they provide source code and hacking (cracking!) is allowed by license. If you are trying to beat an open source program, surely it will become a part of development. So an open source program can't be beaten. Hacking is intended for fun, especially by applying intellectual skills on something and and allowed by law. If anything you find violating the law, please call it as 'crack' not 'hack'.
If you are a beginner in Linux, like me, this simple hack will really attract you. This hack is done in my pocket slax 6.1.2 which is installed on my USB pen drive. But you can do this in any linux based distro which has a boot splash screen or login screen. The only thing you need to do is,
Navigate to /boot directory. In pocket slax, it is situated in the following path:
system:/media/sda1/boot
Then you can see one or more image files with .png extension. In slax, it is 'slax.png'. Edit this picture with a suitable image editor and change as you like it. For example, type "Hacked by ". It is interesting that you see your name at every boot up. If you are interested, you can put your photograph. But it is recommended that, you should not change the size of the image. Also, you should not change the name of the image. Of course, you should copy the original image.png file to any other directory in order to undo everything you have done.

Saturday, October 10, 2009

Mouse gestures for Mozilla Firefox


Mozilla Firefox one of the leading power of internet browsers, shows its real power and beauty only when the appropriate add on-s are installed. You can download and use them from Firefox add on page. There are a plenty of add-ons available and no need to specify which is good because it greatly depend upon your tastes. Recently I installed an add-on named All-in-one gestures and I feel it very interesting. You can install by clicking 'add to Firefox' button as you usually do while installing add-on. There provision to change the gesture pattern in the 'preferences' mode. Mouse gesture means that, some operations you done in Firefox such as 'back', 'forward', 'refresh' etc can be done simply by moving your mouse. I experienced no problem with both Windows and Linux platforms. There are tons of interesting add-ons like this. It is really fun to experiment with Firefox add-ons.

Friday, October 2, 2009

Booting from CD ROM or USB devices

Booting from resources other than HDD is very simple, but the way in which configure your system for boot from a particular task may differ. First of all, you should know that, the boot configuration appearing on your monitor is independent of the OS, or any other peripherals connected to your system and it is occupied in your BIOS and it may vary for various type of mother boards. Nowadays, many people use liveCDs or liveUSB loaded with their favorite Linux OS for the sake of portability. So I think this tutorial will be useful to you.

After you power on your PC properly, a splash image will appear within few seconds on your monitor probably mentioning about your motherboard vendor or vendor logo. Some keys and their function may be mentioned on the screen.
For example: F9 : Boot menu F2 : Setup
The keys used for boot setup and boot menu will greatly varied. But the major problem is that this splash screen appears for less than a second in some systems so that you can't even recognize what is written on the screen. Here you should do is that press 'Pause/Break' key in your keyboard (It is positioned in between alphabetic keypad and numeric keypad). Then the screen pauses. Then you can configure as you like it. If you now want to boot system normally, press 'Enter'. Each of the operation will be explained while you are attempting to change this. This will not be explained here because this is different for different systems. But in most systems, if you think that you did something and don't know what is the consequence press 'Esc' continuously and probably one dialog box asks you to save changes. Press n/N for No or y/Y for Yes if you want to save changes.

If you want to just boot from CD ROM or like external devices, good option is that select one resource form the boot menu. The way how to navigate to the boot menu will be specified on the splash screen. If not, try F8 because, many systems having F8 as the boot menu key may not be explicitly shown. In boot menu, you can see several sources. 1.FLOPPY 2.HDD 3. CD-ROM 4.USB HDD .Select one which you want to and press 'Enter'. The system try to boot from the source. If fails, system may try a normal boot or a restart. Sometimes some devices for example USB HDD will not be listed until you inserted your memory stick or pen drive to the system before power up. In this case you should insert the USB device and try a restart and do the same procedure. Similarly, you should insert CD ROM to your drive before selecting boot device. One more thing is that if you are attempting to boot from a pend drive (or memory stick or thumb drive), you should select USB HDD. Some other options like USB FDD, USB ZIP may also be listed. One more problem associated with USB boot is that if you didn't enable USB boot in the boot setup (the key for boot setup will be displayed on splash screen), USB boot will be failure. In some systems you have options to enable/disable USB 2.0. All you need to do is that if a USB boot failure occurs, you should navigate through the boot setup menu and do as your need. In this case, the boot selection will not be saved and need to do the same procedure every time you boot time. Otherwise a normal boot will occur.

To permanently setup a boot configuration, you navigate to the boot setup menu and change the 'boot priority'. In normal case, first boot device will be HDD. You can change it to CD- ROM or USB HDD. One thing be noted is that you should give a priority to HDD as second or third device. Hence, if a boot error occur on the first device, system try on the second device (here HDD), so a normal boot will occur. Change the boot priority to CD-ROM as the first device and second device as HDD is a good practice in order to debug your OS, in case of permanent system crash. Here the system ask to save changes. Press y/Y to say Yes, and this configuration is saved on BIOS for future.

If you do the configuration permanently, every time system checks for first priority device and may feel time consuming if you are waiting for a normal boot. If you are doing it in temporary, every time you need to select boot device. It is recommended that you permanently change boot setup in your Home PC while temporarily do in office PCs.

In the worst case, your motherboard will be entirely different thing and you need o read motherboard users manual. If you didn't got any manual on purchase, you can freely download it from the vendor's website. Probably you need to search by the part number. The part number of your mother board can be found on the top side of your motherboard (Hmmm..Best chance to hack your PC).USB boot is not allowed in some old PCs. But all general purpose motherboards not older than 3 or 4 years can have USB boot capabilities.

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.