LogoPhly, boy, phly
the weblog and site of Matthew Weier O'Phinney

Tuesday, September 9. 2008

Pastebin app and conference updates

I have a number of updates and followups, and decided to post them in a single entry.

First off, you may now view my Dojo Webinar online (requires login and registration at zend.com). Attendance was phenomenal, and I've had some really good feedback. If you want to see it live, I'm giving the talk (with revisions!) at the ZendCon UnConference, at Dojo Developer Day Boston later this month, and at php|works in November. I hope to be able to show new functionality at each presentation.

Second, I've completed what I'm calling version 1.0.0 of the pastebin application I demo'd in the webinar. The PHP code is fully unit tested (though I haven't yet delved into using DOH! to test the JS), and incorporates a number of best practices and tips that Pete Higgins from Dojo was kind enough to provide to me. When using a custom build (and I provide a profile for building one), it simply flies.

  • Download the pastebin application

The pastebin application showcases a number of features besides Dojo: Zend_Test_PHPUnit was used to test the application, and Zend_Wildfire's FireBug logger and DB profiler are used to provide profiling and debug information.

Finally, ZendCon is next week! I'll be around, but already have a packed schedule (1 tutorial, 2 regular sessions, an UnCon session, a meet-the-developers session... and that's just what I know about!). I look forward to meeting ZF users and developers, though, so feel free to grab me and introduce yourself.

Posted by Matthew Weier O'Phinney in Dojo, PHP at 10:19 | Comments (23) | Trackbacks (0)
Defined tags for this entry: conferences, dojo, php, phpworks08, webinar, zend framework, zendcon08
Related entries by tags:
Zend Framework 1.7.0 Released
Vimgrep and Vim Project
Pastebin app updates
ZendCon08 Wrapup
Setting up your Zend_Test test suites

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

Thanks a lot! The webinar was indeed great and the pastebin demo application will definitely help getting people start with Dojo (and even testing and more).
#1 Felixdv (Link) on 2008-09-09 10:54 (Reply)
Definitely a great webinar - lots of cool stuff! I'm still torn between jQuery and Dojo but the ZF integration is a big plus for Dojo. I'm thinking if it's just a little bit of progressive enhancement here-and-there I'll stick with jQuery. But, if I have a more JavaScript heavy application I'll try Dojo.

You should setup a demo of the pastebin application so people can take it for a spin without needing to install it :-)
#2 Bradley Holt (Link) on 2008-09-09 11:20 (Reply)
All in good time! I need to do some refactoring of my website to allow a demos area, and simply haven't had a chance. :-( Maybe after ZendCon.
#2.1 Matthew Weier O'Phinney (Link) on 2008-09-09 11:40 (Reply)
Come on - it's not like you're busy doing other stuff ;-)
#2.1.1 Bradley Holt (Link) on 2008-09-09 11:42 (Reply)
Thanks for pastebin application. I am downloading it while filling this comment form.
#3 Sudheer (Link) on 2008-09-09 14:16 (Reply)
If I wore a hat I would most certainly take it off. Thanks again Matthew.
#4 Matthew Lurz on 2008-09-09 15:48 (Reply)
Great presentation. I jus viewed it online. Unfortunately I wasn't able to attend it live. See you at ZendCon next week!
#5 Martin Roest on 2008-09-09 16:32 (Reply)
Just a note this application will not work with fedora 8 as the php rpm is compiled with the '--without-sqlite' option. just a heads up.
#6 David Siembab on 2008-09-15 14:52 (Reply)
All the more reason to switch to Debian.
#6.1 Cameron on 2008-09-15 22:14 (Reply)
don't have the ego for the forum.
#6.1.1 David Siembab on 2008-09-16 01:15 (Reply)
And try plain Debian stay the hell out of the heretic Ubuntu distribution as it seems to suffer from the same disease! Debian rulez.

