Saturday, July 31, 2010

Publishing Some Of My Games

I have published some of my old games into Mobango web site as freeware.

Here is the links to them:

1) Fisher Game:


Click Here to go to its page

2) Help Chicken:


Click Here to go its page

3) Bricks Game:


Click Here to go to its page

4) Space War Game:




Click Here to go to its page


I will publish more games later on from my store hope you enjoy them esp the multi-player bluetooth games.

Friday, July 16, 2010

Enhance Your Mind Ability

In this post we will give a small introduction about how to use few rules to enhance the speed of mathematical calculations using your mind...

The 1st advice is to try to calculate every thing in your mind even if you can do the same with few click on the calculator to motivate your mind to focus on these mathematical operations..

We will focus in this post in Multiplication Easiness Rule: (*)

If you have 2 numbers multiplied like 150*100 what you do is just adding the 00 beside the 150 and you get 150 00 so it is easy operation, this is what we will try here is to convert any number into 2 numbers (or more) where the biggest number contain zero(s) so the operation become easier..
Let's take the example of 17*3 we will convert 17 into (20-3) and multiply it with 3 so the result : 20 * 3 - 3 * 3 = 60 - 9 = 51

Let's complicate it more:
43*8 = (40+3)*8 = 40 * 8 + 3 * 8 = 320 - 24 = 344
//it could be also done by 50-7 but 40+3 is easier in calculations..

Here is some other examples:

300 * 56 = 300 * (50+6) = 3000*5 + 300*6 = (3*5)000=15000+ (3*6)00 =16800
109 * 97 = 109 * (100-3)=109 00 - 109*3 =10900 - 327= (10500 + 400-327)=10573
//here we chose to do it 109*(100-3) as easier than (100+9)*97
77*37 = (80-3) * (37) = ...

33*66= (33*(70-4)) =...

I hope these simple rules make the multiplication as easy as you can do it inside your mind without the need to use the calculator :)

Add Zooming Feature To You Web Images


Today we will discuss how to do simple zooming of the images using one of existing java script libraries to do this, the advantage of the selected one, is that it do the zooming without the need to have 2 versions of the images one is large and another small one...

Let's define the easiest simple steps to do it:

NOTE: the selected library URL: http://www.dynamicdrive.com/dynamicindex4/imagepanner.htm , you may go open it and you will see other steps listed there as well.


1.Place the following 2 images in your web application images folder.




2.Download the Java Script files:

http://www.dynamicdrive.com/dynamicindex4/imagepanner.js
http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js


3.Edit the JavaScript file : imagepanner.js to point to the correct folder of the 2 images

//this line need to be fixed
magnifyicons: ['magnify.gif','magnify2.gif', 24,23],

4.In the head of your page or in the imported CSS file:

(You may wish to change the width and height according to the available size on the web page, and alter the border to be dotted or not , its size ...etc.)

<style type="text/css">
/*Default CSS for pan containers*/
.pancontainer{
position:relative; /*keep this intact*/
overflow:hidden; /*keep this intact*/
width:300px;
height:300px;
border:1px dotted black;
}
</style>

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="imagepanner.js">

/***********************************************
* Simple Image Panner and Zoomer- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>


5.Surround the image by the following div:
<div class="pancontainer" data-orient="center" data-canzoom="yes" style="width:400px; height:300px;">

(Adjust also here width and height of the container)

<img src="image URL here"/>

</div>

Of course you can have image URL to a servlet that return a stream of bytes of the image and set the content type of this stream as the image type, so it become dynamic zooming ability..

At the end, don't forget to keep the copyright notice!