DALLASCAO.COM

Site of Cao Shouguang, English to Chinese translator


Warning: Missing argument 1 for shapeshifter_archive_page_title(), called in /var/www/dallascao.com/en/wp-content/themes/shapeshifter/category.php on line 10 and defined in /var/www/dallascao.com/en/wp-content/themes/shapeshifter/includes/functions-do-actions.php on line 142

Category: Coding Frenzy

Use regular expressions in .htaccess for redirections

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 […]Read More

Why GT4T is useful to you?

Why GT4T is useful to you?
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 […]Read More

Autohotkey: Disable the close button [X] of a GUI window

Autohotkey: Disable the close button [X] of a GUI window
DISABLE() ;By RealityRipple at http://www.xtremevbtalk.com/archive/index.php/t-258725.html { WinGet, id, ID, A menu:=DllCall("user32\GetSystemMenu","UInt",id,"UInt",0) DllCall("user32\DeleteMenu","UInt",menu,"UInt",0xF060,"UInt",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.Read More

How to assign a keyboard shortcut to a macro in Word 2003 and Word 2007

How to assign a keyboard shortcut to a macro in Word 2003 and Word 2007
Under construction.Read More

PlainText 1.10

PlainText 1.10
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 […]Read More