Skip to main content

Posts

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 you can get a list of on…

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

Eden Gardens’ 150years 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 4th ODI against Sri Lanka on 13th 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. It was his first international match after he injured himself in the second ODI against England in August. This inning of 264 makes him the only person on the planet who has scored two Double Hundr…

Cross-Site Scripting (XSS) Vulnerability

Cross-site scripting(XSS) is a type ofcomputer securityvulnerabilitytypically found inWeb 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 the content of the HTML page.
There are …

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 the Campfire, hot maggie and te…

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="off&qu…

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

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

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

कितनी प्यारी है ये दुनियाँ जो की सपनो मे रहती है
किसी और की नही यहाँ बस अपनी मर्ज़ी इसमे चलती है

प्यारे सचमुच हैं ये सपने क्यूंकी यहीं हम तुमसे मिलते है
ये सपना ना जाने कब सच हो बस इंतज़ार इसी का करते हैं



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.


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 founded the TATA Group - Largest Conglomerate of India - which operates in more than…

moto g - Exceptional Phone. Exceptional Price

Motorola's much awaited android smartphone moto g will be launched on 6th February, 2014 and yes, that's tomorrow. The phone's tagline is - "Exceptional Phone. Exceptional Price". The smartphone will be exclusively available on website FLIPKART from 6th February.

Wanna meet moto g - Watch this video :

Key Features of Moto G (Black, with 8 GB) 1.2 GHz A7 Quad Core Processor with 1 GB RAMHD RecordingDual SIM (GSM + GSM)4.5-inch TouchscreenInternal Memory: 8 GB5 MP Primary Camera and 1.3 MP Secondary CameraWi-Fi EnabledAndroid (Jelly Bean) OS  There are two variants of moto g to be launched in India with a price tag of Rs. 12,499/- for 8GB variant and Rs. 13,999 for 16GB variant. Flipkart is offering incredible offers on the purchase of moto g. moto g - Buy moto g at best price in India - Flipkart.com

SSC Combined Graduate Level Examination 2014

Staff Selection Commission (SSC) invites application for Combined Graduate Level Examination 2014 for the recruitment of following posts :
Inspectors of Income Tax, Central Excise, Preventive Officer, Examinersin Custom HousesAssistants (CSS) for central Govt. Ministries and departmentsAssistants, other than CSS, for other Central Govt. Ministries and departmentsInspector of PostsInspector of Central Bureau of NarcoticsSub-inspectors in CBIAssistant Enforcement OfficersDivisional Accountants in CAG OfficesStatistical Investigators Auditors, Junior Accountants, AccountantsCompilers in RGIUpper Divisional ClerksTax AssistantsCompilerSub-Inspector in Central Bureau of NarcoticsImportant Dates :
Commencement of online registration  - 18th January, 2014Closing date of online registration  -  14th February, 2014Date of Examination  - 27th April 2014 and 04th May, 2014More details can be found at SSC CGLE-2014 Notice. Online Registration : SSC Examination Notices.

BIHAR COMBINED ENTRANCE COMPETITIVE EXAMINATION (BCECE) - 2014

The notification for Bihar Combined Entrance Competitive Examination (BCECE) - 2014 is out on January 15, 2014. BCECE is the examination for admission to various professional courses in different Engineering colleges, Medical colleges, Agriculture colleges under the Government of Bihar and is conducted every year by Bihar Combined Entrance Competitive Examination Board, as constituted under the Bihar Combined Entrance Competitive Examination Act, 1995.

Important Dates :
Commencement of Online Registration                   - January 17, 2014 (10 A.M.)Last Date for Online Registration                            - February 17, 2014 (5 P.M.)Last Date for Fee Payment through Bank Challan      -  February 17, 2014 (5 P.M.)Last Date for Receiving Application with required documents - February 25, 2014 (5 P.M.)Tentative Dates of Examination -                              First stage          - April 13, 2014 (Sunday)
                             Second Stage      - May 18, 2014 (Sunday)

BCEC…

Railway Assistant Loco Pilot and Technician Recruitment 2014

Detailed advertisement will be published in the Employment News / Rozgar Samachar dated 18-01-2014.
More details can be found on the respective Railway Recruitment Boards(RRBs) website.
Following are the links to different RRBs :
RRB BilaspurRRB AhmedabadRRB MumbaiRRB BangaloreRRB SecunderabadRRB ChennaiRRB PatnaRRB BhubneshwarRRB GuwahatiRRB AllahabadRRB GorakhpurRRB SiliguriRRB RanchiRRB kolkataRRB BhopalRRB Jammu & KashmirRRB AjmerRRB ChandigarhRRB MaldaRRB Thiruvanantha-puramRRB MuzaffarpurSource: Railway Recruitment Control Board