Archive for July, 2008
July 26, 2008 at 18:12 · Filed under Baby, Car PC, Rambling
Been at home all day, got a call from the office twice and felt mad sleepy after failing to eat the breakfast.
Now I am thinking I should start on some sort of project to get my mind off things. Unfortunately, with the current set of equipment and parts in the house, all I could come up with was another radio project. This for the A4 sitting idle in the driveway waiting on a bumper to be shipped from wherever.
This time, I think I will go all the way and have things molded from scratch for myself. Not everyone is as strict with the oem look as I am. It must look stock, so we must get the LEDs looking perfect match to that of the rest of the console.
But before that, we have to go bath and smell like people.
ShareThis
July 23, 2008 at 19:17 · Filed under Rambling
While twitter is down for maintenance, I have realized that the twitter widget does not do error checks when the system is down.
I will have to find a way to code that in, then send the fix back to the developer. Very sleepy now, but must keep the error message adn parse it accordingly.
ShareThis
July 20, 2008 at 12:46 · Filed under Rambling
Over the past few weeks, maybe months I have been trying to get a nice webserver running on my Mac. Now I have done this before, but this time I tried to add Oracle Instant Client into the mix and ended up with a failed configure.
After a few trial, errors, and reading through the config.m4 file for pdo_oci I have finally found my problem. PHP was not meant to be built on the Mac at all. It only looks for the Linux libraries. So without having to write a patch file for the pdo_oci extension, I simply made a symbolic link to the mac version of the library it was looking for, but using the link .so name instead. And you know what, it worked out great.
Requirements:
Extract the following to a folder:
MySQL -> http://dev.mysql.com
Oracle Instant Client -> http://www.oracle.com
Extract and compile the following:
./configure
make
sudo make install
FreeType -> http://freetype.sourceforge.net/
Gettext -> http://www.gnu.org/software/gettext/
Gmp -> http://gmplib.org/
Jpeg -> http://www.ijg.org/
Libmcrypt -> http://sourceforge.net/projects/mcrypt/
Libpng -> http://sourceforge.net/projects/libpng/
mhash -> http://sourceforge.net/projects/mhash/
icu (for PHP 6) -> http://www.icu-project.org/
Compiling Apache:
insert into config.layout
<Layout Obasi3>
prefix: /usr/local/httpd-2.2.9
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/sbin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/modules
mandir: ${prefix}/man
sysconfdir: ${prefix}/conf
datadir: ${prefix}
installbuilddir: ${datadir}/build
errordir: ${datadir}/error
iconsdir: ${datadir}/icons
manualdir: ${datadir}/manual
htdocsdir: ${datadir}/htdocs
cgidir: ${datadir}/cgi-bin
includedir: ${prefix}/include
localstatedir: ${prefix}
runtimedir: ${localstatedir}/logs
logfiledir: ${localstatedir}/logs
proxycachedir: ${localstatedir}/proxy
</Layout>
./configure \
--enable-layout=Obasi3 \
--enable-mods-shared=all \
--with-ssl=/usr \
--with-mpm=prefork \
--enable-ssl \
--enable-dav \
--enable-cache \
--enable-proxy \
--enable-logio \
--enable-deflate \
--with-included-apr \
--enable-cgi \
--enable-cgid \
--enable-suexec
make
sudo make install
sudo ln -s /usr/local/httpd-2.2.9 /Library/Apache2
sudo ln -s /usr/local/httpd-2.2.9 /usr/local/apache
Compiling PHP:
sudo ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config
ORACLE_BASE="/usr/local/instantclient-10.2.0.4"
ORACLE_HOME="${ORACLE_BASE}"
ORACLE_SID=mydev
export ORACLE_BASE ORACLE_SID ORACLE_HOME
DYLD_LIBRARY_PATH="${ORACLE_HOME}"
LD_LIBRARY_PATH="${ORACLE_HOME}"
LIB_PATH="${ORACLE_HOME}"
export DYLD_LIBRARY_PATH LD_LIBRARY_PATH LIB_PATH
PATH="${PATH}:${ORACLE_HOME}"
export PATH
sudo ln -s $ORACLE_HOME/libclntsh.dylib.10.1 $ORACLE_HOME/libclntsh.dylib
sudo ln -s $ORACLE_HOME/libclntsh.dylib.10.1 $ORACLE_HOME/libclntsh.so
sudo ln -s $ORACLE_HOME/libocci.dylib.10.1 $ORACLE_HOME/libocci.dylib
./configure \
--prefix=/usr/local/php-5.2.6 \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-config-file-path=/usr/local/etc/php5 \
--with-apxs2=/usr/local/apache/sbin/apxs \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--enable-sockets \
--enable-mbregex \
--enable-mbstring=all \
--enable-ftp \
--enable-exif \
--with-openssl \
--with-zlib-dir=/usr \
--with-zlib \
--enable-magic-quotes \
--enable-bcmath \
--without-cdb \
--with-gd \
--with-freetype-dir \
--without-msql \
--with-pdo-mysql \
--with-iodbc \
--enable-inline-optimization \
--enable-dba \
--without-gdbm \
--with-ndbm \
--without-db2 \
--without-dbm \
--without-readline \
--without-recode \
--with-mcrypt \
--without-db3 \
--enable-dba \
--with-curl \
--with-png-dir=/usr/local/lib \
--with-jpeg-dir=/usr/local/lib \
--enable-calendar \
--with-mhash \
--with-xsl \
--with-bz2 \
--with-gmp \
--with-iconv \
--with-libxml-dir \
--with-gettext \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-openssl-dir=/usr \
--with-mime-magic \
--with-oci8=instantclient,/usr/local/instantclient-10.2.0.4 \
--with-pdo-oci=instantclient,/usr/local/instantclient-10.2.0.4,10.1
make
sudo make install
sudo ln -s /usr/local/php-5.2.6 /usr/local/php
sudo cp ./php.ini-recommended /usr/local/etc/php5/php.ini
edit “/usr/local/apache/sbin/envvars”
insert:
DYLD_LIBRARY_PATH=”/usr/local/instantclient-10.2.0.4:/usr/local/httpd-2.2.9/lib:$DYLD_LIBRARY_PATH”
edit: “/usr/local/apache/conf/httpd.conf”
insert:
DirectoryIndex index.html index.php
# PHP Settings
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
And you are all set to start up the Server.
sudo /usr/local/apache/sbin/apachectl start
ShareThis
July 15, 2008 at 06:40 · Filed under Rambling
OK WordPress 2.6 is now final, seems to have been that way since yesterday as I did the svn update sometime late in the evening. Most of the new features I have not used or might not use. The Spam Engine I am using Spam Karma is now in lack of developer mode.
Well, now is time to check some Java code at the office, then to actual go get ready to go to the office.
ShareThis
July 13, 2008 at 10:49 · Filed under Rambling
Dude, yesterday was the worst. There was a power outage for the longest while. Plugs all over the house was all wack. This morning I had to reset a few breakers to get the plugs back on.
Yesterday I was starving. I couldn’t get the stove to remain lit. No power means I does not allow the gas to flow to the burners, some safety feature.
Anywho, all this means is that I did not start on my code for the new site :(. Another disappointment. It will have to wait for next week, as sunday is my day off from thinking. But I will write down any idea that pops into my head, and during the week sort out those that must be done, and those that can go the way of the stale milk.
Well, time to make me something to eat. Should check on the dog also.
ShareThis
July 12, 2008 at 16:29 · Filed under Rambling
OK, today I have made up my mind to start on the new site and design that should be launched very soon (Well, it must, or I will be broke).
The new site will be offering services that we currently do, but will allow us to aquire customers from all over the region, we hope.
Time for a drink to celebrate the new found spirit to start the project.
ShareThis
July 12, 2008 at 16:26 · Filed under Rambling
The next version of the popular blogging application is just around the corner.
From the features added thus far, this is going to be a must update for a lot of folks.
ShareThis