|
PHP4 and PHP5 on 1 Apache server using FastCGI |
|
|
|
|
Written by Alex
|
|
Saturday, 02 September 2006 |
|
I did a presentation at last month's AzPHP meeting on how to run both PHP4 and PHP5 at the same time on Apache . PHP4 runs as an Apache module, and PHP5 runs as a FastCGI program. You get a lot of the flexibility out of this setup, and avoid most of the performance problems usually associated with CGI. I put the talk notes up on this website for anyone who's interested. |
|
|
Synergy Multi-System Setup |
|
|
|
|
Written by Alex
|
|
Tuesday, 13 June 2006 |
|
I have 2 computers at work. One is a PowerMac G5, and one is a Dell running Ubuntu Linux. I switch frequently from one computer to the other, and having 2 keyboards and mice got to be a real nuisance. I've experimented with a few setups which allow just 1 keyboard and mouse to control both computers, and this is a quick report/howto on what I'm using.
|
|
Last Updated ( Tuesday, 13 June 2006 )
|
|
Read more...
|
|
|
Written by Alex
|
|
Tuesday, 06 June 2006 |
|
I sing Apple's praises all the time. I use a Powerbook at home and a PowerMac at work. Sara has an iMac. I recently bought an iPod for the bus ride to work. I was messing around with this new iPod, and I wanted to play some videos on our TV.
I used a standard video/audio cable to hook the iPod up to the TV. You've probably seen one : a yellow wire for video, and white and red wires for audio. I got garbage. Fuzzy noise and no video. So I do some searching on the web, and I discover that Apple has switched the hookups around, so video comes out the red wire, and the audio comes out white and yellow. I switched the plugs around, and whiz-bang, I'm watching my iPod video on the TV. Looks pretty good, too.
This sure seems like some really lame attempt to convince us all we need to buy shiny, white, expensive accessories. Seriously, $99 for their version of a cable I already have? Intentionally ignoring an obvious standard just to confuse us poor consumers? What other explanation is there? I can only be glad that the number one Google search for 'iPod video TV' is the handy article exposing the fraud.
Lame, Apple. Lame, lame, lame. You do so well with so many things. And under all that niceness, you can be just plain sleazy. And you're not even very creative in your sleaziness sometimes. Wow.
|
|
Last Updated ( Tuesday, 06 June 2006 )
|
|
|
Problems installing Seagull? Try disabling APC. |
|
|
|
|
Written by Alex
|
|
Sunday, 09 April 2006 |
|
Yesterday, I installed the Seagull PHP framework, and ran into an odd problem. I grabbed the latest source, untarred it on my web server, and browsed to the installation script. (seagull/www/setup.php). All went just fine until I hit 'Submit' on Step 4. The 'Step 5' page presented an ugly PHP error message.
Fatal error: Call to undefined method HTML_QuickForm_hidden::HTML_QuickForm_element() in /home/alex/public_html/seagull-0.6.0RC1/lib/pear/HTML/QuickForm/input.php on line 50
|
|
Last Updated ( Monday, 19 June 2006 )
|
|
Read more...
|
|
|
Regular Expression Presentation |
|
|
|
|
Written by Alex
|
|
Tuesday, 28 March 2006 |
|
I gave a presentation at the last Arizona PHP Users Group meeting about using regular expressions in PHP. I covered the basic constructs and some strategies for designing decent expressions. Regexps seem to intimidate a lot of people, but I think this is really unnecessary. Just because some people write awful and incomprehensible expressions doesn't mean the entire subject deserves a bad rap. You can do things with regexps you can't do any other way, and when you get the basics down, they really aren't hard at all.
You can download a PDF version of my talk notes if you want to see more. There are links to more resources in the last few slides. The talk is focused on using regular expressions in PHP, but 90% of what I mention will be applicable to other languages and tools. Enjoy.
|
|
|
|