How to Hide Feature Image of Posts in WordPress?

Posted Posted in php, wordpress

By default, many wordpress themes e.g. 2017 (twenty-seventeen) show the feature image on the top of the posts. The feature image is defined per post basis and is useful in displaying the thumbnails, but we don’t want to show it above the post. You could edit the template file, usually content.php and remove the corresponding […]

Update: Phishing Emails & QuickHostUK’s Response to WannaCry Ransomware Attacks

Posted Posted in malware, news, quickhostuk, security, technology

As widely reported, hackers launched a global ransomware campaign last Friday, May 12, known as “WannaCry Ransomware“. Targeting tens of thousands of companies and governmental organizations, this campaign encrypted files on infected computers and asked computer administrators to pay a ransom in order to regain access. This particular ransomware exploited a vulnerability that allows remote […]

The Simple Counter Implementation in PHP

Posted Posted in code, implementation, php

The following is a simple counter implementation that is based on PHP, if you have a small site of low traffic, or you just want to have a very simple counter implemented in your page, and that does not need to be highly accurate. It works by reading the value from the counter text file […]

The Geo Contextual Widget of Amazon Associates

Posted Posted in amazon, php

The Amazon Associates allow you to place a contextual widget that shows best products to your visitors. Amazon uses big data and some undisclosed intelligent algorithms to determine which products are most likely to appeal to your visitors, which is similar to the adsense contextual ads units. However, since the visitors are from different locations […]

The RDTSC Performance Timer written in C++

Posted Posted in c / c++, code, code library, coding exercise, performance comparison

The RDTSC is the IA-32/IA-64 (or x86/x64) instruction that loads the current value of the processors’ time stamp into EDX:EAX registers. RDTSC is short for “Read Time-Stamp Counter”. It returns the number of clock cycles since last reset. The modern complier Visual Studio has implemented the compiler intrinsic so you don’t have to manually insert […]