Stack Overflow is a favorite by many programmers site where you can ask a professional question and get answers from colleagues. This project was written by two no known guys that no one had never heard. Well, not quite. Stack Overflow was created by programmers and top-end stars of the blogosphere: Jeff Atwood and Joel Spolsky. In this regard, Stack Overflow is like a restaurant, owned by celebrities. According Joel'a about 1 / 3 of programmers around the world have used this online resource, so be it represents something quite useful and interesting.
To understand how popular resource, here are some excerpts from the statistics on the site Stack Overflow
- 16 million page views per month
- 3
- 6
- 86% of traffic comes from Google
- 9 million active programmers in the world and 30% use Stack Overflow
Ask a question - get an answer. A good resource. I wish I knew about it so late, but I think I will make active use in the future.
|
If it is used in the draft non-standard font, it is possible to go several ways:
- B-method - do not use custom fonts in CSS is enough to say body (font-family: sans-serif;) and not fool his head.
- Cattle-method - cut out ZhPEGov, pictures with titles, shrink harder, what would appeared blurred and insert images instead of text. Very popular in our open spaces method.
- W3C-method - use @ font-family and enjoy the beauty of literature without zamorochek. While this method is not seen as a worker, because of the weak supported by your browser.
- sIFR - coolest, most used today, but as a drawback - requires Flash-plugin. Although it is difficult to name a disadvantage, but if there is a tool to do without plug-ins, it can not but rejoice.
- Cufón - thing is. A relatively new technique that shows excellent results. He is the hero of this article.
I remember when I worked at the firm, hemorrhoids font was unrealistic to many, but the script and fled.
Not so long ago learned that the html is there such a tag - This tag is used to create soft hyphens in the text. Also, after a brief search online found amusing php script that automatically arranges the hyphen in the above text. After a more detailed study of the issue, it turned out that there are such services as:
1. Qlikworld - Service hyphenation with possible changes in the size of the output window. A separate concern is the system that is able to correct hyphenation in seven languages. Moreover, these languages are not mixed with each other, ie, if the hyphenation in the Russian text, which includes foreign words, the system hyphens only in Russian words, and foreign left unchanged.
2. quittance.ru - The site where you can download and use the script hyphen.
3.forum.dklab.ru - From this forum at Nasibullin Rinat I soobstvenno and took a php script to create a soft hyphens.
In fact an example of the plugin you can see, looking at these pictures.
Page looks like before and after the inclusion of plug-in
A few days ago decided to further investigate with cookies: how they work, how to construct, how to use. For a final understanding of the decision was made to download the plugin to work with cookies on Jquery. Ssylochka to plug attached Cookie Plugin for jQuery.
Perhaps I'll start with the theory. Cookies are part of HTTP. From the server to the client cookie sent in the header of HTTP-server response. More precisely - in the field of the Set-Cookie header. Field Set-Cookie can contain data from several cookies. Also in the header of HTTP-response may contain multiple fields Set-Cookie. The format of the field Set-Cookie header HTTP-server response is given below:
Set-Cookie: <name>=<value>[; <name>=<value>]... [; expires=<date>][; domain=<domain_name>] [; path=<some_path>][; secure][; httponly]
It is evident that the line Set-Cookie response header Server consists of a sequence of substrings separated by ";" (semicolon). At first, followed by one or more pairs <name> = <value>. Each of these pairs corresponds to one Cook with the name name and value value. Then the following attributes, which are set cookies contained in this field Set-Cookie. Here is a description of the attribute values cookie.
- Attribute expires. Set in the format: expires =. Specifies the date and time of expiry set by a given field Set-Cookie header HTTP-server response cookie. Value should be a string that specifies the time at Greenwich (GMT) in the format "DAY, DD-MMM-YYYY HH: MM: SS GMT" (eg "Tue, 28 Feb 2006 12:41:04 GMT"). After the expiry of the cookie deletes browser. If the attribute is not specified expires (the time the cookie is not set), cookie deleted at the end of the browser. This cookie is called "session" (valid only until the end of the current session).
- Attribute domain. Set in the format domain =. Defines the end of the set of domain names, which really sets cookie. For example, if installing cookie, the value well. codeguru.ru, set cookie will be sent to the server when you request documents from sites located on domains web.codeguru.ru, forum.codeguru.ru, etc. An additional condition for sending cookie will be checking attribute path - see below. Attribute domain is very useful. It can be used, for example, to organize a unified system for authenticating users for various web-services, located in different subdomains. For example, on the main site and forum site. To avoid uncontrolled sending cookie, the value should not only include the name of the zone (eg,. com,. net.ru, etc.),.
- Attribute path. Set in the format path =. Defines the set of URL, which really sets cookie. For example, if the value when you install the same cookie / temp, then set cookie will be sent when requesting documents, including the path / temp000 and / temp / temp.htm. If the path value is not defined, as it takes the path to the resource, if you ask which were set cookie.
- Attribute secure. This attribute is a Boolean. Specifying the attribute in the field of secure Set-Cookie header HTTP-server response does set cookie protected. This cookie should be sent to the server only on the protocol https. HTTPS - this is practically the same protocol http, only the data between the client and the server are transmitted via a secure (encrypted) SSL (Secure Socket Layer) connection.
- Attribute HttpOnly. This attribute is a Boolean. Specifying the attribute in the field HttpOnly Set-Cookie header HTTP-server response does not set cookie available client-side scripting (this applies for security reasons).
In this article, examples are laid out for creating an image with rounded corners.
Example number one - use as round-offs, the picture in the format gif.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<style>
.ppp0{ position:relative;}
.ppp1{ background: url(1.gif) no-repeat ; position:absolute; top:0px; display:block; width:100%; height:100%; }
.ppp2{ background:url(2.gif) no-repeat right top; position:absolute; top:0px; display:block; width:100%; height:100%; left:0px;}
.ppp3{ background:url(3.gif) no-repeat left bottom; position:absolute; top:0px; display:block; width:100%; height:100%; left:0px;}
.ppp4{ background:url(4.gif) no-repeat right bottom; position:absolute; top:0px; display:block; width:100%; height:100%; left:0px;}
</style>
</head>
<body>
<b>Было</b>
<div style="background: url(k1.jpg) no-repeat; display:block; width:425px; height:310px;" class="ppp0"></div>
<b>Стало</b>
<div style="background: url(k1.jpg) no-repeat; display:block; width:425px; height:310px;" class="ppp0">
<div class="ppp1"></div><div class="ppp2"></div><div class="ppp3"></div><div class="ppp4"></div>
</div>
</body>
</html>
|
How many of you know, to put something (drop-down menu, the text block, etc.) over the flash inside the html-page, use the attribute / parameter wmode tag object / embed - Then it becomes possible to control the depth of flash video through its investments in the div-container and given to the last depths and absolute positioning.
However, there are two misunderstandings in this regard:
1. First, often believe that block the flash above supposedly using the value of the parameter transparent wmode. But firstly, it does not work in Mozilla-like browsers, and, secondly, lead to reduced performance flash-clip - in fact in rendering transparency requires resources. If you only need to put something on top of flash, it is sufficient to use the value wmode = "opaque" - and it works everywhere.
2. The second fallacy is contained in the documentation for the flash. It says the following about the attribute wmode: "This attribute / parameter works only in Windows with the Flash Player ActiveX control." It should be understood as if the attribute was not supposed to work anywhere but IE on Windows. However, it is not so! As I wrote above, the value "opaque" works in all other modern browsers: for Windows: Mozilla Firefox 1.0.7, Opera 8.51, about IE and so clearly. Under Mac'om: works in Safari 1.0.3, and in Explorer 5.2.2 for Mac (about this can be gradually forgotten, as Microsoft announced that IE will continue to only part of Windows. And what's even better).
To summarize: the attribute wmode makes it possible to place html-block (div, javascript-menu, etc.) over the flash-object, and it works EVERYWHERE, you just use the value of the parameter opaque "wmode":
|
|
|
|
Nice Ajax Poll
Which one of my extensions is the best?
|