Monday, June 30, 2014

Awesome, Easy, Progressive CSS3 Way

We can do this purely through CSS thanks to the background-size property now in CSS3. We'll use the html element (better than body as it's always at least the height of the browser window). We set a fixed and centered background on it, then adjust it's size using background-size set to the cover keyword.
html { 
  background: url(images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
Works in:
  • Safari 3+
  • Chrome Whatever+
  • IE 9+
  • Opera 10+ (Opera 9.5 supported background-size but not the keywords)
  • Firefox 3.6+ (Firefox 4 supports non-vendor prefixed version)
Update: Thanks to Goltzman in the comments for pointing out an Adobe Developer Connection article which features some code to make IE do cover backgrounds as well:
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='.myBackground.jpg', sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='myBackground.jpg', sizingMethod='scale')";
But careful, reader Pierre Orsander said they tried this and had some problems with links on the page going dead.
Update: Matt Litherland writes in to say that anyone trying to use the above IE filters and having problems with scrollbars or dead links or whatever else (like Pierre above) should try NOT using them on the html or body element. But instead a fixed position div with 100% width and height.

CSS-Only Technique #1

Big thanks, as usual, to Doug Neiner for this alternate version. Here we use an inline<img> element, which will be able to resize in any browser. We set a min-heightwhich keeps it filling the browser window vertically, and set a 100% width which keeps it filling horizontally. We also set a min-width of the width of the image so that the image never gets smaller than it actually is.
The especially clever bit is using a media query to check if the browser window is smaller than the image, and using a combo percentage-left and negative left margin to keep it centered regardless.
Here is the CSS:
img.bg {
  /* Set rules to fill background */
  min-height: 100%;
  min-width: 1024px;
 
  /* Set up proportionate scaling */
  width: 100%;
  height: auto;
 
  /* Set up positioning */
  position: fixed;
  top: 0;
  left: 0;
}

@media screen and (max-width: 1024px) { /* Specific to this particular image */
  img.bg {
    left: 50%;
    margin-left: -512px;   /* 50% */
  }
}
Works in:
  • Any version of good browsers: Safari / Chrome / Opera / Firefox
  • IE 6: Borked - but probably fixable if you use some kind of fixed positioning shim
  • IE 7/8: Mostly works, doesn't center at small sizes but fills screen fine
  • IE 9: Works
  • CSS-Only Technique #2

    One rather simple way to handle this is to put an inline image on the page, fixed position it to the upper left, and give it a min-width and min-height of 100%, preserving it's aspect ratio.
    <img src="images/bg.jpg" id="bg" alt="">
    #bg {
      position: fixed; 
      top: 0; 
      left: 0; 
     
      /* Preserve aspet ratio */
      min-width: 100%;
      min-height: 100%;
    }
    However, this doesn't center the image and that's a pretty common desire here... So, we can fix that by wrapping the image in a div. That div we'll make twice as big as the browser window. Then the image will be placed, still preserving it's aspect ratio and covering the visible browser window, and the dead center of that.
    <div id="bg">
      <img src="images/bg.jpg" alt="">
    </div>
    #bg {
      position: fixed; 
      top: -50%; 
      left: -50%; 
      width: 200%; 
      height: 200%;
    }
    #bg img {
      position: absolute; 
      top: 0; 
      left: 0; 
      right: 0; 
      bottom: 0; 
      margin: auto; 
      min-width: 50%;
      min-height: 50%;
    }
    Credit to Corey Worrell for the concept on this one.
    Works in:
    • Safari / Chrome / Firefox (didn't test very far back, but recent versions are fine)
    • IE 8+
    • Opera (any version) and IE both fail in the same way (wrongly positioned, not sure why)
    • Peter VanWylen wrote in to say that if you add the image via JavaScript, the img needs to have width: auto; and height: auto; to work in IE 8, 9, or 10.
  • jQuery Method

    This whole idea becomes a lot easier (from a CSS perspective) if we know if the aspect ratio of the image (inline <img> we intend to use as a background) is larger or smaller than the current aspect ratio of the browser window. If it is lower, than we can set onlythe width to 100% on the image and know it will fill both height and width. If it is higher, we can set only the height to 100% and know that it will fill both the height and width.
    We have access to this information through JavaScript. As usual around here, I like to lean on jQuery.
    <img src="images/bg.jpg" id="bg" alt="">
    #bg { position: fixed; top: 0; left: 0; }
    .bgwidth { width: 100%; }
    .bgheight { height: 100%; }
    $(window).load(function() {    
    
     var theWindow        = $(window),
         $bg              = $("#bg"),
         aspectRatio      = $bg.width() / $bg.height();
                  
     function resizeBg() {
      
      if ( (theWindow.width() / theWindow.height()) < aspectRatio ) {
          $bg
           .removeClass()
           .addClass('bgheight');
      } else {
          $bg
           .removeClass()
           .addClass('bgwidth');
      }
         
     }
                           
     theWindow.resize(resizeBg).trigger("resize");
    
    });
    This doesn't account for centering, but you could definitely alter this to do that. Credits to Koen Haarbosch for the concept behind this idea.
    Works in:
    • IE7+ (could probably get in IE6 with a fixed position shim)
    • Most any other desktop browser

    Update (June 2012): Reader Craig Manley writes in with a technique to load an appropriately sized background image according to screen. As in, don't load some huge 1900px wide background image for an iPhone.
    First, you'd make images like 1024.jpg, 1280.jpg, 1366.jpg, etc. Then instead of loading an img, you'd load a shim.
    <img id="bg" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" style="position: fixed; left: 0; top: 0" />
    If you don't like the gif shim (personally I think it's OK because it's not "content" it's a background) you could load up one of the real images instead. This code will account for that.
    Then you test the screen width and set the src of the image based on it. The code below does it on resize, which you may or may not want. You could just run the code once if you wanted.
    (function() {
    
    var win = $(window);
    
    win.resize(function() {
        
        var win_w = win.width(),
            win_h = win.height(),
            $bg    = $("#bg");
    
        // Load narrowest background image based on 
        // viewport width, but never load anything narrower 
        // that what's already loaded if anything.
        var available = [
          1024, 1280, 1366,
          1400, 1680, 1920,
          2560, 3840, 4860
        ];
    
        var current = $bg.attr('src').match(/([0-9]+)/) ? RegExp.$1 : null;
        
        if (!current || ((current < win_w) && (current < available[available.length - 1]))) {
          
          var chosen = available[available.length - 1];
          
          for (var i=0; i<available.length; i++) {
            if (available[i] >= win_w) {
              chosen = available[i];
              break;
            }
          }
          
          // Set the new image
          $bg.attr('src', '/img/bg/' + chosen + '.jpg');
          
          // for testing...
          // console.log('Chosen background: ' + chosen);
          
        }
    
        // Determine whether width or height should be 100%
        if ((win_w / win_h) < ($bg.width() / $bg.height())) {
          $bg.css({height: '100%', width: 'auto'});
        } else {
          $bg.css({width: '100%', height: 'auto'});
        }
        
      }).resize();
      
    })(jQuery);