Seriously at least one solution comes from Hardy user:
http://www.swart.org.za/wordpress/sqlite-version-28x-and-php-52x.htm
#6.1.2 daFool (Link) on 2008-09-19 11:40 (Reply)
Debian or ubuntu server... :-)
#6.1.3 Paul M (Link) on 2008-09-19 12:47 (Reply)
Have you tested this against ZF 1.6.1? I'm seeing some strange behavior in the form of an exception being thrown (below) upon any action utilizing the _layout.phtml template. Maybe I'm missing something here.

Fatal error: Uncaught exception 'Zend_Dojo_View_Exception' with message 'Lock already exists for id "layout"' in C:\Documents and Settings\User\Desktop\pastebin\library\Zend\Dojo\View\Helper\DijitContainer.php:61
Stack trace:
#0 C:\Documents and Settings\User\Desktop\pastebin\application\layouts\scripts\_layout.phtml(1): Zend_Dojo_View_Helper_DijitContainer->captureStart('layout', Array)
#1 C:\Documents and Settings\User\Desktop\pastebin\library\Zend\View.php(107): include('C:\Documents an...')
#2 C:\Documents and Settings\User\Desktop\pastebin\library\Zend\View\Abstract.php(787): Zend_View->_run('C:\Documents an...')
#3 C:\Documents and Settings\User\Desktop\pastebin\application\layouts\scripts\layout.phtml(2): Zend_View_Abstract->render('_layout.phtml')
#4 C:\Documents and Settings\User\Desktop\pastebin\library\Zend\View.php(107): include('C:\Documents an...')
#5 C:\Documents and Settings\User\Desktop\pastebin\library\Zend\View\Abstract.php(787): Zend_View->_run('C:\Documents an...')
#6 C:\Documents and Settings\User\De in C:\Documents and Settings\User\Desktop\pastebin\library\Zend\Dojo\View\Helper\DijitContainer.php on line 61
#7 Jeff (Link) on 2008-09-16 22:18 (Reply)
I too am having this error with ZF 1.6.1
#7.1 Jay M. Keith on 2008-09-17 13:30 (Reply)
Hi,
This is what I have done to solve it.
1.- Comment the lines in _layout.phtml and _footer.phtml (and possibly others) that contain the captureStart for 'layout' and for 'footer' to see what happens with the lock.
This has removed the lock problem but I have received another message that sqlite driver was not installed. So it was a problem with the database.
2.- I have then uncommented the line "extension=php_pdo_sqlite.dll" in my php.ini
This has solved the sqlite message and I have received the messages that those ids were not locked.
3.- Uncommenting again the lines in step 1 has solved everything.
So, fixing the php.ini line directly is what you should do.
Hope this helps
Jose
#7.1.1 jmolins on 2008-09-23 18:19 (Reply)
Many thanks!
#7.1.1.1 Micha on 2008-11-19 03:24 (Reply)
What to do, if I can't create a vhost?
#8 Matthew on 2008-09-24 04:27 (Reply)
Create whatever domain you'd like in your apache config, then simply point your own personal hosts file to 127.0.0.1.
#8.1 Cameron on 2008-09-25 05:31 (Reply)
I think the demo should have the follow improvements,
use the zend clas you created for testing
be able to run it even if you don't have it in the root directory... just drag and drop it somewhere...


I was curious about how you did the UT, but I see that you have to pay a lot of attention in the file paths and everything... I'm dealing with that right now.. trying to create UT that only need to extend from a custom class and focus on developing, not on how to do the testing..
#9 StR (Link) on 2008-09-26 17:55 (Reply)
Not entirely sure I understand what you're getting at, but if you mean to use the url() view helper so that the app can be installed in a subdirectory of a site, this is an improvement I've already identified and hope to offer shortly.

BTW, the unit tests will work regardless of how it is installed. When running the unit tests, baseUrl is ignored, so the tests work regardless. The baseUrl will only come into play when running via a web server.

