Finally got my powerbook re-setup using the latest and greatest from PHP, Apache, and libcurl. (of course all of the other goodness as well)

Here is the order:

  1. Curl. If you need a new version of curl and libcurl installed: go here http://curl.haxx.se.
    You will need to compile from source. Important note here: Make sure that you dont have another version of curl that can be read from the $PATH. (This becomes important when compiling PHP in a few minutes)
  2. Apache. Download the source from httpd-2.2.3.tar.gz
    Now follow these steps:

    1. ./configure --enable-mods-shared=all
    2. sudo make
    3. sudo make install

    It is good to note that since I didn’t specify a prefix (such as –prefix=/usr/bin/) that the configuration script will choose the default install location (/usr/local/apache2)

  3. PHP. Now it is time to compile PHP. Download the source from here (From the us2.php.net mirror off of sourceforge).
    Now follow these steps:


    1. ./configure
      --prefix=/usr/local/apache2/php
      --with-zlib
      --with-dom=/sw/
      --with-libxml-dir=/sw/
      --with-xsl=/sw/
      --with-jpeg-dir=/sw/
      --with-png-dir=/sw/
      --with-mysql=/usr/local/mysql/
      --with-apxs2=/usr/local/apache2/bin/apxs
      --with-gd
      --with-curl
    2. sudo make
    3. sudo make install

    It is good to note here, that I had installed a version of curl on my machine and made sure that when I accessed the $PATH, that I was addressing the correct version.

I have done this all before, but each time I do it, I learn something new. Hope this can help someone out there who is banging their head.

Happy compiling!

Having spent the better part of the last three weeks working on a system with very weird requirements and a VERY specific set of tools available to implement this change in, I have found myself neck deep in Perl code. The requirements changed multiple times throughout the process, causing much strife for my newly budding perl skills. What started as a nice way of browsing through file archive contents, has now turned into a full on perl cluster#$#$##$. I mean a full on perl dream.

I am not at the point yet where I can really knock on Perl too much. It has allowed me to get what I needed done, and the community of people surrounding the language have done well in creating a network of documentation and how-tos that made the project possible. The moment of Zen for me on this project, was when I realized that I would need to utilize a Hash table of Hash tables in order to represent the data I was working with. Now, in the world of perl I am sure this is no big deal. I am pretty sure that it is not that big of a deal in the whole world of programming in general. I am sure the Perl wizard reading this article is thinking to himself, “I used a hash of hashes of hashes just yesterday you n00b.” Well to that wizard, I tip my cap. Enough said, read this article below, for a good laugh at Perl’s expense.

http://www.underlevel.net/jordan/erik-perl.txt

Was having all sorts of problems with my G4 17″ Powerbook today and last night, thought I would give this a try.

Thanks to Tech Support Technician “bobw” at Macosx.com

  • First disconnect anything connected to the machine (printer,modem, scanner, etc) and see if the Kernel panic still happen. (‘your computer needs to be restarted’ in various different languages is a Kernel panic)
  • Next, run Disk Utility from your Utility folder to Repair Permissions.
  • Next run ‘fsck’;

To run fsck, you first need to start up your Mac in single-user mode. Here’s how:

  1. Restart your Mac.
  2. Immediately press and hold the Command and “S” keys.

You’ll see a bunch of text begin scrolling on your screen. In a few more seconds, you’ll see the Unix command line prompt (#).

You’re now in single-user mode.

Now that you’re at the # prompt, here’s how to run fsck:

  1. Type: “fsck -f” (that’s fsck-space-minus-f).
  2. Press Return.
  3. The fsck utility will blast some text onto your screen. If there’s damage to your disk, you’ll see a message that says:

    ***** FILE SYSTEM WAS MODIFIED *****

    If you see this message–and this is extremely important– repeat running fsck. It is normal to have to run fsck more than once — the first run’s repairs often uncover additional problems..

    When fsck finally reports that no problems were found, and the # prompt reappears:

  4. Type: “reboot” to restart, or type “exit” to start up without rebooting.
  5. Press Return.
  6. Your Mac should proceed to start up normally to the login window or the Finder.

Definately want to check out this tutorial.
Using Ruby on Rails for Web Development on Mac OS X

Why Ruby on Rails?

First, you might be wondering: Web application frameworks are a dime a dozen, so what’s different about Rails? Here are a few things that make Ruby on Rails stand above the crowd:

  • Full-Stack Web Framework. Rails is an MVC web framework where models, views, and controllers are fully integrated in a seamless fashion. That means you automatically get all the benefits of an MVC design without the hassle of explicitly configuring each component to play well with the others.
  • Real-World Usage. The Rails framework was extracted from real-world web applications. That is, Rails comes from real need, not anticipating what might be needed. The result is an easy to use and cohesive framework that’s rich in functionality, and at the same time it does its best to stay out of your way.
  • One Language: Ruby. Everything from business logic to configuration files (there aren’t many) are written in the Ruby programming language. With just one language, you hope it’s a good one, and Ruby doesn’t disappoint. Ruby is a full object-oriented language with clean syntax and it has a way of making programming truly fun. Using one language means you don’t have to juggle between multiple languages and dialects as you’re building your application.
  • Convention over Configuration. Rails works hard to take care of all the repetitive and error-prone chores associated with starting to build a web application, and maintaining it over time. Rails uses simple naming conventions and clever use of reflection to make your work easier with near-zero configuration.
  • It’s Productive! At the end of the day, Rails is all about helping you stay productive.

The introduction of new object-oriented programming (OOP) features in PHP V5 has significantly raised the level of functionality in this programming language. Not only can you have private, protected, and public member variables and functions — just as you would in the Javaâ„¢, C++, or C# programming languages — but you can also create objects that bend at runtime, creating new methods and member variables on the fly. You can’t do that with the Java, C++, or C# languages. This kind of functionality makes super-rapid application development systems, such as Ruby on Rails, possible.Before I get into all that, however, here’s a word of caution: This article is about the use of very advanced OOP features in PHP V5 — the kind of features you won’t necessarily need in every application. Also, the kind of features that will be difficult to understand if you don’t have a solid grounding in OOP and at least a beginner’s knowledge of PHP object syntax.

Check out the rest of this article.