by Yang Yang on August 4, 2009
Web pages are made up of HTML code, so if you post or write some HTML code in a web pages, a browser would generally consider them normal code. Instead of showing them as they are literally, they have become part of the underlying HTML structure of that page.
click to continue
by Yang Yang on August 4, 2009
Blinking texts are so 1999. Please by all means if you are still looking for the way to make text blink in HTML web pages, stop.
click to continue
by Yang Yang on August 4, 2009
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(), base64_encode() and base64_decode().
click to continue
by Yang Yang on August 3, 2009
by Yang Yang on August 2, 2009
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 http://www.wordpress.org/latest.zip, that way you don’t even have to visit the site before using wget to get it in no hassle:
click to continue
by Yang Yang on August 1, 2009
by Yang Yang on July 31, 2009
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 just deals with automated web page spiders such as googlebot.
click to continue
by Yang Yang on July 29, 2009
A quick tip here for counting the number of words in a string. For example, when you need to determine if a submitted string is too short to be considered in inclusion or further processing.
click to continue
by Yang Yang on July 25, 2009
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 a bulk search tool for available domains.
click to continue
by Yang Yang on July 23, 2009
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 common reason why you want regular expressions in SQL:
click to continue
by Yang Yang on July 21, 2009
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:
click to continue
by Yang Yang on July 16, 2009
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.
click to continue
by Yang Yang on July 6, 2009
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.
click to continue
by Yang Yang on July 6, 2009
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 the development speed.
click to continue
by Yang Yang on June 30, 2009
podPress, the famous wordpress podcast plugin leads me to this simple yet elegant flash audio player. Well, if you have wordpress installed and plan to have it as the publishing platform of your audio files, you can just install podPress and use it in the add new post page. Otherwise, you may try the standalone version which is incredibly easy to use.
click to continue