Monday, 9 August 2021

Tokyo 2020 - Raise of the bar begins

Medal Tally in London Olympics 2012 = 6 (Gold-0, Silver-2, Bronze-4)
Medal Tally in Rio 2016 Olympics = 2 (Gold-0, Silver-1, Bronze-1)

With the medal count in Rio 2016 reduced to 2 from the earlier 6 medals of London 2012, there was an increased focus and attention from the GOI & Sports Ministry. The Ministry & Sports Authority of India (SAI) had encouraged talent from the grassroots level by conducting Khelo India, TOPS scheme and improving the sports infrastructure across the country. This has not just nurtured the available talent but also helped in identifying the talent. We now have young athletes such as Saurabh Chaudary (19Y), Manu Bhaker (19Y), elavenil valarivan(22Y), Neeraj Chopra (23Y), Aditi Ashok (23Y), Ravi Kumar Dahiya (23Y) etc. who took part in Tokyo 2020 & can potentially take part in 2-3 more Olympics. 

Coming to Tokyo 2020, India entered the Olympics with huge expectations, Gracenote forecasted a tally of 19 medals. Nevertheless, the final tally of 7 medals was the best so far and the talent we nurtured so far can only raise the bar from Olympics to Olympics. 




The summary and highlights of Tokyo 2020, sport wise - 

Athletics
Neeraj Chopra delivered what was expected from him and secured the first-ever medal in Athletics in Olympics for India. With his shoulder injury in 2019, there were apprehensions that he may not be participating in the Olympics, if conducted in 2020. However, as a blessing in disguise, COVID-19 has given enough time for his recovery and he made us of the time to better his record. Post his injury, he bettered his record to 88.07m, thereby signaling that he is not far from assuring a medal to India. Vetter, the beast in Javelin, appeared struggling with the heat in Tokyo and this became an added advantage for Neeraj. Neeraj clinched the elusive Gold medal in the Olympics and created a goosebumps moment with our national anthem being played at the Olympics after a long gap of 4744 days (The last time it was played when Abhinav Bindra won gold in 2008 Beijing Olympics)

Archery
Deepika Kumari, being ranked number 1 in women's individual category, carried expectations of a medal.
Though Women's Individual (Deepika Kumari), Men's Team (Atanu Das, Pravin Jadhav & Tarundeep Rai) & Mixed Team (Deepika Kumari & Pravin Jadhav)reached the quarters, they failed to surpass the mighty South Koreans. It is unlucky that we have to face the South Koreans in QF, who are the dominants of the game.

Boxing
Lovlina Borgohain won the Bronze medal. The top seed, Amit Panghal's exit in his very first bout was a huge disappointment for India.

Wrestling
Wrestling ended more or less on the expected lines with 1 Silver & 1 Bronze. Ravi Dahiya, the only athlete who reached the individual final, couldn't convert the opportunity into Gold and settled with a Silver. Bajrang Punia's technique, post the recent right knee injury, appeared a little different and settled for a bronze. Vinesh Poghat, the lady wrestler shouldered with huge expectations, disappointed without a medal.

Shooting
Team India entered the Olympics with heavy expectations in shooting. Considering the rankings and performance of our shooting contingent for the past few years, it would not be surprising had we won 4-5 medals in shooting. The biggest surprise post-Olympics is that we ended up without a medal in shooting. However, the efforts of Saurabh Chaudary & Manu Bhaker need appreciation, though ended up without a medal. Saurabh Chaudary & Mixed Team(Saurabh & Manu Bhaker) in 10m pistol were placed on the top in the qualification round. However, they failed to convert the opportunity into a medal.

Badminton
PV Sindhu added one more colour to her medallist by winning a bronze medal. She became the first badminton player from India to have two Olympics medals to her name. Let's hope she wins the elusive Gold in Paris 2024 and ticks all the colors.

