Posts

Showing posts from December, 2014

How to protect a class by an object creation by another class?

Image
Answer : By making a constructor to private . Example :                      Class Dinesh                 { private Dinesh(){                 // Code will be here                        } }

How to protect a class to be inherited

Image
Answer : By adding a final keyword in before class name . Example :                                  Class final Class_name                          { Code will be here }
Image
जानें, कैसे घर बैठे सुधार सकते हैं आधार कार्ड की गलतियां http://uidai.gov.in  वेबसाइट पर जाकर ‘आपका आधार’ लिंक पर क्लिक करें। नए पेज पर बायीं ओर नीचे की तरफ ‘ अपडेट योर आधार डाटा ‘ पर क्लिक करें। यहां दिखेगा कि आप क्या-क्या जानकारी अपडेट कर सकते हैं। नीचे दी हुई लिंक पर क्लिक करें। फिर खुलने वाले पेज पर ” सब्मिट योर अपडेट करेक्शन’ क्लिक करें।

Code for Google Translator for Website with Indian Languages

Image
Paste this code onto your website Copy and paste the following code snippets onto every page you want to translate Place this meta tag before the closing </head>:- ————————————————————————————- <meta name=”google-translate-customization” content=”76732106efc70d8b-05ad2fc8af3e500b-ge0b18d68b0571536-16″ /> ————————————————————————————– Place this snippet where you’d like to display the Website Translator plugin on your page:- ————————————————————————————- <div id=”google_translate_element”></div><script type=”text/javascript”> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: ‘en’, includedLanguages: ‘bn,en,gu,hi,kn,pa,ta,te,ur’, layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, ‘google_translate_element’); } </script><script type=”text/javascript” src=”//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>

Three Tier Chained Selection by Ajax and PHP with Mysql

Image
Three Tier Selection

Pure CSS Modal

<html> <head> <style> .modalDialog {     position: fixed;     font-family: Arial, Helvetica, sans-serif;     top: 0;     right: 0;     bottom: 0;     left: 0;     background: rgba(0, 0, 0, 0.8);     z-index: 99999;     opacity:0;     -webkit-transition: opacity 400ms ease-in;     -moz-transition: opacity 400ms ease-in;     transition: opacity 400ms ease-in;     pointer-events: none; } .modalDialog:target {     opacity:1;     pointer-events: auto; } .modalDialog > div {     width: 400px;     position: relative;     margin: 10% auto;     padding: 5px 20px 13px 20px;     border-radius: 10px;     background: #fff;     background: -moz-linear-gradient(#fff, #999);     background: -webkit-linear-gradient(#fff, #999)...