Wednesday, January 11, 2012

Biscuit


Shafeen, my son (3 years old)


Generally I don’t like biscuit. This is the last food that I take, when I had nothing else to eat. Like, when I feel hungry and don’t get any time or energy to prepare my food. My elder sister Sharmin likes biscuit a lot and my son Shafeen (3 years old) too. When we go outside and I don’t have time to make any food for my son, I took the tin of biscuit (I keep some biscuit in my tin for emergency always) and whenever he felt hungry he took 2 biscuits and water.

Tuesday, January 10, 2012

CSS: Including CSS in a Document


By Richard York

CSS is very flexible regarding how you call it in a document. You can include CSS in a document in four ways:

CSS can be included in a document by using embedded style sheets, which are included between tags directly in an HTML document, as demonstrated in Figure 2-26. These tags must appear between the and tags.

Figure 2-26 

CSS can be included in its own document and linked to an HTML document by using the element, shown in Figure 2-27.
Figure 2-27 

CSS can be imported from within another style sheet by using an @import rule, as shown in Figure 2-28.
Figure 2-28 

CSS can be included directly in an element in an HTML document by using inline styles with the style attribute, as shown in Figure 2-29.
Figure 2-29 

Each method has its own particular usefulness. The upcoming sections describe how you can use each of these methods to include CSS in an HTML document.




Monday, January 9, 2012

CSS: Values: Colors: Short Hexadecimal and Web-Safe Colors


By Richard York

There are 216 web-safe colors. A web-safe color is a hexadecimal color comprised of any combination of the following: FF, CC, 99, 66, 33, 00, for a potential of 216 colors. These colors were originally identified and given their web-safe name by Lynda Weinman, a graphic and web design guru and author of numerous graphic and web design books. These 216 colors were identified as colors safe for cross-platform, cross-browser use on computer systems capable of displaying only 256 colors; in other words, 8-bit systems. There are 216 colors, minus 40 colors reserved for use by operating systems. Different operating systems, such as Macintosh OS and Windows OS, do not reserve the same 40 colors, so these 40 colors cannot be relied upon. If you attempt to use a color outside of the 216-color palette on a system capable of displaying only 256 colors, the operating system may attempt to display the color through a process called dithering. Dithering is a process in which the operating system attempts to mix two colors that it is capable of displaying to get the requested color. While today the majority of computers are comfortably able to display millions of colors, there is still one audience that is using devices that aren’t capable of displaying that many colors, and that is people using cell phones and other small screen devices to access the web.

Figure 2-24 shows a normal image.
Figure 2-25 shows the dithered image.
If you look at these two figures together, you should be able to see the effects of dithering. The image in Figure 2-26 is pixelated and grainy; the image in Figure 2-25 is smooth and fluid.

Dithering causes all sorts of nasty things to happen to an image or solid color. In some cases a grid appears on a solid background where the operating system attempts to display the color using two colors.

Hexadecimal notation is capable of expressing all 16,777,216 colors allowed by RGB. If a color outside the web-safe palette is used, this leads to dithering. Short hexadecimal notation, on the other hand, allows only the 216-color, web-safe palette:


Only FF, CC, 99, 66, 33, and 00 are allowable in the web-safe palette, so the notation for these can be simplified. FF becomes simply F, CC becomes C, 99 becomes 9, and so on. A single digit rather than two represents the pair. So in this example, #000 refers to black and #F00 refers to red. #FFA500 is not representable in short hexadecimal notation because A5 cannot be simplified to a single digit. Only pairs in which both numbers have the same value can be converted to short hexadecimal notation.
Although in the past the web-safe pallet was frequently necessary for designers, today advanced graphic cards capable of displaying millions of colors have become so common that the number of 8-bit systems capable of displaying only 256 colors has fallen dramatically. Today, it is safer to design creatively with color. The browser-safe pallet is not yet completely dead - it still has a place in designing web content for display on PDAs and cell phones, most of which are limited to 256 colors.

Saturday, January 7, 2012

Why this lottery at International trade fair?




When you go inside the international trade fair, in Bangladesh, you need to buy a ticket. Where you will get a serial number, which said draw will be placed at 8pm every day. What is this? People come from far away to the trade fair, who can wait till 8 pm? Or who will come back to see the result at 8pm? So, almost all people throw away the ticket just after the gait. I think organizers can make a immediate draw that after buying a ticket you will know that you got a prize or not. Or, can announce it on web and within 15 days, if you can come back with your ticket you will get the prize.

Friday, January 6, 2012

CSS: Values: Colors: Hexadecimal


By Richard York

