Windows message processing mechanism.Secular truth and the noble Truth: A object, B object, a Cat object, a Dog object,,, there is no real difference, nothing but memory of 0 and 1; Call puppy, this is the secular truth, see are 0 and 1, this is the Saint noble truth.To eliminate the evils of sin industry: Debug, continuous Debug, optimization and optimization, to know that debug/optimization is endless, the code can be more beautiful and more robust, but never guaranteed to achieve perfection.
The name of this Zen cart plug-in isAll Categories products on one page It can implement the following functions:
Display All products under level-2 category on the level-1 category page with the paging function !!
However, there is a weakness ---------- after installing this plug-in,The image of level-1 category cannot be displayed. In addition, tpl_index_categories.php in the zencart template folder is no longer referenced.Another depressing thin
-s_3449928026.png "title=" 111.png "alt=" Wkiom1m_feoycbolaabmmqzqmlw339.png-wh_50 "/>Summarize:Machine language:#优点是最底层 with the fastest execution speed#缺点是最复杂, lowest development efficiencyAssembly:#优点是比较底层 with the fastest execution speed#缺点是复杂, low development efficiencyAdvanced Language:#编译型Language execution speed, not dependent on the language environment, cross-platform difference#解释型Cross-platform good, a code, used everywhere, disadvantage is due to similar simultaneous interpretation,
high. balance! Very important. So learning is not about how long it takes to learn, but how much it can receive. To achieve the best state of learning is to let their brains excited, in the excitement of the state will receive more things, to write the half-month I try to get up early and continue to exercise, and then every day in addition to study must listen to music, chanting,Movement. Of course, everyone's learning situation and learning status are different, suitable for me is not necessa
Conceptual summary of Design principles
Read the design patterns of Zen, the design principles to do a summary of the concept, if you want to better understand, or to see the specific details, this side can only be a rough summary, as a learning note. Principle of single responsibility
English Name: Single Responsibility principle abbreviation SRP
English definition:
There should never is more than one reason for a class to change
There should be and
) then enter the command: Use MySQL, switch to the MySQL database as follows: MariaDB [(none)]> use MySQLReading table information for completion of table and column namesCan turn off this feature to get a quicker startup with-a Database changed You can then view the MySQL you are using (PS: After this step, you can refer to theMySQL database link and create) Then you can create a username password. That way, the database account is created. The account password is also available. Then you can
One, add an SMTP serverModify the following file on the server that needs to send the automatic alarm, add the following two lines# Vim/etc/mail.rcset [email protected] Smtp=smtp.126.comset Smtp-auth-user=doteyplay smtp-auth-password=*** Smtp-auth =login Of course, the SMTP server here can also use other, such as QQ, but QQ can only send a few gua, in the test, total error: smtp-server:454 error:authentication failed, System busy, What a wicked TX! So, then changed to 126 of the SMTP server, and
--- Meta settings ---
Zen cart's mate tags settings are comprehensive, including the keywords and titles on the product sales page and product category list page, if not defined, the product name or category name will be called automatically.But for new products (index. php? Main_page = products_new), special offer (index. php? Main_page = specials), recommended products (index. php? Main_page = featured_products) the page cannot be set separately in
immediately receive a warning notification//a case with multiple lines, plus a parenthesis switch (Condi tion) {Case 1://... break; Case 2: {//...//multi-line example using braces break; } Case 3://... break; DefaUlt://... break;} Fall-through, which is the execution case1 continue to execute the following case, do not stop switch (condition) {case 1:case 2://code executed for the values 1 an D 2 break; Default://... break;} Do not use DefaultSwitch (menutype) {case Zocenumnone
Recently, I was suddenly interested in pep. I wanted to translate it from the ground up. I think pep1 is big, so I can pick it up ~
Pep20 is the famous Zen of PythonImport this
Beautiful is better than uugly. explicit is better than implicit. simple is better than complex. complex is better than complicated. flat is better than nested. sparse is better than dense. readability counts. special cases aren't special enough to break the rules. although pr
I used to think that the navigation information of the header and footer must be modified in the template file. Today, I found that the Zen-cart background has the function of directly editing and selecting the navigation information.
Select and set the navigation information bar content:
Background Management-> Tools-> ez-pages
Here, you can create a page Link and modify the information such as whether the navigation bar appears at the top or end of
level-2 directory name = version name is enough. For example, the level-2 directory name is "self-media ", version name (see section 2.1-project,"Version"Function, step [3]) can be" self-Media _ V1.0 "," Self-Media _ V2.0 "," Self-Media _ version V1.0 ", and" self-Media _ trunk version"
(Trunk version means: test environment + formal database)
In my opinion, there is no need to create too many levels of directories. Currently, it is enough to have root directories, level 1 directories, and
CSS to simplicity
We only acknowledge that there are things that do exist one by one. All universal concepts that interfere with this specific existence of holes are useless cumbersome and nonsense and should be abolished. Do not add entities unless necessary.
--- Occam Razor
I looked for two theme studies over the weekend:CSSRegular Expression
After reading "CSS zen garden", the first time I read it, I felt that it was not enough. The second time I
, however, there is a big difference. What I care about is that Taoism emphasizes the word "Tao" and has a sense of destiny that heaven cannot violate, while Buddhism is more important. In addition, buddhism believes that the body is a skypixel, And the spirit is in the heart, while Taoism is in the body and body? Haha ). From this perspective, I prefer Buddhism and focus on cultivation. In addition, when talking about Buddha, the first thing that will appear in my mind is shiyin, cangyangjiacuo
Preface
Today, I started to learn the first mode of 23 design modes-singleton mode. I have read many blog posts about Singleton mode on the Internet. Today, I am going to explain the design patterns in the Zen of design patterns. The author is still very careful. The only pity is that the author explained the singleton mode in Java, and I used C ++ since my work last year. Based on the principle of what to learn and what to use, I will use C ++ to rec
stories" of the Bible ". This book is the "Zen" of the Bible. It is not as esoteric, obscure, or difficult as the Bible, because of the treasure of words such as gold and character, it is more profound and comprehensive than the "Comments" version of the "Bible", more popular and vivid, closer to the practical scenarios encountered by developers, and more instructive. This book is a milestone in the field of design patterns.
This is exactly what I wa
I recently learned Python and saw an interesting article from programming Python: the python philosophy can be seen through import this in Python:
>>> Import this
The Zen of Python, by Tim Peters
beautiful is better than uugly. explicit is better than implicit. simple is better than complex. complex is better than complicated. flat is better than nested. sparse is better than dense. readability counts. special cases Aren' t special enough
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.