Formatting large drive – like 3TB disk Ubuntu
There was a blog post that I have used multiple times to format a drive at or over 3TB in size. Unfortunately the original blog post recently went offline...
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...
Mount.cifs cannot allocate memory mounting Windows share
Mounting a Windows (SMB) share on Ubuntu gives us a “cannot allocate memory” error. Executing a command like this: mount -t cifs //toad/Backup /media/backup -o user=username,password=password,iocharset=utf8,file_mode=0777,dir_mode=0777 We get an...
Debugging Autofs problem, see where autofs log
Debugging Autofs problem If you are having trouble automounting your file systems, want to check where the log that autofs being saved, it may be useful to run automount...
Sound problem
The automatic troubleshooter says “Audio device is disabled”, even though it’s not
nginx – upstream sent too big header while reading response header from upstream
Modify your nginx configuration and change/set the following directives: proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k;
Heartbleed fix for Ubuntu
If your apt-get repositories don’t contains any precompiled OpenSSL version, so just download sources from official website and compile it. Below the single command line to compiling and install the last openssl...
Forbidden access after upgrading apache
the new apache conf doesn’t use order ,allow command , so you need to remove it and use require all granted Options -Indexes AllowOverride all # Order allow,deny #...