This is my final project for Engl1B at SJSU. As always, read this as an inflammatory op-ed. It’s only factual enough for a lower division writing class.
Newsprint is dying. The writing is on the proverbial wall, and somebody somewhere is blogging about it on the Internet. Whenever there is a paradigm shift in any industry, it inevitable that there are casualties. Companies cannot cope with new business models; individuals lose their jobs, displaced by new techniques and smarter processes. But many times there are survivors, veterans in the displaced industry who adapt and fill a new niche in the new paradigm (Babu). However, in the current shift from hardcopy press to Internet news publication, there is no newsroom and there are no survivors. There is no giant, breathing, churning news company. On the Internet, the information already flows and aggregates itself. So where will the newspapers go? Internet pioneers have already defined how news is found and consumed. The Long Tail out performs the army of payroll journalists. And, at this point in history, newspaper publishers have already missed their opportunity to jump into the new paradigm and be leaders. Consequently, they will struggle, they will try to adapt, and they will be out competed in their current form. Regardless of how they try to adapt, publishers of traditional hardcopy press will not survive the paradigm shift to Internet news publication.
Continue reading ‘Late to the Party: Newsprint on the Internet’
[Edit: Fixed a bug in model to filter by subtype]
[Edit: again]
[Edit: Oops. I forgot to add the cvar function!]
[Edit: Fixing more bugs in the query generation. Add DboSource mod. Give me a break. it's my first week using CakePHP]
The Problem
CakePHP is fairly good as an ORM Framework. You create database tables and it automagically maps them into Model classes for use in a nice MVC application. And, in most cases, this is just fine for most database tables. Relations get mapped and linked, things are peachy. But Cake has it’s shortcomings. The ORM in Cake is nowhere near as capable as say, Hibernate, and in particular (at least as of 1.2r5875) Cake’s Model class mapping does not support inheritance.
Hopefully Cake developers realize this is a deal breaker for a lot of people. For one of my own projects at least, I needed ORM inheritance and for reasons I won’t go into here, I had to use Cake.
The Solution
What I came up with is very much a hack. It involves modifying model.php (internals of Cake proper). If you’re doing a one off project, this is fine, but be warned that if you implement this hack, upgrading cake won’t be a simple matter of moving your app directory.
Anyhow, it works like this… Continue reading ‘HowTo: CakePHP 1.2 Model ORM Inheritance Hack’
I recently set up CakePHP 1.2 pre-beta here on my server. The fresh install was causing a Segmentation fault on load; The error_log looked like this: [Mon Nov 5 11:35:01 2007] [notice] child pid 19960 exit signal Segmentation fault (11)
The cause turned out to be the Zend Optimizer not agreeing with PHP 5. To fix the segfault, I went into my php.ini and commented out the Zend Optimizer directives.
Recent Comments