Archive for the 'Computers' Category

PHP performance checking (for example: because of Dreamhost CPU usage warning)

Thursday, January 26th, 2006

If you want to optimize your PHP script or find out what part of your PHP script causes problems (for example consumes too much CPU time on Dreamhost) - below you can find solution how to do it - how to check - chow long selected parts of your PHP script work.
For our convenience we […]

Adsense Notifier

Wednesday, January 18th, 2006

If you need to check your adsense stats “every three seconds” you should install Adsense Notifier extension for Firefox!
“Adsense Notifier simply shows your adsense stats on the status bar and updates the stats automatically. This is wonderful for anyone with OCD ( or GAD as some have called it ) who needs to check their […]

checking for C compiler default output file name… configure: error: C compiler cannot create executables

Monday, October 24th, 2005

So, … you have gcc and try to compile some stuff - but ./configure answers:
checking for C compiler default output file name… configure: error: C compiler cannot create executables.
Solution:
Just install glibc-devel
that’s all.

Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration

Sunday, October 9th, 2005

What to do if you’ve got this:
Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration
Warning: fopen(http://somelocation.com/somefile.xml) [function.fopen]: failed to open stream: no suitable wrapper could be found in /home/someuser/somephpfile.php on line [someline :-)]
???
It happens if - for security reasons fopen is restricted to open remote files. If it is on a hosting server […]

How to convert dos file to unix/linux format.

Wednesday, August 24th, 2005

How to get rid off all bad Windows line endings?
it’s simple, for example to convert all *.php files in directory write:
for x in *.php; do dos2unix $x; done

Apache Server Tutorial Part I: Preparing to Install WAMP on Windows NT 2000 Pro

Tuesday, August 16th, 2005

Definition WAMP is an acronym for the combination Microsoft Windows, Apache, MySQL and one or more of Perl, PHP and Python. It is modelled after the more well-known LAMP, referring to the all-open source/free software approach which uses Linux instead of Windows.

How to password protect web directory (folder)

Tuesday, July 26th, 2005

1. Create .htaccess file with the content below:
AuthUserFile /home/username/htdocs/.htpasswd
AuthName “Password Protected”
AuthType Basic
require valid-user
Of course in the AuthUserFile type in the location of the .htpasswd file (i.e. when you want to store that file, you’ll create it in next step)
2. Set password for the user(users) (-c option creates .htpasswd file)
If it is your first user’s password […]

Firefox & Thunderbird working together!

Friday, July 22nd, 2005

[description taken from ubuntuforums.org but might be usefull for all Linux distros :-)]
Some people have problems using mailto links with Thunderbird. To fix the “choose user profile” problem, follow this howto.
THUNDERBIRD: Open with firefox an URL contained in an email

Open Nautilus and type this in the address bar: ~/.thunderbird (if that doesn’t work, try ~/.mozilla-thunderbird)
Go […]

Great firefox extension - customizegoogle

Thursday, June 9th, 2005

Just look at: http://www.customizegoogle.com/ its great Mozilla Firefox extension for google!

How to convert mp3 to wav in Linux?

Friday, May 20th, 2005

It’s very simple - you need lame package. I you have one, just type:
lame –decode example_file.mp3
and you get example_file.mp3.wav