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 »
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 »
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 »
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 »
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.
Visual Studio 2010 SP1 Official Direct 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 »
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 »
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 »
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 »
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 »
Windows Phone 7 Training Kit (RTM Refresh) Free Download
Besides releasing the Windows Phone 7 Developer Tools (RTM), Microsoft has also released RTM Refresh version of Windows Phone 7 Training Kit. The Windows Phone 7 Training Kit (RTM Refresh) is being designed for developers to jumpstart into the new Windows Phone world by providing a comprehensive explanation of the tools and some key concepts for programming Windows Phone. As compared to previous version of Windows Phone 7 Training Kit, the RTM refresh version has been added five new labs which made it a total of 12 labs. The RTM refresh of Windows Phone 7 training kit consists of two major labs which are Silverlight and XNA Framework labs.
Download Windows Phone 7 Developer Tools RTW Final Release
Windows Phone 7 is a latest mobile operating system from Microsoft, which is scheduled to release by October 2010. In order to encourage developers to get started developing awesome applications and games for Windows Phone 7, Microsoft has recently released the final release of Windows Phone 7 Developer Tools RTW (Release to Web). The Windows Phone 7 Developer Tools has been designed to include a package of developement tools for writing mobile applications and games.







