<?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>DALLASCAO.COM &#187; Coding Frenzy</title>
	<atom:link href="http://dallascao.com/en/category/coding-frenzy/feed/" rel="self" type="application/rss+xml" />
	<link>http://dallascao.com/en</link>
	<description>Site of Dallas Cao, English to Chinese translator</description>
	<lastBuildDate>Mon, 23 Jan 2012 11:37:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>GT4T: a different approach to MT</title>
		<link>http://dallascao.com/en/gt4t-a-different-approach-to-mt/</link>
		<comments>http://dallascao.com/en/gt4t-a-different-approach-to-mt/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 16:07:15 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>
		<category><![CDATA[Translations]]></category>
		<category><![CDATA[GT4T]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=804</guid>
		<description><![CDATA[GT4T takes a rather different approach to MT: The result is often disappointing when sending the whole segment to MT. With GT4T you can select any portion of a sentence. GT4T aims to incorporate MT into the translation process, helping translators with suggestions and reducing keystrokes, rather than using MT as a first draft translator. [...]]]></description>
			<content:encoded><![CDATA[<p>GT4T takes a rather different approach to MT:</p>
<p>The result is often disappointing when sending the whole segment to MT. With GT4T you can select any portion of a sentence. GT4T aims to incorporate MT into the translation process, helping translators with suggestions and reducing keystrokes, rather than using MT as a first draft translator.</p>
<p>Show alternative translations for every syntagm. It&#8217;s exciting as you have many possible translations for each part of a sentence. It works very well when you mind gets stuck or tired.</p>
<p>Show both Google and Bing translations.</p>
<p>A combination of User-defined Glossary and MT. When MT cannot translate a term correctly, you can add it to Glossary and then result is always correct.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/language-filter-for-friendfeedcom/" rel="bookmark" class="crp_title">Language filter for friendfeed.com?</a></li><li><a href="http://dallascao.com/en/why-gt4t-is-useful-to-you/" rel="bookmark" class="crp_title">Why GT4T is useful to you?</a></li><li><a href="http://dallascao.com/en/use-of-if-fields/" rel="bookmark" class="crp_title">Use of If field in Microsoft Word</a></li><li><a href="http://dallascao.com/en/end-a-process-with-inno-setup/" rel="bookmark" class="crp_title">End a process with Inno setup</a></li><li><a href="http://dallascao.com/en/autohotkey-disable-the-close-button-x-of-a-gui-window/" rel="bookmark" class="crp_title">Autohotkey: Disable the close button [X] of a GUI window</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fgt4t-a-different-approach-to-mt%2F&amp;title=GT4T%3A%20a%20different%20approach%20to%20MT"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/gt4t-a-different-approach-to-mt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>End a process with Inno setup</title>
		<link>http://dallascao.com/en/end-a-process-with-inno-setup/</link>
		<comments>http://dallascao.com/en/end-a-process-with-inno-setup/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 02:27:13 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=798</guid>
		<description><![CDATA[So easy. [Code] [Code] function InitializeSetup(): Boolean; var ErrorCode: Integer; begin Result:=false; ShellExec('open', 'taskkill.exe', '/f /im notepad.exe','',SW_HIDE,ewNoWait,ErrorCode); result := True; end; Related Posts:Testimonials for GT4TUse regular expressions in .htaccess for redirectionsGT4T: a different approach to MTtestimonialsUse cookies to remember the language version users visited last time (php code)Powered by Contextual Related Posts]]></description>
			<content:encoded><![CDATA[<p>So easy.<br />
<code><br />
[Code]<br />
[Code]<br />
function InitializeSetup(): Boolean;<br />
var<br />
  ErrorCode: Integer;<br />
  begin<br />
        Result:=false;</p>
<p>        ShellExec('open',<br />
          'taskkill.exe',<br />
          '/f /im notepad.exe','',SW_HIDE,ewNoWait,ErrorCode);<br />
        result := True;<br />
  end;</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/testimonials-for-gt4t/" rel="bookmark" class="crp_title">Testimonials for GT4T</a></li><li><a href="http://dallascao.com/en/use-regular-expressions-in-htaccess-for-redirections/" rel="bookmark" class="crp_title">Use regular expressions in .htaccess for redirections</a></li><li><a href="http://dallascao.com/en/gt4t-a-different-approach-to-mt/" rel="bookmark" class="crp_title">GT4T: a different approach to MT</a></li><li><a href="http://dallascao.com/en/clients-comments/" rel="bookmark" class="crp_title">testimonials</a></li><li><a href="http://dallascao.com/en/use-cookies-to-remember/" rel="bookmark" class="crp_title">Use cookies to remember the language version users visited last time (php code)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fend-a-process-with-inno-setup%2F&amp;title=End%20a%20process%20with%20Inno%20setup"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/end-a-process-with-inno-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB msgbox always on top</title>
		<link>http://dallascao.com/en/vb-msgbox-always-on-top/</link>
		<comments>http://dallascao.com/en/vb-msgbox-always-on-top/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 12:59:39 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=796</guid>
		<description><![CDATA[Very easy. MsgBox "This is a test", vbOKCancel + 4096 Related Posts:End a process with Inno setup&#8220;Exceeds Expecations!&#8221;Change your php and mysql timezoneUse cookies to remember the language version users visited last time (php code)Google Dictionary for Word (GD4Word)Powered by Contextual Related Posts]]></description>
			<content:encoded><![CDATA[<p>Very easy.<br />
<code>MsgBox "This is a test", vbOKCancel + 4096</code></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/end-a-process-with-inno-setup/" rel="bookmark" class="crp_title">End a process with Inno setup</a></li><li><a href="http://dallascao.com/en/exceeds-expecations/" rel="bookmark" class="crp_title">&#8220;Exceeds Expecations!&#8221;</a></li><li><a href="http://dallascao.com/en/change-your-php-and-mysql-timezone/" rel="bookmark" class="crp_title">Change your php and mysql timezone</a></li><li><a href="http://dallascao.com/en/use-cookies-to-remember/" rel="bookmark" class="crp_title">Use cookies to remember the language version users visited last time (php code)</a></li><li><a href="http://dallascao.com/en/google-dictionary-for-word-gd4word/" rel="bookmark" class="crp_title">Google Dictionary for Word (GD4Word)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fvb-msgbox-always-on-top%2F&amp;title=VB%20msgbox%20always%20on%20top"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/vb-msgbox-always-on-top/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change your php and mysql timezone</title>
		<link>http://dallascao.com/en/change-your-php-and-mysql-timezone/</link>
		<comments>http://dallascao.com/en/change-your-php-and-mysql-timezone/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 16:06:49 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=789</guid>
		<description><![CDATA[date_default_timezone_set('PRC'); Changes the timezone to China (+8) If you use mysql database, you will also need to use mysql_query("SET time_zone = '+8:00'"); to change the the timezone of mysql database. Related Posts:End a process with Inno setupGoogle Dictionary for Word (GD4Word)VB msgbox always on topUse cookies to remember the language version users visited last time [...]]]></description>
			<content:encoded><![CDATA[<p><code>date_default_timezone_set('PRC'); </code></p>
<p>Changes the timezone to China (+8)</p>
<p>If you use mysql database, you will also need to use</p>
<p><code>mysql_query("SET time_zone = '+8:00'");</code></p>
<p> to change the the timezone of mysql database.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/end-a-process-with-inno-setup/" rel="bookmark" class="crp_title">End a process with Inno setup</a></li><li><a href="http://dallascao.com/en/google-dictionary-for-word-gd4word/" rel="bookmark" class="crp_title">Google Dictionary for Word (GD4Word)</a></li><li><a href="http://dallascao.com/en/vb-msgbox-always-on-top/" rel="bookmark" class="crp_title">VB msgbox always on top</a></li><li><a href="http://dallascao.com/en/use-cookies-to-remember/" rel="bookmark" class="crp_title">Use cookies to remember the language version users visited last time (php code)</a></li><li><a href="http://dallascao.com/en/homezz-com-celebrating-one-year-anniversary-of-service/" rel="bookmark" class="crp_title">Homezz.com: celebrating one-year anniversary of service</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fchange-your-php-and-mysql-timezone%2F&amp;title=Change%20your%20php%20and%20mysql%20timezone"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/change-your-php-and-mysql-timezone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use regular expressions in .htaccess for redirections</title>
		<link>http://dallascao.com/en/use-regular-expressions-in-htaccess-for-redirections/</link>
		<comments>http://dallascao.com/en/use-regular-expressions-in-htaccess-for-redirections/#comments</comments>
		<pubDate>Fri, 14 May 2010 17:30:04 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=744</guid>
		<description><![CDATA[Task one: Apache server provides a .htaccess file using which you can use to redirect URLs. For example, if you want to redirect all visitors to http://dallascao.com/cn/ to http://dallascao.com/en/, you can open the .htaccess file at the root, and then input: RewriteRule ^cn\/?$ en\/ Translating the code in English, it means &#8220;Please replace &#8216;^cn\/?$&#8217; with [...]]]></description>
			<content:encoded><![CDATA[<h2>Task one:</h2>
<p>Apache server provides a .htaccess file using which you can use to redirect URLs. For example, if you want to redirect all visitors to http://dallascao.com/cn/ to http://dallascao.com/en/, you can open the .htaccess file at the root, and then input:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">RewriteRule <span style="color: #339933;">^</span>cn\<span style="color: #339933;">/?</span>$ en\<span style="color: #339933;">/</span></pre></div></div>

<p>Translating the code in English, it means &#8220;Please replace &#8216;^cn\/?$&#8217; with &#8216;en/&#8217;&#8221;.   &#8220;^cn\/?$&#8221; is a regular expression, in which:</p>
<p>&#8220;^&#8221; matches the beginning of a string.<br />
&#8220;$&#8221; matches the end.<br />
&#8220;\&#8221; means &#8220;/&#8221; following it stands for &#8220;/&#8221; itself, not part of the grammar.<br />
&#8220;?&#8221; means there can be one &#8220;/&#8221; or no &#8220;/&#8221;</p>
<p>So  &#8220;^cn\/?$&#8221; matches two strings: &#8220;cn/&#8221; or &#8220;cn&#8221;. When visitors visit http://dallascao.com/cn/ (end with a slash) or http://dallascao.com/cn (end with no slash), they are redirected to http://dallascao.com/en/</p>
<h2>Task two:</h2>
<p>If you want to redirect all visitors to the root of http://dallascao.com/ to http://dallascao.com/en/, I can use this:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">RewriteRule <span style="color: #339933;">^</span>$ en\<span style="color: #339933;">/</span></pre></div></div>

<p>&#8220;^$&#8221; matches an empty string, meaning the root.</p>
<h2>Task three:</h2>
<p>Inputting the following code into the .htaccess of http://gt4t.net/, all visitors to http://gt4t.net/anything/ to http://gt4t.net/en/anything/. For example, visitors to http://gt4t.net/downloads/ will be redirected to http://gt4t.net/en/downloads.</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">RewriteRule <span style="color: #339933;">^</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.*?</span><span style="color: #009900;">&#41;</span>\<span style="color: #339933;">/?</span>$ \<span style="color: #339933;">/</span>en\<span style="color: #339933;">/</span><span style="color: #0000ff;">$1</span></pre></div></div>

<p>&#8220;^(.*?)\/?$&#8221; means anything that either ends with one &#8220;/&#8221; or no &#8220;/&#8221;. In the second part, &#8220;\/en\/$1&#8243;, &#8220;$1&#8243; stands for the 1st bracketed element in the previous string &#8220;^(.*?)\/?$&#8221; (in this case, the only bracketed element.). And it means replacing &#8220;ANYTHING&#8221; ending with &#8220;/&#8221; or no &#8220;/&#8221; with &#8220;/en/ANYTHING/&#8221;</p>
<p>By the way, if you want your redirection to be hidden, you can add the following option to the beginng .</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">Options <span style="color: #339933;">+</span>FollowSymLinks</pre></div></div>

<p>In the example above, your visitors to http://gt4t.net/downloads is redirected to http://gt4t.net/gt4t_en/downloads/ but http://gt4t.net/downloads is still shown in the address bar.</p>
<p>Finally, here is  is the complete .htaccess file:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">RewriteEngine on
Options <span style="color: #339933;">+</span>FollowSymLinks
&nbsp;
RewriteCond <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>HTTP_HOST<span style="color: #009900;">&#125;</span> <span style="color: #339933;">^</span>gt4t<span style="color: #339933;">.</span>net$ <span style="color: #009900;">&#91;</span>OR<span style="color: #009900;">&#93;</span>
RewriteCond <span style="color: #339933;">%</span><span style="color: #009900;">&#123;</span>HTTP_HOST<span style="color: #009900;">&#125;</span> <span style="color: #339933;">^</span>www<span style="color: #339933;">.</span>gt4t<span style="color: #339933;">.</span>net$
RewriteRule <span style="color: #339933;">^</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.*?</span><span style="color: #009900;">&#41;</span>\<span style="color: #339933;">/?</span>$ \<span style="color: #339933;">/</span>gt4t_en\<span style="color: #339933;">/</span><span style="color: #0000ff;">$1</span> <span style="color: #009900;">&#91;</span>L<span style="color: #009900;">&#93;</span></pre></div></div>

<p>Confused? <a href="http://dallascao.com/en/contact-dallas/">Contact me</a> if you have such a need. I will be happy to help you.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/use-of-if-fields/" rel="bookmark" class="crp_title">Use of If field in Microsoft Word</a></li><li><a href="http://dallascao.com/en/use-cookies-to-remember/" rel="bookmark" class="crp_title">Use cookies to remember the language version users visited last time (php code)</a></li><li><a href="http://dallascao.com/en/autohotkey-disable-the-close-button-x-of-a-gui-window/" rel="bookmark" class="crp_title">Autohotkey: Disable the close button [X] of a GUI window</a></li><li><a href="http://dallascao.com/en/the-context-sensitive-language-versions-link/" rel="bookmark" class="crp_title">The context sensitive Language Versions link</a></li><li><a href="http://dallascao.com/en/google-dictionary-for-word-gd4word/" rel="bookmark" class="crp_title">Google Dictionary for Word (GD4Word)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fuse-regular-expressions-in-htaccess-for-redirections%2F&amp;title=Use%20regular%20expressions%20in%20.htaccess%20for%20redirections"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/use-regular-expressions-in-htaccess-for-redirections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why GT4T is useful to you?</title>
		<link>http://dallascao.com/en/why-gt4t-is-useful-to-you/</link>
		<comments>http://dallascao.com/en/why-gt4t-is-useful-to-you/#comments</comments>
		<pubDate>Fri, 07 May 2010 19:00:31 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>
		<category><![CDATA[Translations]]></category>
		<category><![CDATA[Google Translate]]></category>
		<category><![CDATA[GT4T]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=739</guid>
		<description><![CDATA[There are times when we are sure Google Translate can be as good as you. Translating a loooong list of country names, for example, can be very tiring and time-consuming. With GT4T, you just need to hit the shortcut and the names will be translated and correctly typed for you automatically. GT4T can be used [...]]]></description>
			<content:encoded><![CDATA[<h4>There are times when we are sure Google Translate can be as good as you.</h4>
<p>Translating a loooong list of country names, for example, can be very tiring and time-consuming. With GT4T, you just need to hit the shortcut and the names will be translated and correctly typed for you automatically.</p>
<h4>GT4T can be used as a dictionary integrated into your applications.</h4>
<p>Let&#8217;s face it. We need to check the on-line dictionaries quite often. When checking on-line dictionaries and you are tired of typing, do you copy the source word and paste it into a dictionary and then paste the translation back? With GT4T, you ONLY need to hit the shortcut and then the source word is replaced by its translation. You don&#8217;t even need to switch between windows!</p>
<h4>Surprise!</h4>
<p>At least until now, no one believes machine translation can be as good as human translation. But more often than you think, Google Translate can surprise you. Especially when you are stuck and your mind goes blank, hit the shortcut to see what Google Translate can provide. I won&#8217;t surprised if you find that answers from Google Translate can be really awesome.。</p>
<p>The idea of GT4T is to bring Google Translate to your fingertip and everything is just one hot key away. With GT4T, to use Google Translate, you no longer need to leave your document, open your browser, navigate to Google Translate website&#8230; just hit the hot key, and the translation is automatically typed into our document.</p>
<p>Still not sure? Check out <a href="http://gt4t.net/testimonials/" target="_self">this</a> (testimonials page) and <a href="http://www.proz.com/forum/machine_translation_mt/151436-gt4t.html" target="_blank">this</a> (a discussion at proz.com) to see what other users have said about GT4T.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/a-list-of-country-names/" rel="bookmark" class="crp_title">A list of country names (English to Chinese Trados TM)</a></li><li><a href="http://dallascao.com/en/gt4t-a-different-approach-to-mt/" rel="bookmark" class="crp_title">GT4T: a different approach to MT</a></li><li><a href="http://dallascao.com/en/paste-plain-text-in-word/" rel="bookmark" class="crp_title">Paste plain text in Word, any in any applications using GT4T</a></li><li><a href="http://dallascao.com/en/gt4t/" rel="bookmark" class="crp_title">Google Translate for Translators (GT4T)</a></li><li><a href="http://dallascao.com/en/testimonials-for-gt4t/" rel="bookmark" class="crp_title">Testimonials for GT4T</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fwhy-gt4t-is-useful-to-you%2F&amp;title=Why%20GT4T%20is%20useful%20to%20you%3F"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/why-gt4t-is-useful-to-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autohotkey: Disable the close button [X] of a GUI window</title>
		<link>http://dallascao.com/en/autohotkey-disable-the-close-button-x-of-a-gui-window/</link>
		<comments>http://dallascao.com/en/autohotkey-disable-the-close-button-x-of-a-gui-window/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 16:06:50 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>
		<category><![CDATA[autohotkeys]]></category>
		<category><![CDATA[GUI]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=620</guid>
		<description><![CDATA[DISABLE() ;By RealityRipple at http://www.xtremevbtalk.com/archive/index.php/t-258725.html { WinGet, id, ID, A menu:=DllCall(&#34;user32\GetSystemMenu&#34;,&#34;UInt&#34;,id,&#34;UInt&#34;,0) DllCall(&#34;user32\DeleteMenu&#34;,&#34;UInt&#34;,menu,&#34;UInt&#34;,0xF060,&#34;UInt&#34;,0x0) WinGetPos,x,y,w,h,ahk_id %id% WinMove,ahk_id %id%,,%x%,%y%,%w%,% h-1 WinMove,ahk_id %id%,,%x%,%y%,%w%,% h+1 } Then insert DISABLE() after GUI, show command to call the function. Related Posts:Use of If field in Microsoft WordUse regular expressions in .htaccess for redirectionsShortcut to open a link in a new tab instead [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">DISABLE() ;By RealityRipple at http://www.xtremevbtalk.com/archive/index.php/t-258725.html
{
  WinGet, id, ID, A
  menu:=DllCall(&quot;user32\GetSystemMenu&quot;,&quot;UInt&quot;,id,&quot;UInt&quot;,0)
  DllCall(&quot;user32\DeleteMenu&quot;,&quot;UInt&quot;,menu,&quot;UInt&quot;,0xF060,&quot;UInt&quot;,0x0)
  WinGetPos,x,y,w,h,ahk_id %id%
  WinMove,ahk_id %id%,,%x%,%y%,%w%,% h-1
  WinMove,ahk_id %id%,,%x%,%y%,%w%,% h+1
}</pre></div></div>

<p>Then insert DISABLE() after GUI, show command to call the function.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/use-of-if-fields/" rel="bookmark" class="crp_title">Use of If field in Microsoft Word</a></li><li><a href="http://dallascao.com/en/use-regular-expressions-in-htaccess-for-redirections/" rel="bookmark" class="crp_title">Use regular expressions in .htaccess for redirections</a></li><li><a href="http://dallascao.com/en/open-a-link-in-a-new-tab/" rel="bookmark" class="crp_title">Shortcut to open a link in a new tab instead of a new window</a></li><li><a href="http://dallascao.com/en/use-cookies-to-remember/" rel="bookmark" class="crp_title">Use cookies to remember the language version users visited last time (php code)</a></li><li><a href="http://dallascao.com/en/opening-pdf-files-with-coreldraw/" rel="bookmark" class="crp_title">Opening PDF files with CorelDraw</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fautohotkey-disable-the-close-button-x-of-a-gui-window%2F&amp;title=Autohotkey%3A%20Disable%20the%20close%20button%20%5BX%5D%20of%20a%20GUI%20window"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/autohotkey-disable-the-close-button-x-of-a-gui-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to assign a keyboard shortcut to a macro in Word 2003 and Word 2007</title>
		<link>http://dallascao.com/en/how-to-assign-a-keyboard-shortcut-to-a-macro-in-word-2003-and-word-2007/</link>
		<comments>http://dallascao.com/en/how-to-assign-a-keyboard-shortcut-to-a-macro-in-word-2003-and-word-2007/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 14:32:35 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>
		<category><![CDATA[Translations]]></category>
		<category><![CDATA[Miscrosoft Word]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=412</guid>
		<description><![CDATA[Under construction. Related Posts:Paste plain text in Word, any in any applications using GT4TTrados Translators Workbench too slow in Word 2007?Google Dictionary for Word (GD4Word)Suffer from RSI? Use more than one keyboard!aboutPowered by Contextual Related Posts]]></description>
			<content:encoded><![CDATA[<p>Under construction.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/paste-plain-text-in-word/" rel="bookmark" class="crp_title">Paste plain text in Word, any in any applications using GT4T</a></li><li><a href="http://dallascao.com/en/trados-translators-workbench-too-slow-in-word-2007/" rel="bookmark" class="crp_title">Trados Translators Workbench too slow in Word 2007?</a></li><li><a href="http://dallascao.com/en/google-dictionary-for-word-gd4word/" rel="bookmark" class="crp_title">Google Dictionary for Word (GD4Word)</a></li><li><a href="http://dallascao.com/en/use-more-keyboards-to-relieve-rsi/" rel="bookmark" class="crp_title">Suffer from RSI? Use more than one keyboard!</a></li><li><a href="http://dallascao.com/en/about/" rel="bookmark" class="crp_title">about</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fhow-to-assign-a-keyboard-shortcut-to-a-macro-in-word-2003-and-word-2007%2F&amp;title=How%20to%20assign%20a%20keyboard%20shortcut%20to%20a%20macro%20in%20Word%202003%20and%20Word%202007"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/how-to-assign-a-keyboard-shortcut-to-a-macro-in-word-2003-and-word-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PlainText 1.10</title>
		<link>http://dallascao.com/en/plaintext/</link>
		<comments>http://dallascao.com/en/plaintext/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 13:38:42 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[Translations]]></category>
		<category><![CDATA[plainPaste]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tools for translators]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=396</guid>
		<description><![CDATA[PlainText makes it easy for you to paste text to an application without getting the formats of the original text. After installing and running PlainText, you can use CTRL+C to copy some text and press CTRL+SHIFT+V to paste the plain text to another application. It is especially useful when you want to copy the content [...]]]></description>
			<content:encoded><![CDATA[<p>PlainText makes it easy for you to paste text to an application without getting the formats of the original text. After installing and running PlainText, you can use CTRL+C to copy some text and press CTRL+SHIFT+V to paste the plain text to another application.</p>
<p>It is especially useful when you want to copy the content of webpage to your application, e.g. copying the content of a table on a webpage to Excel.</p>
<p>How to use:</p>
<p>Select some text and press CTRL+C, press down CTRL+SHIFT+V to paste the text to any text-based application, e.g. Microsoft Word.</p>
<p>You may also click on the  <img class="alignnone" title="plaintext" src="/files/plaintext.ahk_1.ico" alt="" width="32" height="32" />icon at your system tray to convert the clipboard into plain text and use the usual CTRL+V paste command to paste it.</p>
<p><a href="http://dallascao.com/en/?download=PlainText"><img src="/images/download.jpg" alt="" /></a></p>
<p>PlainText is freeware. Please also check out <a href="http://dallascao.com/en/2009/10/google-translate-for-microsoft-word-gt4word-beta/">Google Translate for Translators </a>, a tool that seamlessly integrates Google Translate to Trados, Word and all text applications.</p>
<p>PlainText is developed with Autohotkeys:</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/paste-plain-text-in-word/" rel="bookmark" class="crp_title">Paste plain text in Word, any in any applications using GT4T</a></li><li><a href="http://dallascao.com/en/gt4t/" rel="bookmark" class="crp_title">Google Translate for Translators (GT4T)</a></li><li><a href="http://dallascao.com/en/solving-the-hard-or-soft-return-headache-when-pasting-table-from-word-to-excel/" rel="bookmark" class="crp_title">Solving the hard or soft Return headache when pasting table from Word to Excel</a></li><li><a href="http://dallascao.com/en/batchreplacer/" rel="bookmark" class="crp_title">BatchReplacer, search and replace mutiple files</a></li><li><a href="http://dallascao.com/en/trados-translators-workbench-too-slow-in-word-2007/" rel="bookmark" class="crp_title">Trados Translators Workbench too slow in Word 2007?</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fplaintext%2F&amp;title=PlainText%201.10"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/plaintext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Dictionary for Word (GD4Word)</title>
		<link>http://dallascao.com/en/google-dictionary-for-word-gd4word/</link>
		<comments>http://dallascao.com/en/google-dictionary-for-word-gd4word/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 14:10:35 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Coding Frenzy]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[Translations]]></category>
		<category><![CDATA[Google Dictionary]]></category>
		<category><![CDATA[GT4T]]></category>
		<category><![CDATA[tools for translators]]></category>

		<guid isPermaLink="false">http://dallascao.com/en/?p=310</guid>
		<description><![CDATA[GD4Word (Google Dictionary for Word) does one simple thing: Select a word, and press CTRL+ALT+D, a Google Dictionary window will open displaying the definition, translation and examples of that word. GD4Word is a Word Macro and it only works inside Microsoft Word. GD4Word is a free version of Google Translate for Translators, a program that [...]]]></description>
			<content:encoded><![CDATA[<p>GD4Word (Google Dictionary for Word) does one simple thing: Select a word, and press CTRL+ALT+D, a Google Dictionary window will open displaying the definition, translation and examples of that word.</p>
<p>GD4Word is a Word Macro and it only works inside Microsoft Word.</p>
<p>GD4Word is a free version of <a href="http://dallascao.com/en/2009/10/google-translate-for-microsoft-word-gt4word-beta/"><span style="color: #ff0000;">Google Translate for Translators</span></a>, a program that seriously increases translation speed by adding Google Translate to TRADOS, Word and all text applications.<br />
<a href="http://dallascao.com/en/wp-content/uploads/2009/10/GD4Word.jpg"><img class="aligncenter size-full wp-image-315" title="GD4Word" src="http://dallascao.com/en/wp-content/uploads/2009/10/GD4Word.jpg" alt="GD4Word" width="779" height="677" /></a></p>
<p>Click to download the installer that will automatically adds CTRL+ALT+D to your Word.</p>
<p><a href="http://dallascao.com/en/?download=GD4Word"><img src="/images/download.jpg" alt="" /></a></p>
<p>In case you want to do the coding yourself,</p>
<p>In Word 2003 and under,</p>
<p>Go to Tools&#8211;&gt;Macros&#8212;&gt;Visual Basic</p>
<p>Right click on &#8220;Normal&#8221;, and choose &#8220;Insert&#8221;&#8212;&gt;&#8221;Module&#8221;</p>
<p>Paste the following code to the newly inserted module.</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #008000;">'code start
</span>
<span style="color: #E56717; font-weight: bold;">Public</span> <span style="color: #151B8D; font-weight: bold;">Declare</span> <span style="color: #E56717; font-weight: bold;">Function</span> ShellExecute Lib <span style="color: #800000;">&quot;shell32.dll&quot;</span> Alias <span style="color: #800000;">&quot;ShellExecuteA&quot;</span> (<span style="color: #151B8D; font-weight: bold;">ByVal</span> hwnd <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Long</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> lpOperation <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> lpFile <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> lpParameters <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> lpDirectory <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>, <span style="color: #151B8D; font-weight: bold;">ByVal</span> nShowCmd <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Long</span>) <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">Long</span>
&nbsp;
<span style="color: #E56717; font-weight: bold;">Sub</span> Gdictionary()
&nbsp;
<span style="color: #151B8D; font-weight: bold;">Dim</span> SLan <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
<span style="color: #151B8D; font-weight: bold;">Dim</span> TLan <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
<span style="color: #151B8D; font-weight: bold;">Dim</span> SText <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
<span style="color: #151B8D; font-weight: bold;">Dim</span> Gurl <span style="color: #151B8D; font-weight: bold;">As</span> <span style="color: #F660AB; font-weight: bold;">String</span>
&nbsp;
SLan = <span style="color: #800000;">&quot;en&quot;</span>
TLan = <span style="color: #800000;">&quot;zh-CN&quot;</span>
SText = VBA.Trim(VBA.Replace(Selection.Text, Chr(13), <span style="color: #800000;">&quot;&quot;</span>))
&nbsp;
Gurl = <span style="color: #800000;">&quot;http://www.google.com/dictionary?langpair=&quot;</span> + SLan + <span style="color: #800000;">&quot;|&quot;</span> + TLan + <span style="color: #800000;">&quot;&amp;q=&quot;</span> + SText + <span style="color: #800000;">&quot;&amp;hl=en&amp;aq=f&quot;</span>
&nbsp;
Debug.<span style="color: #151B8D; font-weight: bold;">Print</span> Gurl
&nbsp;
ShellExecute 0&amp;, vbNullString, Gurl, vbNullString, vbNullString, vbNormalFocus
&nbsp;
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span>
&nbsp;
'code <span style="color: #8D38C9; font-weight: bold;">end</span></pre></div></div>

<p>Then you can assign a keyboard shortcut to the macro: Gdictionary().</p>
<p>This code works when the source language uses ASCII characters only. If you want to make it work with pairs like Chinese to English, you will need to utf-8 encode your source text string.</p>
<p>&#8220;en&#8221;, &#8220;zh-CN&#8221; are shortcodes for the source language and the target language. You need to change them to your pair.</p>
<p>Google language short codes:</p>
<p>auto=Auto Detect,af=Afrikaans,sq=Albanian,ar=Arabic,be=Belarusian,bg=Bulgarian,ca=Catalan,zh-CN=Chinese (Simplified),zh-TW=Chinese (Traditional),hr=Croatian,cs=Czech,da=Danish,nl=Dutch,en=English,et=Estonian,tl=Filipino,fi=Finnis h,fr=French,gl=Galician,de=German,el=Greek,iw=Hebrew,hi=Hindi,hu=Hungarian,is=Icelandic,id=Indonesia n,ga=Irish,it=Italian,ja=Japanese,ko=Korean,lv=Latvian,lt=Lithuanian,mk=Macedonian,ms=Malay,mt=Malte se,no=Norwegian,fa=Persian,pl=Polish,pt=Portuguese,ro=Romanian,ru=Russian,sr=Serbian,sk=Slovak,sl=Sl ovenian,es=Spanish,sw=Swahili,sv=Swedish,th=Thai,tr=Turkish,uk=Ukrainian,vi=Vietnamese,cy=Welsh,yi=Y iddish</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://dallascao.com/en/paste-plain-text-in-word/" rel="bookmark" class="crp_title">Paste plain text in Word, any in any applications using GT4T</a></li><li><a href="http://dallascao.com/en/use-regular-expressions-in-htaccess-for-redirections/" rel="bookmark" class="crp_title">Use regular expressions in .htaccess for redirections</a></li><li><a href="http://dallascao.com/en/the-context-sensitive-language-versions-link/" rel="bookmark" class="crp_title">The context sensitive Language Versions link</a></li><li><a href="http://dallascao.com/en/batchreplacer/" rel="bookmark" class="crp_title">BatchReplacer, search and replace mutiple files</a></li><li><a href="http://dallascao.com/en/use-of-if-fields/" rel="bookmark" class="crp_title">Use of If field in Microsoft Word</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fdallascao.com%2Fen%2Fgoogle-dictionary-for-word-gd4word%2F&amp;title=Google%20Dictionary%20for%20Word%20%28GD4Word%29"><img src="/en/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://dallascao.com/en/google-dictionary-for-word-gd4word/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

