Saturday, January 26, 2008

Getting AMP to run natively on Leopard

All this just to get ELGG and Refbase working properly:

Wednesday, January 23, 2008

Using wget to download a whole site

Found the following notes and I thought I want to try it.

Recursive options for wget.

wget -r -p -l 2 http://website.com


-r = wget recursively
-p = download all files (incl. images) necessary to render the html pages
-l 2 = descend maximum 2 levels (default is 5)

Another useful option is "-np" or "--no-parent". This will prevent wget from ascending to the parent directory, such as when you want to download

http://website.com/subdirectory
but not everything on

http://website.com

So here goes my attempt to download the whole Quran recited by Muhammad Ayyoub:

wget -r -p -l 2 http://www.versebyversequran.com/data/Muhammad_Ayyoub_128kbps/

The above method downloads everything! To keep just the MP3 files:

wget -r -l1 --no-parent -A.mp3 http://www.versebyversequran.com/data/Muhammad_Ayyoub_128kbps/

Seems to work. It's takes 24 hours just to get to Surah 26 on an 800 MHz G4 on static IP.

Vintage Comic Covers

curl -O "http://blog.wired.com/comiccovers/[1-13].jpg"

Monday, January 21, 2008

Don't You Just Love This?

Error: Database connection failed.

It is possible that the database is overloaded or otherwise not running properly.

The site administrator should also check that the database details have been correctly specified in config.php



Never thought this would happen outside of Moodle but with ELGG it did! I couldn't get MySQL back up after restarting MacMini.

I'm still stuck. One possible solution is here:

http://diymacserver.com/2007/10/31/mysql-has-some-issues-with-leopard/

but it didn't solve the problem. Other people working on the problem:

http://bugs.mysql.com/bug.php?id=31889
http://www.robbyonrails.com/articles/2007/10/27/starting-mysql-after-upgrading-to-os-x-leopard

Saturday, January 19, 2008

Some Web 2.0 Links

For now, this blog is for listing links I find interesting.

MacBook Air

More articles appear on the Air. Anandtech describes the specially built Intel CPU. It's what you get when you enter a pact with the devil. Another article compares the Air with the Asus EEE PC.

Friday, January 18, 2008

Managed to Install TikiWiki

Just for the fun of it, I installed a Wiki on my home server. After evaluating MediaWiki, DekiWiki, DokuWiki and TikiWiki, I settled on TikiWiki for the supposedly able to support blogging and collaboration. We'll wait and see.

But to get to the point of geting it working wasted a few hours of my time. MySQL and PHP was broken with Leopard. So I reinstalled MySQL with version 5.0.45 from mysql.com. The MySQL Preferences Pane doesn't work anymore in Leopard. Next, the PHP socket is different. Time to edit the /etc/php.ini file. Bah!

Let's see if TikiWiki works for me. I may try DokuWiki next. RefBase sure didn't work in Leopard.

Here is the comparison that made me just to TikiWiki: http://www.siteground.com/compare_best_wiki.htm

Monday, January 14, 2008

The Untold Story of the iPhone

Wired magazine has just posted a story on the iPhone.

Learning about Learning 2.0

Currently, I am in JW Marriott KL attending eLearning 2.0 (Web 2.0) conducted by Stephen Downes. It's always refreshing to get different viewpoints on things we think we already know.

The highlights:
  • Thou shalt blog.
  • Web 2.0 is the bomb.
Wow, a bombardment of new links:
Old links. Fresh view.

Steve's presence on the net