Sunday, October 24, 2010

Out errors to make your writing more efficient CSS



According to some CSS experience in writing, how to improve rendering efficiency and consumption of resources by occupation, we come to look at CSS rendering of the efficiency of writing efficient CSS.

1, hexadecimal color value of the median and the case

Write hex color value you may use lower-case letters or omitted into 3-digit, no wording on it to find concrete data to prove the efficiency of the browser's rendering is affected, but the hexadecimal value of the default standard color is capitalized and 6-digit mark. In unknown circumstances, do not want to risk the lower the efficiency of rendering.

* Do not agree-color: # f3a;

* Suggested-color: # FF33AA;

2, display the differences with the visibility

They are used to set or retrieve the display object. display hidden object does not retain the physical space, visibility reserved for the hidden objects occupy the physical space. When the browser rendering of physical space to be occupied, there will be consumption of resources.

* Do not agree-visibility: hidden;

* To use the-display: none;

3, border: none; and border: 0; the difference between

And display a similar relationship with the visibility were not retained and reserved space. More of a border: 0; despite the border to hide out, but it will for you to retain the right to use border-color/border-style.

* Do not agree-border: 0;

* To use the-border: none;

4, should not be too small background image tile

A background image 1px wide and high, although the file size is very small, rendering high-500px wide plate need to repeat the tile 2500. Improve the efficiency of the background image rendering with the image size and volume, and the maximum image file size for about 70KB.

* Do not agree - Wide high 8px below the background image tile

* The proposed use - medium size and measure the background image size

5, IE filter

IE filter in addition to consumption of resources has more compatibility issues. Among them, to make a transparent PNG filter, GIF or JPG can be used through non-transparent approach seems to avoid the use of this filter. Proposed that only a transparent GIF in IE6 applications, because IE7 has support PNG transparency above.

* Do not agree, abuse of consumption of resources as IE filters also have compatibility problems.

* To use, the best choice to use other methods to avoid filters.

6, * (margin: 0; padding: 0;) to avoid differences in browser style

* Is wildcard for all tags are initialized again, the browser's rendering consumes certain resources. Some of the label in the different browsers is almost no difference, or some have been deprecated tag (because you do not use it), they do not need to re-initialize the wildcard again this can save a little resources.

* Do not support the use of wildcard asterisk

* Do not agree, divspanbuttonbtable tag into a wildcard such as internal and external control of fill styles

* To use, to selectively control the use of wildcards within and outside the fill style.

7, do not add additional labels to describe the class or id

If you have a selector based on id as the key selector, do not add the extra tag name up. Because the ID is the only, do not exist for a reason not reduce the efficiency of matching.

* Do not agree-button # backButton ()

* Does not support -. menu-left # newMenuIcon ()

* Suggested - # backButton ()

* Suggested - # newMenuIcon ()

8, try to choose the most specific class to hold the selector

Reduce the efficiency of the system one of the largest class in the label because we used too much of the selector. By adding a class to the elements, we can be subdivided into categories of class type, so no need to waste time on a label too many choices to meet the match.

* Do not agree-treeitem [mailfolder = "true"]> treerow> treecell ()

* Suggested -. treecell-mailfolder ()

9, to avoid children and grandchildren selector

Children CSS selector is the most consumed resources selector. He is very resource intensive, especially in the tag selector to use when the class or general class. In many cases, we really want is the child selector. Unless clearly stated, is strictly prohibited in UICSS descendants selector of.

* Do not agree-treeheadtreerowtreecell ()

* Better, but still not work (see next)-treehead> treerow> treecell ()

10, the label should not contain sub-class selectors

Do not use the sub-tag class selectors. Otherwise, each element in the emergence of an additional increase would match the time. (Especially when the selector seems to mostly be matched case)

* Do not agree-treehead> treerow> treecell ()

* Suggested -. treecell-header ()

11, note the use of all child selector

Careful use of child selector. If you can not think of a way to use him, then do not use. Especially in the RDF tree and the menu will often use child selectors, like this.

