Saturday, December 29, 2018

Happy Quaid-e-Azam day (2018 Dec 25)


.
Muhammad Ali Jinnah
Lawyer
Founder of Pakistan
Born: December 25, 1876, Wazir Mansion, Karachi
Died: September 11, 1948, Karachi
.
~~~   ~~~   ~~~
.
Happy birthday day
of
our beloved Quaid-e-Azam
Muhammad Ali Jinnah .
.
May
all his dreams
about our dear homeland Pakistan
come true.
.
Lets
join hands to pay tribute
to
our great leader.
.
May
the spirit of freedom
be with us always.
.
Salam
Quaid e Azam Mohammad Ali Jinnah
.
Salam PAKISTAN!
.
~~~   ~~~   ~~~
.
“Aey Rooh-e-Quaid
aaaj kay din
hum Aap se wada kartey hain,
.
Daalengey
fiza main wo jazbey,
kaghaz pey jo likha karty hain.”
.

Tuesday, September 18, 2018

My one gamla Kitchen garden - 180918Tu

  My One Gamla Kitchen Garden  
.
(An adventure with Green chillies in 2018)
Version: 180918Tu
.
For some time, may be years, now it is almost my habit that I sow seeds of different vegetables and fruits in one or more gamlas (flower pots) or kyari (flower bed, plant bed) of our lawn. I do this only for testing what happens: whether they germinate or not. In most cases they do germinate.
A few months ago a Chilli plant (facing heaven pepper 'skyward-pointing chili pepper') whose seeds I once sowed in a gamla (flower pot) and that was giving it's vegetable/fruit frequently, started to show signs of decay. Despite my efforts to save that Chilli plant it died, after trying to live. After a few days of that Chilli plant's death one day while I was feeling sad for that now dead Chilli plant and watering my other plants in our lawn I saw a green Chilli hanging from a small Chilli plant in a nearby gamla (flower pot). View of that hanging green Chilli, partially hidden behind Chilli plant's leaves, made me happy again.
After almost a week of that Chilli sighting I took IshI, my 3.75 years old niece, to show that Chilli. By now color of that green Chilli was changed to red color. Because IshI for the first time saw Chilli hanging from it's plant in real life so she liked and enjoyed that moment/experience very much. That excitement and happiness of IshI made me to save that Chilli by taking it's photos.
.
I am sharing photos, I took of that red chilli, in the following.
.
.
.
.
.
.
.
.
.
.
.
.
.
After taking that ripe Chilli's many photos I helped IshI pluck it from plant and now that Chilli is in process of drying. After that I and IshI will again sow it’s seeds in some gamla (flower pot). So then our experiment cum adventure will start over again . . .
.

If there are any mistakes then I will surely remove them whenever found.

.


Wednesday, August 15, 2018

Happy Pakistan independence day 2018


~~~
فاتح فیملی کی جانب سے،
Fateh family ki janib se,
~~~
پاکستان کا اکہترواں یوم آزادی،
Pakistan ka ikhattarwan youm e aazadi,
~~~
تمام
tammaam
~~~
پاکستانیوں اور پاکستان کے دوستوں کو
Pakistanion aur Pakistan ke doston ko
~~~
مبارک ہو۔
mubarak ho.
~~~
پاکستان پائندہ و تابندہ باد۔
Pakistan Painda o Tabinda baad.
~~~

~~~
[۲۰۱۸ اگست ۱۴ منگل]
[2018 Aug 14 Tue]
~~~

~~~
خورشید فاتح
Khursheed Fateh
~~~

Monday, July 23, 2018

Simple Housing Scheme Plan - 180723Mo

  Simple Housing Scheme Plan  
