Saturday, December 31, 2011

Transcript of Steve Job's famous speech:


I found this from here: http://aadrat.blogspot.com


Transcript of Steve Job's famous speech:

I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I've ever gotten to a college graduation. Today I want to tell you three stories from my life. That's it. No big deal—just three stories.

The first story is about connecting the dots.

I dropped out of Reed College after the first 6 months, but then stayed around as a drop-in for another 18 months or so before I really quit. So why did I drop out?

It started before I was born. My biological mother was a young, unwed college graduate student, and she decided to put me up for adoption. She felt very strongly that I should be adopted by college graduates, so everything was all set for me to be adopted at birth by a lawyer and his wife. Except that when I popped out they decided at the last minute that they really wanted a girl. So my parents, who were on a waiting list, got a call in the middle of the night asking: "We have an unexpected baby boy; do you want him?" They said: "Of course." My biological mother later found out that my mother had never graduated from college and that my father had never graduated from high school. She refused to sign the final adoption papers. She only relented a few months later when my parents promised that I would someday go to college.

And 17 years later I did go to college. But I naively chose a college that was almost as expensive as Stanford, and all of my working-class parents' savings were being spent on my college tuition. After six months, I couldn't see the value in it. I had no idea what I wanted to do with my life and no idea how college was going to help me figure it out. And here I was spending all of the money my parents had saved their entire life. So I decided to drop out and trust that it would all work out OK. It was pretty scary at the time, but looking back it was one of the best decisions I ever made. The minute I dropped out I could stop taking the required classes that didn't interest me, and begin dropping in on the ones that looked interesting.

It wasn't all romantic. I didn't have a dorm room, so I slept on the floor in friends' rooms, I returned coke bottles for the 5¢ deposits to buy food with, and I would walk the 7 miles across town every Sunday night to get one good meal a week at the Hare Krishna temple. I loved it. And much of what I stumbled into by following my curiosity and intuition turned out to be priceless later on. Let me give you one example:

Reed College at that time offered perhaps the best calligraphy instruction in the country. Throughout the campus every poster, every label on every drawer, was beautifully hand calligraphed. Because I had dropped out and didn't have to take the normal classes, I decided to take a calligraphy class to learn how to do this. I learned about serif and san serif typefaces, about varying the amount of space between different letter combinations, about what makes great typography great. It was beautiful, historical, artistically subtle in a way that science can't capture, and I found it fascinating.

None of this had even a hope of any practical application in my life. But ten years later, when we were designing the first Macintosh computer, it all came back to me. And we designed it all into the Mac. It was the first computer with beautiful typography. If I had never dropped in on that single course in college, the Mac would have never had multiple typefaces or proportionally spaced fonts. And since Windows just copied the Mac, it's likely that no personal computer would have them. If I had never dropped out, I would have never dropped in on this calligraphy class, and personal computers might not have the wonderful typography that they do. Of course it was impossible to connect the dots looking forward when I was in college. But it was very, very clear looking backwards ten years later.

Again, you can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something — your gut, destiny, life, karma, whatever. This approach has never let me down, and it has made all the difference in my life.

My second story is about love and loss.

I was lucky — I found what I loved to do early in life. Woz and I started Apple in my parents' garage when I was 20. We worked hard, and in 10 years Apple had grown from just the two of us in a garage into a $2 billion company with over 4000 employees. We had just released our finest creation — the Macintosh — a year earlier, and I had just turned 30. And then I got fired. How can you get fired from a company you started? Well, as Apple grew we hired someone who I thought was very talented to run the company with me, and for the first year or so things went well. But then our visions of the future began to diverge and eventually we had a falling out. When we did, our Board of Directors sided with him. So at 30 I was out. And very publicly out. What had been the focus of my entire adult life was gone, and it was devastating.

I really didn't know what to do for a few months. I felt that I had let the previous generation of entrepreneurs down - that I had dropped the baton as it was being passed to me. I met with David Packard and Bob Noyce and tried to apologize for screwing up so badly. I was a very public failure, and I even thought about running away from the valley. But something slowly began to dawn on me — I still loved what I did. The turn of events at Apple had not changed that one bit. I had been rejected, but I was still in love. And so I decided to start over.