* Do not agree-treeitem [IsImapServer = "true"]> treerow>. Tree-folderpane-icon ()

Remember RDF properties can be copied in the template! Advantage of this, we can copy those who want to change the child based on the attributes of RDF XUL element attributes.

* Suggested -. tree-folderpane-icon [IsImapServer = "true"] ()







Recommended links:



PIMS And Calendars comparison



My FAVORITE Anti-Spam And Anti-Spy Tools



Sun executives hefty pay increase for 2006, six times the most high



Come together 3DMeNow! (1)



3GP to MPEG



Bee notes ongoing expert special offers



Should give PRIORITY to social identity verification



VOB to SWF



Automatically change the control once and for all so that the size of VB



STORAGE Timers And Time Synch



How to draw UML activity diagram



FLV To Zune



Picked Games Kids



Modern computer technology



For the B / S structure, to understand the point



Wednesday, October 20, 2010

PS7.0 Add snow effect for the landscape plan


Get a beautiful landscape plan, we tend to put it down, but looking at it for a bit tired. But it occurred to you, if you like snow in the weather, or a colorful rhythm of the rains, then the large nature of these wonderful weather effects added to the landscape map is again another wonderful feeling what? Here I will teach you a few simple use of filter Photoshop7.0 own landscape plan for the realization of ordinary snow, rain and fog effects.

1. Snow

Snow effect diagram:



Figure 1

1. Open as shown in Figure 2, the "Landscape material" picture, we will make this picture snow weather effect, and the effect of the above comparison chart, if there is another wonderful mood ah?



Figure 2

2. In the "Layers" panel will be "background" layer drag the red line shown in Figure 3, "Create a new layer" button, copy out the "background" layer exactly the same as "background copy" layer, wait a minute All of our operations will be completed in the copy of the floor up.



Figure 3

3. Sure to select "Background copy" layer, and then do "filter - pixel of - dot" of filters, a "dot" of the dialog box, in the box to set the cell size of 6, click on " good. " At this point the image results shown in Figure 4:



Figure 4




[Next]



4. Here we continue in the "Background copy" layer in the implementation of the action, because snow is falling trend, and therefore produce a dynamic effect, we can use the "Motion Blur" to achieve this characteristic. Click "Filter - Fuzzy - Motion Blur", a "Motion Blur" dialog box will be set to 8 pixels distance, and then adjust the angle plate, adjusting the angle of snow drop, point size depends on the preferences of your own , in this case select 75 degrees. Figure 5



Figure 5



Figure 6 (implementation of the dynamic image after fuzzy operation results)

5. Although Figure 6 has the effect of a little snow, but if not seen snow or color of it! Next we will remove the color of the snow, let it be white. Q. Can the people here may be converted to grayscale image mode to carry out operations to the color, so of course can not lah. Otherwise change the current RGB image mode to grayscale to achieve results there is a way to layer is to use the "image - adjust - to color" operation, or shortcut keys Ctrl + Shift + U to achieve. After the implementation of operations to color images results in Figure 7:



Figure 7

6. Now snow's color is removed, but also to the bottom of the "background" layer is also blocked, but it is simple, the "background copy" layer's blend mode to "color filter", our snow the result is not came out. Figure 8 is the net effect of our plans, is not very simple magic ah?



Figure 8






Recommended links:



Special MO CD 230MB, 540MB, 640MB, 1.3GB



Storage Source Editors



How to send a dynamic image JSP page



Good Web Development



"3G" Staged battle



Geography Education Guide



DVR-MS to MPEG



Stealing "technology" take "clever" with CorelDraw



itunes Organize library program for automatically



Identify the black and white ash field, Rapid correction of color cast photos



MKV to Xbox 360



SYBASE Services



Tour one of the characteristics of Flash MX



QuickTime to MPEG



GlaxoSmithKline Dance value chain



Tuesday, October 5, 2010

"Personal efficiency" and "organizational efficiency"


"Fine product / stable quality," not from the staff the spirit of being highly responsible for the organization, but from the staff of highly specialized / professional's "ability."