.
(An expandable idea)
Version: 180723Mo
.
Some years ago I was thinking how to improve over-all scheme of area where I live. During that period I made different plans, one after another. Each plan had their own set of plus and minus points. But because the area where I live was and is fully / mostly developed so there was no scope / chance for any major modification. Plus, all these years, I kept my these thoughts to myself and before sharing here never even hinted about it to any one.
.
After getting my that timely idea I started making my own concept multi-dimensional plan for some future housing scheme. Here I am going to share one dimension  (Utility area: Limited to Play area cum park in this post) of that Plan.
.
Idea was to have a housing scheme which also has structured system of utility area (play area, green area 'area reserved for trees etc', school, market etc) for all type, age of people of area. So in any given time as many as possible number of people can utilize and enjoy them.
.
To achieve this target I divided my concept housing scheme into many set like layers. With layer 1 at bottom and layer N at top. Every layer except layer 1 was made of 10 units of immediately lower layer. Meaning layer 1 has no child layer and layer N have no parent layer.
.
These layers are explained with images in the following paragraphs.
..
Layer 1:
This is basic or bottom layer of scheme. As can be seen in following image there is a green colored rectangular shaped utility area (play area in this case) in center of this layer and light-golden colored rectangular shaped 10 plots for houses are on two opposite and longer sides of it. This play area is shared by these 10 houses and any person can enter into this play area only through any one of these houses. This play area is made with privacy and safety like this so that it can be used by children under 5 years of age, of these 10 houses safely.
.
In the following image Purple color is used for outline of house plots, Utility area and Layer it self  Green color is used for Utility area and Light-Golden color is used for House plots.
.

.
.

.
Layer 2:
This is 2nd layer from bottom of scheme. I explained before that every layer, except 1st layer, in this scheme is made by using a fixed number of Units from lower layer plus a Utility area. So, according to that rule, this 2nd layer is made up of 10 units of 1st layer and a utility area (play area and park in this case) is also allocated in center of this 2nd layer plan. This can be better under stood by observing following image.
.
As can be seen in the following image in this layer-2 rectangular shaped Utility area is in the center of the layer-2 and rectangular shaped 10 units of layer-1 are on two opposite and longer sides of it. In this layer-2 Utility area is surrounded by road for easy access for all. In this layer-2 Utility area is divided in many parts and each part is either a Park or Play area. Park will have jogging track, flower beds, trees, benches, swings and other useful items for children to play and enjoy. Play areas will be covered with net so that many persons or teams can use these play areas at any time. These play areas will be mostly for school children of the area.
.
In the following image Blue color is used for outline of Layer-2 and it's Utility area.  Green color (any shade) is used for Utility area of Layer-2. Gray color is used for roads in Layer-2. Light-blue color is used for path ways around Utility area of Layer-2 Units of Layer-1 are used as it is.
.

.
.

.
Layer 3:
This is 3rd layer from bottom of scheme. I explained before that every layer, except 1st layer, in this scheme is made by using a fixed number of Units from lower layer plus a Utility area. So, according to that rule, this 3rd layer is made up of 10 units of 2nd layer and a utility area (play area, park, school, market etc in this case) is also allocated in center of this 3rd layer plan. This can be better under stood by observing following image.
.
As can be seen in the following image in this layer-3 rectangular shaped Utility area is in the center of the layer-3 and rectangular shaped 10 units of layer-2 are on two opposite and longer sides of it. In this layer-3 Utility area is surrounded by road for easy access for all. In this layer-3 Utility area is divided in many parts and each part is either a Park area, Green area, Play area, School area or Market area. Park area will have jogging track, flower beds, trees, benches, swings and other useful items for children to play and enjoy. Each Play area will be covered with net so that many persons or teams can use these play areas at any time. These play areas will be mostly for post school children and other elder persons of the area
.
In the following image Red color is used for outline of Layer-3 and it's Utility area.  Green color (any shade) is used for Utility area of Layer-3. Gray color is used for roads in Layer-3. Light-blue color is used for path ways around Utility area of Layer-3. Units of Layer-2 are used as it is.
.

.
.