I didn't see it then, but it turned out that getting fired from Apple was the best thing that could have ever happened to me. The heaviness of being successful was replaced by the lightness of being a beginner again, less sure about everything. It freed me to enter one of the most creative periods of my life.

During the next five years, I started a company named NeXT, another company named Pixar, and fell in love with an amazing woman who would become my wife. Pixar went on to create the worlds first computer animated feature film,Toy Story, and is now the most successful animation studio in the world. In a remarkable turn of events, Apple bought NeXT, I returned to Apple, and the technology we developed at NeXT is at the heart of Apple's current renaissance. And Laurene and I have a wonderful family together.

I'm pretty sure none of this would have happened if I hadn't been fired from Apple. It was awful tasting medicine, but I guess the patient needed it. Sometimes life hits you in the head with a brick. Don't lose faith. I'm convinced that the only thing that kept me going was that I loved what I did. You've got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.

My third story is about death.

When I was 17, I read a quote that went something like: "If you live each day as if it was your last, someday you'll most certainly be right." It made an impression on me, and since then, for the past 33 years, I have looked in the mirror every morning and asked myself: "If today were the last day of my life, would I want to do what I am about to do today?" And whenever the answer has been "No" for too many days in a row, I know I need to change something.

Remembering that I'll be dead soon is the most important tool I've ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure - these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.

About a year ago I was diagnosed with cancer. I had a scan at 7:30 in the morning, and it clearly showed a tumor on my pancreas. I didn't even know what a pancreas was. The doctors told me this was almost certainly a type of cancer that is incurable, and that I should expect to live no longer than three to six months. My doctor advised me to go home and get my affairs in order, which is doctor's code for prepare to die. It means to try to tell your kids everything you thought you'd have the next 10 years to tell them in just a few months. It means to make sure everything is buttoned up so that it will be as easy as possible for your family. It means to say your goodbyes.

I lived with that diagnosis all day. Later that evening I had a biopsy, where they stuck an endoscope down my throat, through my stomach and into my intestines, put a needle into my pancreas and got a few cells from the tumor. I was sedated, but my wife, who was there, told me that when they viewed the cells under a microscope the doctors started crying because it turned out to be a very rare form of pancreatic cancer that is curable with surgery. I had the surgery and I'm fine now.

This was the closest I've been to facing death, and I hope it’s the closest I get for a few more decades. Having lived through it, I can now say this to you with a bit more certainty than when death was a useful but purely intellectual concept:

No one wants to die. Even people who want to go to heaven don't want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life's change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true.

Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma — which is living with the results of other people's thinking. Don't let the noise of others' opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.

When I was young, there was an amazing publication called The Whole Earth Catalog, which was one of the bibles of my generation. It was created by a fellow named Stewart Brand not far from here in Menlo Park, and he brought it to life with his poetic touch. This was in the late 1960's, before personal computers and desktop publishing, so it was all made with typewriters, scissors, and Polaroid cameras. It was sort of like Google in paperback form, 35 years before Google came along: it was idealistic, and overflowing with neat tools and great notions.

Stewart and his team put out several issues of The Whole Earth Catalog, and then when it had run its course, they put out a final issue. It was the mid-1970s, and I was your age. On the back cover of their final issue was a photograph of an early morning country road, the kind you might find yourself hitchhiking on if you were so adventurous. Beneath it were the words: "Stay Hungry. Stay Foolish." It was their farewell message as they signed off. Stay Hungry. Stay Foolish. And I have always wished that for myself. And now, as you graduate to begin anew, I wish that for you.

Stay Hungry. Stay Foolish.

Friday, December 30, 2011

May be after 20 years


Shafeen (with red trouser) and Faisal standing inside the big Buddha statue area.


Where I live there is a big Temple of Buddha. It’s a big compound. Here they have school (kindergarten, high school), big pond, garden, playground, boy’s hostel, orphanage, off course temple etc. Many years ago when I was a primary school going girl went to visit this place. I was surprise because the place is very big and beautiful. After many years yesterday I went there with my hubby and son. They liked it very much, but I found that place became smaller. Actually not, many be that time my size was little so I found everything too big, no they are smaller. Though my hubby said it is a big place. People can go there and have some nice time by just walking.

Thursday, December 29, 2011