Golf
Aditi Ashok, ranked 200 in Rolex Golf  Women's Rankings, stayed an inch away from creating history by winning a medal in Golf. Nevertheless, her journey in Tokyo 2020 is no less than that of Milkha Singh's in 1960 & PT Usha's in 1984. She has already made an impact by waking up Indians at 4:30 am to watch her play and making familiar with Golf terminology like birdie, bogey, double bogey etc.

Weightlifting
As expected, Mirabai Chanu clinched the Silver medal on the very first day.

Hockey
The hockey men's team regained the lost glory by winning a medal after a long gap of 41 years. The WALL, Shreejesh, played a very crucial role throughout the tournament. In fact, he saved a penalty corner, when scores were 3-4, in the last 6 seconds of the bronze medal match.

The hockey women's team created history by entering into the semifinals for the first time in Olympics. They came back from 0-2 down to 3-2 in the bronze medal match. However, by consuming 2 goals in the last half, they ended up 3-4, without a medal, at 4th place.

Tuesday, 17 May 2016

How to change the default blogspot favicon ?


Know more about favicons from my previous post 



This is the default favicon that appears for any blogspot. Do you know that you can change this favicon and put your own favicon? Here is the step by step process of changing the default favicon in blopspot.

                 Step-1: Open your blogspot dashboard



Step-2:After opening the Dashboard, click on the layout option as shown below.




Step-3:Now you can see a favicon section in the layout. Click on the edit button here.




Step-4:As you click on the edit, a window will be popped out, asking to choose the file. Click on choose file.




Step-5:After clicking on choose file, you can choose the image you want to make as your favicon and click on open.




Step-6:After clicking on open, you get a window as shown below. Click on save.




Step-7:Now click on the save arrangement as shown below




Step-8:You will see a message "your changes have been saved".




Step-9: Now open your blogspot in a window. It takes some time to get the updated favicon, so don't be panic. After sometime, you will get the updated favicon of your blog as shown below.


What are favicons ?

Favicon's are those images which appear before the title of any webpage as shown in the figure.

For any blogspot, the default favicon is shown below. Favicons are also considered as logos.
BLOGSPOT DEFAULT FAVICON
 There may be a doubt or misconception that this favicon can't be changed. This is completely wrong. You can change the favicon for your blogspot.  How this is done? This is clearly explained in my next post 
Some of the popular website along with their favicon's are shown below

YUOTUBE FAVICON



GOOGLE FAVICON
FACEBOOK FAVICON

Wednesday, 3 February 2016

Creating Additional Serial Port on Aduino Uno #4

As discussed in #3 , Arduino Uno has only one in built Serial port. But when we have more than one device to communicate with the Arduino board, can we proceed with Uno ? If yes, how can we proceed further as Uno has only one serial port?  The answer is we can create additional Serial ports by simple programming. This is shown below:

#include<SoftwareSerial.h>
SoftwareSerial Serial2(3,4);  //here 3 is RX & 4 is TX and Serial2 is the name of the
                                              //created port  & by default name of inbuilt Serial port(0,1)
                                              // is Serial.

Once we include the above two lines of code, we can use 3,4 pins as RX & TX  with the name Serial2 respectively.
to begin we use the command     Serial2.begin(9600);
                                     to read     Serial2.read();
                                    to write     Serial2.write();


** Note that if you want to communicate with the computer you should use Serial port only not any  other created ports. 

Serial Communication In Arduino #3

                     By the name Serial means "one after the other".   Arduino communicates with computer or any other external device by Serial Communication. This implies that Arduino sends data in terms of bits one after the other. This is called Serial Communication. For this purpose we need a minimum of one Serial Port (One port means 2 pins). One pin to receive data and the other to transmit(send). In Arduino Uno we have 1 Serial Port(0-RX, 1-TX). Digital pin 0 is receiver pin(RX) & 1 is transmitter pin(TX) ( marked red in the below figure).