Hexadecimal colors have been around nearly as long as the World Wide Web has been. Hexadecimal refers to a numbering scheme that uses 16 characters as its base, expressed in a combination of letters and numbers. The decimal numbering system, on the other hand, uses 10 numbers as its base. A hex-adecimal system uses 0-9 for the first 10 digits and A-F to represent the remaining 6 digits. Letter A corresponds to the number 10, B to 11, C to 12, and so on up to 15, which is represented by F. Hexadecimal values are another way of expressing an RGB value. For instance, #FFFFFF refers to white, which is expressed in RGB as 255, 255, 255. To switch from RGB values to hexadecimal, each channel is converted to its hexadecimal equivalent, so each 255 becomes FF in hexadecimal. To calculate the hexadecimal value, divide the RGB number by 16. The result is the first hexadecimal digit. The remainder from the division becomes the second hexadecimal digit. The RGB value 255 divided by 16 equals 15 with a remainder of 15. In hexadecimal, the number “15” is represented by “F”, so applying this formula results in FF. The process is repeated for each RGB color channel, so the hexadecimal notation of 255, 255, 255 is FF, FF, FF or #FFFFFF. In CSS, hexadecimal colors are included just as RGB or color keywords are, as shown in the following example.
#000000 is the hexadecimal representation of black; the same as RGB 0, 0, 0 or simply the black color keyword. #FF0000 is a hexadecimal representation of red, or RGB 255, 0, 0, or the red color keyword. Finally, #FFA500 is a hexadecimal representation of orange, or RGB 255, 165, 0, or the orange color keyword.

Thursday, January 5, 2012

My son agreed.


Me and my son


I always make my time to come online, when my son (3 years old) falls asleep. Otherwise he don’t let me stay in front of pc. For last few days, I had headache, so couldn’t come online. Or couldn’t make time when my son was sleeping. So today I requested him to give me some time stay online. He agreed. Lets see how long can I work on PC.

Tuesday, January 3, 2012

CSS: Values: Colors: RGB


By Richard York

RGB Colors

RGB stands for Red, Green, and Blue. These are the primary colors used to display the color of pixels on a computer monitor. When you use these three colors in various combinations, it is possible to create every color of the rainbow. This is done through different colored lights either overlapping each other or appearing side by side in different intensities to display color. RGB is also known as luminous or additive color. Luminous means that RGB uses light in varying intensities to create color, and additive means colors are added to one another to produce the colors of the spectrum. Many computer monitors are capable of displaying millions of colors: 16,777,216 colors, in fact. CSS RGB color is specified using a special three-number syntax, with each one representing a color channel. This first number is red, the second green, and the third blue:
This also produces the same color as the CSS color keyword gray.
Tip 
CSS 3 is to introduce one more variation on the RGB scheme, with RGBA. This specification includes an alpha channel, which is used to make an element transparent. The alpha channel of RGBA is specified in the same manner as regular RGB with the A indicating how transparent the color is, with 0 being fully opaque, and 255 being fully transparent. No browser supports the RGBA specification yet.
RGB color is also often specified in hexadecimal format.


Naughty bird



Google gave us a web based game “Angry bird”. My son (3 years old) renamed it, Naughty bird. Whenever he saw me working in pc, ask me to open naughty bird to play. I am trying to download the offline version for the 4 times. Last 3 were failed. I hope this time I will succeed. You know internet bill is very high in Bangladesh. So, I need the offline version.

Monday, January 2, 2012

CSS: Colors



By Richard York

Colors

CSS has a number of options for specifying colors, ranging from a 216-color, web-safe palette to the full range of colors available in the RGB format, a total of 16,777,216 colors! More specifically, those options are as follows:
  • Color keywords: These enable you to specify a color by its name.
  • RGB values: These enable you to specify a color via a Red, Green, Blue representation, which provides access to millions of colors.
  • RGB Percentage: This option is the same as RGB but uses percentages.
  • RGBA (RGB with Alpha channel [available in CSS 3]): The RGB palette is used with the addition of an alpha channel to specify transparency.
  • Hexadecimal: This enables you to specify a color by a special hexadecimal number.
  • Shorthand Hexadecimal: This is a shortened representation of hexadecimal numbers; it is limited to a special 216-color, web-safe palette.
Each method is a means of accomplishing the same thing: specifying a color. You can use these methods to specify text color, border color, or background color. Next, you see what each of these methods looks like when used in the context of a style sheet rule.

It feels like spring



What is the weather condition in Dhaka now? It’s not cold nor hot and humid. Then? It’s like spring. At the middle of winter season we are having weather like this. Guess what will happen in summer?