Fharper EEMS



In your personal life, what do you generally care for? Apartments, housing, beauty, cars, door bells or lawyers? From where do you get your easy consultancy? Off course from net. You will search about these topics, and then will check one after another link, to find out your desire answers. Let me help you a bit. You can visit here Fharper EEMS Here You will find about Apartment and Housing, Beauty, Cars, Door Bells, Lawyers, Parental, SEO, Skin Care, Solar Technology, Turmeric, Wedding, Whole Sale, Wrestlers etc.

CSS: Numbers: Integers


By Richard York


CSS allows numbers as values for several properties. Two types of numbers are accepted by CSS: integers and real numbers. Like strings, integers and real numbers are data types and are often used in CSS for the measurement of length. The first type, integer, is expected to be exclusively a whole number, meaning no decimals are allowed.

Integers

In CSS, an integer may be preceded by a plus (+) or minus (-) to indicate the sign. Although some properties do not accept negative values, many do. As you can see in the following example, one property that allows negative values is the margin property.
Try It Out-Setting a Negative Margin
Enter the following markup:
Example 2-8. To see what happens when the margin property has a negative value, follow these steps.
  1. Save the markup that you entered as Example_2-8.html, and load it into your favorite browser. You should see something like what you see in Figure 2-23.

    Figure 2-23

How It Works
From Figure 2-23, you can see that the position of the
element has been altered by the addition of the negative margin. It has been moved a little off-screen on the left and just a tad off-screen on the top.

Wednesday, December 28, 2011

Home service from general shops



I think, now we need home service from general shops. You know, my condition is I am little sick. My son is sick, I had to cook and take care of him, take care of myself. Now how can I go outside and buy things. It’s difficult for me to make time with a small kid. I wish our general shops which we have near our house start home delivery. Where I can ask for daily necessary things and they will deliver to me. Like eggs, honey, fruit etc. Which I need and I have to make time to go out and bring all.

Tuesday, December 27, 2011

CSS: Values: Absolute Measurement


Absolute Measurement

By Richard York

CSS supports a variety of real-world measurements. Each absolute length unit supported by CSS is defined in the following table.
Open table as spreadsheet
Unit Abbreviation
Description
in
Inches
cm
Centimeters
mm
Millimeters
pt
Points, 1 point is equal to 1/72nd of an inch
pc
Picas, 1 pica is equal to 12 points
Absolute lengths are not intended for the computer screen; they are intended for where a physical measurement is necessary. For example, printing a document requires real-word measurements. When you are composing a web document, you want the printable version of that document to be made using lengths that are reliable for the print environment.
On the other hand, when absolute measurements are applied to the computer screen, some inconsistencies surface.
The Pitfalls of Onscreen Absolute Measurement
Coding real-world physical lengths into a computer isn’t as easy as it may seem. When applied to a computer screen, physical measurements are based on pixels. Pixels are tiny dots that a computer monitor uses to create the image you see, and the number of pixels displayed depends on the monitor’s screen resolution. For example, a computer monitor set to an 800 × 600 screen resolution displays 800 pixels horizontally and 600 pixels vertically for a possibility of 480,000 total pixels.
Windows defines one inch as 96 pixels, by default. The definition of an inch as 96 pixels depends on an operating system display setting called DPI, or dots per inch. The DPI setting of an operating system is a user-configurable setting for defining the number of dots (or pixels) that make up an inch.
In the earlier days of the web, Macintosh and Windows had different DPI settings; a Mac’s default DPI was 72 and Windows’ was 96. Today all modern browsers, including those on the Macintosh, have standardized on Windows’ 96 DPI measurement as the de facto default standard for DPI. While this de facto standardization makes for a greater likelihood of consistency, because the DPI setting can be customized, absolute measurement cannot be relied upon for onscreen layout. For example, Firefox still includes a setting in its font options menu for the DPI to either 72 or 96 DPI, and it’s possible to change the DPI setting through other means, such as within Windows display settings control panel.
Figure 2-16 shows Firefox 1.5’s DPI setting, a setting that has since been eliminated from Firefox 2.0, since Macs just use the same DPI setting as Windows these days.

