Author name: Yang Yang

Hello, I'm Yang. I build online businesses that please people. Want to join in and post some useful articles on Kavoir.com? Shoot me a message.

How to change the browser window status bar text of Firefox with JavaScript?

It’s strange that you can accomplish this in IE while you can’t make it happen in Firefox. Well, that’s because the development team has decided that it’s potentially annoying and harmful for web developers to change the text of Firefox status bar whatever way they want. So the simple answer is, you can’t. But there’s …

How to change the browser window status bar text of Firefox with JavaScript? Read More »

Key Differences between the Web Design of Google, Microsoft and Yahoo

Microsoft and Yahoo is colorful in colors but Google is colorful in the imagination. Google uses much less colors than Microsoft and Yahoo do. Yet somehow, Google comes out as the versatile one. Google uses much more traditional colors than Microsoft and Yahoo do and rarely change in the style, yet it comes out as …

Key Differences between the Web Design of Google, Microsoft and Yahoo Read More »

One Simple Way to Encrypt, Obfuscate, Hide or Protect Your PHP Code

This way is so simple that anyone who’s a beginner in PHP can use it immediately to obfuscate and hide the original PHP code. Generally, it’d make it much harder for someone to find a specific phrase in your code as it’s encrypted, though in a rather simple way using 4 PHP functions: gzinflate(), gzdeflate(), …

One Simple Way to Encrypt, Obfuscate, Hide or Protect Your PHP Code Read More »

Linux wget Command to Download and Mirror a Website in Static Local Copy

wget is such a wonderful command in Linux you can ever get. Consider blessed to have it in your SSH arsenal. Now, not only does it allow you to download something neatly from the command line to the current working directory — that’s why WordPress always puts the latest version of the blog script at …

Linux wget Command to Download and Mirror a Website in Static Local Copy Read More »

MySQL: Count the Number of Records and Update the Stats Field in Another Table

I wrote this before in 2 separate posts. Actually, here’s a much better idea: use a sub query. For example, you have 2 tables, Table poets – Columns: id, poet, nation Table nations – Columns: id, nation, count Basically, nations to poets has a mapping of one to many, naturally. For example, there are 1000 …

MySQL: Count the Number of Records and Update the Stats Field in Another Table Read More »

Use robots.txt Disallow directive to forbid spiders and search engine robots

Just like .htaccess, robots.txt resides at the document root of your domain. It’s a text configuration file containing directives or rules any well behaved web spiders or search engine robots should respect. While you can use .htaccess to forcibly prohibit any visits (including those of human visitors) to a certain part of your site, robots.txt …

Use robots.txt Disallow directive to forbid spiders and search engine robots Read More »

Bulk Domain Name Availability Checker Tool to Batch Search Available Domains

Someone asks me via contact form how to check potentially hundreds of domains for availability at once, as it’d be a huge waste of time to check them one by one. For example, when you need to check if these 50 domain names are still register-able: californiainsurance.com, newyorkinsurance.com, virginiainsurance.com, … and so forth, you need …

Bulk Domain Name Availability Checker Tool to Batch Search Available Domains Read More »

Instantly Boost SQL Query Efficiency of REGEXP or RLIKE by 2000%

Naturally, using regular expressions for SELECT queries to check if certain text strings or text patterns are residing somewhere in large chunks of data is the most resource-intensive option and thus your last option. However it’s somehow unavoidable to practice regular expressions in the SQL queries for complicated patterns. For example, word boundaries are a …

Instantly Boost SQL Query Efficiency of REGEXP or RLIKE by 2000% Read More »

WordPress blog goes blank after editing and updating the theme files

Really weird but not unexpected at all. After trying to edit and update a theme file functions.php to override a native function of WordPress, get_search_form, inserting these lines at the end of functions.php of my theme: function get_search_form() { ?>test<?php } To see if the native get_search_form() function can be overriden. Turns out it can’t. …

WordPress blog goes blank after editing and updating the theme files Read More »

mysql command line character set option for importing SQL files encoded in UTF8

For languages other than English, especially those in Asia such as Chinese, each character takes 2 bytes in storage and needs to be encoded in UTF8 or other encoding specifically designed for it. Normally, the command line mysql database importing command has no problem with English database SQL files that are encoded in ANSI or …

mysql command line character set option for importing SQL files encoded in UTF8 Read More »

Being simple as a bless for development cost

Usefulness is the king; and it doesn’t have to be complex. One of the premium rules of project management is to never add a feature without seeing any substantial demand for it. Whatever it is, any additional feature is a burden to the system and a cost of time, both growing exponentially. While many of …

Being simple as a bless for development cost Read More »

A few suggestions of good practices for accelerating PHP development

The slow and steady may win, but the fast and steady dominate. The old saying of faster not always being better may go well in other fields, but not in the IT world of today. Faster is absolutely better. You should by all means try to improve yours or your team’s programming proficiency and accelerate …

A few suggestions of good practices for accelerating PHP development Read More »

RackSpace Cloud Hosting Launched!

Dating back 1 or 2 years ago when RackSpace acquired Mosso, it has long been preparing to start its own cloud hosting business. Now here it is, Rackspace has officially launched the RackSpace Cloud from Mosso: http://www.rackspacecloud.com All hosting service packages remain fundamentally the same with those of Mosso: Cloud Sites, Cloud Servers and Cloud …

RackSpace Cloud Hosting Launched! Read More »

How to Recover or Reset MySQL root Password after You Forgot and Lost It

MySQL has come with a safe mode wherein access privileges are not checked, which essentially enables you to log in anonymously to change anything in any database. And we are going to get in this safe mode to reset the lost MySQL root password. First, you need to stop the current MySQL daemon by: /etc/init.d/mysql …

How to Recover or Reset MySQL root Password after You Forgot and Lost It Read More »

Work Around Zend Studio 5.5 PHP Class / Object / Method Auto-complete Problem

Don’t know if it’s a glitch of Zend itself but I frequently encounter this problem on Windows with Zend Studio when writing PHP. Function / object methods names auto-completion saves a lot of time by suggesting candidates and a quick flyover tooltip with the synopsis, however sometimes it doesn’t work with newly created functions and …

Work Around Zend Studio 5.5 PHP Class / Object / Method Auto-complete Problem Read More »

Scroll to Top