Where is PHP on QNAP?

Well.. at least on my QNAP TS-210 it is in:

/mnt/ext/opt/apache/bin/

You can validate this by executing:

/mnt/ext/opt/apache/bin/php --version

Which should show version PHP installed on your QNAP box.

Strange Windows 7 folder names

After installing Service Pack 1 over your Windows 7 (or some other update “around”) you may find, that some of your folders has now a strange name. This happen mostly in non-English versions of Windows 7.

To fix this problem, turn displaying of hidden files on, locate desktop.ini file, edit it and remove LocalizedResourceName key from it or delete entire desktop.ini file at all.

Force HTTP 403 error when there is no index file

If you want to display HTTP 403 error (instead of files list) for folder, where there is no index.html or index.php file, then in .htaccess file you must add following line:

Options -Indexes

This works for current folder and all subfolder (unless .htaccess file if any of these subfolders will “locally” change this setting).

WolframAlpha in action

If you don’t know, what WolframAlpha is then consider a Star Trek computer answering your even wildest mathematical and statistical questions. Want to know the population of Far East countries in mid-fifties of XX century? Or statistically how many cities were involved in biggest earthquakes in history?

This and many other questions may be easily solved with WolframAlpha. If you’re still not convinced, then why don’t you take a look at live demo of WA for iPad. Let it convince you!

God Mode or admin’s power panel in Windows 7

The magic word is Admin.{ED7BA470-8E54-465E-825C-99712043E01C}. Create a new folder in any folder you like (make it root folder on your first hard disk or deeply hidden secret subfolder) and use exactly above string as folder’s name.

Folder’s icon will be changed right after creation. Double clicking this folder, instead of showing you contents of empty directory, will give you access to a really impressive and long list of shortcuts to most powerful and hidden features of your Windows 7. Happy hacking, folks!

FujitsuSiemens AmiloPro V2060 no HDD found

When installing Windows XP Professional on FujitsuSiemens AmiloPro V2060 laptop in most cases it will turn out, that the hard disk is not found. This is because many Windows XP Installation CDs do not contain drivers for the Intel SATA HDD support, that is available in AmiloPro family of FujitsuSiemens laptops. This article may help in this situation.

Read More “FujitsuSiemens AmiloPro V2060 no HDD found”

Quickly switching network connection in Windows XP

A lot of people uses the same notebook to access Internet from many places or networks. For example from home and office. If all these networks are using DHCP-assigned IP addresses and network parameters or if you’re using different medium (i.e. One at home, wireless at work) then there is no problem. However, if both networks uses static parameters over the same medium, then the only option you’re left is manually changing network parameters, as Windows does not allow you to create more than one connection for single hardware (network medium). Hopefully, you can easy your life with a set of simple batch scripts.

Read More “Quickly switching network connection in Windows XP”

Autosave and revisions in WordPress

WordPress by definition performs automatic saves of each post being currently edited and also, for each post update, it creates a revision. This enlarges database and sometimes can make life a little bit harder, because both WordPress and browser can get a little bit wako on any of these mechanisms. So, here is a quick way of disabling these features.

This post is based on Revision Management in Wrodpress Codex. Refer to it for details.

Read More “Autosave and revisions in WordPress”

Redirect page in HTML

To redirect user to another page directly in browser (without using server-side and HTTP error codes) one just have to add this to <head> section of HTML document:

<meta http-equiv="refresh" content="x; url=http://.../strona.html"/>

This is just to remind me, what to use in this case. Nothing more.