Figure 2-16
In the next two examples, you set up an experiment to see how the DPI can affect absolute measurements in CSS, and ultimately discover the reason why absolute measurements are not suited for onscreen layout purposes.
Try It Out-Testing 96 DPI Equals an Inch

Example 2-5. To see a side-by-side comparison of pixels to inches, follow these steps.
  1. Enter the following document:
    
    
    
  1. Save the document you just created as Example_2-5.html.
  2. Open the document in your browser of choice. Figure 2-17 shows two
    elements: The top
    element has a height and width of 1 inch, and the bottom
    has a height and width of 96 pixels. Both have a black background with white text for clarity. Switching the screen resolution from 800 × 600 pixels to 1280 × 1024 shows that the measurement of 1 inch remains the same as the 96-pixel measurement.

    Figure 2-17
How It Works
By default, browsers conform to the Windows default of 96 dots per inch for the onscreen definition of what an inch is.

Obviously, since absolute measurement is not well suited for onscreen layout, there must surely be another, right? Yes! The other method of measurement in CSS is relative measurement.

Relative Measurement

Relative measurement is better suited for the purpose of onscreen layout. The following table defines the four types of relative measurement that CSS allows.
Open table as spreadsheet
Unit Abbreviation
Description
em
Length relevant to the nearest font size.
ex
The x-height of the relevant font (height of the letter x).
px
Pixels, relative to the viewing device, for example, a computer monitor.
%
Percentage measurement; how percentage length is calculated depends on what property it is being applied to.
The em and ex units are measured relative to the font size of a document, pixels use the real pixels of the monitor’s screen resolution, and percentage measurement depends on what property it is being applied to. In the coming sections you explore each type of relative measurement in greater detail.
Measurement Based on the Font Size
Measurement in em is currently the most favored of relative measurement for onscreen layout, for most measurements. A measurement that is relative to the font size allows for designs that scale up and down gracefully with the user’s font size preferences.
Try It Out-Comparing em to Pixels

Example 2-6. To see how the em measurement compares to pixel measurement, follow these steps.
  1. Enter the following XHTML document:
    
    
    
  1. Save the preceding document as Example_2-6.html, and load it up in your favorite browser. When Example 2-6 is loaded up, you should see something like that in Figure 2-18.

    Figure 2-18
How It Works
In Figure 2-18 you see that 12em is the same measurement as 192 pixels. When the font size is set to 16 pixels (the default in all modern browsers). So with the em unit, you can layout a whole web page that scales with the user’s font size preference.
All modern browsers provide a mechanism for scaling the font size up or down to the user’s preference. On the Mac, -+ increases the size of the text, and on Windows, it’s Ctrl-+. Figure 2-19 shows what happens when the text is scaled up in Safari or Firefox with Example 2-6 loaded.

Figure 2-19

In Figure 2-19, you see that the 12em measurement no longer matches the 192-pixel measurement when the text is scaled up. IE 7 and Opera do not display the effect the same as seen in Figure 2-19, however, since they scale everything, even the size of a pixel.
Figure 2-20 shows what happens when text is scaled down.


Figure 2-20

In Figure 2-20, the opposite of what you observed in Figure 2-19 has happened; the top paragraph is now smaller than the paragraph with a 192-pixel width. Em measurement lets you layout a web page with the font size preferences of the end user in mind, which in turn makes your website more accessible to people with visual disabilities. Again, IE 7 and Opera do not display the effect the same as shown in Figure 2-20, since they scale all content, which many would argue is much better than having designers trying to design scalable websites with features like the em unit. The IE 7 and Opera approach takes designers out of the equation and puts users in charge, which is much better for accessibility.


