Monday, August 29, 2022

Living with droughts and floods - 220829Mo

  Living with droughts and floods  
.
Version: 220829Mo
.
Other versions
Version Link
Nil nil
.
.
[ Solving droughts problem ]
.
Around a few decades ago through a cable TV program/talk-show I came to know that Balochistan was then continuously going through bad spells of droughts since few years. That news made me very upset and I started thinking what could be done and how Balochistan can be helped.
.
That drought situation of Balochistan continued after that year also and all that made me think on the matter more and more. I kept worrying and thinking and worrying and thinking about that matter and reached at a solution which looked reasonable and workable to me. Even after creating solution I kept working/thinking on the solution to make it simpler and generalized so that it could be implemented anywhere in the world. In fact I wanted to extend my solution to entire Pakistan. Here I am going to discuss my solution for the drought problem which is although neither easy nor cheap but still is a very necessary solution indeed.
.
My above mentioned idea/solution was based on the following generalized steps:
  1. Dig a lot of different sized lakes and wells all across the concerned area.
  2. Make system for pulling water from the sea.
  3. Pull required amount of water from the sea.
  4. Clean collected sea water completely to up to water’s molecule “H2O”.
  5. Fill lakes and wells with water collected from sea and completely cleaned.
  6. Create networks of canals and pipes for taking water from lakes and wells to its human and non-human consumers/users.
  7. Connect lakes and wells with each other with a network of canals and pipes.
  8. Release water in those canals and pipes.
  9. Provide water 24/7 throughout the year.
  10. Create similar system for filling rivers and streams during droughts.
.
To me the above described solution is right according to the requirement and is highly workable. According to me this solution can easily be adapted and implemented anywhere in the world without much change and difficulty.
.
Following diagram/flow-chart further explains my solution steps graphically.
.
.

.
[ Solving floods problem ]
.
From time to time, in rainy seasons, we get floods of different intensity in different areas of our country Pakistan. These floods cause losses of life and property of different intensity in different parts of the country. All this makes me very upset and sad and makes me to think what could be done to avoid and prevent losses of floods.
.
For solving above mentioned problem of losses due to floods I reached at a solution which looked workable to me. Here I am going to discuss that not easy but workable solution.
.
My above mentioned idea/solution for preventing losses due to floods is based on the solution I made for preventing loses due of droughts. Its steps are as follows:
  1. Create lakes and wells of different size all across the concerned area and keep them empty.
  2. Connect all these lakes and wells together with canals and pipes.
  3. Create canals and pipes for draining these lakes and wells into the sea.
  4. During rainy season fill lakes and wells, created for flood management, with flood water.
  5. During rainy seasons anticipating floods start empting lakes and wells, created for drought management, in the sea and start filling those lakes and wells with flood water from rivers, streams etc.
.
To me the above described solution is right according to the requirement and is highly workable. According to me this solution can also be adapted and implemented anywhere in the world without much change and difficulty.
.
Following diagram/flow-chart further explains my solution steps graphically.
.
.
.

.
Colors used for Border and Background of this post
Color HSL RGB Hex
 
216°, 59%, 45% 047, 101, 181 #2f65b5
 
216°, 76%, 87% 195, 216, 247 #c3d8f7
.

.
If there are any mistakes in this post then I will remove them whenever I will know about them.
.


Wednesday, August 17, 2022

FancyProgressbar - 3 - (User Control) - 180430Sa

  FancyProgressbar - 3 (User control)  
.
Version: 180430Sa
.
Other versions
Version Link
141204We Fancy Progressbar - Ver 2 - C Sharp
170410Mo FG Progressbar 03.01 - 170410Mo
.
Few days ago I specially searched on hard-drive of computer for an application I had made some years ago in c# (c sharp) for demonstrating a progressbar (user control). I had made that demonstration applicaton for testing progressbar usercontrol I had made in c# (c sharp). After finding that application I ran it for some time and after testing/revising it's different options I took and saved some screen-shots at different levels/states of application. I did that for sharing online. I had named that progressbar "FancyProgressbar - 3".
.
In this blog entry I am going to discus that progressbar in some detail.
.
First the purpose of making this progressbar was to have a progressbar which can display progress status of the process over it. This progressbar can display, user chose-able, following type of information over it:
.
  1. Progress status/state
    1. Ready
    2. Working
    3. Cancel
    4. Error
    5. Complete
  2. Progress percent
    1. Completed
    2. Remaining
  3. Time
    1. Elapsed
    2. Remaining
