Posts Tagged ‘windows’

Moving WP installation

January 8, 2014

If I move my WP installation I can hard code the IP address using define in wp-config.php (codex here) but since I have 4 sites using subfolders I wanted to change one line instead of going to 4 files and change 8 lines. This solution is to use a file say ip.text at htdocs then insert below snippet in all 4 wp-config.php files to read the line containing the IP address in the text file.

$file = fopen(str_replace(substr(ABSPATH,-2),"",ABSPATH)."ip.txt", "r");
$ip = fgets($file);

In this example /a/ is the subfolder containing a WP installation.

There are more issues than I ever anticipated. In fact WP uses absolute url for all attachments and media that went into the posts therefore if the sites are running under a different IP all links are broken.   I have tried a few plugins which claim to resolve this, none of them can do all I want to do.

To completely replace IP addresses appear in all your posts I have to do it in mysql, fire up phpmyadmin then run below

UPDATE wp_posts SET post_content = REPLACE(post_content, '','')

So that’s all I have to do to move my WP Intranet running under XAMPP portable Lite to an external drive, either thumb or HDD/SSD, run setup_xampp.bat in the XAMPP root folder do the little tricks above then I could run the installation in any Windows OS.

M600 retired

December 28, 2013

I bought this Toshiba M600 notebook in June 2008, it came with Vista (still remember that?) then I used it to play with a few Ubuntu distro, Windows 7 and 8 previews etc.

Then I bought an upgrade version of Windows 8 and replaced the original HDD with a Intel 180G SSD.

One day it failed to charge, it wasn’t the charger so I bet it must be something on the motherboard. I salvaged the Intel SSD.


Now the SSD is in a $180 USB3.0 case, for some strange reasons Windows 8 doesn’t recognize it? My way out is to connect it to my MBP so I can save files from Windows 8 via VMWare sharing.

Because of cloud storage in recent years and pretty cheap thumb drives it’s kind of odd to carry an external HDD around.

8.1 and 10.9

October 26, 2013

There are many OS and app updates recently, Windows 8.1, OS X 10.9 and VMWare Fusion 6 to catch up launch of new OSs.

One of the welcomed new feature of 10.9 is better support of dual monitor the kind of set up that people need in a work environment with Windows network. Before 10.9 your extended desktop is either all OS X or Windows. It’s not inconvenient a 3 fingers swipe will switch OS within a blink of eyes.

With new 10.9 you could have each of your monitor to display the OS you want independently, it’s supposed to work that way.

I upgraded my 2 MBP’s flawlessly, have done this over the years many times, I was so confident that I didn’t even bother to do backup first.

I have Windows updated to 8.1 in my work MBP before moving OS X up, as I need it for work I expected everything to work normally. The advertised 200 new features I never cared.

Unexpectedly new feature turned bad on me, the dual monitor feature broke down completely after the OS X update, I just can’t extend the Windows desktop which I needed for work! Windows still detected the second monitor but OS X occupied it, Windows as an app can be full screen but it didn’t have control over the second monitor.

Naturally I googled for a solution didn’t get much useful links as this may be pretty new. I assumed this sort of setup must be very common for people at work. The culprit must be VMWware Fusion which launched a new version 6 ahead of OS X and 8.1 upgrade hitting the street.

Within minutes and $49.9 for Fusion 6 licence I have two OSs independently on 2 displays. When I clicked the Windows display the second display will smartly switch to my windows extended desktop from OS X. 3 fingers swipe works the same on both display.

The formula is 10.9 + 8.1 + 6 = magic I want.

Old notebook + SSD from Vista to Windows 8

December 13, 2012

My Toshiba M600 notebook is more than 4 years old, surprised that I didn’t write when I bought it. It came with Vista and I have played with many versions of Ubuntu and other distro on it. I also didn’t miss any chances of trying free beta/preview of windows 7 and 8 with the hardware. The hardware is getting a bit outdated but OS’s are getting less demanding on hardware these days so it worked fine so far.

To give new life to the old hardware I decided to replace the 120G harddisk with a new Intel 180G SSD.


Before the operation this M600 notebook was running Windows 8 free preview I had to roll the OS back to Vista after the SSD was installed. I benchmarked the SSD performance

This was done with Vista SP2 installed

I then optimized the SSD with Intel’s tool.

It got a bit faster.

Below is the WEI for reference

The Index for data transfer rate jumped from 5.2 to 5.9

Next step was windows 8 installation as I don’t think I can stand Vista and it’s a waste of the SSD running on Vista.

Windows 8 before optimization by Intel SSD tools

Last step was optimization using Intel’s SSD tools


I can see 40-50% jump in read/write performance. SSD is therefore worth having for old hardware.

The only trouble for Windows 8 on Toshiba M600 is that WEI can’t be computed.


To compare, even my March 2011 Macbook Pro can’t match the read/write speed of this old hardware. Apple uses both Toshiba and Samsung SSD in their lines of Macbook Pro it was my luck to have the slower one among the two.

Screen Shot 2012-12-08 at 11.54.45 AM

My son uses this M600 notebook most of the time if he isn’t using my Macbook Pro for Minecraft. The Windows 8 “Family Safety” weekly activity report is very useful.