Discussions (53)


Zend Framework Quick Review

First off, I’ve been having some problems getting things up and running due to a few errors in the code. Tried some of the fix suggestions by Andi Gutmans here, but to no avail. I also didn’t try too hard to correct these problems. After all, I was more interested in seeing how the code works than I was actually seeing work.

Want to do a Flickr search? Five lines of code!

require_once 'Zend/Services/Flickr.php';
$flickr=new Zend_Service_Flickr('api_key_here');
$photos="$flickr->tagSearch('tag');
foreach($photos as $photo){
echo'Thumbnail->uri .'" />
';
echo $photo->title."
n";

To import an RSS feed:

require_once('Zennd/Feed.php');
$feed = Zend_Feed::import('http://news.google.com/?output=rss');
foreach($feed->items as $item) {
echo "

".$item->title()."
";
echo $item->link() . "

";
}

So, by these code examples alone there’s a lot of promise for this framework, especially considering the amount of development overhead involved in coding similar functionality in your own applications. From the code I’ve seen these demos I’ve copied here are fairly representative of how the Framework is used. At the moment its much too early to begin using the Framework in a production environment, but keep an eye on its development, as it will soon be one of THE tools for rapid PHP app development.

One final note: Check-out the webcast I linked to in a previous post for more details. No point in me duplicating the content here. Check back in the future for further reviews as this Framework develops.

Peace.




Zend Framework review coming

Version 1.0 of the Zend framework is finally out: http://framework.zend.com

I’m going to install it and do what I can over the next couple days and report back to you. Another link, for the interested: Zend PHP Framework Webcast




Newsvine – out of beta

Well folks, Newsvine is finally out of private beta!

It’s a great spin on aggregating news over the net. First, it claims to put wire news up faster than any other site because it skips all the editorial processes that most news websites (think CNN) go through before anything makes a page. Thousands of articles are instantly available from the AP, ESPN, and others.

Second, users have the chance to seed articles. In other words, you can point other readers to news elsewhere on the net that you find particularly interesting or worthwhile.

Third, it allows users to submit their own articles – much like a type of blog. But it’s more than just a blog. Consider it a place to write news articles and editorial pieces for others to read. Gain a following. Earn money through advertising click-throughs.

One thing that really makes this site stand-out is the amount of news on it… and it’s well-organized. Really well organized. Users also have the opportunity to vote for articles, pushing them up the page. In other words, the more popular content gets more exposure.

Check it out! Newsvine




Incremental backups with rsync… UPDATE

One week later the scripts seems to be doing their job just fine. The primary server is around 56GB right now, and each day is taking 150-160MB in updates.




DFL Beta

The new DFL Beta site is up. It’s finally at a place where the other collaborators can begin working to add content without me having to be an intermediate. It’s a little sparse in the fish department right now, but that’s up to our friends down at SIO to do for us – write roughly two fish accounts per week. This is also the first version of the Beta that I’m actually proud of. It’s been a tough meeting some of my boss’s imposed deadlines (like the arbitrary groundhog’s day), but the app’s classes are developed well enough that I can now prototype new features fairly quickly.

Check it out: Digital Fish Library




Mac Trojan: Leap-A (OSX/Oomp-A)

There’s some news last night about the first Mac OS X “virus” in the wild. First of all, it’s NOT a virus. It’s a Trojan horse, which requires the user to execute the program him/herself. It’s low-risk and probably won’t spread beyond the few people who’ve already been infected. Good news is that it appears to be broken and doesn’t seem to do anything malicious.

Here’s a fairly detailed explanation of the trojan:
http://www.ambrosiasw.com/forums/index.php?showtopic=102379

Here are a few tips you can use to protect yourself from this and other attacks in the future (adapted from an email I sent several of my Mac loving friends and colleagues):

  • Same as in the Windows world: If you don’t know what the file is, or where it came from, don’t open it.
  • Make sure your Mac OS X software is up to date.
  • Make sure you have a non-blank password on your user account.
  • In Safari, go do the preferences (Safari -> Preferences…) and click on the “General” tab (in Mac OS 10.4, should be similar in previous versions). UNCHECK the box that says “Open ‘safe’ files after downloading”. This is big, folks. Make sure you’re the one opening downloads, not Safari. It’s a little less convenient to have to open your downloads folder and open the file, but at least you have control over what gets opened and when.
  • From the open the Finder Preferences (Finder->Preferences…) and select the “Advanced” tab. Check the box, “Show all file extensions.” It’s not as pretty, but you’ll be able to immediately spot something like Leap-A: A JPEG image file should end with .jpg
  • Unless you know the program to be safe, don’t enter your password when an application requests it.
  • Keep regular backups just in case anything from this trojan or any other does something bad to your computer. I typically keep weekly backups to an external firewire hard disk drive.

Moral of the story – just be careful




Flood

Not news to some: I’ve been working on writing a CMS for my church. We considered some of the readily available FOSS solutions, but none really fit the bill in the ways that we need for one reason or another. So with this post I’m adding a Flood category to my blog.

It’s still in the nascent stages and quite frankly, very rough and awkward in many cases, but it’s all part of a learning experience. It will run on PHP5/MySQL 4.1/SMARTY templating, and object-oriented. First strike against us is that this is the first or second project any of us PHP guys have ever done in OOP, so we’re learning a lot and making a ton of mistakes, but its all worthwhile. I’m beginning to realize the version 1.0 release is going to be a lot rougher and incomplete than we were hoping, but given the timescale for an part-time, all-vounteer force it’s expected (roughly six months for two programmers). Luckily we don’t need to focus on design or content, but we’re still going to be fairly busy.

In this first release (slated for May, 06): Articles with parent/child relationships, a versioning system, public/private content, and a basic calendar system (for events scheduling and notification).
Second: email blast system, and event registration, and possibly a survey application (survey/poll)
Somewhere in there will probably be a LOT of code refactoring – especially as we get more in-tune with common OOP practices and principles.

Future posts will cover some of the ups and downs of rolling your own CMS, some tips, and advice.

Finally: DIVEintoFLOOD.com




PHP Collaboration Project

I listened to the php|architect Pro PHP podcast, Jan 26 episode, the other day. In it there was an interview with Andi Gutmans about PHP6 and the “new” PHP Collaboration Project.

There are three parts to this project:
1) A PHP Framework
2) Eclipse IDE integration for PHP (plugin)
3) Best practices.

A few points: The PHP Framework is NOT based on the Ruby on Rails model. Rather, it will borrow some of the best features from other languages/framworks, including Java/J2EE, .NET, and others. Though a mature framework may be some time away, it’ll definitely a very good thing for PHP and PHP developers, especially for agile web development.

Memory isn’t serving me well right now, so you’d be best to download the podcast yourself! =) http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=73330856




WordPress 2.0 Final released

WordPress 2.0 final was released today. Since you’re at this blog, you’ve already seen it in action. I’ve read some comments on Digg where people are pretty happy with it – especially the spam zapper.

http://www.wordpress.org/




ApacheCon Photos

I’m sorry this is such a lame post, but I’m in one of Chris Shiflett’s photos before Rasmus’s talk at ApacheCon.
This Photo Me: The second person from the left, sitting down. You can really only see the back of my head, and my shoulders, but I’m physically in-front of the camera man. Rasmus: the guy at the lectern.

Check-out Chris Shiflett’s blog at http://www.shiflett.org/. He has dozens of ApacheCon photos, mostly of the other PHP guys there. While you’re at it, cruise on over to the PHP Security Consortium site and learn something new:http://www.phpsec.org/