Like the em unit, the ex unit is based on font size, but unlike the em unit, the ex unit is based on the height of the lowercase letter “x.”
Measurements Based on the Height of the Lowercase Letter x
The ex measurement, also known as x-height, is (like the em) based on the font size. However, the ex measurement is relative to the height of the lowercase letter x. The ex measurement is another unit of measurement derived from typography.
Like measurement in inches, the ex measurement is unreliable, but for different reasons. Because it is difficult to determine the actual height of the lowercase letter x for a given font, most browser creators take a shortcut in implementing the ex measurement. Instead of relying on the height of the lowercase letter x, ex measurement is defined by taking the measurement of half of 1em, or 0.5em. Because of its inconsistencies, ex measurement is yet another unit of measure to be avoided when designing for display on a computer monitor.
Pixel Measurements
As you may have guessed from the discussion in this chapter about absolute measurements, pixels, the px measurement, are measured relative to the computer monitor’s settings. This measurement depends on the resolution of the user’s monitor. For instance, a 1px measurement viewed at a resolution of 800 × 600 is larger than a 1px measurement viewed at a resolution of 1024 × 768.
Pixels are easiest to understand when they specify the width and height of an image because most images are created based on the number of pixels they contain. This type of image is known as a bitmap image. Examples of bitmap images are the J-PEG, GIF, and PNG image formats. These image formats store information about an image by the pixel, and those are mapped together to create the image that you see. To illustrate my point, Figure 2-21 is a screenshot of Safari’s window controls from the upper left-hand corner of Figure 2-20 while zoomed to the maximum of 1600% in Photoshop. At this level of detail the pixels are clearly visible as individual squares, and it becomes easier to imagine what a pixel is, since you’re actually seeing them.

Figure 2-21
Keeping the image portrayed in Figure 2-21 in mind, when you measure in pixels with CSS, the individual pixels are as wide as the squares you see in Figure 2-21, which can be larger or smaller depending on the screen resolution setting of your monitor.
Pixel measurements have some advantages and disadvantages. Pixel measurements use the actual pixels on your computer monitor. Although that is often fine for screen display, it is not as precise when it comes to printing documents. The size of a pixel can change depending on many factors, among which are monitor size and resolution and the fine-tuning settings that stretch and shrink the display output. Therefore, defining a pixel measurement for print leaves lots of room for browser inconsistencies. How big is a pixel in the real world? It simply isn’t a constant measurement for physical length the same way that centimeters are. 
Important 
Use the right tool for the job! Pixels should be used for measurements where a user’s font size preference won’t be a factor, and where a real-world, absolute length wouldn’t be superior, such as for print. An example of a good place to use pixels would be for the width of a border around a box.
The last type of relative measurement that CSS has to offer is percentage measurement.
Percentage Measurements
Percentage measurements are always dependent on something else; therefore, percentage measurements are also a form of relative measurement. The behavior of a percentage measurement changes depending on the element to which the measurement is being applied. Try applying a percentage width yourself.
Try It Out-Experimenting with Percentage Measurement
Example 2-7. To see how percentage measurement works, follow these steps.
  1. Enter the following markup into your text editor.
    
    
    
  1. Save the document as Example_2-7.html, and load it up into your favorite browser. When you load Example 2-7 into a browser, you should see something like Figure 2-22.

    Figure 2-22
How It Works
Percentage measurement works differently depending on what property it is applied to; you’ll continue to see examples of this throughout this book. In Example 2-7, you applied the declaration width: 100%; to the
element, and when loaded into a browser you see that the
element expands for the whole width of the window. If you’ve been paying attention, you might have noted that this result is identical to the one you observed for Example 2-3, earlier in this chapter. Yes, when applied this way, the width: auto; declaration and the width: 100%; declaration produce identical results; however, there are fundamental differences between these two completely different methods of specifying width. The percentage method used here calculates the width of the
element based on its parent element. In this case, the parent element is the element, and the width of the
is set to 100% of the width of the element, no ifs, ands, or buts. Although you may not see why auto width is different at this point, it is, and that is a topic that is much too big to get into right now.
Because it’s a presentational language, most of CSS is affected in some way by length and units of measurement. The fundamental unit for all measurements when you design for display on a computer monitor is the pixel, because computers display images in pixels. You can define lengths relative to font sizes, using em units as the most practical and consistent solution. Absolute lengths, on the other hand, are better suited for print because of the multitude of inconsistencies that occur when absolutes are used for presentations on a computer monitor. In the next section, I continue the discussion of CSS property values with a look at how CSS interprets numbers.

Numbers

CSS allows numbers as values for several properties. Two types of numbers are accepted by CSS: integers and real numbers. Like strings, integers and real numbers are data types and are often used in CSS for the measurement of length. The first type, integer, is expected to be exclusively a whole number, meaning no decimals are allowed.

Integers

