Khalil Majdalawi's Blog Web development,Technology,Games and more…

30Jan/120

an error occurred while processing this directive

today i faced this problem "an error occurred while processing this directive" after uploading new drupal website using justhost.com hosting company, it turns out just a permission issue with files, i changed it to 755 and error disappeared

27Nov/110

Black Screen on Ubuntu

Today i tried to install Ubuntu 11.10 on HP Pavilion g6 laptop and i faced a strange problem a black screen during installation!!!

so i tried connecting it to another monitor and it did work but after installation and installing latest update and drivers the problem still exist on the main monitor :S

so after some googleing and trying deferent solutions i found out that the problem in screen brightness level,  for laptop monitor the level is  0 or less "total black"  which is weird,  and the fn key is working in wrong way "inversed" WTH!! ,

to adjust the level you need to hit f3 without fn key :S , or find the solution the hard way  by setting it in this file /etc/rc.local by adding the following line before exit 0

echo 5 > /sys/class/backlight/acpi_video0/brightness
exit 0

Where 5 is the brightness level from 0 to 10

source

10Oct/110

Adding Dynamic Subdomains in Godaddy

Just go to your domain zone file editor and add * and your server IP into A(Host) records

Tagged as: No Comments
27Oct/100

PHP Excel Reader

Excel Reader opens an Excel spreadsheet using ODBC given a previously defined DSN (data source name) pointing to an existing Excel spreadsheet file.

Queries can be executed to retrieve the list of sheets in a spreadsheet, the names of columns of each sheet or the data in the cells as an array.

Download:
phpkode.com
phpclasses.org

Tagged as: , No Comments
8Jun/103

How to fix the Ubuntu GPG Error BADSIG

If you are seeing Ubuntu GPG Error BADSIG use the one of the following methods to fix

Error Message:
W: GPG error: http://archive.canonical.com intrepid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

Try to run the following commands from terminal

sudo -i
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update

source

Tagged as: 3 Comments