Tuesday, July 26, 2011

Propel ORM

After searching for good database abstraction systems for PHP I found a cool ORM called Propel. Some stuff that interested me right off:
  • Ability to gen data access classes right off of an XML schema
  • Simple structure
  • Awesome syntax
Anyway, on my path to being a Propel expert (right...) I ran into a few snags. At first, after not reading the dependency requirements, I fought to get a local pear installation working. After not being successful with that installation I read through the documentation again and saw the only required dependency was Phing.

I followed Phing's non-pear installation instructions and then followed Propel's non-pear installation. When I went to execute the Propel generator batch file it said it could not locate 'phing.bat.' After opening the batch file I found this line:

22 if "%PHING_COMMAND%" == "" set PHING_COMMAND=phing.bat

I changed it to:

22 if "%PHING_COMMAND%" == "" set PHING_COMMAND=[MyPathToPhing]\bin\phing.bat

After doing so... I ran the batch file again and ran into another problem, it was saying it couldn't find some of the files required to run Phing. This was because the environmental variables required to run Phing need to be added to the batch file phing.bat. I added these commands to the top of my phing batch file:

set PHP_COMMAND=C:\php\php.exe
set PHING_HOME=C:\phing
set PHP_CLASSPATH=C:\phing\classes

And... whala, it worked!

XOOM vs iPAD Part 2

Due to overwhelming requests our company decided to purchase iPads instead of Xooms.

We still feel Android's interface is less user-friendly than iOS. We've also seen several problems with the XOOM crashing in the operating system's built-in modules. Android's built-in browser also has noticeable screen lag when inputting data via the virtual qwerty keyboard. Despite flash support, several multimedia websites such as Hulu and Netflix won't run on the XOOM due t copyright agreements.

Some of the major benefits we saw when shopping for the XOOM are quickly fading. SD external storage, for example, seems much less useful when you can sync files over wifi. I've had my XOOM for about 2 months now and never saw the need to use this feature.

Hopefully Android will step up and make their operating system more robust. Presently it seems it was rushed into the consumer market before a stable OS environment existed.