Wednesday, February 15, 2012

Installing VMware tools manually in guests

Tools are here:

http://packages.vmware.com/tools

Saturday, February 11, 2012

Installing Media Wiki on Centos 5 Fatal Error: PHP's PCRE module seems to be compiled without PCRE_UTF8 support.

rpm -Uvh http://zid-lux1.uibk.ac.at/pub/dist/centos/5/os/i386/CentOS/pcre-6.6-6.el5_6.1.i386.rpm

rpm -Uvh http://zid-lux1.uibk.ac.at/pub/dist/centos/5/os/i386/CentOS/pcre-devel-6.6-6.el5_6.1.i386.rpm


Tuesday, January 31, 2012

CentOS Yum Error: thread.error: can't start new thread

When the error is in fastestmirror.py, use the yum --disableplugin=fastestmirror ... option

Tuesday, December 6, 2011

How to convert Android mobile 3gp audio files to MP3 files on Windows


  • Copy all the *.3gp files to Windows
  • Install FFMPEG on Windows
  • Start Command Prompt and change to the directory with the 3GP files
  • Enter

    for %a in (*.3gp) do ( ffmpeg -i %a -ar 22050 %a.mp3)

Monday, September 5, 2011

Setting a default custom page zoom or Google Chrome

Go to :

C:\Documents and Settings\\Local Settings\Application Data\Google\Chrome\User Data\Default\User StyleSheets

Open up Custom.css

insert :

body {zoom: 1.25}

Save, and every page will now be be zoomed  X 1.25

Tuesday, August 2, 2011

To recursively find all the files in a folder tree

xcopy C:\MyFolder\*.doc /S /L

will list out all .doc file in C:\MyFolder and all subfolders

Thursday, July 14, 2011

Rename a file with date and time as the file name in a Windows batch file

ren yourfilename.txt %date:~6,4%%date:~3,2%%date:~0,2%%time:~0,2%%time:~3,2%.txt

Sunday, May 29, 2011

Getting PHP cURL to work in MoWes

Copy php_curl.dll, php_gd2.dll, ssleay32.dll to apache\bin.
Enable extension=php_curl.dll in php.ini
Restart apache

Monday, May 9, 2011

Running Windows Scheduled Task Batch File Minimized

  • For the batch file "MyBatchFile.bat", create a shortcut : "C:\Shortcut to MyBatchFile.bat.lnk". 
  • Goto to the properties of the shortcut file and set the Run window state to "Minimized".
  • In the Windows Scheduler, create a task.
  • Browse to the shortcut, and finish creating the scheduled task.
  • When you are done, go back the the schedule tasks and edit the properties of the "MyBatchFile" scheduled task.
  • Replace the filename of "C:\MyBatchFile.bat" with the filename of the shortcut :"C:\Shortcut to MyBatchFile.bat.lnk"
Your schedule task will now run minimized.

Thursday, May 5, 2011

Change Linux timezone


ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime 

Wednesday, May 4, 2011

Enabling Permalinks in Wordpress

Make sure the following is in Apache's httpd.conf:

RewriteEngine on
AllowOverride All
 
Jeffrey Ting Jeffrey Ting on Facebook Jeffrey Ting on Spock Jeffrey Ting on Plaxo Jeffrey Ting on Spoke Jeffrey Ting on LinkedIn