Skip to main content


Showing posts from 2014

Embed Images Directly into HTML

In HTML, images are defined with the <img> tag. <img src="url" alt="some_text"> The src attribute defines the url (web address) of the image. The alt attribute specifies an alternate text for the image, if it cannot be displayed. If you want to show an image, you write something similar to this in your HTML : <img src="html5_sticker.png" alt="HTML5 Sticker"> But, sometimes you may want to show an image on your webpage but you don't want to link an external image file. In that case, you can directly embed your image into the HTML without having to link to an external file. The idea behind it is that the browser interprets the image file in encoded format. So why not we directly put the encoded data in the src attribute of <img> tag. One of the advantages of embedding the image directly into the HTML is Portability. There are so many online Base64 Image encoder available on the web. Just google it and y

Yes, You heard it right - Rohit Sharma does it Again

Eden Gardens’ 150 years celebration could not be better than this. No one would have thought that this day will be written in golden letters in the history of ODI cricket. Cricket fans, who were watching this match from the stands, will cherish this day for their lifetime. Returning from injury, Rohit Sharma played a fabulous inning of 264 in 173 balls in 4 th ODI against Sri Lanka on 13 th November, 2014. He was not out until the last ball of India’ inning was bowled. He falls off the last ball of the innings trying to play a big shot. Rohit Sharma was on 4 when he was dropped by Thisara Perera at third man. India Scored 405/5 altogether and in their effort to chase such a big total, Guests could garner a meagre 251 and lost by 153 runs. India leads 4-0 (undefeatable) in the 5 match ODI series. Rohit Sharma Celebrating his double hundred at Eden Gardens, Kolkata It was his first international match after he injured himself in the second ODI against England in Au

Cross-Site Scripting (XSS) Vulnerability

Cross-site scripting   ( XSS ) is a type of   computer security   vulnerability   typically found in   Web applications . Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into  trusted web sites.   Cross-site Scripting ( XSS )  is generally believed to be one of the most common application layer hacking techniques. XSS is the hacking technique that leverages vulnerabilities in the code of a web application to allow an attacker to send malicious content from an end-user and collect some type of data from the victim. An attacker can use XSS to send a malicious script to an unsuspecting user. The end user’s browser has no way to know that the script should not be trusted, and will execute the script. Because it thinks the script came from a trusted source, the malicious script can access any cookies, session tokens, or other sensitive information retained by the browser and used with that site. These scripts can even rewrite

Night trekking @ Skandagiri Hills

Skandagiri Hill is situated in Chikballapur district of Karnataka, which is approximately 70 km from Bangalore. Skandagiri is also known as Kalavara Durga. The peak is at an altitude of about 1350 metres. It was an amazing adventurous night trekking experience. We were a group of three friends and joined a group of five law students at the base.  One of the ancient and oldest mutt of Karnataka - Papagni Mutt is located at the base. Skandagiri trek is a moderately difficult trek, but if you are trekking in night you need to be extra cautious. We started our journey towards the zenith at around 1:45 AM. It was a beautiful night with a bit strong breeze and a very light drizzle. Stretches were a bit slippery due to the rain. So, we were climbing slowly and cautiously, relaxing after every 15-20 minutes of climb.  Finally we reached at the top and it took around 3 hours, for us, to reach to the top.  We stayed there for quite some time ( around 3 hours) - enjoyed t

Dynamically Add/Remove Rows in HTML Table Using Javascript

Following code snippet will show how to dynamically add/remove rows in Table using simple HTML and Javascript : Source Code : HTML Table : <table cellspacing=0 cellpadding=0 border=0 border-spacing=10px id="attributes_configuration_table"> <thead> <tr> <th><b>Name</b></th> <th><b>Value</b></th> </tr> </thead> <tbody> <tr id="row_1"> <td> <input type="text" name="attribute_name_1" id="attribute_name_1" style="margin-right:10px" autocomplete="off"> </td> <td> <input type="text" name="attribute_value_1" id="attribute_value_1" style="margin-right:10px" autocomplete="of

सपना...एक तसब्बुर

हे प्रिये चलो मैं आज तुम्हे कुछ और ही बात बताता हूँ जिस दुनियाँ में सपने बस्ते हैं उस दुनिया की सैर कराता हूँ ना बंदिश है ना पाबंदी ना तीखी नज़रें हैं दुनियाँ वालों की बस एक मैं हूँ और एक तुम और सपने हैं दिलवालों की उन बागों की शैर करें जहाँ फूल प्यार के खिलतें हैं उस क्षितिज के पास चलें जहाँ ज़मीन आसमान से मिलतें हैं उन झरनों के पास चलें जो संगीत प्यार का सुनाती है उन तारों के पार चलें जो रोज़ हमें बुलाती है कितनी प्यारी है ये दुनियाँ जो की सपनो मे रहती है किसी और की नही यहाँ बस अपनी मर्ज़ी इसमे चलती है प्यारे सचमुच हैं ये सपने क्यूंकी यहीं हम तुमसे मिलते है ये सपना ना जाने कब सच हो बस इंतज़ार इसी का करते हैं

Remembering Jamsetji Tata - Legendary Father of Indian Industry

3 March, 2014 - 175th birth anniversary of Jamshetji Tata, One of the big founders of Modern India. He was the founder of Tata Group,  India's biggest conglomerate company. Jamshetji Tata ( 3 March 1839 – 19 May 1904) Jamsetji Tata was a great visionary and businessman who had devoted his life to set up : A World Class Steel & Iron Company (TATA Steel) A World Class Institution (IISC Bangalore) A Unique Hotel (Taj Mahal Hotel, Mumbai) A Hydro-Electric Power Plant (TATA Power) Our first Prime Minister Jawaharlal Nehru once said -  "When you have to give the lead in action, in ideas - a lead which does not fit in with the very climate of opinion - that is true courage, physical or mental or spiritual, call it what you like, and it is this type of courage and vision that Jamsetji Tata showed. It is right that we should honour his memory and remember him as one of the big founders of modern India." We pay our tribute to the legend, who had founde