Showing posts with label Fun. Show all posts
Showing posts with label Fun. Show all posts

Monday, August 30, 2010

Reveal Them! A Qt entertainment

I do some Qt exercise when I get leisure time. RevealThem is just the after effect but I hope source code will be useful for somebody. While I was over consuming my vacation in front of TV, found a nice program like RevealThem. Hiding a celebrity behind a brick wall, and player can remove bricks one at a time so that, a part of the face is visible. People get higher points if they identify the celebrity with minimum number of picks. I found it was interesting to realize in Qt.
How to use the software?
Step1: Download the program(Go to end of this post)
Step2: Download some pictures of celebrities in .jpg format and save it in images/ directory in the directory where the program is installed.
Step3: Open the executable and click 'Load Image'. then you can pick bricks by clicking on it and select correct answer from the list and click 'Check' button. For each pick you, lose your 10 points.
Step4: This program is just for fun only.

Download source code (Tested in both Linux and Windows - 3.27KB)
Download Windows binary (5.03MB)

Sunday, April 11, 2010

Qt - Ping Pong Example


This is a simple ping pong (not game) play area example in Qt. You can modify this program to make your own arkanoid/ping pong games. I think it is useful for somebody. All files associated with the program with source can be downloaded. If you are Qt beginner like me, this example will help you how to use QTimer class and time interrupts.

Download ArkanoidArea

Saturday, March 13, 2010

Inside the Mosquito killer


Nowadays, people widely uses mosquito killer bats because of their easy usage. The product is imported from China for very cheap price. There's some electronics inside it. If you understand the working principle of that circuit and if you are an owner of soldering iron, you can easily troubleshoot the problems and can use the product for a long time.
The power source of old products was dry cells, while now it is rechargable battery of 2.4V. There is bridge rectifier and a capacitor is used to get enough power to charge the battery. Transistor become ON, when switch is closed and the sudden change in current in the primary coil in the transformer forms a higher voltage. The voltage is coupled to the secondary coil. transformer winding is so that peak voltage will be about 2000V. The diode network only pass a fraction of the output voltage to the metal net.

Friday, March 12, 2010

Slider game using Qt


It is better to do simple things first in Qt before making hands dirty with complex programs. Now I just prepared a slider game using Qt.Hope all of you know how to play slider game. My code is simple and having a slider panel of 3x3 matrix. I know the code is not much pretty. But I just put my source code to download. It may be helpful for beginners. Of course, you can modify the code to satisfy your needs.
Enjoy!

Download slider.zip
Note: You need to recompile the code before using. I successfully compiled the code in Linux. Of course, you can compile it in other platforms without modification of code.

Monday, March 1, 2010

Welcome note on Puppy Linux boot up screen

Is it fun to display a welcome note with your name while booting up Puppy linux? If you think so, you can continue reading. Here I am telling how to set up your Puppy Linux to display "Welcome, {your name}" at boot up. Probably you can do this in other Linux based OS with slight or no modifications. But nowadays bulky operating system intentionally hide the boot up screen with a splash image.
First of all, navigate to /etc/rc.d
Then open 'rc.sysinit' . You should have root privileges in order to edit this file. Read carefully the 'Read me' file before going to do anything. If you are not going to take a risk, back up the file into any other externally accessible directory.
After you open the file in your favourite text editor, just go through the file, you will notice that, this script is automatically executed at every boot up. Go to the end of the file and append the following script.

##########CUSTOM SCRIPT##############
echo -n "

" >/dev/console
/bin/echo -e "\\033[10G\\033[1;34mWelcome, {Your name}\\033[0;39m" >/dev/console
echo -n "

" >/dev/console
sleep 2
###################################

Edit the script with your name instead of '{Your name}'. The script is nothing but an echo statement to the console. It is possible to change the display properties by changing the parameters along with the text. First test it in terminal and then write script is recommended. Now save the file and reboot.
Done.
If you avoid 'sleep 2' statement, you may not see the text at boot up. One best way is remove the line 'sleep 2' and set a login password for Puppy as I did. Then Puppy gives a cool welcome to you and then ask password.

Sunday, February 14, 2010

Yo Frankie: Open Game Project from Blender

Do you remember Big Buck Bunny?

'Big Buck Bunny'(Code-named Peach)is a classical animated short film entirely from Blender platform which is open source. The video reveals the power of Blender of course, and also contains a neat story with full of fun. If you didn't see this short film yet, you are too late, but here is the chance to download. The hero in this film is a big Buck. Other characters are some naughty animals named Frank, Rinky and Gamera. I personally like Frank's acting than others. I think many people realize that secret, that is why the rise of new open game named Yofrankie (Code-named Apricot). The name came from Frank's name and hero is Mr. Frank. You need to download the game (~120MB) which will run on a Blender engine or Crystal space. Another good side of YoFrankie is that you can develop it in your way wince it is open source. A number of good tutorials are there published in the official website. Both Big Buck Bunny film and YoFrankie are released under Creative Commons Attribution License. Watch a video of Yofrankie below:

Wednesday, February 10, 2010

Let's have fun during festivals!

Festivals are not only for entertainment. You can do some cool things. I have just made a fire powered car using commonly available things during festivals. See how:

The things you required:Now, make the things done.
Unfortunately, I can't capture pictures and videos of running the car, because, my mobile phone did something wrong while capturing. Sorry. I don't have another sample to do once again. I will try it next year!

Car after launching.I got everything fine. Even though you think this type of stuffs are gibberish, people like me find entertainment by doing so.

Warning: use a metal or card board plate above toy car in order to avoid over burning. Don't do it in you room. Do it away from your home as well as from inflammable things. Don't launch while you stand behind the car.