For instance, consider Arduino has to send a character 'U' to the device attached. How does it send ? ?
We know that it can't understand 'U', it understands only binary language(0's and 1's). So 'U' should be converted to some combination of 0's and 1's. For this purpose, we have ASCI codes. The ASCI code of 'U' is 85 & so in order to transmit 'U', Arduino transmits 01010101 (i.e, binary equivalent of 85) through pin-01(TX). But at what speed? ?
This speed of transfer is mentioned in Serial.begin(x). Here x is the speed in bits/sec. Mostly we use x=9600 i.e, Serial.begin(9600). This means 9600 bits are transmitted per second. So, to transfer 1 bit, it takes (1/9600)=104 micro seconds. Also to transfer each byte, it uses two additional bits to indicate start and stop of that particular byte. As Arduino uses TTL Serial Communication, we have start bit as "0" & stop bit as "1". So to transmit 'U', Arduino sends a wave as shown in the below figure.




                                         **Note that here LSB is transmitted first.

So, for every byte of data transmitted, there are actually 10 bits being sent( 1 bit-start, 8 bits-data & 1 bit-stop).So at a baud rate of 9600 bps, it is actually transmitting (9600/10)=960 bytes of data.


Arduino is transmitting data but where is it going to be printed ?
There is a Serial monitor for this purpose. Once your code is successfully uploaded on your board, if you want to use serial communication, then open serial monitor window
1) Tools-->Serial Monitor  or  2)directly by clicking on Serial Monitor.




Once you click on the Serial Monitor, a window will be popped out as show below. This is Serial Monitor window.







You may notice that baud rate in the serial monitor and in the sketch must match to get the correct output. If they do not match you will get something like this





As said above, if Arduino Uno has only one Serial Port, then can we use more than one device to communicate with the Arduino??


                                             **Click here for the list of ASCI values


Monday, 1 February 2016

Arduino concepts & misconcepts #2

Do you  know what is going to happen whenever you click on "upload"?
First the software compiles the code and displays the errors(if present) and if compilation is successful & if your Arduino board is connected to your PC through USB, then entire code will be uploaded to your Arduino Flash Memory(present in Atmega chip,the big chip that is present on your board).

 In Arduino Uno, flash memory is of 32Kb size so the program size must be within 32Kb . If it exceeds 32Kb, then you should resize the code by Optimisation(reducing the unwanted code) or you can use Mega board which has Flash Memory of 256Kb.

Once one code(sketch) was uploaded successfully, the same code persists till you upload other code to the board. This is the main Advantage of Arduino. There is a general misconception that Arduino has to be connected to your PC and run it (without removing USB connection). But this is WRONG. Once code is successfully uploaded to your board, Arduino just takes 5V from the USB port and nothing else(unless you are using Serial Communication). So this(supplying 5V to Arduino board) can also be achieved by using batteries. Hence it is clear that you need not connect your Arduino board to your PC once code was successfully uploaded to your board.


*** What is Serial Communication ?.
*** To which pins should we connect Battery ? and How many others methods to power an Arduino?





ARDUINO #1

What is Arduino ?

                     It is an open source platform(readily available), where you can instruct the Arduino board(through programming in Arduino software & uploading it to Arduino board) how to work.

ARDUINO UNO BOARD


ARDUINO UNO CONNECTED TO LAPTOP




Step-1) Installing the Arduino software.

Step-2) Get an Arduino board.

Step-3) Connect you Arduino board to you PC through USB cable (you will get it along with the Arduino board) and make necessary changes in Arduino settings.

Step-4) Write a code(sketch) on your Arduino software in your PC & upload it to the board. As soon as it is successfully uploaded, it starts to run according to the code.



Thursday, 19 November 2015

Why CFL has an upper hand over incandescent light ?

Have you ever heard that using CFL in place of incandescent light would be better ?

Have you ever thought what could be the precise reason for that ?

