Coding Frenzy

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 ‘en/’”. [...]

  • Share/Bookmark

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

  • Share/Bookmark

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",0×0)
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.

  • Share/Bookmark

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

Under construction.

  • Share/Bookmark

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

  • Share/Bookmark