Wednesday, June 25, 2014

जनरल नॉलेज : चमेली फूल के बारे में खुशबूदार फूल चमेली

ND










चमेली एक खुशबूदार फूल है। यह सारे भारत में पाया जाता है। आमतौर पर चमेली की बेल घरों, बगीचों में आसानी से देखी जा सकती है, जिसकी खुशबू मादक और मन को प्रसन्न करती है। 


उत्तरप्रदेश के फर्रुखाबाद, जौनपुर और गाजीपुर जिले में इसे व्यावसायिक तौर पर काफी बड़ी मात्रा में उगाया जाता है। चमेली के फूल, पत्ते तथा जड़ तीनों ही औषधीय कार्यों में प्रयुक्त किए जाते हैं।

इसके फूलों से तेल और इत्र का निर्माण भी किया जाता है। चमेली के पत्ते हरे और फूल सफेद रंग के होते हैं, परंतु कहीं-कहीं पीले रंग के फूलों वाली चमेली की बेलें भी पाई जाती हैं।

इसका स्वाद तीखा और सुगंधित होता है। चमेली का तेल और इत्र एक व्यावसायिक उत्पाद है, जो चमेली के फूलों से बनाया जाता है। चमेली का रस पीने से वात और कफ में काफी आराम मिलता है। यह शरीर को चुस्त-दुरुस्त और मन को प्रसन्न रखती है।

