Microsoft Windows

Use PHP to extract textual information from DOCX and ODT documents

Actually this task appeared to be not that hard as I first thought. To make the task more real, I was working with Russian language, i.e. with CP1251.

So at first I tried to open the documents with simple Lister. The screenshot of the experiment is provided in the attachments. Both files, odt and docx, look like binary files from this point of view. But the most important detail to notice (and it's quite small I would say) is th letters "PK" in the beginning of the data. That actually means that both files are, somewhere deep in their soul, just a zip-archive, which extension was renamed either to odt or to docx.

If we open any of the files in Total Commander using Ctrl+PageDown (Open element under the cursor) we will get a structured content with some folders and XML documents. The screenshot of the experiment is provided in the attachments.

The content that we need is situated in the file content.xml (in ODT) and word/document.xml (in DOCX).

So, in order to extract textual information from ODT ot DOCX formats, we will have to use the standard ZipArchive class and some functions to work with it.
The source code is provided in the attachments. The solution works under PHP 5.2+ and requires php_zip.dll for Windows or --enable-zip key for Linux. In case of unavailability of ZipArchive (like old PHP or lack of libraries) one could use PclZip ( .


Connection to a network server via windows explorer network drives

CodeBeamer offers a webfolder that can be accessed with the help of the Windows Explorer. Connection to a server that’s located somewhere in the web can be done by using the wizard of connecting to network drives. Use “Extras” – “Connect to network drive”, which opens a wizard to connecting to computer in the local network. On the bottom of this wizard there are some more options. Here you can choose to “connect to a network server”, which starts a new wizard. Just go through the wizard, enter the URL of the codebeamer-server which is Then just save the connection, it appears under your “Networks” in the Windows Explorer and offers all of the server content in the convenient environment of the Explorer.

Changing the root password of an iPhone / ipod Touch to secure the SSH connection

 To secure your SSH connection the password for "root" has to be modified. Please, regularly change this password. Start the Terminal of your Mac or Shell of your Linux computer. For Windows an SSH application such as Putty is necessary.    

  1. Then type the following line of code, but before replace the palceholder "" with the IP address of your iPhone to create the initial SSH connection: ssh root@(
  2. The standard password for all iPhones is "alpine". Type password and confirm with Enter (Please note that several Unix systems handle backspaces as new input characters).
  3. To change the root password, type "passwd" now.
  4. Then the new password is requested: Type in the new password
  5. Retype the password to confirm it
  6. Disconnect from SSH by using "Exit" (Or stay connected, if you need the SSH connection for other tasks

(Note: For iPhone without installed SSH Server this series of steps is impossible and not necessary)  There is a legal issue that hampers the overall SSH usage: Only applications from the Apple "app store" are legal to be used on an iPhone. The SSH solution is often referred to illegal "Jailbreak" solutions which cannot be recommend from legal perspective ;)However, this issue should not be ignored for all iPhones using such SSH solutions. 

Remote Assistance with Windows Messenger

If you are using Windows Messenger there is a remote assistance tool that you can use. You can share screens and take control of the assisted computer with your contact. Just go to your contact , select contact that you want to ask for help. Then click "Request Remote Assistance" under Actions for Windows Live Messenger.

Microsoft aproach: Windows Communication Foundation

In general we have Binary data -> serialize XML -> SOAP -> HTTP [SERVER -> client] -> Soap -> XML -> Binary Data
With .Net framework 3.0 in WCF (Communication foundation) we can create direct pipe between client and server.
For more information and example please consult:

Access Disk-Image-Files with Windows (.dmg) - Solution MacDrive

Windows does not provide a built in solution to handle HFS based file systems, but there do exist some additional software tools to solve this problem.

There are tools like the commercial TransMac and HFSExplorer or dmg2img for example.
It’s quite easy, with these additional tools, to access and read the data out of such a file system. However it causes problems if you try to write or to create a data disk with such a file system. The tool MacDrive from Mediafour solves this problem and even allows you to easily create disks with an HFS format. This tool works great as an interface between Windows and Mac (mounting Mac partitions, read, write, …).

Restart Plug & Play Service

If Services can't be activated anymore, they can be restarted by using Registry Editor.

1. Find out the name (or a part of it) of the specific Service (in Service Manager)
2. Start Registry Editor (regedit.exe)
3. Browse to branch HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Services
4. Search the specific Service there and open the folder.
5. Set "Start" Property to value 2 (=Automatic Start)

After Windows Reboot the Service will be started! This solution also works for other critical Services if normal access is not possible anymore.

TortoiseSVN Best Tool or Utility for Developers.

TortoiseSVN won the 2007 Community Choice Award for Best Tool or Utility for Developers.
I don't think I stated really good the problem. What I was referring was a solution to share the same project. For Windows this is a good tool, user friendly and very easy to use.
For those interested here you can find step by step installation and using.

Steps how to setup a Canoo Webtest Environment

Step 1: Download
You need to download several things to get Canoo started.

a) Download Canoo from
b) Download at least JDK 5
c) Download at least Ant 1.7.0

Step 2: Configure your System-Path
You have to add each of the programs above to your system-path.
E.g. for Canoo its necessary to add the bin/ directory to your system-path, e.g. for Windows "C:\Programme\Canoo\bin";%PATH%

Finished ;)
It's that easy.

For working with Canoo you can either use the built-in test-project or you simply generate your own Project folder with your test-cases in it.

How to restore Windows

The solution for this problem is quite simple. Windows provide a special mechanism to restore computer to its previous state. Every time user makes some significant changes, the system creates so called “restore point”.
User also can create his own restore points.
To access System Restore tools you have to do the following steps:
1.Click Start.
2.Choose All Programs.
3.Choose Accessories.
4.Choose System Tools.
5.Click System Restore.

Then you should follow instructions on the wizard.


Subscribe to Microsoft Windows