<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TutorBoy Articles &#187; Programming</title>
	<atom:link href="http://articles.tutorboy.com/topics/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://articles.tutorboy.com</link>
	<description>Online Complete Reference</description>
	<lastBuildDate>Mon, 06 Sep 2010 07:04:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Commonly Used Regular expressions</title>
		<link>http://articles.tutorboy.com/programming/commonly-used-regular-expressions.html</link>
		<comments>http://articles.tutorboy.com/programming/commonly-used-regular-expressions.html#comments</comments>
		<pubDate>Tue, 27 Jul 2010 07:39:28 +0000</pubDate>
		<dc:creator>Midhun Devasia</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://articles.tutorboy.com/?p=1993</guid>
		<description><![CDATA[Here are some commonly used regular expressions. Most of them are applicable for PHP, JavaScript, Perl, Python and Java. HTTP URL /* Matches: https://tutorboy.com, http://tutorboy.com:8080/profile.html Nonmatches: ftp://tutorboy.com, ftp://tutorboy.com/ */ Expression : /(https?):\/\/([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})(:\d{1,4})?([-\w\/#~:.?+=&#38;%@~]*)/ Email /* Matches: mail@mytutorboy.com, email@my-mail.com, info@mymail.mysite.net Nonmatches: .@example.com, &#8230; <a href="http://articles.tutorboy.com/programming/commonly-used-regular-expressions.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here are some commonly used regular expressions. Most of them are applicable for PHP, JavaScript, Perl, Python and Java.</p>
<h2>HTTP URL</h2>
<pre class="brush:php">/*
Matches: https://tutorboy.com, http://tutorboy.com:8080/profile.html
Nonmatches: ftp://tutorboy.com, ftp://tutorboy.com/
*/
Expression : /(https?):\/\/([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})(:\d{1,4})?([-\w\/#~:.?+=&amp;%@~]*)/
</pre>
<h2><span id="more-1993"></span>Email</h2>
<pre class="brush:php">/*
Matches: mail@mytutorboy.com, email@my-mail.com, info@mymail.mysite.net
Nonmatches: .@example.com, mittu@i-.com, ilov@example.a
*/
Expression : /^[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z_+])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9}$/
</pre>
<h2>Valid HTML Hex code</h2>
<pre class="brush:php">/*
Matches: #fff, #1a1, #996633
Nonmatches: #ff, FFFFFF
*/
Expression : /^#([a-fA-F0-9]){3}(([a-fA-F0-9]){3})?$/
</pre>
<h2>Match date: MM/DD/YYYY HH:MM:SS</h2>
<pre class="brush:php">/*
Matches: 04/30/1978 20:45:38
Nonmatches: 4/30/1978 20:45:38, 4/30/78
*/
Expression : /^\d\d\/\d\d\/\d\d\d\d \d\d:\d\d:\d\d$/
</pre>
<h2>U.S. zip code</h2>
<pre>/*
Matches: 94941-3232, 10024
Nonmatches: 949413232
*/
Expression : /^\d{5}(-\d{4})?$/
</pre>
<h2>U.S. currency</h2>
<pre class="brush:php">/*
Matches: $20, $15,000.01
Nonmatches: $1.001, $.99
*/
Expression : /^\$\(d{1,3}(\,\d{3})*|\d+)(\.\d{2})?$/
</pre>
<h2>Dotted Quad IP address</h2>
<pre class="brush:php">/*
Matches: 127.0.0.1, 224.22.5.110
Nonmatches: 127.1
*/
Expression : /^(\d|[01]?\d\d|2[0-4]\d|25[0-5])\.(\d|[01]?\d\d|2[0-4]\d|25[0-5])\.(\d|[01]?\d\d|2[0-4]\d|25[0-5])\.(\d|[01]?\d\d|2[0-4]\d|25[0-5])$/
</pre>
<h2>MAC address</h2>
<pre class="brush:php">/*
Matches: 01:23:45:67:89:ab
Nonmatches: 01:23:45, 0123456789ab
*/
Expression : /^([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$/
</pre>
<h2>Type/format  specifiers</h2>
<pre class="brush:php">/*
Matches: my number %d, Hello %s!!, %f, %’-20s
Nonmatches: my number %t, hello %p
*/
Expression : #(%[+-]?(([ 0]?)|('.)))-?(d*)(.d*)?[%bcdeufFosxX]#
</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/programming/commonly-used-regular-expressions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript: The Good Parts &#8211; Speaker: Douglas Crockford</title>
		<link>http://articles.tutorboy.com/javascript/javascript-the-good-parts-speaker-douglas-crockford.html</link>
		<comments>http://articles.tutorboy.com/javascript/javascript-the-good-parts-speaker-douglas-crockford.html#comments</comments>
		<pubDate>Thu, 06 May 2010 11:44:25 +0000</pubDate>
		<dc:creator>Midhun Devasia</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Js]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=1583</guid>
		<description><![CDATA[JavaScript is a language with more than its share of bad parts. It went from non-existence to global adoption in an alarmingly short period of time. It never had an interval in the lab when it could be tried out &#8230; <a href="http://articles.tutorboy.com/javascript/javascript-the-good-parts-speaker-douglas-crockford.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>JavaScript is a language with more than its share of bad parts. It went from non-existence to global adoption in an alarmingly short period of time. It never had an interval in the lab when it could be tried out and polished. JavaScript has some extraordinarily good parts. In JavaScript there is a beautiful, highly expressive language that is buried under a steaming pile of good intentions and blunders. The best nature of JavaScript was so effectively hidden that for many years the prevailing opinion of JavaScript was that it was an unsightly, incompetent abomination. This session will expose the goodness in JavaScript, an outstanding dynamic programming language. Within the language is an elegant subset that is vastly superior to the language as a whole, being more reliable, readable and maintainable.<span id="more-1583"></span></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/hQVTIJBZook&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube.com/v/hQVTIJBZook&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Speaker: Douglas Crockford<br />
Douglas Crockford is a product of our public education system. A registered voter, he owns his own car. He has developed office automation systems. He did research in games and music at Atari. He was Director of Technology at Lucasfilm. He was Director of New Media at Paramount. He was the founder and CEO of Electric Communities/Communities.com. He was founder and CTO of State Software, where he discovered JSON. He is interested in Blissymbolics, a graphical, symbolic language. He is developing a secure programming language. He is now an architect at Yahoo! and the world&#8217;s foremost living authority on JavaScript.</p>
<p>The PDF version is available in <a href="http://www.amazon.com/dp/0596517742">http://www.amazon.com/dp/0596517742</a></p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/javascript/javascript-the-good-parts-speaker-douglas-crockford.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Common methods for indicating important comments</title>
		<link>http://articles.tutorboy.com/flash/common-methods-for-indicating-important-comments.html</link>
		<comments>http://articles.tutorboy.com/flash/common-methods-for-indicating-important-comments.html#comments</comments>
		<pubDate>Sat, 24 Apr 2010 13:27:49 +0000</pubDate>
		<dc:creator>Midhun Devasia</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Action Script 2.0]]></category>
		<category><![CDATA[Action Script 3.0]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=1533</guid>
		<description><![CDATA[Some common methods for indicating important comments are TODO, BUG, KLUDGE and TRICKY. You can try this in any language, I&#8217;m using this in Action Script, PHP, Flex and Javascript and CSS also . 1 . // :TODO: Description Indicates &#8230; <a href="http://articles.tutorboy.com/flash/common-methods-for-indicating-important-comments.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some common methods for indicating important comments are TODO, BUG, KLUDGE and TRICKY. You can try this in any language, I&#8217;m using this in Action Script, PHP, Flex and Javascript and CSS also <img src='http://articles.tutorboy.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  .</p>
<p>1 . <strong>// :TODO: </strong> <em>Description</em><br />
Indicates that there is more to do here.<span id="more-1533"></span><br />
2. <strong>// :BUG: [bugid] </strong><em>Description</em><br />
Shows a known issue here. The comment should also explain the issue and optionally give a bug ID if applicable.<br />
3. <strong>// :KLUDGE:</strong> <em>Description</em><br />
Indicates that the following code is not elegant or does not conform to best practices. This comment alerts others to provide suggestions about how to code it differently next time.<br />
4. <strong>// :TRICKY:</strong> <em>Description</em><br />
Notifies developers that the subsequent code has a lot of interactions. Also advises developers that they should think twice before trying to modify it.</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/flash/common-methods-for-indicating-important-comments.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is ClickTag in Flash?</title>
		<link>http://articles.tutorboy.com/flash/what-is-clicktag-in-flash.html</link>
		<comments>http://articles.tutorboy.com/flash/what-is-clicktag-in-flash.html#comments</comments>
		<pubDate>Fri, 12 Feb 2010 14:17:12 +0000</pubDate>
		<dc:creator>Midhun Devasia</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Action Script 2.0]]></category>
		<category><![CDATA[Ad]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=1011</guid>
		<description><![CDATA[A ClickTag is a parameter used in Flash banner ads. The parameter is a variable that defines the  destination URL from the markup code. By using a click tag, the advertiser can easily see and modify the   URL without a &#8230; <a href="http://articles.tutorboy.com/flash/what-is-clicktag-in-flash.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="margin-right: 10px;" src="http://wwwimages.adobe.com/www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg" alt="Adobe Flash" width="100" height="100" /> A ClickTag is a parameter used in Flash banner ads. The parameter is a variable that defines the  destination URL from the markup code. By using a click tag, the advertiser can easily see and modify the   URL without a Flash developer.  It allows the Ad server to register where the ad was displayed and when it was clicked. On any click, Flash ads should redirect to the URL specified in the clickTAG argument; there should be no other redirection in between. There are no industry standards on how to program a click tag. The code for the programming is case-sensitive, but programmers format their capitalization differently so ad serving networks may require clickTAG, ClickTag, clickTag, or any variation of capitalization for that specific variable. Each advertisers have their own requirements.<span id="more-1011"></span></p>
<h2>Create a ClickTag for your flash banner ad:</h2>
<h3>Action Script 2.0</h3>
<p>Add  a transparent layer(MovieClip) on the complete Flash Movie area,  and write the script over the movieClip by <strong>Right click</strong> on the clip and select the <strong>Action </strong>from and add the script.</p>
<h2>Action Script 2.0</h2>
<pre class="brush:as3">on (release) {
 if (clickTAG.substr(0,5) == "http:") {
 getURL(clickTAG, "_blank");
 }
}
</pre>
<h3>Action Script 3.0</h3>
<p>Create an transparent MovieClip as same as the stage size and give a instance name as ClickTag(<em>you can use other names</em>). Write the following code in the action script window of the frame.</p>
<h2>Action Script 3.0</h2>
<pre class="brush:as3">// Get URL params
var flashvars =  root.loaderInfo.parameters;
// Convert to string format
var clickTAG=String(flashvars['clickTAG']);
// Add Event Listener to the ClickTag MovieClip
ClickTag.addEventListener(MouseEvent.CLICK, goToURL);

// Function to redirect the URL
function goToURL(Evt:MouseEvent) {
 // Set the URL Request variable
 var targetURL:URLRequest = new URLRequest(clickTAG);
 // Check if the url contain the http: section
 if (clickTAG.substr(0,5) == "http:") {
 // Navigate the URL
 navigateToURL(targetURL, "_blank");

 }
}
</pre>
<h2>HTML Embedded</h2>
<pre class="brush:html">&lt;EMBED src="ad_banner_example.swf?clickTAG= http://www.adnetworkserver.com/tracking?http://www.destinationURL.com"&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/flash/what-is-clicktag-in-flash.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s GO Programming Language</title>
		<link>http://articles.tutorboy.com/programming/googles-go-programming-language.html</link>
		<comments>http://articles.tutorboy.com/programming/googles-go-programming-language.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 11:43:03 +0000</pubDate>
		<dc:creator>Midhun Devasia</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[GO]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[System Programming]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=506</guid>
		<description><![CDATA[Go is a systems programming language intended to be a general-purpose systems language, like C++. It is compiled, garbage-collected, concurrent programming language developed by Google. Go was officially announced in November 2009, with implementations released for the Linux and Mac &#8230; <a href="http://articles.tutorboy.com/programming/googles-go-programming-language.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_505" class="wp-caption alignright" style="width: 163px"><a href="http://articles.tutorboy.com/content/uploads/2009/11/googlesgo.png"><img title="googlesgo" src="http://articles.tutorboy.com/content/uploads/2009/11/googlesgo.png" alt="The Go Programming Language" width="153" height="55" /></a><p class="wp-caption-text">The Go Programming Language</p></div>
<p>Go is a systems programming language intended to be a general-purpose systems language, like C++. It is compiled, garbage-collected, concurrent programming language developed by Google. Go was officially announced in November 2009, with implementations released for the Linux and Mac OS X platforms. It is Simple, Fast. Safe, Concurrent, Fun and finaly it is Open source.</p>
<blockquote><p><strong>Go</strong> compilers produce fast code fast. Typical builds take a fraction of a second yet the resulting programs run nearly as quickly as comparable C or C++ code.<span id="more-506"></span></p></blockquote>
<blockquote><p><strong>Go</strong> is type safe and memory safe. Go has pointers but no pointer arithmetic. For random access, use slices, which know their limits.</p></blockquote>
<blockquote><p><strong>Go</strong> promotes writing systems and servers as sets of lightweight communicating processes, called goroutines, with strong support from the language. Run thousands of goroutines if you want—and say good-bye to stack overflows.</p></blockquote>
<blockquote><p><strong>Go</strong> has fast builds, clean syntax, garbage collection, methods for any type, and run-time reflection. It feels like a dynamic language but has the speed and safety of a static language. It&#8217;s a joy to use.</p></blockquote>
<p>You will get more informations from <a title="The Go Programming Language" href="http://golang.org/" target="_blank">http://golang.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/programming/googles-go-programming-language.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PO to MO converter</title>
		<link>http://articles.tutorboy.com/programming/po-to-mo-convertor.html</link>
		<comments>http://articles.tutorboy.com/programming/po-to-mo-convertor.html#comments</comments>
		<pubDate>Tue, 29 Sep 2009 19:54:23 +0000</pubDate>
		<dc:creator>Midhun Devasia</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Gettext]]></category>
		<category><![CDATA[multi-language]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=155</guid>
		<description><![CDATA[Simply we can convert PO(portable Object) to MO(Machine Object) Using Poedit or from the GNU gettext msgfmt command.( see the installation of gettext ). Or you can check for the UI application on the same functions. Click Here Shell Commands &#8230; <a href="http://articles.tutorboy.com/programming/po-to-mo-convertor.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Simply we can convert PO(portable Object) to MO(Machine Object) Using Poedit or from the GNU gettext msgfmt command.( <a title="Gettext Installation" href="http://articles.tutorboy.com/php/extract-the-strings-from-source-code-for-translationfor-po-file.html" target="_self">see the installation of gettext </a>). Or you can check for the UI application on the same functions. <a title="Poedit: A cross-platform PO to MO converter and PO file editor" href="http://articles.tutorboy.com/software/poedit-a-cross-platform-po-to-mo-converter-and-po-file-editor.html">Click Here</a></p>
<h2>Shell Commands</h2>
<pre class="brush:bash">msgfmt -c -v -o out_message.mo input_message.po</pre>
<pre># ############### Options are ###########
# -c option does detailed checking of the PO file format.
#
# -v makes the program verbose.
#
# -o option output filename.
# ###################################</pre>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/programming/po-to-mo-convertor.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Extract the strings from source code for Translation (po file)</title>
		<link>http://articles.tutorboy.com/php/extract-the-strings-from-source-code-for-translationfor-po-file.html</link>
		<comments>http://articles.tutorboy.com/php/extract-the-strings-from-source-code-for-translationfor-po-file.html#comments</comments>
		<pubDate>Tue, 29 Sep 2009 19:01:23 +0000</pubDate>
		<dc:creator>Midhun Devasia</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[multi-language]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=149</guid>
		<description><![CDATA[To extract the strings to be translated from the program source code. This is achieved with xgettext. I think you are much familiar with gettext method for the internationalization. If you wish to get more information about the internationalization with &#8230; <a href="http://articles.tutorboy.com/php/extract-the-strings-from-source-code-for-translationfor-po-file.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">To extract the strings to be translated from the program source code. This is achieved with xgettext. I think you are much familiar with <strong>gettext </strong>method for the internationalization. If you wish to get more information about the internationalization with GNU gettext method, <a title="GNU gettext" href="http://en.wikipedia.org/wiki/GNU_gettext" target="_blank">click here.</a> You will get the complete gettext functionality by installing/extracting  the package from the following urls.</p>
<p style="text-align: justify;"><span style="color: #000000;"><a title="GNU gettext" href="http://www.gnu.org/software/gettext/" target="_blank">http://www.gnu.org/software/gettext/</a><br />
<a title="gettext download" href="http://gnuwin32.sourceforge.net/packages/gettext.htm" target="_blank">http://gnuwin32.sourceforge.net/packages/gettext.htm</a></span></p>
<p style="text-align: justify;">Download the latest release from the link and extract to you machine. And execute the following commands.<br />
Note:  In my example, the package path is <strong>C:GnuWin32bin</strong> and the source file are int <strong>C:source_file </strong> Openup the Command Prompt and move to the bin folder.</p>
<p style="text-align: justify;">Suppose my PHP source file contents are as like this:</p>
<p><span id="more-149"></span></p>
<h2>PHP Source File</h2>
<pre class="brush:php">&lt;?php
// file path: c:source_filetest.php
$my_name = "Midhun Devasia";
printf(gettext("This is a first text...by %s"), $my_name);
printf(gettext("This is a second text.!"));
?&gt;</pre>
<p style="text-align: justify;">Extract all the strings from program source file:</p>
<h2>Shell Commands</h2>
<pre class="brush:bash">xgettext -o extract_out.pot test.php
#or(specify domain)
xgettext –d MyApp -o extract_out.pot test.php</pre>
<blockquote>
<p style="text-align: justify;">-o  Output file name is optional, by default it save as messages.po.<br />
-d  Domain optional, and should match the domain specified in the call to textdomain</p></blockquote>
<p style="text-align: justify;">So the above command fetch all the strings from the gettext() function.<br />
So you will get the .po file contents as like this:</p>
<h2>Sample PO file</h2>
<pre class="brush:bash'">#: c:/source_file/test.php:3
#, php-format
msgid "This is a first text...by %s"
msgstr ""

#: c:/source_file/test.php:4
#, php-format
msgid "This is a second text.!"
msgstr ""</pre>
<h2>PHP Template File</h2>
<p>But if your are using a template files (like .phtml, ctp, etc..) , the format is something like this</p>
<pre class="brush:php">// template file content
&lt;?= $this-&gt;lang("another method for the string extraction");?&gt;</pre>
<p>Here you need to specify the extra argument to the xgettext function. ie <strong>- &#8211; keyword</strong>.</p>
<h2>Shell Commands</h2>
<pre class="brush:bash">xgettext –keyword=lang -o extract_out.pot test.php</pre>
<p>See Other articles for more about gettext processing</p>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/php/extract-the-strings-from-source-code-for-translationfor-po-file.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ASCII Table And Description</title>
		<link>http://articles.tutorboy.com/programming/ascii-table-and-description.html</link>
		<comments>http://articles.tutorboy.com/programming/ascii-table-and-description.html#comments</comments>
		<pubDate>Sun, 26 Jul 2009 07:30:44 +0000</pubDate>
		<dc:creator>Midhun Devasia</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASCII]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://tutorboy.com/articles/?p=55</guid>
		<description><![CDATA[ASCII stands for American Standard Code for Information Interchange.The ASCII character set contains 128 coded characters. Each ASCII character is a 7-bit coded unique character; 8 bits when a parity check bit is included. The ASCII character set consists of &#8230; <a href="http://articles.tutorboy.com/programming/ascii-table-and-description.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>ASCII stands for American Standard Code for Information Interchange.The ASCII character set contains 128 coded characters. Each ASCII character is a 7-bit coded unique character; 8 bits when a parity check bit is included. The ASCII character set consists of control characters and graphic characters. When considered simply as a set of 128 unique bit patterns, or 256 with a parity bit, disassociated from the character equivalences in national implementations, the ASCII may be considered as an alphabet used in machine languages.</p>
<p><strong>American Standard Code for Information Interchange [ASCII]</strong></p>
<table border="0" align="left" summary="Table of ASCII Codes" width="100%">
<tbody >
<tr style="background:#6D84B4;color:white;">
<th style="background:#000;color:white;">Dec</th>
<th> Hex</th>
<th> Char</th>
<th> Description</th>
<th style="background:#000;color:white;"> Dec</th>
<th> Hex</th>
<th> Char</th>
<th style="background:#000;color:white;"> Dec</th>
<th> Hex</th>
<th> Char</th>
<th style="background:#000;color:white;"> Dec</th>
<th> Hex</th>
<th> Char</th>
</tr>
<tr>
<td>00</td>
<td>00</td>
<td>NUL</td>
<td>(null)</td>
<td>32</td>
<td>20</td>
<td>SP</td>
<td>64</td>
<td>40</td>
<td>@</td>
<td>96</td>
<td>60</td>
<td>`</td>
</tr>
<tr style="background:#f7f7f7">
<td>01</td>
<td>01</td>
<td>SOH</td>
<td>(start of heading)</td>
<td>33</td>
<td>21</td>
<td>!</td>
<td>65</td>
<td>41</td>
<td>A</td>
<td>97</td>
<td>61</td>
<td>a</td>
</tr>
<tr>
<td>02</td>
<td>02</td>
<td>STX</td>
<td>(start of text)</td>
<td>34</td>
<td>22</td>
<td>&#8220;</td>
<td>66</td>
<td>42</td>
<td>B</td>
<td>98</td>
<td>62</td>
<td>b</td>
</tr>
<tr style="background:#f7f7f7">
<td>03</td>
<td>03</td>
<td>ETX</td>
<td>(end of text)</td>
<td>35</td>
<td>23</td>
<td>#</td>
<td>67</td>
<td>43</td>
<td>C</td>
<td>99</td>
<td>63</td>
<td>c</td>
</tr>
<tr>
<td>04</td>
<td>04</td>
<td>EOT</td>
<td>(end of transmission)</td>
<td>36</td>
<td>24</td>
<td>$</td>
<td>68</td>
<td>44</td>
<td>D</td>
<td>100</td>
<td>64</td>
<td>d</td>
</tr>
<tr style="background:#f7f7f7">
<td>05</td>
<td>05</td>
<td>ENQ</td>
<td>(enquiry)</td>
<td>37</td>
<td>25</td>
<td>%</td>
<td>69</td>
<td>45</td>
<td>E</td>
<td>101</td>
<td>65</td>
<td>e</td>
</tr>
<tr>
<td>06</td>
<td>06</td>
<td>ACK</td>
<td>(acknowledge)</td>
<td>38</td>
<td>26</td>
<td>&amp;</td>
<td>70</td>
<td>46</td>
<td>F</td>
<td>102</td>
<td>66</td>
<td>f</td>
</tr>
<tr style="background:#f7f7f7">
<td>07</td>
<td>07</td>
<td>BEL</td>
<td>(bell)</td>
<td>39</td>
<td>27</td>
<td>&#8216;</td>
<td>71</td>
<td>47</td>
<td>G</td>
<td>103</td>
<td>67</td>
<td>g</td>
</tr>
<tr>
<td>08</td>
<td>08</td>
<td>BS</td>
<td>(back space)</td>
<td>40</td>
<td>28</td>
<td>(</td>
<td>72</td>
<td>48</td>
<td>H</td>
<td>104</td>
<td>68</td>
<td>h</td>
</tr>
<tr style="background:#f7f7f7">
<td>09</td>
<td>09</td>
<td>TAB</td>
<td>(horizontal tab)</td>
<td>41</td>
<td>29</td>
<td>)</td>
<td>73</td>
<td>49</td>
<td>I</td>
<td>105</td>
<td>69</td>
<td>i</td>
</tr>
<tr>
<td>10</td>
<td>0A</td>
<td>LF</td>
<td>(NL line feed, new line)</td>
<td>42</td>
<td>2A</td>
<td>*</td>
<td>74</td>
<td>4A</td>
<td>J</td>
<td>106</td>
<td>6A</td>
<td>j</td>
</tr>
<tr style="background:#f7f7f7">
<td>11</td>
<td>0B</td>
<td>VT</td>
<td>(vertical tab)</td>
<td>43</td>
<td>2B</td>
<td>+</td>
<td>75</td>
<td>4B</td>
<td>K</td>
<td>107</td>
<td>6B</td>
<td>k</td>
</tr>
<tr>
<td>12</td>
<td>0C</td>
<td>FF</td>
<td>(NP form feed, new page)</td>
<td>44</td>
<td>2C</td>
<td>,</td>
<td>76</td>
<td>4C</td>
<td>L</td>
<td>108</td>
<td>6C</td>
<td>l</td>
</tr>
<tr style="background:#f7f7f7">
<td>13</td>
<td>0D</td>
<td>CR</td>
<td>(carriage return)</td>
<td>45</td>
<td>2D</td>
<td>-</td>
<td>77</td>
<td>4D</td>
<td>M</td>
<td>109</td>
<td>6D</td>
<td>m</td>
</tr>
<tr>
<td>14</td>
<td>0E</td>
<td>SO</td>
<td>(shift out)</td>
<td>46</td>
<td>2E</td>
<td>.</td>
<td>78</td>
<td>4E</td>
<td>N</td>
<td>110</td>
<td>6E</td>
<td>n</td>
</tr>
<tr style="background:#f7f7f7">
<td>15</td>
<td>0F</td>
<td>SI</td>
<td>(shift in)</td>
<td>47</td>
<td>2F</td>
<td>/</td>
<td>79</td>
<td>4F</td>
<td>O</td>
<td>111</td>
<td>6F</td>
<td>o</td>
</tr>
<tr>
<td>16</td>
<td>10</td>
<td>DLE</td>
<td>(data link escape)</td>
<td>48</td>
<td>30</td>
<td>0</td>
<td>80</td>
<td>50</td>
<td>P</td>
<td>112</td>
<td>70</td>
<td>p</td>
</tr>
<tr style="background:#f7f7f7">
<td>17</td>
<td>11</td>
<td>DC1</td>
<td>(device control 1)</td>
<td>49</td>
<td>31</td>
<td>1</td>
<td>81</td>
<td>51</td>
<td>Q</td>
<td>113</td>
<td>71</td>
<td>q</td>
</tr>
<tr>
<td>18</td>
<td>12</td>
<td>DC2</td>
<td>(device control 2)</td>
<td>50</td>
<td>32</td>
<td>2</td>
<td>82</td>
<td>52</td>
<td>R</td>
<td>114</td>
<td>72</td>
<td>r</td>
</tr>
<tr style="background:#f7f7f7">
<td>19</td>
<td>13</td>
<td>DC3</td>
<td>(device control 3)</td>
<td>51</td>
<td>33</td>
<td>3</td>
<td>83</td>
<td>53</td>
<td>S</td>
<td>115</td>
<td>73</td>
<td>s</td>
</tr>
<tr>
<td>20</td>
<td>14</td>
<td>DC4</td>
<td>(device control 4)</td>
<td>52</td>
<td>34</td>
<td>4</td>
<td>84</td>
<td>54</td>
<td>T</td>
<td>116</td>
<td>74</td>
<td>t</td>
</tr>
<tr style="background:#f7f7f7">
<td>21</td>
<td>15</td>
<td>NAK</td>
<td>(do not acknowledge)</td>
<td>53</td>
<td>35</td>
<td>5</td>
<td>85</td>
<td>55</td>
<td>U</td>
<td>117</td>
<td>75</td>
<td>u</td>
</tr>
<tr>
<td>22</td>
<td>16</td>
<td>SYN</td>
<td>(synchronous idle)</td>
<td>54</td>
<td>36</td>
<td>6</td>
<td>86</td>
<td>56</td>
<td>V</td>
<td>118</td>
<td>76</td>
<td>v</td>
</tr>
<tr style="background:#f7f7f7">
<td>23</td>
<td>17</td>
<td>ETB</td>
<td>(end of transmission block)</td>
<td>55</td>
<td>37</td>
<td>7</td>
<td>87</td>
<td>57</td>
<td>W</td>
<td>119</td>
<td>77</td>
<td>w</td>
</tr>
<tr>
<td>24</td>
<td>18</td>
<td>CAN</td>
<td>(cancel)</td>
<td>56</td>
<td>38</td>
<td>8</td>
<td>88</td>
<td>58</td>
<td>X</td>
<td>120</td>
<td>78</td>
<td>x</td>
</tr>
<tr style="background:#f7f7f7">
<td>25</td>
<td>19</td>
<td>EM</td>
<td>(end of medium)</td>
<td>57</td>
<td>39</td>
<td>9</td>
<td>89</td>
<td>59</td>
<td>Y</td>
<td>121</td>
<td>79</td>
<td>y</td>
</tr>
<tr>
<td>26</td>
<td>1A</td>
<td>SUB</td>
<td>(substitute)</td>
<td>58</td>
<td>3A</td>
<td>:</td>
<td>90</td>
<td>5A</td>
<td>Z</td>
<td>122</td>
<td>7A</td>
<td>z</td>
</tr>
<tr style="background:#f7f7f7">
<td>27</td>
<td>1B</td>
<td>ESC</td>
<td>(escape)</td>
<td>59</td>
<td>3B</td>
<td>;</td>
<td>91</td>
<td>5B</td>
<td>[</td>
<td>123</td>
<td>7B</td>
<td>{</td>
</tr>
<tr>
<td>28</td>
<td>1C</td>
<td>FS</td>
<td>(file separator)</td>
<td>60</td>
<td>3C</td>
<td>&lt;</td>
<td>92</td>
<td>5C</td>
<td></td>
<td>124</td>
<td>7C</td>
<td>|</td>
</tr>
<tr style="background:#f7f7f7">
<td>29</td>
<td>1D</td>
<td>GS</td>
<td>(group separator)</td>
<td>61</td>
<td>3D</td>
<td>=</td>
<td>93</td>
<td>5D</td>
<td>]</td>
<td>125</td>
<td>7D</td>
<td>}</td>
</tr>
<tr>
<td>30</td>
<td>1E</td>
<td>RS</td>
<td>(record separator)</td>
<td>62</td>
<td>3E</td>
<td>&gt;</td>
<td>94</td>
<td>5E</td>
<td>^</td>
<td>126</td>
<td>7E</td>
<td>~</td>
</tr>
<tr style="background:#f7f7f7">
<td>31</td>
<td>1F</td>
<td>US</td>
<td>(unit separator)</td>
<td>63</td>
<td>3F</td>
<td>?</td>
<td>95</td>
<td>5F</td>
<td>_</td>
<td>127</td>
<td>7F</td>
<td>DEL</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://articles.tutorboy.com/programming/ascii-table-and-description.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