"Efficiency" for the importance of organization and management of modern enterprises, is self-evident; However, the organization of modern enterprises, "efficiency" really come from? But because of awareness and understanding, and arrive at different, even opposite conclusions.

We need to know common sense is one of management: "efficiency" What is it? ---- In fact, the early Enterprise Management "efficiency view", is confined to the financial point of view, the investment return on the narrow concept, it is at the same time / homogeneous / environment with the amount of input-output ratio Therefore, it is one or a set of contrast / measurable / quantifiable scientific and rigorous financial "digital." However, modern business organizations "efficiency" concept, its meaning will have to much richer, it has already gone beyond the pure financial basis, but into a vast and rich external customers competitive level; in today's market, full competition, consumers increasingly critical situation, the traditional input-output type of the efficiency of enterprises, often means that the backlog of inventory in production, so the modern enterprise management of "modern performance" replace the "traditional efficiency", namely: traditional / face within the organization / cost efficiency of the competition, so that in the modern / outside the organization-oriented / performance competition for customers.

"Efficiency" reason for the modern business organization and management will be an eternal theme, because the open / fair / just the emergence of the modern competitive market, more accurately, is fully rational market competition, gradually eliminating the resources, monopoly rights and so on non-market competition, thus making the "efficient competition" gradually emerged from the shadows ---- If a right or a monopoly, can bring 100% of profits, businesses will not be painstaking, laborious trouble of efficiency for the so-called work, efficiency, lost its value and meaning of existence, so right for a monopoly, and monopoly is always inefficient. Therefore, it is fair competition, competition brings efficiency, in fact, Western companies often arise such as organization and management staff reductions were, flow out, structure, management innovation, etc. phenomenon, its essence is precisely because the external market competition within the organization brought competition, internal competition organized for the sole purpose is to get business efficiency.

In fact, in the East and West each of two different circulating the story, let us see both the management and efficiency of basic knowledge, what there is a huge difference.

In the West, an economics of widespread fable "I, Pencil", the "I, Pencil, is a complex combination of many miracles: the tree / zinc / copper / graphite, etc. Tens of thousands of people involved pencil in the process of production, however, no one is because they want a pencil and shop and go to the family on. These people live in different places, speaking different languages, and may even hate each other, however, all these differences did not prevent them to produce a pencil. " In this classic fable of economics, the invisible meaning Westerners the basic knowledge for management: Why you do not know what you're working, because there is an "invisible hand" of regulation in secret, each individual "self-interest" of hard work, then the "altruism" of the results will appear; you do not have the tenacity of persistently steered naive, because if there is no division of labor and cooperation, the positive contribution you personally in any case the work style, can not produce a pencil only.

However, a household name in China, the story, "Yu Gong", was expressed by the different understanding of another - a bit on the more ancient seventies, face mountain door of the "Foolish Old Man" because the mountain was blocked in front of the , his family decided to dig up the mountains. Called "Wise Old Man" and laughed at his stupid old people: According to your last days of the spare capacity and orphans Ruzi, do long to not move the mountain hairs. Yu Gong sighed: If your intelligence is not the weak sub-widow wife, my son died there after, his son and grandchildren, Sun has had children, sons and grandsons, generation after generation chiselling, need to worry that my children will not be leveled - in This classic Chinese fable story, there is added reason "wisdom (wise old man)", became subject to ridicule the small smart; and unjustifiable "foolish (Foolish Old Man)", has been much appreciated, obviously, this fable The metaphor is that the Chinese people think that ways and means to achieve goals is persistently steered from the spirit of power, but not a rational division of scientific collaboration.

Obviously, this is the achievement of organizational "goals / efficiency" means the management of different knowledge - "self-interest / division of labor" is the original Western business management efficiency of the source; and "altruism / sacrifice" is the fundamental organizational efficiency of traditional Chinese of sources.

Here, we can very sorry, and unflinchingly, and harsh to say - the Chinese concept of efficiency has never been, do not even know the efficiency of the mass? ! There is a misunderstanding: There is no equivalent to not achieve efficiency and organizational goals, the Chinese people can build from man-made miracle, "Great Wall", but it is not efficient "human wave tactics."

