Coding Frenzy

GT4T: a different approach to MT

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. [...]

Share

End a process with Inno setup

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;

Share

VB msgbox always on top

Very easy. MsgBox “This is a test”, vbOKCancel + 4096

Share

Change your php and mysql timezone

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.

Share

Use regular expressions in .htaccess for redirections

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 “Please replace ‘^cn\/?$’ with [...]

Share