In CSS, an integer may be preceded by a plus (+) or minus (-) to indicate the sign. Although some properties do not accept negative values, many do. As you can see in the following example, one property that allows negative values is the margin property.
Try It Out-Setting a Negative Margin
Example 2-8. To see what happens when the margin property has a negative value, follow these steps.
  1. Enter the following markup:
    
    
    
  2. Save the markup that you entered as Example_2-8.html, and load it into your favorite browser. You should see something like what you see in Figure 2-23.

    Figure 2-23
How It Works
From Figure 2-23, you can see that the position of the
element has been altered by the addition of the negative margin. It has been moved a little off-screen on the left and just a tad off-screen on the top. This is one example of how you can use an integer in CSS. 

Real Numbers

Real numbers can have a decimal value, and decimal values increase the precision of measurements in CSS. As was the case for integers, real numbers in CSS can also be preceded by plus (+) or minus () to indicate the number’s sign. The value 1.2em, for example, means 1.2 times the font size. As in mathematics, a positive sign is assumed if no sign is present. If I have a declaration that says margin-left: -1.2em;, this causes an element to shift to the left 1.2 times the font size.
CSS provides some basic and reasonable rules for the specification of integers and real numbers in property values. 

Don’t give chance to anybody to change your mind



If you want to live alone, then don’t give any chance to anybody to make your decision change. I had decided myself when I was just 13 that I am not going to get marry to anyone. I will live alone. And I found, in lonely life the only problem is that I feel that I am alone. Otherwise there is no problem at all!  Trust me.  And I was happy, really happy.

I always listen to others, and then think, should I listen to them? Are they right? Then I took my decision. Now I think in this case I shouldn’t listen to others. Because this way, many people had manipulated me to change my mind about marriage. Like some said, I am a woman not just a human, I should give chance to boys to change my mind and see what they can do. Because I generally didn’t let any boy come near to me. And I was right. Because if you give chance, then anybody can influence you by their words, then may hurt you. This happened to me finally. I shouldn’t let any man come near to my mind. Now I understand, if anyone decided to live alone, no problem with that, just don’t let anyone to influence and take advantage from your life and then left.

Monday, December 26, 2011

CSS: Values: String

By Richard York

A string is any sequence of characters. For example, “Hello, World” is a string. In most programming languages and in CSS, strings are enclosed within either single or double quotation marks. A string is what is known as a data type. Data types are used to classify information. Integers, real numbers, and strings are examples of data types. Strings may contain text, numbers, symbols - any type of character. An integer can be a number that has a positive or negative value, and can only be a whole number, no decimals. A real number can have decimal places. These data types are made to conform to their defined rules by the language. Whereas a string can contain any character, real numbers are expected to be whole numbers or decimals; a string cannot appear where a real number is expected, and a real number cannot appear where an integer is expected, and so on.
One use of strings in CSS is to specify a font that contains spaces in its name.
font-family: "Times New Roman", Times, serif;
Font faces with spaces in the name are enclosed with quotations to keep the program that interprets CSS from getting confused. The quotes act as marking posts for where the font face’s name begins and ends.
Strings may also be used to include content in an HTML document from a style sheet. Try including content from a style sheet for yourself.
Try It Out-Including Content from a Style Sheet
Image from book
Example 2-4. To include content from a style sheet, follow these steps.
  1. Type in the following document:


  1. Save the document as Example_2-4.html.
  2. Open the example with Safari, Firefox, or Opera - IE 6 and IE 7 don’t support this feature. Figure 2-15 shows that the string “I said, “Hello, world!”” is inserted into the
    element using the content property.

Figure 2-15
How It Works
You included the string “I said, “Hello, world!”” in the HTML document by using the CSS content property.
Image from book

Strings may contain any sequence of characters of any length (at least up to whatever arbitrary limit a browser may have defined) - even quotation marks are allowed. However, strings may contain quotation marks only if they’re escaped using another special character, the backslash character. When you escape quotation marks, you tell the browser: “Ignore the quotation mark; it is part of the string.” The backslash is used to quote Foghorn Leghorn in the following code:

the single quotes do not have to be escaped because double quotes enclose the string.

Sunday, December 25, 2011

"guide to a better life"



I had got this post from this blog
http://mvkinfo.blogspot.com