In fact, efficiency means "number", there is no sense of strict and accurate figures, but also the efficiency of consciousness does not exist; the number of contempt or even disdain, is the common problem of traditional types of organizational management, therefore, vague, and Mao guesses the type of measurement goals, it became obvious that the habit of the Chinese management organizations. In this lack of "digital" the bad habit of consciousness, the "strength in numbers" was granted as to achieve the efficiency that can be the right way; the same time, no doubt convinced that "people Tai Shan shift" created it results in the so-called Chinese-style organizational efficiency.

Today we know the fact is: in the absence of rational / full / open and fair competition in the market environment, "efficiency" became worthless - which is precisely the traditional business / organization, lack of basic knowledge of the efficiency of The essential reason.

Efficiency only in the rules completely full market competition, will stand out; if missing an open / fair / impartial rational market rules, even with efficient management of the value of the contribution is immeasurable. Popular to say that you play with their own, do not speak the cost, do not speak of time, the result will one day achieve. However, once competitors emerged, slowly-style work was over, did not pass the efficiency of death has become - there must exist a pre-condition, namely: competition between enterprises, must be built on the whole society to follow market rules; only in this situation, competition among enterprises, will become effective competition. Modern enterprise market competition, it is like two high-speed train - the competition between them, never occurred in the two intersecting tracks, who is the stronger the ability to satisfy customers, who range from the client closer, Who is the winner of the final market.

However, the traditional Chinese commercial competition, but there is no rule as grassland running boisterous horse - the competition between them is not in the rules of orderly runway, but the direct face to face fierce collision. In the Chinese tradition of non-rational / non-competitive conditions in the rules, the trickery in power, authority prevailed, even sinister to trip legs, dismounted units, all in the competition came in handy, the most important reason is that traditional Chinese society is lack of competition in non-rational rules of society. In fact, the lack of non-traditional rational market environment, two of the same or similar business organization, when a home seem more efficient than the other, its the truth usually is: monopoly over the non-monopoly rights over a non-right trickery over non-trickery, but not with us today, is "high efficiency" over "low efficiency" has nothing to do. Therefore, the Chinese people will not hesitate to human wave tactics, war games, people gather management tools, etc., are regarded as the realization of the so-called efficient way to use.

When today's Chinese people began to hate the "three dry a person's live" phenomenon, in fact, "the efficiency of consciousness" began to grow and awaken. In fact, China cumbersome various organizations / agencies overlap / overstaffing / functions of the chaos / low efficiency, can be described as world-famous Chinese commercial / business organizations, the number of scale, often with the type of business more than double the average even more The consumption of resources / energy produced by the efficiency or effectiveness is even more than the average of the same type of business several times and even 10 times. Clearly, from the traditional moral / ritual system order / Organization ruling point of view, the organization "cumbersome", not a bad management of the state, because it means that the expected "universal" the emergence of the world; "institutions overlap "Although management does not meet the principles of organizational efficiency, it is in line seniority ritual order; and" functional disorder "is a personal job responsibilities beyond the borders of their dedication to provide the possibility. Clearly, the modern business management "efficiency view" in the vat in such a chaotic lost.

"Personal efficiency" and "organizational efficiency" is not the same thing - but, when the Chinese tradition of organization and management will be powerful "spiritual power to say" and "moralism principle" was introduced to the organization management, will be the second in virtually who confuse.

On the business management point of view, the wave of modern industrialization, not from technology start, but from the division of labor began. According to Adam Smith's understanding, precisely because "With the division of labor, the number of workers can be done with much more than the workload, the skills of workers by industry experts and Chardin; from one work to another kind of work, usually take a lot of time lost "; is precisely because of the division of labor," such losses could be avoided; many labor and reduce labor, streamline the invention of machinery, so that a person can do a lot of people's work. " In fact, "division of labor" yes Western business organization and management efficiency of the foundation, division of labor is felt deeply conscious appearance results in specialization increasing levels of organization in Bumen and the number of posts are more and more; Zhengguijiaoyu and training to become a management content, so the degree of professional staff has thus become increasingly strong.

