Saturday, May 20, 2023

China sheet maintenance by me - 230508Mo

  China sheet maintenance by me  
.
(My DIY activity at home while alone.)
.
Version: 230508Mo
.
Other versions
Version Link
nil No other versions so far.
.
On the relatively hot evening of 2023 May 04 Thursday, when I pressed the ceiling fan button on the china sheet electric board fixed on a wall of my bedroom, top of the button popped out. I fixed that back in it's place and found that it was still doing it's job on gentle press. To solve that problem myself I started searching on the net about how to solve the problem and found some simple and workable methods.
.
Therefore on 2023 May 08 Monday I went to the nearby market and brought the desired button of the same design from there. I found the matching button at the third shop I went to. First two shops I went to had simpler version of the button. Shopkeeper of the third shop was very kind person as, for me, he removed the required button from a new China sheet.
.
Just before I was about to start the button replacement work I got an idea of taking pictures of my work at every stage/step. Except for one or two stages I took pictures of all stages/steps. I missed those stages because I was too much concentrating on the work and totally forgot about taking photos of those stages/steps.
.
I am explaining my above mentioned work in the following with the help of text and photos. There were many distinct stages/steps of my work and I am discussing them all in separate sections in the following.
.

.
[ Preview ]
.
This image is preview of my DIY work I did while I was alone at home.
.
.
.