.
As can be observed the above mentioned scheme is simple and recursively defined. Meaning it can be expanded into next above level without any difficulty. It also retains its main look throughout its expansion up wards. Thus it is easy to implement any where in the world.
.
Plus this above mentioned scheme will reduce chances of children playing on streets, roads or on empty plots. Thus reducing the chance of any accident like risks.
.
Note: In above images outline color of Purple is used for Layer 1, Blue is used for Layer 2 and Red is used for Layer 3. Green color (any shade) is used for Utility area.
.


Tuesday, June 26, 2018

Tower of Hanoi - 7 - c sharp - 180626Tu

  Tower of Hanoi in c#  
.
(Console application)
Version: 180626Tu
.
Long time ago, for the first time, I came to know about 'Tower of Hanoi' puzzle game through a book on 'C/Turbo C' and another book on 'Data structure'. Both these books were in our course and both books were very good.
.

.
Turbo C's that book was and still is
.
The Waite Group's
Turbo C
Programming for the PC
By
(Robert Lafore)
.

.
Data Structure's that book was and still is
.
Schaum's Outline of
THEORY AND PROBLEMS
of
DATA
STRUCTURES
Seymour Lipschutz, Ph.D
McGRAW-Hill BOOK COMPANY
.


.
In 'C/Turbo C' book there was an example program for playing 'Tower of Hanoi' puzzle game  (Chapter #: 16, Chapter name: C++ and Object-Oriented Programming, Section: Towers of Hanoi) and in 'Data structure' book there  were 2 example algorithms for solving 'Tower of Hanoi' puzzle game (Chapter #: 6, Chapter name: STACKS, QUEUES, RECURSION, Section: 6.7 - TOWERS OF HANOI).
As far as i remember now, then I wrote both examples in 'Turbo C' and enjoyed playing with game as well as with code. That code was simple but good for 'C/Turbo C' learning level. Then time fast forwarded for around a  decade and this time I made 'Tower of Hanoi' puzzle  game in 'HTML / JScript' using beautiful and solid FrontPage. This time Game environment was much advance then before and more colorful also.
Again time fast forwarded for around a decade and this time in memory of my last efforts for 'Tower of Hanoi' I decided to re-make that puzzle game in c#. Because I was making this version in memory of last 2 efforts plus more so this time I made it as (a) 'Console application' and (b) 'Windows Forms application'.
Here in this post, in the following paragraphs, I am sharing 'Console application' version of 'Tower of Hanoi' puzzle game made by me in c#.
..
Salient features of application:
This puzzle game is one player console based game. This puzzle game is controlled / played by keyboard keys. What keys are required when, is always displayed on screen. Mostly alphabets and arrow keys are required.
.
Screen shots of 'TowerOfHanoi_07' with description:
Following are screen shots of 'TowerOfHanoi_07' at different stages with their description.
.
Application on Load:
'TowerOfHanoi_07' console application looks like in the following image when it loads. Author information is displayed on top row. Under that in green rectangle are displayed (a)_Game objective and (b)_Rules. Under that  a prompt is displayed asking user how many disks he/she wants to play with. At the bottom of the screen is status line which displays (a)_Application mode 'Input' meaning application is expecting an input from user and (b)_Status  message (Message tells what User needs to do or what Application is doing at any stage).
.
.

.
Game started: (Move disk from)
When none '0' (on '0' game quits) number of disks is entered in first screen game starts and following screen is displayed. Second line from top line tells what is expected / required from player. 3rd line form top tells (a) min. numbers of moves required for solving current puzzle and (b) current move number. Under 3rd line 3 towers in red (with selected number of disks on it in yellow colors), blue and green color are displayed. On line under towers game asks for and gets tower name for moving disk from. On status line useful information is displayed.  Pressing 'X' here will end this game and take to first screen.
.
.

.
Game started: (Move disk to)
In this screen every thing is same as in 'Game started: (Move disk from)' screen except this time game is asking for and getting tower name for moving disk to. On status line useful information is displayed. Pressing 'X' here will end this game and take to first screen.
.
.

.
Game after some moves:
'TowerOfHanoi_07' will look like in the following image after some moves.
.
.

.
Game completed:
'TowerOfHanoi_07' looks like in the following image when it is completed. In 3rd line after Move # it is announced that game is completed. On line under tower a message is displayed to congratulate player and also tells in how many moves game is completed and in how much time. Under this line a message is displayed to tell player what to do now. In status line 'Message' field also 'Game completed!' is displayed.
.
.

.
Game aborted:
'TowerOfHano_07' looks like in the following image when game is aborted by pressing 'X' when it asks for From or To tower. In 3rd line after Move # Aborted is displayed. On line under tower a message is displayed telling that current game is aborted after so many moves and in so much time. On line under this a message is displayed telling user what to do now. In status line in 'Message' field also 'Game aborted.' is displayed.
.
.

.
Exiting TowerOfHanoi_07:
'TowerOfHanoi_07' looks like in the following image when '0' is pressed in 'get number of towers screen'. In this screen 1st row from top displays author information. Under that in a green rectangle (a)_departing message is displayed (b)_Time spent on game is displayed (c)_A message is displayed telling user what to do now. In status line on bottom of screen after 'Message' field 'Exiting from application . . .' is displayed. 
.
.

.
[Note] During making screen shots of 'TowerOfHanoi_07' and adding water marks in those images I came across a small problem. That problem was that my water marks were in color and they were not looking good to me on black background. So to solve that problem I made a "Windows Forms application"/"WinForms" in c# for changing any/all colors in water mark image to white color. Water marks in images in this post are result of that application.
.

.
Enjoy Complete Source code of application written and compiled in visual studio 2010 Ultimate by me. Download it. Extract it. Read 'ReadMeFirst.txt' file and do as is explained in it.



Thursday, June 14, 2018

New style of meeting room - 18Jun14Thu

  New style of meeting room  
.
(A meeting room based on school class room)
Version: 180614Th
.
When, a few decades ago, I first time entered meeting room with a long table and a lot of chairs beside/around it, I was amazed. After that I saw that type of meeting room a lot of times but only on TV. Every time I saw that kind of room on tv I noticed a problem. And that problem was that in almost all photos or videos meeting members sitting beside table were trying to bend forward or backward to get a better view of the object of interest (either main person of meeting sitting on one of narrow sides of table or some projector screen placed on other side). Therefore this problem was mainly responsible for making it difficult for meeting members sitting on chairs farther than their chair from object of interest (either main person of meeting or some projector screen) to have a proper view of main person of meeting. In some other situation meeting members were seen simply looking at the person sitting on the opposite side of the table "Some times having view of their dreams".
.
So I started to think on that problem from that time.
.
At start idea was to have a meeting room like a simple school class room. With main person of meeting, with his helpers, sitting on one side of room were teacher sit/stand and other meeting members sitting on other side like students of class. But a problem of this arrangement was how to make perfect arrangement for both groups. So that irrespective of number of members in both group meeting room serve it's purpose correctly. For example if room's total capacity is 100 person and if there are (a) 50/50 (b) 10/90 (c) 90/10 (d) 'n/m' members in both groups. Than how can room serve it’s purpose without major rearrangement of seats etc.
.
Now I do not know how and when but I did make an idea to solve that problem. May be my brain kept thinking and mixed different things together.
.
So I reached on an idea of a meeting-room with wall-to-wall and floor-to-ceiling mirror installed on it's one wall (Front wall). And all seats installed in front of this wall on stair like floor, so that members sitting on any seat can have proper view of the front wall. In this arrangement all persons involved in meeting will be able to see any other member during meeting without any problem.
.
And after some time, may be years, that idea improved. In this idea simple mirror was replaced with special kind of mirror called screen now, opaque from inside of meeting room and transparent from other/opposite side of screen. From inside meeting room this screen will act like a TV/cinema like screen. On other side will be another room with camera, computers and other useful gadgets. It will be up to meeting members to view themselves on screen like in previous version or view some presentation or some video or mix of these all in any combination or view nothing at all on screen.
.

If there are any mistakes then I will surely remove them whenever found.

.
.