Live ur Life !
This is amazing, Randy Pausch-he died of pancreatic cancer in 2008, but wrote a book ‘The last lecture” before then, one of the bestsellers in 2007. What a legacy to leave behind…

In a letter to his wife Jai and his children, Dylan, Logan, and Chloe, he wrote this beautiful "guide to a better life" for his wife and children to follow.
May you be blessed by his insight.


POINTS ON HOW TO IMPROVE YOUR LIFE

Personality:1. Don't compare your life to others'. You have no idea what their journey is all about.
2. Don't have negative thoughts of things you cannot control. Instead invest your energy in the positive present moment
3. Don't over do; keep your limits
4. Don't take yourself so seriously; no one else does
5. Don't waste your precious energy on gossip
6. Dream more while you are awake
7. Envy is a waste of time. You already have all you need..
8. Forget issues of the past. Don't remind your partner of his/her mistakes of the past. That will ruin your present happiness.
9. Life is too short to waste time hating anyone. Don't hate others.
10. Make peace with your past so it won't spoil the present
11. No one is in charge of your happiness except you
12. Realize that life is a school and you are here to learn.
Problems are simply part of the curriculum that appear and fade away like algebra class but the lessons you learn will last a lifetime.
13. Smile and laugh more
14. You don't have to win every argument. Agree to disagree.

Community:15. Call your family often
16. Each day give something good to others
17. Forgive everyone for everything
18. Spend time with people over the age of 70 & under the age of 6
19. Try to make at least three people smile each day
20. What other people think of you is none of your business
21. Your job will not take care of you when you are sick. Your family and friends will. Stay in touch.

Life:22. Put GOD first in anything and everything that you think, say and do. 23. GOD heals everything
24. Do the right things
25. However good or bad a situation is, it will change
26. No matter how you feel, get up, dress up and show up
27. The best is yet to come
28. Get rid of anything that isn't useful, beautiful or joyful
29. When you’re awake alive in the morning, thank GOD for it
30. If you know GOD you will always be happy. So, be happy.

Saturday, December 24, 2011

CSS: Values


By Richard York

CSS can become quite complex in terms of what it allows a property’s value to be. There are different types of values that CSS allows in greater detail, let’s beginning with keyword values.
Keywords
A keyword value is used to invoke a predefined function. For example, red, green, and blue are CSS keywords, red, green and blue; all have a predefined purpose. Color keywords can be used on any property that accepts a color value. Figure 2-12 shows some examples of keywords in a style sheet

The keywords in Figure 2-12 are no-repeat, fixed, and lightblue. no-repeat and fixed provide the browser with instructions for how to render the background image. lightblue is a keyword that tells the browser what color the text of hyperlinks should be.
Many types of keywords are used in CSS, and sometimes a single keyword can have different meanings depending on the element to which it is applied. The auto keyword, for example, is used by CSS to apply some default style or behavior, and its meaning depends on the way it’s used, and what property it is used with. Try the auto keyword in this example.
Try It Out-Adding auto width to a Table
Image from book
Example 2-2. To see the effects of the auto keyword as applied to a
element, follow these steps.
  1. Enter the following XHTML-compliant markup.

  1. Save the preceding markup as Example_2-2.html, and then load it into a browser. Figure 2-13 shows width: auto; applied to the
element.

Figure 2-13

How It Works
In Figure 2-13, you can see that the table expands only enough to accommodate the text within it.
Image from book

When width: auto; is applied to a
element, it invokes a different mechanism for width measurement than when it is applied to a
element. Next, see what happens when auto width is applied to a
element.
Try It Out-Applying auto width to a div
Image from book
Example 2-3. To see the effects of the auto keyword as applied to a
element, follow these steps.
  1. Enter the following document:

  1. Save the preceding markup as Example_2-3.html. Figure 2-14 shows width: auto; applied to the
    element.

Figure 2-14

How It Works
All elements with a width property have an auto value by default, but not all elements behave the same way when auto width is applied. The
element, for instance, only expands horizontally to accommodate its data, which is a method called shrink-to-fit. A
element, on the other hand, expands horizontally as far as there is space, which is called expand-to-fit.
I’ve added a background for each element in Examples 2-2 and 2-3 so that you can see its width. The border outlines the edges of each element, showing exactly how much space each element occupies.

