Installing a cooler on a processor
Background to the experiment: CPU cooling (LGA775 socket) was provided by the CNPS7700-AICu cooling system. Intel Pentium D930 processor, was purchased in 2005. At that time, quite powerful and expensive.…

Continue reading →

Modernization of old PCs
I note right away that the article has been for several years and it was left on the site for a change. It is clear that now on the market…

Continue reading →

Modernization of old PCs
I note right away that the article has been for several years and it was left on the site for a change. It is clear that now on the market…

Continue reading →

Code optimization

In the process of writing code, it is impossible to detect all errors and correct them. Writing a code, especially in large volumes, is a monotonous thing, somewhat tedious and often repeated, so the eye becomes blurry. Search and correction of errors is for me personally a separate finishing procedure. In addition to obvious errors, illogical sections of code often pop up, which also have to be rewritten, simplified, and eliminated.

In addition to fixing errors and other shortcomings, you need to take care of optimizing content for search engines. Search engines impose certain requirements on websites, which only multiply every year, and if you have not decided to deliberately close the site from indexing, you should adhere to these requirements.

HTML errors
Let’s start with the mistakes. There is absolutely no need to sit and look for mistakes yourself. For this, the W3C consortium provided special services. HTML code can be checked using the W3C html validator, and cascading style sheets using the W3C css validator.

I have two errors on the main page (it was at the time of writing) – both because of the google + button tag, which is not in the specification.

<g: plusone href = “”>
validator code verification

We remove these inconsistencies and the validator has no claims to my code:

validator code verification (no errors)

But google + thing is much more necessary than the picture from W3C, so I will leave these errors where they were. This is not particularly significant, especially if the main site code is validated.

The W3C validator only works with pages hosted on the Internet. If you want to check the local site for errors, I recommend using the HTML Validator plugin for Firefox. The plugin is built into the browser tab of the browser source code (called by the Ctrl + U key combination) of the browser and is based on the same algorithm as the W3C service. It looks like this:

code validator plugin for firefox

The plugin not only shows errors, but also gives tips on how it should be. I think Firefox users will appreciate this great development tool.

Cross-browser and standardized code
There is another impressive area called cross-browser compatibility. I have already touched on the topic of cross-browser compatibility in this article. Although this cannot be called mistakes, differences in the appearance of the site in different browsers make it not uncommon to edit a working (such a pun) code to please the whims of browsers. The most moody was and will remain Internet Explorer. There are various hacks for Internet Explorer that allow you to nullify these vagaries. However, many of these methods are perceived by the validator as errors (in fact, they are).

Therefore, I do not recommend using hacks. Instead, you can skillfully use conditional comments, which I also mentioned in an article on cross-browser compatibility. The example below demonstrates how to use a conditional comment to place a link to a stylesheet exclusively for IE on a page. Because it follows the main table; its styles will, according to the cascade rule, overlap previous (conflicting) ones, giving Internet Explorer different directions.

<link rel = “stylesheet” href = “style.css” type = “text / css”>
<! – [if IE]>
<link rel = “stylesheet” … type = “text / css”>
<! [endif] ->
The problem of Internet Explorer is also that from version to version errors in processing the contents of html pages for this browser are different. Therefore, some programmers check their work separately in each version of Explorer. The task in some cases is really necessary. And for its implementation, you can (and should) use the IETester program, specially created for this.

I also advise you to download portable browsers from, unpack them into separate folders, and then install and configure the Open width plug-in (Firefox) to quickly and easily check sites for cross-browser compatibility. Various players, galleries and other bells and whistles are also very desirable to view in all browsers before implementing. Fortunately, almost always for this they place demos. This is about errors.

Code optimization
Now a little about code optimization. It consists in every possible simplification of designs and solutions, in order to reduce the code as much as possible without loss of quality and functionality (to optimize). Repeating sections (as an option) can be combined and represented as a php variable.

<? php $ img = “<img src = ‘logo.jpg’ alt = ‘logo’>”;?>
<? php echo “$ img”;?>
Very often programmers duplicate sections of code or commands are called ten times

echo “<div class = ‘main’> ……”;
echo “<span class = ‘adress’> …….”;
echo “<button id = ‘send’ type = ‘button’> …..”;
echo “</button> </span> </div>”;
when you can and need one:

$ result = “<div class = ‘main’> ……”;
$ result. = “<span class = ‘adress’> …….”;
$ result. = “<button id = ‘send’ type = ‘button’> …..”;
$ result. = “</button> </span> </div>”;

echo $ result;

Mozilla Firefox Web Browser Overview
For more than 10 years I have been using the "Firefox" browser in my daily work on my PC and have gained a decent experience, which I hasten to share.…


IP address in detail
From Wikipedia, the free encyclopedia IP-address (IP address, short for English. Internet Protocol Address) - a unique identifier (address) for a device (usually a computer) connected to a local network…


Destination of proxies and NAT
A proxy server is the link between users and the Internet. Proxy server - a server that is constantly on the Web, transmitting all requests from the user computer to…


Why does the computer not see the USB flash drive? 8 reasons
Sometimes at the most inopportune moment, when it is urgent to remove information from a USB flash drive to a PC, the computer refuses to see the new device. It…