Blog

MAMP Bad Request 400 after upgrading to 4.2.1

After updating MAMP to the latest version (4.2.1 at the time of writing), when I visit any virtual host URL, I get Bad Request error. I noticed that it is only happening to the domains with my custom development TLD (.2u).

I changed Apache Log level to debug, and got the following lines:
[Wed Dec 13 10:15:48 2017] [debug] vhost.c(791): [client 127.0.0.1] [strict] Invalid host name 'dash.2u', problem near: .2u
[Wed Dec 13 10:15:48 2017] [debug] vhost.c(886): [client 127.0.0.1] Client sent malformed Host header: dash.2u
[Wed Dec 13 10:15:48 2017] [debug] protocol.c(1369): [client 127.0.0.1] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /

Searching the web, found it is related to HttpProtocolOptions directive. Apache will be strict checking request headers, for my case, the TLD was invalid.

I tried to add HttpProtocolOptions Unsafe, but it didn’t help, probably because of  this bug affecting the Apache/2.2.32 that MAMP provides.

The last solution was to change my development TLD to .dv and now everything is working fine.

MailCatcher error env: catchmail: No such file or directory

I setup MailCatcher for a local PHP mails delivery but messages won’t get delivered. After googling, I found an error in Apache log:

env: catchmail: No such file or directory

Now, I figured out that I need to enter the full path to catchmail executable. I executed this command:

which catchmail

the output was: /usr/local/bin/catchmail

Then updated the php.ini sendmail_path entry to:

sendmail_path = /usr/bin/env /usr/local/bin/catchmail -f some@example.com

And restarted Apache, and emails started showing up in the MailCatcher window 🙂

plustek OpticSlim 2400+ scanner on MAC OS X

To use plustek OpticSlim 2400+ scanner on Mac OS X:

1- Install VirtualBox

From www.virtualbox.org

2- Install Windows 7 as a guest OS

If you don’t have a DVD, check this page: http://www.modern.ie/en-us/virtualization-tools

3- Install VirtualBox Extension Pack

From https://www.virtualbox.org/wiki/Downloads

4- Enable USB 2.0 For VirtualBox

Open Settings for Win 7 Machine > Ports > USB > check Enable USB Controller and Enable USB 2.0 (ECHI) Controller.

5- Connect Scanner

Start Win 7 Machine, and from Devices Menu > USB Devices > Select the Scanner port

6- Install Drivers

Install Scanner driver on Windows to use Utility Manager to scan documents. Drivers can be found at: plustek.com/mea/products/24057/opticslim-2400/downloads.html

Kubuntu 10.04 Netbook Edition

In May 2010 I purchased Toshiba NB 305 Netbook, it comes with Windows 7 starter edition.
Well, it was working just fine, light and speedy, until I decided to protect my Windows with AntiVirus and Firewall application, you know, Windows’ eternal companions! That’s where it started to be slow, slow enough to make me frustrated.
Then I decided to install Kubuntu 10.04 Netbook Edition since I am already using Kubuntu on my Laptop.
It’s kind of slow, but I think I’ll buy 2 GB RAM to replace the installed 1 GB.
One thing that’s quite interesting so far is the interface, it is optimized for netbooks, and looks great and handy.
It’s updating right now, and I am not sure if it will play my media files smoothly, usually, I install smplayer on Kubuntu.
For those interested, there is Ubuntu Netbook Remix, many of Internet users giving good impression about it. I am a KDE guy, so, not ready for it yet.

Installing more Arabic fonts on Kubuntu

I was designing a logo for my Arabic website, I checked the fonts and I couldn’t find good font, I searched around and I found that I can search repositories for fonts like this:

#sudo apt-cache search ttf | grep “Arabic”

and I got:

ttf-arabeyes – Arabeyes GPL TrueType Arabic fonts
ttf-kacst – KACST free TrueType Arabic fonts
ttf-kacst-one – TrueType font designed for Arabic language
ttf-sil-scheherazade – smart Unicode font for Arabic

and installed them:

#sudo apt-get install ttf-arabeyes ttf-kacst ttf-kacst-one ttf-sil-scheherazade

And now I can start designing my logo with GIMP with these great fonts!

about.ly: Everything about ly domains

Finally I managed to get it to work, I purchased the domain at 27 jun 2009, and prepared a design to start with, but no enough motivation!
Even with a design it still needs a lot of development to get what I was thinking about.
Being one of the ly team since it came back to Libya, I knew a lot about it. Actually I was one of technical team responsible on the ccTLD in LTT. then left LTT, worked with another company I drifted away from ly, but when I joined Libyan Spider I returned back to the ly stuff, with the great care these guys giving to .ly domain I started feeling and thinking differently about .ly domains.
Here where it came the idea of about.ly: A website about .ly domains in general, news, articles, tools, etc… Actually, it needs a lot of work, and I am kind of lazy when it comes to a personal work! Until I found the great web application Pligg, it was what I was looking for, I submit news links, write a brief about them, people read, vote and share comments.

I started playing around with Pligg since last December, I applied new template, changed some styles, added new modules, I like it now.

I think I’ll add some tools soon to search .ly domains directly from about.ly and linking them to libyanspider.com website to purchase!

have a look at: about.ly, there’s a twitter account for those want to follow latest updates.