.
[ (1): Start ]
I took this photo at start of the work. By chance I got an idea of taking photos of my this DIY work. In this photo fan button can be seen in on position. I kept fan on during most of the work.
.
.
.
[ (2): Fan button's top removed ]
I removed top part of the fan button and this exposed a rectangular hole containing a smaller rectangular hole in it's middle. A copper like mettle part was visible inside the smaller hole. Surprisingly, whenever I touched the topside of that metal with the tester, the fan started running and whenever I touched the bottom side of that metal with the tester, the fan stopped running.
.
[ (2a): Normal view ]
Normal view.
.
.
.
[ (2b): Close-up view ]
Closer view of the fan button's hole.
.
.
.
[ (2c): Button top's back side view ]
View of the fan button from it's back side.
.
.
.
[ (2d): Parts of button's top ]
After removing top part of the fan button I took it's photos from different angles. Fan button's top part was made of three parts. First white colored top made of thermosetting plastic. Second spring made of some metel. Third a small tube made of copper. First part is for switching fan on and off. Second part is for putting pressure on the third part. Third part is for making or breaking circuit.
.
[ (2d1): From bottom side ]
View of different parts of button's top part.
.
.
.
[ (2d2): From top side ]
View of different parts of button's top part.
.
.
.
[ (3): Removing sheet cover ]
With the help of a beautiful electricity tester I started removing china sheet cover. Because it was first time that I was removing sheet cover therefore while removing the sheet cover, my main concern was that I should not even accidentally break it. Very slowly and very carefully I kept trying to remove the sheet cover.
.
[ (3a): Start ]
At start I was having problem in deciding from where to start removing the sheet cover but after trying from different places I started from one place.
.
.
.
[ (3b):  Middle ]
Gradually, the sheet started to come out of its place. I stayed as gentle as possible during this phase.
.
.
.
[ (3c): Complete ]
After trying and retrying I, in a few minutes, successfully removed China sheet cover in one piece. I was happy on that achievement of mine.
.
.
.
[ (4): Unscrewing sheet screws ]
After removing cover from the China sheet, I with the help of a beautiful electricity tester unscrewed sheet's both screws. This step was very easy.
.
[ (4a): Start ]
After selecting screw driver of the right type I started unscrewing the screws of the China sheet. Sheet had two screws and I used electric tester as a screw driver.
.
.
.
[ (4b) Complete ]
This step was very easy and I completed it relatively quickly.
.
.
.
[ (5): Observing Buttons and Circuits ]
After removing cover from the China sheet and unscrewing sheet's both screws I for some time observed sheet's back side view. I keenly observed it's different button's back side view and the electricity wiring because I was doing the maintenance work of China sheet for the first time. Changing buttons is not new to me; I am doing this type of home maintenance work since decades.
.
[ (5a): First angle ]
In this photo back of all buttons are visible and it also shows the wiring.
.
.
.
[ (5b): Second angle ]
In this photo back of all buttons are visible and it also shows the wiring.
.
.
.
[ (5c): Third angle ]
In this photo back of all buttons are visible and it also shows the wiring.
.
.
.
[ (5d): Fourth angle ]
In this photo back of all buttons are visible and it also shows the wiring.
.
.
.
[ (6): New switch and sample socket ]
The socket on the left side of the photo is what I took with me to the market as a sample and the switch on the right side of the photo is what I brought from the market for the ceiling fan of my room. I found this switch from the third shop I went to. Shopkeeper of that shop was very kind person and he specially took out this matching switch from a new China sheet for me.
.
.
.
[ (7) Views of new switch ]
I took some photos, from different angles, of the new switch I brought from the market for the ceiling fan of my room. I found this switch from the third shop I went to. Shopkeeper of that shop was very kind person and he specially took out this matching switch from a new China sheet for me.
.
[ (7a) First angle ]
In this photo switch button’s Front and Right sides are displayed.
.
.
.
[ (7b) Second angle ]
In this photo switch button’s Right, Bottom and Back sides are displayed.
.
.
.
[ (7c): Third angle ]
In this photo switch button’s Front, Top and Left sides are displayed.
.
.
.
[ (7d): Fourth angle ]
In this photo switch button’s Front, Right and Bottom sides are displayed.
.
.
.
[ (7e): Fifth angle ]
In this photo switch button’s Top, Back and Right sides are displayed.
.
.
.
[ (7f): Sixth angle ]
In this photo switch button’s Left, Back and Bottom sides are displayed.
.
.
.
[ (8): New switch installed ]
It was a little difficult to remove switch button of ceiling fan from China sheet but somehow I was able to do it. Because of the stress involved I completely forgot to take photos during removing old switch button and installing new switch button. I took following two photos after installing new switch button for ceiling fan of my bed room.
.
[ (8a): First angle ]
In this photo back of all buttons, including newly installed fan switch button, are visible and it also shows the wiring.
.
.
.
[ (8b): Second angle ]
In this photo back of all buttons, including newly installed fan switch button, are visible and it also shows the wiring.
.
.
.
[ (9): China sheet fixed to it's place ]
.
[ (9a): China sheet screwed to it's place ]
After fixing new switch button of fan on China sheet and fixing required wires to switch I fixed China sheet back to it's place on the wall of my bed room with two screws.
.
.
.
[ (9b): China sheet cover fixed to it's place ]
After fixing China sheet back to it's place on the wall of my bedroom I fixed it's cover over it.
.
.
.
[ (10): China sheet cleaned ]
After fixing the China sheet back to it's place on the wall of my bedroom I cleaned entire China sheet with a damp cloth.
.
[ (10a) First angle ]
View of the China sheet, from first angle, after it was cleaned.
.
.
[ (10b) Second angle ]
View of the China sheet, from second angle, after it was cleaned.
.
.
[ (10c) Third angle ]
View of the China sheet, from Third angle, after it was cleaned.
.
.
.
[ (11): Tools used ]
These are the tools I used for my this DIY. The white one is tester cum (minus) screwdriver and the red one is (plus) screwdriver and the green one is (minus) screwdriver.
.
.
.
[ (12): Old switch ]
For the sake of record I also took pictures of the old fan switch button.
.
[ (12a): First photo ]
In this picture, the main part of the switch button is on the right side and on the left side is the part that had popped out of it's place.
.
.
.
[ (12b): Second photo ]
In this picture, the main part of the switch button is on the right side and on the left side are the parts of the part which had popped out of it's place. White one is the on/off button of the switch and beside it one is a small spring of some metal and other is a small tube of copper.
.
.
.
[ (13): Task Complete ]
At the end of my this China sheet maintenance DIY, I again took photos of the China sheet from different angles. This time I deliberately kept all buttons to off position.
.
[ (13a): First angle ]
I took first photo from front of the China shee.
.
.
.
[ (13b): Second angle ]
I took first photo from right of the China shee.
.
.
.
[ (13c): Third angle ]
I took first photo from left of the China shee.
.
.
.

.
Thus,
this story ends with a

HAPPY ENDING

.

.
Colors used for Border and Background of this post
Color HSL RGB Hex
 
21°, 42%, 33% 119, 73, 49 #774931
 
21°, 42%, 80% 225, 198, 183 #e1c6b7
.

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


Sliding Button - 2

  Sliding Button - 2  
.
(Lucky number generator, Get your lucky number)
.
Version: 230504Th
.
Other versions
Version Link
nil No other versions so far.
.
About a decade ago I came up with an idea of creating a Windows Forums application having a special type of button. That button should be like such that whenever the user clicks on the button with the mouse, the button should slide from under the mouse pointer. That idea remained an idea and could not go any further.
.
Now! Few days ago, somehow, that idea again visited my brain and I decided to give it a try. For that very purpose I did some planning like what kind of windows forms application I should make for implementing that old idea of mine. After making a virtual list of work-wise application type candidates I selected a simple type and started developing the required application. In few hours I completed the 1st version of the application.
.
In this blog entry I am going to discus that application in some detail.
.
First I kept the working of the application as simple as possible. I named it "Slipping button". "Sliding button", "Get your lucky number" and "Lucky number generator" were other names in my consideration. I used "Lucky number generator" as text (display name, title) of the application. From applications's names it is obvious that it generates and displays a number as a lucky number. To keep things simple application randomly generates a lucky number between changeable two seed numbers.
.
Working of the application is simple and is as follows:
1)_Change seed number values or leave them as they are.
2)_Click "Get" button for getting lucky number.
*)__(This displays user's lucky number)
.
Fun starts when user clicks on the "Get" button because when user clicks on the "Get" button
either "Get" button remains on it's position and application displays the lucky number
or "Get' button simply and completely slides from under the mouse pointer and lucky number is not displayed.
Because of this behavior of the "Get" button user has to make multiple tries to get his/her lucky number. This behavior of the "Get" button can annoy, frustrate and entertain the user at the same time.
.
Following are some screen-shots of the above mentioned "Get your lucky number" application I made in c#.
.

.
[(*) Lucky number generater]
.
A view of the "Sliding Button", or "Slipping button" or "Get your luck number" or "Lucky number generater" application. First is name of this application and remaining three are it's nick names etc.
.
.
.
[ (0) Application loaded]
Application is loaded and is ready for use.
.
.
.
[(01) Seed number values are changed.]
User has changed booth seed numbers. Changing seed numbers is optional. User cand change both number, only one number or leave their values as it is.
.
.
.
[(02) Get button is clicked]
.
[(02a) "Get" button slided]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointer. Therefor no lucky number is displayed. In the following section different position on which "Get" button slided during the session are displayed.
.
[(02a1) "Get" button slided to the Bottom left corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Bottom Left Corner. Lucky number is not displayed.
.
.
.
[(02a2) "Get" button slided to the Top right corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Top Right Corner. Lucky number is not displayed.
.
.
.
[(02a3) "Get" button slided to the Top Left corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Top Left Corner. Lucky number is not displayed.
.
.
.
[(02a4) "Get" button slided to the Center Left side]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Center Left Side. Lucky number is not displayed.
.
.
.
[(02a5) "Get" button slided to the Top Center side]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Top Center side. Lucky number is not displayed.
.
.
.
[(02a6) "Get" button slided to the Bottom Right corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Bottom Right Corner. Lucky number is not displayed.
.
.
.
[(02a7) "Get" button slided to the Bottom Center side]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Bottom Center side. Lucky number is not displayed.
.
.
.
[(02a8) "Get" button slided to the Center Right corner.]
.
User clicked on the "Get" button but "Get" button slided from under the mouse pointe to the Center Right side. Lucky number is not displayed.
.
.
.
[(02b) Lucky number generated]
.
User clicked on the "Get" button and "Get" button remained on it's default position i.e Center, Center. Lucky number is generated and displayed.
.
.
.
[(03) Clear button clicked]
.
User clicked "Clear" button and form is cleared (reset to it's default state). First seed  number's valued is set to "1000" and Second seed number's value is set to "9999".
.
.
.
[(04) Help button clicked]
.
User clicked "Help" button and Help form is displayed. Help form displayes scrollable useful help information about this application.
.
.
.

.
Colors used for Border and Background of this post
Color HSL RGB Hex
 
60°, 20%, 35% 107, 107, 71 #6b6b47
 
60°, 19%, 85% 224, 224, 209 #e0e0d1
.

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


Friday, February 3, 2023

kfProgressbar - 5 - 190724We

  kfProgressbar - 5  
.
Version: 190724We
.
Other versions
Version Link
141204We Fancy Progressbar - Ver 2 - C Sharp
170410Mo FG Progressbar 03.01 - 170410Mo
180430Sa FancyProgressbar - 3 - (User Control) - 180430Sa
.
Some years ago I had made a good looking Progress Bar with advanced graphic look and feel as a User-Control in c sharp. Before making that user-control I had made an application for trying and testing various different styles for my intended progressbar. My idea for making that kind of progressbar was to show progress steps graphically during on going progress.
.
In June of year 2022 I searched on hard-drive of computer for the final version of the above mentioned application. That application was it self the first version of progressbar of its category. I had searched for that application, mentioned above, mostly to revisit a dimension of my past. After finding that application I ran it and during that session I kept going back in time again and again. I ran that application a few more times and after revising its different options I took and saved some screen-shots at different levels/states of the application. I did that for sharing online. I had named that progressbar "kfProgressbar - 5".
.
In this blog entry I am going to discus that progressbar in some detail.
.
Main purpose of making this graphical progressbar was to have a progressbar which can also display information about running progress at sub-steps like at every percent of the progress. This progressbar also displays "amount of work" and "time consumed for the work" for each percentage of work completed besides displaying information for total progress.
.
Following are some screen-shots of the above mentioned progressbar demonstrating application I made in c#.
.

.
[ (0) Application loaded]
Application is loaded and is ready for use.
.
.
[(0a) Process related]
.
[(0a1) Start button Clicked.]
[(0a1) Process is running . . .] Start button is clicked and process is started and is running. Progressbar is displaying progress information as a graph. At top it is displaying information about work completed and at bottom it is displaying time consumed for completed work.
.
.
.
[(0a2) Process completed successfully] Start button was clicked and process was started and process is completed successfully.
.
.
.
[(0a2) Process canciled]
During a running process Cancel button is clicked and process aborted itself.
.
.
.
[(0b) Application Help form displayed]
"Show help" button is clicked and useful information about application are displayed in the Help form
.
.
.
Colors used for Border and Background of this post
Color HSL RGB Hex
 
30°, 100%, 50% 255, 128, 0 #ff8000
 
31°, 100%, 90% 255, 230, 204 #ffe6cc
.

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


Wednesday, October 12, 2022

Sliding Puzzle 9x9 - 1 - 221011Tu

  Sliding Puzzle - 9x9 - 1  
.
Version: 221011Tu
.
Other versions
Version Link
220915Th I solved sliding Puzzle-15 game - 220915Th
.
On evening of PkT 2022 Sep 14 Wed my niece asked for my help while playing sliding “puzzle 15” game. I found that she had solved top 3 rows out of total 4 rows. I felt happy on watching that and at the same time felt sorry because I had no idea how to solve that puzzle game.
.
Therefore for helping my niece in solving that puzzle game I started learning online that game myself. After reading some articles about that game on couple of sites/pages I found the strategy/method required for solving “puzzle 15” game.
.
Till late night, on that day, I kept learning and practicing solving “puzzle 15” game so that I could teach my niece next time how to play and solve puzzle games like “puzzle 15”.
.
While I was learning and playing that game i remembered that a few years ago i had made a similar game on computer. So on my next session on computer I started that game for playing and found that that game was actually Puzzle-8 game. Fortunately the strategy I had learned for Puzzle-15 game worked on Puzzle-8 game also and then I solved Puzzle-8 game for the first time. Major difference between Puzzle-8 game and Puzzle-15 game is dimension of their grid.
.
During that session of learning and playing and solving sliding Puzzle-15 game online and Puzzle-8 game on PC on game made by me in c# (c sharp) an interesting idea visited my mind. The idea was to make an upgraded version of the Puzzle-8 game I had already made on PC in c#. Major improvement I wanted to make was to make the game flexible in its size so that it could be played as 2x2 (Puzzle-3) to 9x9 (Puzzle-80) puzzle game. I kept upper limit to 9 for keeping game’s user-interface user friendly.
.
Quickly I started work on that idea of mine and made the new and upgraded version of Puzzle-8 in a few days in c#. In this blog in the following I am going to discuss the new and upgraded version of Puzzle-8 I named Puzzle-9x9.
.
Following are some screen-shots of the above mentioned sliding puzzle game demonstrating different states of application (sliding puzzle game) I made in c#.
.

.
[ Application preview ]
This image I added here as a preview of my slef made Puzzle-9x9 game I am discussing here.
.
.
.

.
[ (01) Sliding Puzzle-9x9 is loaded ]
Sliding game application is loaded and is ready for use.
.
.
.
.
[ (01a) Menu]
[ (01a1) Game's Game menu is displayed ]
Puzzle game's Game menu is clicked displaying its only option i.e. Quit.
.
.
.
[ (01a1a) Menu's Game/Quit option is clicked ]
Puzzle game's Game/Quit menu option is clicked and an alert message window is displayed. This window confirms wether user really want to quit application or not.
This alert window opens when user tries to Quit application using application menu's Game/Quit option or clicks form's red colored Close button on its top right or clicks system menus close option.
.
.
.
[ (01a2) Game's Help menu is displayed ]
Puzzle Game's Help menu is clicked displaying its 5 options.
.
.
.
[ (01a2a) Help/About is displayed ]
Game's Help/About option is clicked and a window is opened displaying basic information about Puzzle game application.
.
.
.
[ (01a2b) Help/Purpose is displayed ]
Game's Help/Purpose option is clicked and a window is opened displaying Purpose of this Puzzle game application.
.
.
.
[ (01a2c) Help/User-Interface is displayed ]
Game's Help/User-Interface option is clicked and a window is opened displaying information about User-interface of this Puzzle game application.
.
.
.
[ (01a2d) Help/How-to-use is displayed ]
Game's Help/How-to-use option is clicked and a window is opened displaying information describing how-to-use this Puzzle game application.
.
.
.
[ (01a2e) Help/Copyright ]
Game's Help/Copyright option is clicked and a window is opened displaying Copyright notice for this Puzzle game application.
.
.
.
[ (01b ) Action ]
[ (01b1) Button New is clicked ]
Button "New" is clicked. This diables "New" button and enables Shuffle" button and "Puzzle grid size" option and "Start" button. Puzzle grid with default/currently-set grid size is also displayed.
.
.
.
[ (01b2) Puzzle grid size option is expanded  ]
Puzzle grid size comboBox is clicked displayling Puzzle grid size options available.
.
.
.
[ (01b2a) New Puzzle grid size is choosen ]
From "Puzzle grid size" comboBox new puzzle grid size is choosen and therefore new puzzle grid is displayled arrording to the selected grid size.
.
.
.
[ (01b3) Button Shuffle is clicked ]
Button "Shuffle" is clicked and tiles on sliding puzzle grid are shuffled. This option can be used for getting new tile arrangement.
.
.
.
[ (01b4) Button Start is clicked ]
Button "Start" is clicked. This action disables "New" button, Puzzle grid size comboBox, Shuffle button and Start button. This action enables Close button.
This action turns tile color to Steelblue for those tiles which are not on their correct position and Green to those tiles which are on their corrent position.Now Puzzle is ready for playing.
Now Puzzle is ready for player to solve it.
.
.
.
[ (01b4a) Some moves are made ]
Sliding puzzle game looks like in this image after some moves are made. Useful information is displayed under button sectio n on right side.
.
.
.
[ (01b4b) Puzzle is solved (1) ]
Puzzle is solved and a congratulating message is displayed.
.
.
.
.
[ (01b4c) Puzzle is solved (2) ]
Puzzle was solved and a congratulating message was displayed. After closing that message application looks like this. In status line application is telling that game is solved and now player must click "Close" button to close this game and get option for starting new one.
.
.
.
[ (01b5a) Solved Puzzle is closed ]
Puzzle was solved and then closed. In this situation application looks like in this image. All tiles on their correct position are in green color. Button "New" is enabled and everything else is disabled in action section.
.
.
.
[ (01b5b) Un-solved Puzzle is closed ]
Puzzle was not solved but was closed. In this situation application looks like in this image. All tiles on their correct position are in green color and others are in purple color. Button "New" is enabled and everything else is disabled in action section.
.
.
.
[ (01c) Puzzle-9x9 giid in diferent sizes ]
[ (01c1) Puzzle-9x9 grid size 2x2 ]
Puzzle grid looks like in this image when grid size of 2x2 is selected from "Puzle grid size" comboBox.
.
.
.
[ (01c2) Puzzle-9x9 grid size 3x3 ]
Puzzle grid looks like in this image when grid size of 3x3 is selected from "Puzle grid size" comboBox.
.
.
.
[ (01c3) Puzzle-9x9 grid size 4x4 ]
Puzzle grid looks like in this image when grid size of 4x4 is selected from "Puzle grid size" comboBox.
.
.
.
[ (01c4) Puzzsle-9x9 grid size 5x5 ]
Puzzle grid looks like in this image when grid size of 5x5 is selected from "Puzle grid size" comboBox.
.
.
.
[ (01c5) Puzzle-9x9 grid size 6x6 ]
Puzzle grid looks like in this image when grid size of 6x6 is selected from "Puzle grid size" comboBox.
.
.
.
[ (01c6) Puzzle-9x9 grid size 7x7 ]
Puzzle grid looks like in this image when grid size of 7x7 is selected from "Puzle grid size" comboBox.
.
.
.
[ (01c7) Puzzle-9x9 grid size 8x8 ]
Puzzle grid looks like in this image when grid size of 8x8 is selected from "Puzle grid size" comboBox.
.
.
.
[ (01c8) Puzzle-9x9 grid size 9x9 ]
Puzzle grid looks like in this image when grid size of 9x9 is selected from "Puzle grid size" comboBox.
.
.
.

.
Colors used for Border and Background of this post
Color HSL RGB Hex
 
63°, 98%, 19% 92, 97, 1 #5b6001
 
63°, 60%, 60% 208, 214, 90 #d0d65a
.

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