Browsing articles in "Web Publishing"
Mar 27, 2014
My Digital Life Editorial Team

You Do Not Have Sufficient Permissions to Access WordPress Admin Error

When attempting to login to WordPress administration backend through /wp-admin/, you may encounter login failure issue with the following error message, despite the front-end (web pages) is working properly.

You do not have sufficient permissions to access this page.

WordPress Login Error
Continue reading »

Mar 21, 2014
My Digital Life Editorial Team

WordPress Fails to Upload as File Type is Not Permitted for Security Reasons

WordPress has built-in media uploader or file uploader which allows user to directly upload the files to the server via online inline interface without having to use a FTP or SFTP client, and subsequently allows user to manage the media and files. However, for security purpose, WordPress restricts the file types which you could upload using the built-in multi-file uploader or browser uploader.
Continue reading »

Jun 1, 2011
My Digital Life Editorial Team

Cron: Differences Between >/dev/null 2>&1 and >/dev/null

When using crontab in Linux or Unix to schedule cron jobs, the cron daemon will automatically send the output of the each and every cron job to root or email address set by MAILTO variable on the cron job. The email logs all output generated by commands in the cron job which will otherwise display on the console screen.
Continue reading »

May 13, 2011
My Digital Life Editorial Team

PHP: How to Truncate A String with Full Whole Word At the End

PHP has several functions which can truncate a string to grab a portion of the string up to certain number of characters. However, there is possibility that a word can be cut off in the middle of nowhere into two, making the separated word unintelligible. The situation is not an error, but by design, as most commands such as substr() simply return portion of string instructed by start position and length parameters.
Continue reading »

May 13, 2011
My Digital Life Editorial Team

How to Underline Text in HTML (CSS Method)

In HTML, text can be easily underlined by enclosed the text with the <u> and </u> tags. However, in HTML 4.0, the <u> and </u> tags element has been depreciated. Although most web browsers will continue to support the u element to underline text, the usage of the u element makes the web pages less “pretty” in the sense of web standards compliant.
Continue reading »

May 13, 2011
My Digital Life Editorial Team

What’s the Differences Between <em> & <i> and <strong> & <b>

Web publishers and bloggers who do not only rely on WYSIWYG editor and do all the dirty work directly at HTML coding level will notice that to make a text appears in italic style, both em and i elements can be used, while to make a text appears in boldface, both strong and b elements can be used.
Continue reading »

Apr 23, 2011
Ooi TS

How To Find A Match In Input String In C# And Visual Basic With Regex.IsMatch

Visual Studio .Net is an integrated development environment (IDE) from Microsoft which has been designed to support .Net Framework. The .Net Framework is a base class library (BCL) which includes common functions such as file reading and writing, database interaction, XML document manipulation, graphic rendering and etc. One of useful method that allows to find a match in input string is Regex.IsMatch, which return true if the regular expression finds a match, otherwise return false.


Continue reading »

Mar 27, 2011
My Digital Life Editorial Team

Visual Studio 2010 SP1 Official Download Links

Microsoft has released the first service pack (SP1) for Microsoft Visual Studio 2010, an Integrated Development Environment (IDE) which aids developers and programmers to develop console and graphical user interface (GUI) applications along with Windows Forms applications, web sites, web applications, and web services in both native code together with managed code for all platforms supported by Windows OS, Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework and Microsoft Silverlight.
Continue reading »

Mar 5, 2011
My Digital Life Editorial Team

How to Detect Browser Type in PHP

PHP is a very versatile web programming language that allows web server to serve dynamic content to visitors. PHP can detect and identify the type and version of web browser that visitor used to browse the web page in order to output and display browser-specific targeted content such as custom text, and especially to provide compatibility for older version or non-standard compliant browser with custom HTML or CSS markup.
Continue reading »

Nov 27, 2010
My Digital Life Editorial Team

How to Access PHP Array and Multidimensional Nested Arrays Code Syntax

Array in PHP is used as advanced data type of ordered map that associates values to keys. In its simplest forms, an array can contain a flat list of keys and values. However, the array values can be other arrays for unlimited layers in depth. When arrays are set as values of a parent array, a two-dimensional, three-dimensional or even multidimensional nested arrays are created.
Continue reading »

Nov 21, 2010
My Digital Life Editorial Team

How to Check Matching Pattern in URL Link with PHP

With PHP (Hypertext Preprocessor) scripting language, it’s possible to check if a URL (link location) matches a specified pattern, and then if matched or unmatched, perform some operation on the URL string. PHP has several built-in pre-defined variables, chief among them is REQUEST_URI from $_SERVER array, which contains information such as headers, paths, and script locations.
Continue reading »

Nov 5, 2010
My Digital Life Editorial Team

Face Detection Open Source JavaScript (HTML5 Canvas) Code

Developers and programmers who wants to implement face detection algorithm in JavaScript has an easier task in coding now, as a Chinese coder, Liu Liu, has released the source code for a JavaScript based face detector. Face detection has been common in photo management application such as Picasa and iPhoto.
Continue reading »