What is the prime purpose of having a bulb for ?
     
                                                  Apparently it is for getting light.



Consider an incandescent light. If we give 100% of energy to an incandescent bulb, 90% of this energy is utilised for generating heat energy (which is not at all our purpose) & 10% is used for generating light energy.




Now consider a CFL bulb. If we give 100% of energy to a CFL bulb, (30-40)% of that energy is utilised for generating heat energy & (60-70)%  is used for generating light energy.




The above two statements aptly explains why CFL has an upper hand over incandescent bulb.


Other points that can be made out are

1) CFL lasts 10 times longer than an incandescent bulb.

2) CFL uses 1/3 rd of the energy used by an incandescent bulb to produce same amout of light, which implies that electricity bill on CFL would be 1/3 rd of that of an incandescent bulb.

3) In fact by using CFL, in place of incandescent bulbs, we can prevent greenhouse gas emission to some extent. Wonder how ?

    Where do we get electricity from ? Mostly 70% of the electricity that we use is generated from thermal stations by burning coal, which release greenhouse gases into atmosphere. If we use less energy(by using CFL), this indirectly implies that we are preventing greenhouse gas emission to some extent.

NOTE: Comparison was made only between CFL bulb and an Incandescent bulb. LEDs were not compared above. It would have revolutionised the entire article if comparison was made.

Monday, 9 November 2015

Why a zero watt bulb is called as zero watt bulb ?

Zero watt bulb, by its name,  doesn't mean that it will not consume any energy. In fact the rating of zero watt bulb is 10-15 Watt. But why is it named as zero watt ?

The answer is, in olden days, when all other loads are turned off and only one 10-15 W bulb is turned on, as sophisticated measuring instruments were not present, the conventional electromagnetic measuring instruments present by that time were not able to record very small consumption (10-15W).  So the name zero watt has come into use for 10-15 W bulb.

But now with the presence of much sophisticated instruments even a fraction of  watt can be  recorded, but the convention of calling them as zero watt bulbs still continues .................


Friday, 6 November 2015

If b=a+++++a+++a; What would be the output ?

If we use pre increment operator in a statement, then increment takes place first and then the statement gets executed. But if we use post increment operator in a statement the statement gets executed with it's older value and after this statement execution increment takes place 


Ex: a=10;
      b=a++; //b=10,a= 11

     a=10;
     b=++a; //b=11,a= 11


NOTE: You may have a doubt that If you use b=( a++)+(++a)+(++a) or any other statement which involves multiple pre or post increment or decrement operations on the same variable then what would be output?   

The answer is undefined i.e. it is a compiler dependent. The compiler won't give an error but different compiler gives different outputs and no c++ rule define their execution.

Wednesday, 14 October 2015

What is compile time & What is run time ? ?

We write program in high level language. But computer can understand only binary language (0's and 1's). In order to achieve this conversion from High level language to Machine language,compiler is used. The time taken by the compiler to convert the High level language to machine language(binary language) is called as compile time.

The time taken to execute the compiled program is called run time or execution time.


Tuesday, 13 October 2015

What is inline function in C++ ? ?

Sometimes we may come across using a small function many times in a program. Consider we use normal function definition. Whenever a normal function call is encountered, the program will store the memory address of the instructions which are immediately following the function call. It load the function being called and executes this function and stores the return value if any. Now it jumps back to the stored memory address,which is the memory address of the instruction which is immediate to the function call. So too much run time is involved here. In such cases we can declare the function as inline. This declaration is done by just keeping "inline" before the actual function definition. If we use this inline declaration, then compiler replaces all the function call statements with the function definition so that jumping can be avoided,which in turn decreases the run-time for the program.

***By using inline function, we are increasing the compile time  and decreasing the run time.

***It is just a suggestion to the compiler but not a compulsion. i.e, If the function is big,but it is declared as inline, the compiler won't treat it as inline function, it just treats as a normal function only.