जनरल नॉलेज : दामोदर नदी के बारे में

ND










दामोदर नदी पश्चिम बंगाल और झारखंड में बहने वाली एक प्रमुख नदी है। यह नदी छोटा नागपुर की पहाड़ियों से 610 मीटर की ऊंचाई से निकलती है, जो लगभग 290 किमी का सफर झारखंड में तय करती है। उसके बाद पश्चिम बंगाल में प्रवेश कर 240 किमी का सफर तय करके हुगली नदी में मिल जाती है।

झारखंड में इसे देवनद के नाम से भी जाना जाता है। दामोदर नदी अपनी बाढ़ों के लिए कुख्यात थी। इसीलिए इस नदी को बंगाल का शोक कहा जाता था।

दामोदर नदी पलामू जिले से निकलकर हजारीबाग, गिरीडीह, धनबाद होते हुए बंगाल में प्रवेश करती है, जहां रानीगंज, आसनसोल के औद्योगिक क्षेत्र से होती हुई बांकुड़ा जिले की सीमा रेखा बन जाती है। हजारीबाग से वर्द्धमान जिले तक इस नदी की धारा काफी तेज होती है, क्योंकि यहां पठारी भाग से नीचे की ओर बहती है।

वर्द्धमान के बाद हुगली जिले में दामोदर नदी समतल मैदानी भाग में पहुंचती है जहां इसकी धारा मंद पड़ जाती है। यहां पर यह डेल्टा बनाने लग जाती है। और हावड़ा के निकट से होती हुई हुगली के साथ मिलकर बंगाल की खाड़ी में मिल जाती है। दामोदर की सहायक नदियों में कोनार, बोकारो और बराकर प्रमुख हैं। ये नदियां गिरीडीह, हजारीबाग और बोकारो जिले में है।

दामोदर घाटी को हमेशा बाढ़ की विध्वंसता का सामना करना पड़ता था, जिसका सबसे विध्वंसकारी प्रमुख प्रलय 1730 में रिकॉर्ड किया गया। अमेरिका की टेनिसी घाटी परियोजना की तर्ज पर यहां दामोदर घाटी परियोजना की संरचना भारत के पहले प्रधानमंत्री पं. जवाहरलाल नेहरू के कार्यकाल में की गई थी।

इससे बाढ़ों का आना रुका तथा नई-नई सिंचाई परियोजनाएं तथा पनबिजली उत्पादन केन्द्र भी स्थापित हुए। 7 जुलाई 1948 को अस्तित्व में आई इस परियोजना के उद्देश्य थे- बाढ़ नियंत्रण व सिंचाई, विद्युत का उत्पादन, पारेषण और वितरण, पर्यावरण संरक्षण,औद्योगिक और घरेलू उपयोग हेतु जलापूर्ति।

Tuesday, June 24, 2014

Rajnikant Jokes

Why does the needle of a Magnetic compass always point North? Because Rajnikant lives in south & nobody dares to point at him...!

People Update Status Via BlackBerry, iPhone, iPad, Etc.. Rajnikant Updates Status Via Calculator...

Reporter to Rajnikant: how many jokes have been made on you till now?
Rajni: only 2 or 3.
Reporter: only 2 or 3?
Rajni: enna RASCALA! Rest all are facts!

Rajnikanth's dog's house has a signboard on it, saying..
Maalik Se Sawdhan!

Once Rajnikant Decided To Race With Time.. & The Result Is Time Is Still Running

Rajnikant participated in 1000 m race and obviously he came first But EINSTEIN died after watching that Coz ... LIGHT came second...

Galileo used 'Lamp' to Study, Graham bell used 'Candle' to study, Shakshpeare studied in 'Street lights' But .....
Do u know about Rajnikant......????
Only Agarbatti

When Rajnikant was a student! You can't guess this one...
Teachers used to bunk!

While playing once Rajnikant said "statue" to a girl... Now that Statue is know as
"Statue of Liberty"

Rajinikanth's calendar goes straight from March 31st to April 2nd, no one fools Rajnikant.

Once Rajnikant was playing cricket in the monsoons.... and .... The rain was cancelled due to the match.

Why did british leave India in 1947?
Bcoz. they came to know Rajnikant was going to be born in 1948...

