Archives for Programming - Page 3
Delphi 7 & Windows 7 UAC
Do you still love working with Delphi 7? I do. Delphi 7 is quite old and there are many features on the new Windows 7 that it’s not able...
PHP Can’t write /tmp folder , TCPDF ERROR: Can’t open image file: /tmp/
Make sure your open_basedir is off , also the safe_mode should be off
Adding wordpress header from outside wordpress
<?php require(''); ?> <?php get_header(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Transitional//EN" " "> <html xmlns=""> <head profile=""> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo ('charset'); ?>" />...
How to run PHP in the background
I need to run some PHP scripts in the background, this script should still run while i log off my SSH session. I first try php & It...
Delphi 7 – TMS Component – Class Not Found
I was trying to install TMS Component into my Delphi 7 (yes, it’s very old), everything seems working fine. I can see the new components installed, i can...
UTF8 – Database design notes
Long time ago, when i design the database, i never think of the character set for my database. But recently, i have to work on some non-english language like...
Using PHP / Google Translate foreign language to english
Here is the code to utilize Google Translate to translate any text to English for free. /* this function translates chinese to english if you want to use this...
Inserting Chinese or Other Non English character into mysql
I have a Chinese text file that’s not encoded in UTF8 , it’s encoded with gb2312 . I have been struggling to insert it into mysql. When i copy...
How to relocate subversion to new url in Mac with SVNX
Svnx doesnt have interface to switch the svn repository from one url to another. If you change your url , or move your repository to a new url you...
Analyze your slow mysql query with “Explain”
When you think your mysql is slow , the first step is to analyze your sql query with “Exlain” command. This is an example explain select * from table1...