Friday, December 23, 2011

People always forget about my food habit



When you invite someone or any guest came to your home or for any family function or on a special day at home, you made food or special food for everyone. Here you always concern about the food habit of those people for whom you are making foods.

I have allergy problem when I was studying at University. So, long time ago it started, still people who knows me very well forget about my condition or don’t care.

I remember in one Eid, my mom decided to cook Tehary (fried rice with beef) for all. And as I have allergy I can’t eat that. I thought,  at noon, I will go to my elder sister’s house, and will take my lunch. I went and I found she also cooked only rice and beef curry. On that moment I was very hungry and I had no food at all. Then I went to friend Shumi’s house, her house were at Mirpur too and at afternoon she could feed me finally. On that moment I feel that she saved my life with many delicious foods like poloao (fragrant rice), Korma (sweet curry of chicken) and many more things.

After having affair with Faisal one day faisal invited me to their house. And to feed me he brought keema pury (beef and paratha) for me. So, again I couldn’t eat that. He was very sorry for that condition.

At home many times my family cook many things with beef which could be cook by chicken or mutton. Like halim (daal, beef), kabab etc. But many times they didn’t make anything alternative for me so I couldn’t eat those.

Today is my father’s milad mahfeel (prayer arrangements for him). My elder sis arranged Tehary as tobarok (after milad, some food will be distributed). So, again, I have nothing for me. Anyway after every salat I am praying for my dad. I am still weak coz of dengo, so can’t do more.

Thursday, December 22, 2011

CSS: Comments


By Richard York

As is the case with HTML, comment text can be added to style sheets as well. In a multipage template, this helps you remember which CSS rule applies to what or why it was added in the first place. CSS supports multiline comments that begin with a forward slash and an asterisk (/*) and terminate with an asterisk and a forward slash (*/). This is illustrated in Figure 2-7.


CSS comments provide a mechanism that allows you to insert notes about what the styles in the style sheet do and why they were added. The design of a website can get complicated, and often it’s helpful to make notes that help you remember why you added one thing or another. The following are some examples of what you can do with comments.
  • Comments can appear inside of a rule, as illustrated in Figure 2-8.

    Figure 2-8

  • Comments can appear inside of a declaration, as demonstrated in Figure 2-9.

    Figure 2-9

  • Comments can span multiple lines, as shown in Figure 2-10.

    Figure 2-10

  • Comments can be used to disable portions of a style sheet, as shown in Figure 2-11.

    Figure 2-11

Disabling portions of a style sheet can be useful if you are trying to track down problematic styles, or if you are simply experimenting with different effects.

Wednesday, December 21, 2011

Past had passed



You know, sometimes, you will find that your memory, which situation had passed already is disturbing you. Every moment they are coming and showing you what actually happened with you, which you ignored, and didn’t give time to think about. Our subconscious mind keeping all information and when you have some time (mentally free, when other situation isn’t disturbing you) those will come and set as a block after block and show you why people did what? What was their actual intention. You will find you had trusted many people who are not actually a trustable person. Those people’s behavior will make you so upset that it will be difficult to go forward.

Listen, forget or ignore about everything which already happened. Focus on your future. Because, past had passed already, so no use to think about them. Go forward, make your life beautiful.

Tuesday, December 20, 2011

CSS: Grouping Selectors


By Richard York


You can group multiple selectors together in a single rule by providing a comma after each selector; this is illustrated in Figure 2-5. The result is that a rule applies to more than one selector at a time.
The rule in Figure 2-5 applies to the HTML elements,

Save this as Example_2-1.html.



  • Fire up your favorite browser and load the file. Figure 2-6 shows how CSS selects the different headings in the body of the HTML document to apply style.






  • How It Works
    In Figure 2-6 you see the hierarchy of a style sheet, drilling down from the whole style sheet to the value of a property. In Example 2-1, you included a single CSS rule with a selector that provides properties for all six HTML heading elements,

    ,

    ,

    ,

    ,
    , and
    . The selector contains three declarations that provide the browser with information about how to style the aforementioned heading elements. The browser is told to give each heading text colored maroon in the sans-serif font face, and a bottom border that’s gray, solid, and one pixel thick.