This Msg. is Sent in the Interest of Humanity- Guys Stop making Jokes on Rajnikant or else he will Delete INTERNET.

Hindi Jokes

AJ Radio lekar khet me potti karne gaya.
DJ:Aaj to maje se ki hogi?
AJ:Khak maje se ki, radio pe Jan-Gan-Man aa gaya. Khade khade kani padi.
-------------------------------------------------------------------------------------
Saas (bahu se): Bhagwan ne tumhe 2-2 aankhe di. Chawal me se 2-4 pathhar nahi nikal sakti kya.
Bahu: Very funny! Bhagwan ne tumhe 32 daant diye 2-4 pathhar bhi nahi chaba sakti ?
-------------------------------------------------------------------------------------
1 ldki prfum lga k bus pe chadi. Ldke ne coment pas kiya.
Aajkl phinel ka use kuch zyada h hota hai.
Ldki boli fir bhi cockroch picha nhi chorte
-------------------------------------------------------------------------------------
AJ : matlbi dost se bach kar raho.
DJ : magar matlbe dost ka pta kaise chalega.
AJ : simple,sare dosto ko msg karojo reply na de samjah lo wo hi matlbi hai.
-------------------------------------------------------------------------------------
Girl- kya tum mujhse pyar karte ho..?
AJ- haan
Girl- lekin tume to meri parwaah hi nahi
AJ- oye....pyar karne wale kisi ki parwaah nahi karte!
****************************************************************

Sunday, June 22, 2014

akbar birbal stories in hindi - मासूम सज़ा


एक दिन बादशाह अकबर ने दरबार में आते ही दरबारियों से पूछा – किसी ने आज मेरी मूंछें नोचने की जुर्रत की। उसे क्या सज़ा दी जानी चाहिए।

दरबारियों में से किसी ने कहा – उसे सूली पर लटका देना चाहिए, किसी ने कहा उसे फाँसी दे देनी चाहिए, किसी ने कहा उसकी गरदन धड़ से तत्काल उड़ा देनी चाहिए।

बादशाह नाराज हुए। अंत में उन्होंने बीरबल से पूछा – तुमने कोई राय नहीं दी!
बादशाह धीरे से मुस्कराए, बोले - क्या मतलब? 

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

बादशाह ने ठहाका लगाया और अन्य दरबारी बगलें झांकने लगे।

Thursday, June 19, 2014

Comedy Night With Kapil

Wife: Main driver ko naukri se nikal rahi hoon, aaj marte-marte bachi hoon
Husband: Please use ek aur mauka de do!!
.................................................................................
apil Sharma vs. Auto rickshaw driver:
Kapil: kitna paisa hua?
Auto wala: 30 Rs..
Kapil: Ye le 15 Rs
Auto Wala: Ye kya sirf 15 Rs.. ye to cheating hai
Kapil: Cheating kaise..Tu bhi to baith k aaya hai.. to sharing ka paisa kon dega, Tera baap? :-D
.................................................................................
Teacher: Tum mirror ke saamne baithkar kyun padhte ho…
Kapil Junior:
Madam, Iske 3 faayde hain
1) Padhne ke liye company mil jaati hai
2) Khud par nazar bhi rehti hai
3) Saath mein revision bhi ho jaata hai
.................................................................................
Jo Kehte the mujhe, Dil mein tumhe lock kar diya
Jo Kehte the mujhe, Dil mein tumhe lock kar diya

