Maarten Balliauw's Blog: Indexing Word 2007 (docx) files with Zend_Search_Lucene
526427
Maarten Balliauw has written about a method he's developed to convince the Zend_Search_Lucene component of the Zend Framework to index the contents of a Word 2007 document.   Lucene basically is an indexing and search technology, providing an easy-to-use API to create any type of application that has to do with indexing and searching. If you provide the right methods to extract data from any type of document, Lucene can index it. [...] Sounds like a challenge!   He works through the three step process to getting the searching working, the key being his readDocXContents() function that goes through the Word file and returns all the text it can find. This is passed back out so the Zend Framework component can pull the data in and search (their example is on the string "Code Access Security").   You can grab the the full code here.
759262
On the Zend Developer Zone today, Cal Evans has posted a review of one of Wrox Press' latest PHP-related offerings, "Professional Search Engine Optimization with PHP" (by Jamie Sirovich and Cristian Darie).   I'd like to say that this book has changed my way of thinking about SEO Professionals, but it hasn't. It has, however, given me enough information so that I can make my own projects more SE friendly and allow me to help my friends do the same.   Cal talks about the contents of the book, including his favorite chapter (chapter 2) that gives a quick-hit primer to the world of search engine optimization. The rest of the book is divided up into specialization topics inside of SEO like "SE Friendly URLs", "Duplicate Content" and "Link Bait". Plus, check out what Cal has to say about one of the Appendixes...
569015
In a new post to his blog today, Raphael Stolt shows how to take the output from the Zend_Log component of the Zend Framework and, with a bit of custom coding, make it output an RSS feed.   Whilst touring the web I found an interesting project for turning Apache Web Server log files into RSS feeds. This approach can be adjusted to monitor the maintenance needs of a web application deployed on an assumed productive system. Therefor a XML capable Zend_Log instance will be set up and the resulting log file will be transformed into a RSS feed via a custom Action Helper wrapping a XSLT transfomation.   He sets up the XML logger first, using the Zend_Log, Zend_Log_Writer_Stream and Zend_Log_Formatter_Xml to create the XML output from the logging. Then, with the help of the custom helper - Recordshelf_Controller_Action_Helper_Xslt - he reformats the XML output into an RSS feed ready for public consumption. (There's even a screenshot of what it might look like in a feed reader).
416901
Aaron Wormus has a new note on his blog today about his presentation at this year's Zend/PHP Conference & Expo and another speaker he's excited to hear.    One of the Zend conference sessions that I'm pretty excited about is Don Samisa Abeysinghe's (of WSO2) "Fully Fletched Web Services with PHP".   I'll be presenting a session on "Moving to PHP5 with Style." This tutorial/case study will be based on experience in transitioning several codebases from PHP4 to PHP5, creating unit tests & started a move towards a service based architecture without a complete platform rewrite.    Aaron's talk fits under the banner of the "PHP Development" talks, including others on topics like hosting PHP applications on Windows, working with PDO, unicoding in PHP6, and using PHPUnit.
540441
Aaron Wormus is back today on the Zend Developer Zone with another in his "Hidden Gems" series. This time, he takes a look at the "Zend Plumbing", those bits of connective code that help you make your Zend Framework applications work.   The functionality that he covers in this article are some of the min parts that a lot of ZF coders use every day and might not know it:  the Zend class (providing a suite of helper methods) built in Wrapper functions:  loadFile loadClass loadInterface isReadable dump exception  the Zend registry  Each of these is briefly described with some sample code for the loadFile, loadClass, exceptions and the Registry to give you an idea of how to use it all. As always, you can check out the Zend Framework website for all the details on each of these functionality bits.
126500
DevShed is starting up another new series today, this time looking at the DirectoryIterator methods out of the Standard PHP Library functionality.   Because this class might be handy to use in projects where handling directories is a must, in this new series I'll be taking a close look at some of its most important methods. We will explore these methods appropriately in conjunction with the corresponding code samples.    They introduce the class, noting why it's handy to use and where's the best place to use it - including an example. They get into a bit more detail, looking at the key() and current() methods as well as using the rewind() method to reset the pointer for the directory.
611971
Although frankly I really didn't feel the need to read the entire thread, I can tell you that the posting to the PHP 3 mailing list is related to the Smarty Templating Engine back in the day. In fact, I believe this was the original spec Andrei proposed before Smarty even existed. Although I don't remember the exact e-mail, this posting reminded me that there was a point in time I thought exactly this way... quoting myself:
230802
In a new post to his blog today, Danne Lundqvist shares his method for creating a blog aggregator (in the style of the planet-planet sites) to re-aggregate all of the feeds back ou tinto one.   Lately I have begun to get more and more annoyed with my feed reader. I use a simple feed reader which lack most features except for subscribing to and reading feeds. The one thing that annoys me the most is that it can't aggregate several feeds into one feed. Yesterday I finally decided to scratch that itch.   His method uses the Zend Framework to accomplish the goal - and "the whole website logic (both model and controller) is about 200 lines of code". There's no exception or error handling in it, but it works and the Zend_Feed module works well to grab just about any kind of feed.
474830
When hard a work coding, browser windows with manual entries have a nasty habit of multiplying (at least when I work). So, neededless to say, I was happy to find GotAPI.com, a site that compiles the reference materials for several different web development languages into one handy browser window.  The page, by default, searches HTML resources, including the W3C specs and Microsoft's MSDN materials. Those and the w3schools website show up often in the other languages available - CSS, XSL, XML, and XPath. The PHP manual that's referenced is just pulled from the PHP.net site, but it's still nice to have it all right there.  When searching, a "suggeted terms" box pops up to help you narrow down the search faster. It searches not only the beginnings of the words for your term, but it looks inside them as well, matching anywhere.   It would be nice if the site had some kind of bookmarking system built into it - then you could keep a reference and just flip back and forth between the pages with a single click of the mouse.
432024
Indexing Web pages looks like child's play next to indexing video files -- the next big frontier for Internet search engines. But they're giving it a try.
91596
Padraic Brady has posted a manifesto of sorts about the work that he's been doing on his PHPSpec library and trying to work it into the approval process for the Zend Framework.   I'll be attempting to pound the Zend Framework into submission so I can apply Behaviour-Driven Development (BDD) using PHPSpec when I write a Controller. Why? Because I feel like it, and it gives me an excuse to promote one possible incarnation of PHPMock and the PHPSpec Zend Framework extension. See? Perfectly reasonable selfishness!   He hopes to move it past the typical test-driven development process that PHPUnit offers and "kick your ass into high-TDD gear" without having to have worked much with it before then (the key is simplicity).   He includes some code examples (how it should flow) and describes some of the challenges that he's coming across so far, specifically with the way that the Zend Framework works with the Controllers and what he wants to accomplish.
635920
Popular posts from PHPDeveloper.org for the past week:Padraic Brady's Blog: Complex Views w/Zend Framework - The Final Chapter: ZFE & Zend_Layout in Core!php|architect: Stuff your stockings: single issues 30% offDeveloperTutorials.com: How to Install PHP 5 on LinuxStoyan Stefanov's Blog: Fancy FormattingSymbianOne.com: Your S60 Web server gets a boostAndreas Gohr's Blog: MySimple.php - A lightweight PHPMyAdmin substituteNessa's Blog: Working with Permissions in PHPSymfony Blog: Symfony 1.0.10 is OutMatthew Turland's Blog: Web Scraping Article PublishedJan Lehnardt's Blog: REST Controller for PHP Applications
762662
I've made a few passive mentions of my Lucene  Desktop prototype here on PeerFear in the last few days and I'm amazed how much feedback I've had.  People really want to start work on an Open Source desktop search based on Lucene.  * Current Status *  I have a prototype implemented that runs from the console and accepts a given directory to index and writes it to ~/.lucene-desktop.  It then has a console searcher that returns the output in grep format:  file:rank  I'm trying to get keyword in context to work but I haven't had a chance to hack on this recently.  I need another 30 minutes to integrate the Lucene Highlighter and then I should be done.  At this point I will return:  file:rank:hit ...
24347
Padraic Brady has officially proposed a new component for the Zend Framework - one to handle the various microformat methods that have been gaining in popularity.   I've proposed Zend_Microformat on the ZF Proposal Wiki at Zend_Microformat - Padraic Brady. I've also started a proposal page for Zend_Microformat_Xfn.   He briefly explains what they are ("a collection of data encodings") and an example of their use (like the XHTML Friends Network to link social network users). You can find out more about them here.
192699
eBook Tools is a collection of tools to assist with creating and modifying ebook OPF files and ebook content files.   Welcome to eBook Tools ----------------------  eBook Tools is a collection of tools I have written to assist with creating and modifying ebook OPF files and ebook content files.  There is currently no Icon or Helpfile for this project, if you would like to donate either please see the About dialog in the program for contact details.  This program utilises MS-Word very heavily to perform most of the tasks available.  So if you do not have MS-Word installd do not install the application as it will not work. It has been tested with Winjdows XP (SP2) and MS-Word 2000 and also with MS-Word 2002 and was found to work ok. I have not tested it with Vista. So reports on how it does will be much appreciated.  The features available in the current version are as follows ------------------------------------------------------------  Open, modify and save OPF files eBook meatadata, x-metadata and guide items. Supports Metadata lookup from the internet  Create new OPF files Drag and drop file ordering for ebook spine, exclude items from ebook spine   The Tools available are as follows ----------------------------------  Convert docs to HTML - batch convert all documents (MS-word docs) in the file list to HTML documents.  Split Document - use on either Word documents or HTML documents,  helps split a large file into seperate chapter files. Note:  whens using the document splitter the main windows is hidden and the splitter is controlled from an icon is the system try.  Format documents - removes forced CR's and changes the font and size of all documents in the file list to a pre-selected format.  Create Toc file - helps create a TOC file to all the files in the filelist,  has several options for the naming of the hyperlinks in the resulting Toc file  Change Dialect - Changes the dialect of all files in the filelist - eg, American to English spelling, or vice-versa.   Dictionary file ---------------  The dialect change tool uses an MS-Access database file containing a list of words and their english spelled couterpart. The copy of the DB file that comes with the initial install contains only a few words. I plan to post updated database files as the list grows longer. If you would like to contribute to the word list database please see the 'About' dialog on the application for contact details.   Licence -------  Free for everyone for personal use, for business use please contact me.  Disclaimer ----------  Whatever happens to your computer or data, it's not my fault and I will not be held liable or responsible in any way. Use at your own risk, if you don't read this and use anyway, it is still not my fault (ignorance cannot be used as a defence).  Suggestions/bugs ----------------  If you have any please see the 'About' dialog in the application for contact details.     Ian.            Presented By     Intermarkets Donates to Needy Families to Spread Hope      Intermarkets, Inc. participates in sponsorships of local families in need during the holiday season through The Salvation Army, and the U.S. Marine Corps' Toys for Tots and "Adopt-A-Family" programs. (PRWeb Dec 19, 2007)                          Post Comment:Trackback URL: http://www.prweb.com/pingpr.php/TWFnbi1aZXRhLVN1bW0tQ3Jhcy1UaGlyLVplcm8= &nbsp;    Ads by Pheedo
284802
Fast, intelligent, automatic spam detector using Paul Graham style Bayesian analysis of word counts in spam and non-spam emails. Filtering adapts to personal tastes automatically. No manual rule creation required. This release adds the final missing pieces to the new parser code.  MBX files and Content-Length headers are now supported.  Database cleanup when signals are caught has also been improved.  I would like to move 1.1 into the stable branch fairly soon so if folks would test out this release and report any problems it would be a big help!   The latest release can be found here: https://sourceforge.net/project/showfiles.php?group_id=61201&package_id=73566
7270
In filtering through the mass of projects that he's collected around him, Padraic Brady has decided to cut one loose - the Zend Framework package he'd been developing to introduce YAML parsing and functionality to the framework.   I've been going through all those open source projects and cutting the dead weight. [...] One of the victims of this review has been Zend_Yaml. Earlier this morning I found an odd comment on the Zend_Translate_Yaml proposal by Thomas Weidner that he was erasing his proposal on the basis that there had been no progress on Zend_Yaml.   He's removed the proposal from the Zend Framework proposal pages after receiving an email noting that the package would not comply fully to the YAML 1.1 specification and couldn't be included. With the introduction of the Syck extension into PECL, it could support it but Padraic opted to just tell the ZF group about this functionality rather than working on the build himself.