Archive for August, 2008

You are currently browsing the archives of HidayahTech .

Freedom is for the people

Bismillaahir Rahmaanir Raheem

michael.dehaan (his spelling, not mine!) posted something that you can take or leave (I don’t want to start a flame war on my own blog):

michaeldehaan.net | Popularity Contests Are So Junior High School.

But what is intriguing are the ideas that develop in the comments.   Please take some time and read those first, and then come back here.  ;)

Continue Reading »

Posted by Basil on Aug 28th 2008 | Filed in Education, Fedora, Free Software, GNU/Linux, Society, Technology | Comments (0)

Naïve integer primality calculator in PHP

Bismillaahir Rahmaanir Raheem

Alhamdulillaah, while reading about integers and, subsequently, prime numbers last night, I decided the time had come for me to write a primality calculator in PHP.  The test I use in my implementation is about as a naïve as one can possible get, but it was fun, nonetheless.

Interestingly enough, I discovered that there already exists a primality calculator for *nix-based systems - primes.  It comes with the bsd-games package for Fedora.  I assume the same is true for other distributions.  Mine isn’t quite as fast yet…but it does accept, optionally, one or two arguments. If there are two arguments, then it will calculate all primes starting from the first going until the second. If there is only one argument, it will calculate from PRIME_START (defined to be 2) through to the largest integer PHP can handle on your platform (usually the maximum value of a signed int on your machine).

There are loads of potential optimizations that can be performed, and this was just something written on a whim as a proof of concept. It seems to be accurate, however. The code, released under the GNU GPL v. 3.0, can be found below.
Continue Reading »

Posted by Basil on Aug 24th 2008 | Filed in Development, Fedora, Free Software, Fun, GNU/Linux, PHP | Comments (0)

Kuala Terengganu beach & “island”

Bismillaahir Rahmaanir Raheem

Alhamdulillaah, I was able to take some pictures on the beach near our home here in Kuala Terengganu (KT).

Beach Panorama

Kuala Terengganu "Island"

Posted by Basil on Aug 20th 2008 | Filed in Free Software, Malaysia, Media, Travel | Comments (2)

Audio Islam now running on lighttpd

Bismillaahir Rahmaanir Raheem

Alhamdulillaah, I’ve been able to make some major- and sorely-needed-upgrades to Audio Islam.  Interestingly enough, for the vast majority of people, these changes won’t really be that visible as they are all behind-the scenes.

Continue Reading »

Posted by Basil on Aug 16th 2008 | Filed in Audio Islam, Design, Development, Free Software, GNU/Linux, PHP, Projects, Technology | Comments (5)

Back home in Kuala Terengganu

Bismillaahir Rahmaanir Raheem

Alhamdulillaah, I’ve returned “home” to Kuala Terengganu (KT), which is my wife’s hometown, and I’ve taken it to be my home-away-from home.  It’s a beautiful place, especially because we actually live in a kampung, or village, not to far away from the main part of KT.  Additionally, compared to Kuala Lumpur (KL), the air here is so much cleaner, fresher, and easier to breathe, alhamdulillaah.

I haven’t gone anywhere notably picture-worthy yet, but I hope I will get a chance to soon, in shaaʾ Allaah.  The weather today (after a fierce storm last night) is outstanding, and made me want to shoot some photos with a crystal-clear blue sky background.  Maybe another time…;)

If you want to see some photos of KT, just view the Malaysia category and there are plenty in previous posts.

Posted by Basil on Aug 12th 2008 | Filed in Family, Malaysia, Travel | Comments (0)

Creative Commons Attribution-ShareAlike 3.0 United States
Creative Commons Attribution-ShareAlike 3.0 United States