WE-USB, my (or Kahaf’s) first project is now up and running. You may visit it at http://www.we-usb.com

Quote for their homepage:

WE-usb is a free virtual memory stick service for you to simply store or share your personal photos, videos and documents online.

As stated above, the project was developed and delivered on behalf of Kahaf (software development startup).

It should be noted that I did the backend development for the site (in Ruby on Rails — RoR). Thanks to Gary and Nadeem for their cooperation during the course of the project.

Share This [?]

Recently I was trying to configure apache2 to act as a proxy to mongrel (Ruby on Rails), so I added the following directives to my httpd.conf

<virtualhost *>

    ServerName test.example.com
    <proxy *="">
        Order allow,deny
        Allow from all
    </proxy>
    # Proxy directives
    ProxyPass /phpmyadmin ! # don't want proxy forwarding for phpMyAdmin
    ProxyPass / http://localhost:3000/
    ProxyPassReverse / http://localhost:3000/
    ProxyPreserveHost on

    # Logfiles
    ErrorLog  /var/log/apache2/test.example.com.error.log
    CustomLog /var/log/apache2/test.example.com.access.log combined

</virtualhost>
</pre>
However, as soon as I used to restart apache after adding this code, it always threw 503 - Service Unavailable. The error log showed a number of lines like this one:
<pre>[Thu Jul 09 11:37:13 2008] [error] (13)Permission denied: proxy: HTTP: attempt to connect to 127.0.0.1:3000 (*) failed

In short it has to do something with permissions in SELinux which doesn’t allow httpd to connect to network and the solution is this command:

# /usr/sbin/setsebool httpd_can_network_connect 1

Thanks to the help found here and here.

Share This [?]

Ms. Benazir Bhutto has been killed (in a suicide attack allegedly) today, I don’t know whether I would be able to go to office tomorrow or not.

But the question is, If Musharraf can’t save second most popular leader in the country, how can he provide security to common man. If he has even little self esteem left in him, he should immediately resign.

Share This [?]

Marry Christmas and a Happy New Year to all of my readers.

I know the post is a about 10 hours and 29 minutes late , but I was away for Eid Holidays and didn’t have access to internet :)

Regards,
MI

Share This [?]

Muslims around the world would be celebrating Eid today and tomorrow. I wish all of my readers (of any religion) a happy Eid.

Eid Mubaarik!

May Allah shower His blessings upon all of us.

On this day, My homeland (Pakistan) is being ruled by a dictator and constitutional judges are facing all kinds of brutality at his hands. I appeal my readers (of any country) to contribute to restore the judges and rule of constitution in Pakistan.


“Dark clouds surround us on all sides for the moment but we are not daunted, for I am sure, if we show the same spirit of sacrifice as was shown by Ibrahim, God would rend the clouds and shower on us His blessing as He did on Ibrahim” — M. A. Jinnah (Eid-ul-Azha message, 24 Oct 1947)

Share This [?]

Next Page →

Close
E-mail It