Obviously, in the traditional Western companies use the "division of labor" profound ideas, in efforts to "make a person to complete the work of many people", the Chinese traditional enterprises are to another path, that is, "Slim said," replaced "division of labor, said," Slim said in opinion, as long as the moral standard up, and specific expertise is not important. Therefore, the traditional Chinese management, the organization is to investigate the main character, not ability, a person of high moral character will never be fired, and a strong moral character is the so-called bad people, will not enter the core of the organization . Arising from the division of labor at least organizational efficiency, China traditional "Slim said," not only failed to produce efficient, but is caused by the loss of organizational efficiency, because the modern business organization is every procedure, every process, every employee of a post The orderly process of connecting any one person or one part of the self-motivated, "over done", means may be set in the destruction of the prior plans, procedures and processes.

In fact, the "efficiency" of a high technical content of the work, it means a series of per capita profit margin / inventory ratio / cash flow ratio of specific words, etc.; However, the Chinese people have the "strength in numbers" of inertia logic, take it for granted that: "Personal Effectiveness + Personal Efficiency", equivalent to the expected "organizational efficiency."

Question is: If everyone active dedication, then it would certainly appear to expect the "organizational efficiency"? Traditional management is always very positive answer: Yes! - However, it is assumed that answer. Pin in a production / small businesses employed only 10 years, whether it is a clear division of labor / cooperation, or both for each individual active work, the resulting benefits / efficiency more and more? The originator of the Western Economics. Smith, the study did conclude that: a device like this simple little plant, methods of operation to the division of labor, the result is that the 10 workers in 48,000 can be as needle, that one day may become pin 4800. But "if there is no division of labor, but work independently, then, no matter who they are, must not create 20-pin day, maybe one day even a needle manufacturers also do not come out."

However, the Chinese had never doubted that a stable and harmonious, all active dedication, with a strong "cohesion" of the organization, whether to produce or have a strong "organizational efficiency"? - In the Chinese view, it is beyond doubt a conclusion: only if we "mind to work together to think, an effort to make together," then the inevitable good and efficient organization, "people Tai Shan shift" as the Chinese for achieving the best description of organizational efficiency. In fact, from the "organizational efficiency" perspective, when a pro-active staff / overtime / over-fulfilled, he may well destroy the whole organization in the plan / order process, at least directly led to the next process work to change, so that the entire organization less effective; even for non-flow of businesses, a staff of independence "over-fulfilled", it is entirely possible to create "stock" for the direct form the threat of capital flow and profits.

In fact, if the individual organizational efficiency is from 1 +1 +1 type of simple numbers game, then even the "organization" itself has no longer necessary, because as long as the acquisition of simple "individual achievement" of the contract way, you can expect to achieve the target, the organization has become a huge burden. Early Taylor father of scientific management has confirmed that individuals with a passion to work and solve the efficient completion of tasks; a complete car assembly workers do not know, was able to stand in line on the ease of work, thanks to bulky and fuzzy "job responsibilities" decomposition, split into anyone can learn the standard action, the division of labor standards, said the creation of jobs out of position repeatability of the standard, and "repeat" that created a well-known details, but also created behavioral inertia, repetitive / professional / professionalism, efficiency and become the personal details of creating the basis for management. Of course, as times change, the modern individual performance to replace the traditional personal productivity,

"Geren efficiency" and "organizational efficiency", not the same thing - today we know that the individual 鐙珛鎬?hard work does not raise organizational efficiency; robust organizational efficiency of production, there is division of labor occurs by reason of business process in.

"Process technology / standards / professionalism" is the cornerstone of modern business organization and management - is the originator of western economics. Smith the great "division of work" has created all this: If there is no division of labor, business process where there would not ; but not flow, but also standardization does not exist; without standardization, it is impossible for creating highly professional staff.