Additionally, the UI elements should work without modification at this point as well, due to the way the layer has been built (thanks, dante@dojo for that tip!).
#9.1 Matthew Weier O'Phinney (Link) on 2008-09-27 08:58 (Reply)
First, I want to express my appreciation for your 'pastebin' project, sofar I learned a lot from it.
Next, my comment.
While learning, I'm hooked up now with the following error;

General error: 10 disk I/O error' in C:\xampp\htdocs\var\www\pastebin\library\Zend\Db\Statement\Pdo.php:
68 Stack trace:#0 C:\xampp\htdocs\var\www\pastebin\library\Zend\Db\Statement.php(109):
Zend_Db_Statement_Pdo->_prepare('PRAGMA table_in...') #1 C:\xampp\htdocs\var\www\pastebin\library\Zend\Db\Adapter\Pdo\Abstract.php(170):
Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Pdo_Sqlite), 'PRAGMA table_in...') #2 C:\xampp\htdocs\var\www\pastebin\library\Zend\Db\Adapter\Abstract.php(429):
Zend_Db_Adapter_Pdo_Abstract->prepare('PRAGMA table_in...') #3 C:\xampp\htdocs\var\www\pastebin\library\Zend\Db\Adapter\Pdo\Abstract.php(220):
Zend_Db_Adapter_Abstract->query('PRAGMA table_in...', Array) #4 C:\xampp\htdocs\var\www\pastebin\library\Zend\Db\Adapter\Pdo\Sqlite.php(206):
Zend_Db_Adapter_Pdo_Abstract->query('PRAGMA table_in...') #5 C:\xampp\htdocs\var\www\pastebin\library\Zend\Db\Table\Abstract.php(604):
Zend_Db_Adapter_Pdo_Sqlite- in C:\xampp\htdocs\var\www\pastebin\library\Zend\Db\Statement\Pdo.php on line 68

My tries to solve this sofar, was just by googling around 'I've also read about it at 'the mail archive', but didn't find a working solution for this.
So my question is; what i'm doing wrong or how do I solve this?

My setup, w2000/xampp 1.1.8/sqlite 3.3.7 enabled
Thanks sofar,
aadpouw
#10 aad pouw on 2008-10-12 06:30 (Reply)
The error is not one in the application, but something lower level, in PHP. Your clue is here: "General error: 10 disk I/O error." With Sqlite, I/O errors usually indicate filesystem level issues -- bad permissions, disk corruption, missing database, etc.
#10.1 Matthew Weier O'Phinney (Link) on 2008-10-12 10:37 (Reply)
Great example. Thank you.
#11 lcf on 2008-10-19 16:54 (Reply)

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 
  • Home
  • Resume
  • Blog
  • Phly PEAR Channel
  • Contact Me
  • About this site

ZCE

Zend Education Advisory Board Member

Add to Technorati Favorites

Calendar

Back November '08 Forward
Mon Tue Wed Thu Fri Sat Sun
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Quicksearch

Links

  • PHLY - PHp LibrarY
  • Paul M. Jones
  • Mike Naberezny
  • Shahar Evron
  • Planet PHP
  • Zend Where I now work
  • Garden.org Where I once worked

Archives

November 2008
October 2008
September 2008
Recent...
Older...

Categories

XML Linux
XML Personal
XML Aikido
XML Family
XML Programming
XML Dojo
XML Perl
XML PHP

All categories

Syndicate This Blog

XML RSS 0.91 feed
XML RSS 1.0 feed
XML RSS 2.0 feed
ATOM/XML ATOM 0.3 feed
ATOM/XML ATOM 1.0 feed
XML RSS 2.0 Comments

Show tagged entries

xml best practices
xml books
xml conferences
xml dojo
xml dpc08
xml file_fortune
xml linux
xml mvc
xml oop
xml pear
xml personal
xml php
xml phpworks08
xml programming
xml ubuntu
xml vim
xml webinar
xml zendcon
xml zendcon08
xml zend framework
© 2004 - present, Matthew Weier O'Phinney
matthew-web <at> weierophinney.net