.
Following are some screen-shots of the above mentioned progressbar demonstrating application I made in c#.
.

.
[ (1) Application loaded]
Application is loaded and is ready for use.
.
.
.
.
[(1a) Application tab is active]
Application tab, out of it's three tabs, is active.
.
.
.
[(1a1) Error generation]
Generate ERROR during process option (CheckBox) is checked/selected. Purpose of this option is to have ability to generate ERROR programmatically during process for testing purpose. When this option is checked process randomly aborts between progress percent of 33 to 66.
.
.
.
[(1a2) Progressbar width]
Progressbar with is modified (increased). Purpose of this option is to have ability for test application to change width of progressbar for testing.
.
.
.
[(1a3) Progressbar text]
Progressbar text options are expended. Purpose of this option is to give ability to select different combination of text/information over progressbar.
.
.
.
[(1a4) Process related]
.
[(1a4a) Start button clicked]
[Process is running . . .] Start button is clicked and process is started and is running. Progressbar background color is light-Blue and progressbar color is dark-Green. Progressbar is displaying from left to right progress percent completed, time elapsed, progress state i.e. working, Time remaining, progress percent remaining.
.
.
.
[Process completed successfully] Start button was clicked and process was started and process is completed successfully. Progressbar background color is light-Blue and progressbar color is dark-Green. Progressbar is displaying from left to right progress percent completed, time elapsed, progress state i.e. working, Time remaining, progress percent remaining.
.
.
.
[(1a4b) Cancel button clicked]
During a running process Cancel button is clicked and process aborted itself. Progressbar color is changed to Orange.
.
.
.
[(1a4c) ERROR generated]
During a running process ERROR is generated programmatically. This happened because "Error generation" CheckBox was checked. Progressbar color is changed to Red.
.
.
.
[(1b) Help tab is active]
Useful information about application are displayed in this Help tab
.
.
.
[(1b1) About and Author]
In this image About and Author sections of Help tab are visible. About section displays basic information about application. Author section displays basic information about author of application i.e. me "Khursheed Fateh".
.
.
.
[(1b2) How to Use]
Help tab's "How to Use" section in simple text describes/explains how to use this application.
.
.
.
[(1b3) Features of Progressbar]
"Features of Progressbar" section of Help tab describes and explains different features of this application. This section is further divided into 2 parts. (Labels: Three type of information displayed over progressbar), (Status: Five status options for progressbar).
.
.
.
[(1c) Exit tab is active]
User can EXIT from this application only from here. This tab displays a button with text "EXIT FROM HERE". Clicking this button closes this application. This button occupies entire area of the tab and has red background color and white text color.
.
.
.
[(1d) Application Exiting methods]
.
[(1d1) Application System menu is expanded]
Application's system menu is expanded by clicking on the application/form icon on Left-Top of the application form.
.
.
.
[(1d2a) Close button of form is clicked]
Close button of the form situated on the right-top of the form is clicked and this opens a Hint window explaining how to exit from application.
.
.
.
.
[(1d2b) Close option of System menu clicked]
First application/form icon on the left top of the formis clicked. Second System menu is displayed. Third Close option from System menu is clicked. This opens a Hint window explaining how to exit from application.
.
.
.
[(1d2c) Alt+F4 is pressed on Keyboard]
Alt+F4 key combination is pressed from keyboard and this opens a Hint window explaining how to exit from application.
.
.
.
Colors used for Border and Background of this post
Color HSL RGB Hex
 
174°, 52%, 33% 40, 128, 119 #fcba03
 
174°, 62%, 90% 213, 245, 242 #d5f5f2
.

.
If there are any mistakes in this post then I will remove them whenever I will know about them.
.