If not a large and vague corporate work breakdown / division, then no matter how pro-active individuals / selfless hard work, can not occur because of "division" will bring a strong "organizational efficiency." Reason to believe that the Chinese people not only do not believe the West "division of work", but will also have a strong conflict and exclusion, because the "division" means that each individual's work restrictions have been identified in the Chinese view, this kind of deterministic limit is "unresponsive" and bad behavior, so the more unambiguous division of labor, the more detrimental to the "love plant, such as family," the spirit of implementation; division of responsibilities is the more stringent requirements, the more is to limit the "selfless dedication" to carry forward the spirit.

Scattered individuals / individual / individual work efficiently, only achieved a personal high performance; but the personal / individual / individuals for extraordinary performance additive, they can not come to the organization of extraordinary high performance - today, "process" concept has less than before, it permeates almost every aspect of the management! From the customer management process, product development processes, service management processes, human capital processes, financial management processes and so on organizational procedures, its basic operation are dependent on a strong professional, specialization and standardization of scientific management infrastructure. In China today, some scholars in the relentless criticism of professors, and even ridicule, "the father of scientific management," Taylor, that he is out of date, rigid organization representatives, is absolutely a mistake. In fact, it is Taylor will be the lack of professionalism and professional organizations, quality of staff, from the original disorder / no contact / no responsibility / no efficient working condition, pulls the orderly / system plan / coordinate cooperation / highly responsible and efficient working condition.

For Chinese companies organizations, at least ignores the words: "repeatability" - "status" can be repetitive, process-based work for the organization to provide the possible; "organization" can be repetitive, the global chain of expansion for enterprises to provide possible.

In fact, even today's China, still a large number of business owners / entrepreneurs do not know, "scale" is to create "efficiency"? "Organization" is to not lose shape as cell division, as "Copy" from? "Fine product" is to be created and maintain the quality and stability? - In fact, "economies of scale / scale efficiency" is not from a simple scale / resource expansion, but from the highly impersonal structure design; "global chain / branch" is not from the surface brand / reputation of influence, but from the organization's own high standards / process-oriented "organization copy" ability; "fine product / stable quality," not from the staff the spirit of being highly responsible for the organization, but to Since the staff of highly specialized / professional's "ability." Obviously, all with traditional organization and management, "granted" the understanding and awareness, completely different from.

In fact, the scale we are talking about expansion, franchise, branch operations and so on globalization, its essence is to describe the organization repeatability / reproducibility / can be expanded, all of these in their own ability to meet the organizational test "Self-replication"; the organization's own self-replication, but also has become today's businesses the most important ways to create organizational efficiency.鍙鏄?閲嶅鎬р?鐨勫伐浣滐紝涓嶇鏄釜浣撻噸澶嶆?鐨勫伐浣溿?杩樻槸缁勭粐閲嶅鎬х殑宸ヤ綔锛屽氨閮藉彲浠ュ洜瑙勮寖鍖栫鐞嗭紝浠庤?閬垮厤涓汉鎴栫粍缁囩殑闅忔剰鎬?妯$硦鎬?缁忛獙鎬э紝鎵?鑷寸殑鏁堢泭鎴栨晥鐜囦涪澶便?灏卞绠$悊澶у笀寰烽瞾鍏嬫墍璇达紝鈥滄纭殑鍋氫簨鈥濅笌鈥滃仛姝g‘鐨勪簨鈥濓紝骞朵笉鏄竴鍥炰簨锛涙渶娌℃湁鏁堢巼鐨勪汉锛屽氨鏄偅浜涗互鏈?珮鐨勬晥鐜囧仛鏈?病鐢ㄧ殑浜嬬殑浜恒?娌℃湁鍙鍒舵?鐨勩?杩炵画涓嶆柇鐨勩?娴佹按绾垮紡杩愯惀鐨勭粍缁囪兘鍔涳紝鍑犱箮涓嶅彲鑳藉湪浠婂ぉ鐨勫競鍦虹珵浜変腑鍙栧緱涓?腑涔嬪湴銆?br />






相关链接:



SWF to MPEG4



FLV to M4V



3GP to MOV



multimedia audio Controller driver for windows xp