Aaj ussi ne facebook par block kar diya!
.................................................................................
A guy from the audience says:
Ji main aapka bahut bada fan hun.
Maine aapki Saari hollywood and bollywood movies dekhi hain.
Aapke saath aapki movie ka ek step karna chahta hoon!!
Yeh baat sunkar siddhu says:
Guru,
Har Peela fruit aam nhi hota,
Glass me mut ke piyo to vo jam nhi hota,
Har sita ka pati ram nhi hota,
Thodi jeb dhili karo or uthao hotel ka kharcha,
Kyunki ye vo step hai jo khulle aam nhi hota
.................................................................................
Palak’s Shayari for Madhuri Dixit
Mera dhuadaar dance dekh ke
ek din aap mujhe daad doge
Mera dhuadaar dance dekh ke
ek din aap mujhe daad doge
tamma tamma loge, tamma tamma loge tamma…
Palak’s Shayari for Huma Qureshi
Thande paani se nahane se
Bachcho ko ho jaata hai pneumonia
Thande paani se nahane se
Bachcho ko ho jaata hai pneumonia
oo woomaniya, aaaa woomaniya, e-e woomaniya!
.................................................................................'
alak’s poem for Ali Zafar who came for promotion of ‘Total Siyapa’ Movie with Yami Gautam.
Jab kadkadati dhoop mein,
Main swimming karti hoon
Jab kadkadati dhoop mein,
Main swimming karti hoon
mera rang pad jata hai kala…
(kapil: shareer ladki ka muh halwai wala)
Palak:
Panghat pe naache, nache re nache madhubala!
.................................................................................
Gutthi
——-
Arz thoka hai..
Tum kya keemat lagaoge is bazaar mein meri wafa ki,
Tum kya keemat lagaoge is bazaar mein meri wafa ki,
Jidhar dekho bazaar mein 50% off chal raha hai!!
Kapil
——
Rishton ke bazaar mein mohabbat ki daulat na baantna,
eacher Santa se: Explain ‘Dahi’ in English
Santa:
Milk sleeping in the night,
and sawere sawere tight!!
............................................................................
Exams ke Pehle Santa ne ek hi essay ratta mara tha -
‘MY FRIEND’
Aur exams me pucha Gaya …
‘MY FATHER’
Lekin Santa ghabhraya Nahi. Haushiyari dikha ke “friend” ki jagah pe “father” word likh kar aa Gaya.
Jis examiner ne uski answersheet check ki voh aaj tak behosh hai !!

............................................................................
A lady asked Santa: LIPTON di chah hai?
Santa replied: Mainu ta nahi hai ji, tainu hai ta lipat ja…!
............................................................................
Santa calls WHITE HOUSE
Santa: I want to become the next president of USA…
............................................................................
Banta Singh and Santa Singh got tired with the mobile communication
They decide to use the conventional method of communication.
That is to use pigeons to send messages.
One day Santa sends his pigeon.
When the pigeon reached Banta, it was without any message.
............................................................................
Daku bank lutne gaye..
Gun ghar mein bhool gaye
fir bhi bank lut lia
kaise?
............................................................................
Santa ki tapsya se khush ho kar bhagwan bole:
VAR MANGO VATS’
Santa: Prabhu!! jaisa aap soch rahe hai mein vaisa nahi hu..
‘MUJHE VADHU CHAHIYE’
............................................................................
Rajnikant vs santa:
opening Question to both in a competition..
What is half of 8?
Rajni: 4
Santa: Depend karta hai.

English Jokes

SANTA:maine apni beti ka shaadi sirf 1500rs mein kiya.
BANTA:woh kaise?
SANTA:maine use 1500 ka ek mobile dilaaya. usne love marriage karliy
Santa- muje zehar dena
Chemist- pehle Dr. Se lekhwa k lao.
Santa-apni shaadi ka card dikhata h.
Chemist- bus kar bhai rulayega kya,badi bottle du ya
chhoti.
Master- 2 me se 2 gye to kitne rhe?
Sardar-samjh me nhi aya masterji.
Mster-Beta tumare pas 2 Roti h,tumne 2 roti khali,tumare pas kya bacha?
Sardar-sabji..!
2 Sardar train k piche bhaag rahe the..
Ek chadh gaya, to train me logo ne kaha"WELL DONE"

Sardar-khak wel done,Jana to use tha,

Mai to chhodne aya tha!!
Santa-What's D Difference Between Mother's & GF's Tears?

Classic Answer By Banta-

Mother's Tears Effect Our HEART & GF's Tears Effect Our POCKET...

Sardar Roz Subha 50 ladkiya mera intezar karti hain
man- are wah Vo kaise?
sardar- Main Girls collage ka busdriver Hu na.
Snta Pe Bijli Ki Taar Gir Gayi:
Snta Tdp Tdp k Mrne Hi Wala Tha.

Ki

Use Yad Aya,
Bijli to 2 Din Se Bnd h. Wapas uth gya or bola, ' Sala! dara diya.
Teacher - un do kings ka naam batao jinhone duniya ke logo ko nayi raah pe chalaya.....

Santa - sir

1.SMO KING

2.DRIN KING.. . .