Archive for October, 2009

Recently, I was installing memcache libraries and the memcache extension for PHP on one of our Linux boxes. Unfortunately when I tried to run a sample code just to test if everything was successful with the installation, I got an error instead which say Memcache not found. I digged for a couple of days looking for solutions to my problem and Googling it didn’t even help me at all.

Without losing my patience, I tried reading the error logs of httpd(usually in /var/log/httpd/error_log) and somewhere it showed this message,

PHP Warning:  PHP Startup: Unable to load dynamic library ‘./memcache.so’ – ./memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0

After that, I tried to check the php.ini (usually in /usr/local/lib/php.ini) and made sure that the extension=memcache.so was there, and on the extension_dir property, it looked like this,

extension_dir=”./”

seeing that, I tried a lucky guess and I changed it to a full path instead,

extension_dir = “/usr/local/lib/”

Next, I simply restarted httpd with,

service httpd restart

Then I again checked the httpd error_log and I noticed that the error is gone! With that information, I immediately tried the test PHP code again and Voila! My memcache extension is running perfectly!

Hope this helps.

JM Aliling

Reader Question: You write about making money online, but I’ve never seen you post any actual figures. Just how much do you make from your blog?

Answer: not a lot, actually. There, I said it. Admitted live, for the whole world to read.

This may strike you as a strange admission, given as this blog is partly positioned as a “make money from blogging” blog, but I hardly make any money from blogging, at all. To be honest, my first ever AdSense cheque only just got mailed out a month ago. Text Link Ads bring in about $70 a month. So I’m not exactly living off the fat of the Internet Land.

Now, before you unsubscribe because I’m not the “expert” you thought I was, let me do some explaining. The Get Rich Project is about making money online, personal finance, and working towards financial independence. The personal finance bit has taken a back seat recently because I simply have nothing worthwhile to add at the moment.

So that leaves making money and working towards financial independence. Kinda the same thing, if you look at it one way.

Most of the online work I do is experimental. It’s trying out ideas. Some of these work, some don’t. It’s entrepreneurism., I’m looking to build a real business, not rely on advertising dollars. So I’m not making much just now. I don’t care. I’d rather make something worthwhile than have some short-lived “get rich quick” scheme.

The reader who asked the question above threatened to “out” me as a fraud if I didn’t tell all. Guess what chump, I seem to have outed myself. Oh dear, what ever shall I do? Keep on keepin’ on, that’s what.

You can still unsubscribe, if you like. I’ll be sad to see you go, but I think you’d be making a mistake. Would you rather learn with someone, or be preached at by Yet Another Guru (YAG)?

Sponsor: Create Money-Earning websites with Article Underground

ShareThis

Before I return to some regularly scheduled programming, I want to take a moment to post a link to something important to me.

2 years ago, I suffered a brain hemorrhage. The specialist Neurology department saved my life. Now the Scottish Government is considering closing the department and “centralizing” services to a new center 150 miles away. On my personal blog I have written an Open Letter to the Minister with the final say on the matter. My hope is to raise public awareness and support against the plans for closure. Please take a moment to read the letter and Digg, Stumble or link it.

At the very least, you’ll get to see a wicked picture of the bad-ass scar I have on the side of my head :-)

Thanks.

ShareThis

These were done using Turbo C for DOS. I’ve missed those good ol days!

These were the times where  CPU cycles of a function really mattered.

The lesser the cycle, the faster the execution of codes.

Plasma Effect 1

Plasma Effect 1

I like the second one better,

Plasma Effect 2

Plasma Effect 2

How about this?

Fire Demo

Fire Demo

Fire demo has been my greatest demo I have created.

My Starfield Simulation

My Starfield Simulation

I was inspired by Windows 95 Screensaver back then, it’s the  Starfield Simulation, so

I did something similar like above. But the direction of the stars can be

manipulated with the keyboard, and it’s really like you’re traveling through the

outer space if you try to turn off the lights.

The following couple of shots were made when we were having Geometry subject back then.

Once again, this was due to boredom.

Sine Effect

Sine Effect

Nice eh?

Sine Effect 2

Sine Effect 2

This next screenshot was the most creepiest of my creations.

I had a book before named, the Magic Machine, and Benoît Mandelbrot was featured and

his famous “mandelbrot set” was explained in detailed and the steps on how you can express it

in a programming language were clearly discussed. This was the by-product of that sleepless night of reading and code-crunching..

Mandelbrot Set

Mandelbrot Set

If you want a copy of the source codes of these stuff, kindly contact me and I will give them freely.

Enjoy!

-Joemarie Aliling