archive-com.com » COM » S » STUARTHERBERT.COM

Total: 477

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Stuart on PHP - » PHPNW11 – How To Dig Your Own Grave
    Official Zend Certification Study Guide for PHP 4 and a regular speaker at conferences and user groups since 2004 When he s not designing software Stuart loves to explore the world through a camera lens spend time with his beloved guitars and continue his study to T ai Chi Chu an Taijiquan No Comments Rowan says October 12th 2011 at 8 04 am I m going to have to steal the keynote speaker from now on I think only real way to present Genuinely have no idea how I managed to make that first face Rowan says October 12th 2011 at 8 04 am I m going to have to steal the keynote speaker from now on I think only real way to present Genuinely have no idea how I managed to make that first face Ben Longden says October 12th 2011 at 8 08 am What s especially cool about this set of pictures is that they give no impression that there s hundreds of people looking on Ben Longden says October 12th 2011 at 8 08 am What s especially cool about this set of pictures is that they give no impression that there s hundreds of people looking on Michael Leach says October 12th 2011 at 9 22 am Great photos Stuart and a cool little write up of what I agree was a very entertaining talk Rowan s talks are always entertaining and informative at the same time Michael Leach says October 12th 2011 at 9 22 am Great photos Stuart and a cool little write up of what I agree was a very entertaining talk Rowan s talks are always entertaining and informative at the same time Latest Photos Categories phpnw 1 Beginner 2 Intermediate 3 Advanced Brighton PHP Conferences Opinion phix PHP In Business

    Original URL path: http://blog.stuartherbert.com/php/2011/10/12/phpnw11-how-to-dig-your-own-grave/ (2016-05-02)
    Open archived version from archive


  • Stuart on PHP -
    forward data on every second Making Graphite Store Data At One Second Resolution Graphite s default sample configuration tells it to store incoming data at 60 second resolution that allows us to look at the total stats recorded minute by minute but we can t drill down to see what happens second by second To do that we have to tell Graphite to store the data on a second by second basis Edit opt graphite conf storage schemas conf and add the following clause real time priority 200 pattern stats retentions 1 34560000 This tells Graphite that we want all the data received from Statsd to be kept on a second by second basis for 400 days plenty long enough for any sort of comparison you might need to do I found that to get Graphite to start using this new storage definition I had to go and delete the existing data files by doing rm rf opt graphite storage whisper stats Getting Graphite To Draw Real Time Graphs Now all we need to do is to get Graphite showing you all the collected data in real time By default Graphite will happily plot the data onto a graph but will only generate an updated graph every 60 seconds That s perfect for an ops team looking for trends over hours but it isn t real time If you re using Memcache with Graphite you ll need to add this to your opt graphite webapp graphite local settings py file to tell Graphite to only cache data in Memcache for 1 second MEMCACHE DURATION 1 Is it worth caching the data at all at this resolution Honestly I don t know I guess that depends on how many people need to watch the data in real time or not Ideally it would be better if Graphite dynamically set the Memcache timeout based on the data stored in the particular key but for now you need to either stop using Memcache or set the cache duration to 1 second This now gives you graphs with 1 second resolution now we just need to change the Graphite web app s auto refresh feature to load a new graph every second By default it will only generate an updated graph every 60 seconds To change this we have to edit some of the app s Javascript code Open the file opt graphite webapp content js composer widgets js and locate the function toggleAutoRefresh Locate the interval variable inside that function Change its value from 60 to 1 Save the file then refresh your web browser page Et voila If you switch on auto refresh you should now be able to see your app s data being plotted second by second giving you a real time view of what your app is doing Be the first to leave a comment Steps For Building A Test VM Posted by Stuart Herbert on September 18th 2011 in phix Toolbox Using virtual machines for testing software is great I can try out anything I want and there s never any risk of trashing my main dev machine which avoids hours of lost coding time I ve been using virtual machines since the 1990 s and frankly I couldn t develop without them I ve also got a lot of experience running a private cloud of VMs for one of the UK s fastest growing tech companies but that s a topic for another day or maybe a conversation over a nice whisky at one of the upcoming conferences Right now I m using them to test phix out on multiple Linux distros before release It s a sad fact of life that all of the major distros think they can create a better PHP than the folks upstream at PHP net intended and that unfortunately means that a default install of PHP on Ubuntu can t always run the same PHP code as a default install of PHP on Fedora I found this out the hard way with an early release of phix now every release gets tested in a small but growing library of test VMs before I push it up to my public website But the best thing of all You can backup a VM normally by creating a snapshot and then rollback to your snapshot in future resetting your test environment to a known state before you test again Perfect for this weekend s task which has been documenting and double checking the steps needed to install phix on Linux dev desktops I thought it would be useful to jog my own memory when the Linux distros release their next versions to write up the steps that I do when I create a new test VM Install Linux distro from latest available ISO image Run the software upgrade tools to make sure the system is fully patched Disable SELinux if it is enabled Make sure gcc and the Linux kernel headers are installed on the system Install VMWare tools for VMWare Workstation Fusion or VirtualBox Addons for VirtualBox OSE Use Firefox to install Google Chrome Install some useful dev tools curl and git At this point I shut down the virtual machine and take a snapshot before PHP is installed That s because I need to make sure that phix s upcoming installer script does the right thing when there is no PHP If you re building your own test VMs you ll probably want to get Apache PHP and MySQL installed and your app s vhosts serving static pages before you snapshot What else would you do to a test VM to make it ready to run your tests Be the first to leave a comment Does Phix Need A Screencast Or Two Posted by Stuart Herbert on August 17th 2011 in phix Just a quick straw poll is there much interest in me making a screencast or two for how to install and work with Phix Be the first to leave a

    Original URL path: http://blog.stuartherbert.com/php/page/6/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » PHPNW11 Conference – Saturday Speakers Photos
    are my photos of all of the speakers from the main tracks on Saturday Derick s talk on building extensions for PHP was so popular that there wasn t room for me to get the door open far enough to snag a shot sorry Rowan s talk deserves its own blog post and photo set coming soon If you like these photos please do leave comments either here on the blog or on Flickr by clicking on the photo About The Author Stuart has been writing PHP applications since 2003 and has been contributing to open source software since 1994 He was an early writer for php architect a co author of the Official Zend Certification Study Guide for PHP 4 and a regular speaker at conferences and user groups since 2004 When he s not designing software Stuart loves to explore the world through a camera lens spend time with his beloved guitars and continue his study to T ai Chi Chu an Taijiquan Comments are closed Latest Photos Categories phpnw 1 Beginner 2 Intermediate 3 Advanced Brighton PHP Conferences Opinion phix PHP In Business PSR Servers and Hosting Storyplayer Talks Toolbox Training Uncategorized Archives February 2016 January 2016 November 2015 October 2015 August 2015 March 2015 January 2014 May 2013 April 2013 March 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 February 2012 January 2012 October 2011 September 2011 August 2011 July 2011 April 2011 March 2011 February 2011 October 2010 August 2010 July 2010 February 2010 January 2010 October 2009 September 2009 August 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 June 2008 May 2008 April 2008 March 2008 January 2008 December 2007 November 2007

    Original URL path: http://blog.stuartherbert.com/php/2011/10/11/phpnw11-conference-saturday-speakers-photos/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » PHPNW11 Conference – Tutorial Day Photos
    co author of the Official Zend Certification Study Guide for PHP 4 and a regular speaker at conferences and user groups since 2004 When he s not designing software Stuart loves to explore the world through a camera lens spend time with his beloved guitars and continue his study to T ai Chi Chu an Taijiquan No Comments Stuart Herbert On PHP PHPNW11 Conference Tutorial Day www mawir net says October 10th 2011 at 2 19 pm here to see the original Stuart Herbert On PHP PHPNW11 Conference Tutorial Day This entry was posted in Uncategorized and tagged component framework getting into Stuart Herbert On PHP PHPNW11 Conference Tutorial Day www mawir net says October 10th 2011 at 2 19 pm here to see the original Stuart Herbert On PHP PHPNW11 Conference Tutorial Day This entry was posted in Uncategorized and tagged component framework getting into Latest Photos Categories phpnw 1 Beginner 2 Intermediate 3 Advanced Brighton PHP Conferences Opinion phix PHP In Business PSR Servers and Hosting Storyplayer Talks Toolbox Training Uncategorized Archives February 2016 January 2016 November 2015 October 2015 August 2015 March 2015 January 2014 May 2013 April 2013 March 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 February 2012 January 2012 October 2011 September 2011 August 2011 July 2011 April 2011 March 2011 February 2011 October 2010 August 2010 July 2010 February 2010 January 2010 October 2009 September 2009 August 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 June 2008 May 2008 April 2008 March 2008 January 2008 December 2007 November 2007 October 2007 July 2007 April 2007 March 2007 February 2007 January 2007 This Month October 2011 M T W T F S

    Original URL path: http://blog.stuartherbert.com/php/2011/10/10/phpnw11-conference-tutorial-day-photos/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » Your Preparation For My PHP Components Session At #phpnw11 On Friday
    Bring along a list of any questions you might have Hopefully the session will cover most of these the rest I m sure we ll cover in the bar afterwards I m not expecting you to have read my series of blog posts about creating and maintaining packaged components of PHP code but you will find the session easier to follow if you have Interested but haven t bought a ticket yet Buy one now In the US I ll be doing an all day version of this session at ZendCon in mid October together with Chris Hartjes Already using phix and got ideas and suggestions to make it better I ll be around throughout the Saturday and Sunday of phpnw11 normally with my beloved Nikon at hand that s how to recognise me and I d be delighted to get your feedback and discuss your ideas further About The Author Stuart has been writing PHP applications since 2003 and has been contributing to open source software since 1994 He was an early writer for php architect a co author of the Official Zend Certification Study Guide for PHP 4 and a regular speaker at conferences and user groups since 2004 When he s not designing software Stuart loves to explore the world through a camera lens spend time with his beloved guitars and continue his study to T ai Chi Chu an Taijiquan No Comments Hari K T says October 4th 2011 at 6 22 am Wow nice to see its slowly evolving Stuart Herbert says October 4th 2011 at 8 53 am hari thanks Latest Photos Categories phpnw 1 Beginner 2 Intermediate 3 Advanced Brighton PHP Conferences Opinion phix PHP In Business PSR Servers and Hosting Storyplayer Talks Toolbox Training Uncategorized Archives February 2016 January 2016 November 2015

    Original URL path: http://blog.stuartherbert.com/php/2011/10/04/your-preparation-for-my-php-components-session-at-phpnw11-on-friday/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » We Need An Oktober(blog)Fest!
    through a camera lens spend time with his beloved guitars and continue his study to T ai Chi Chu an Taijiquan No Comments Robert says October 3rd 2011 at 2 35 pm As for the conferences there s also Webkonf http webkonf org held this weekend October 8th in Budapest Ferenc aka Tyr43l https twitter com Tyr43l will be speaking about PHP 5 4 and I ll be speaking on Zend Framework 2 Robert says October 3rd 2011 at 2 35 pm As for the conferences there s also Webkonf http webkonf org held this weekend October 8th in Budapest Ferenc aka Tyr43l https twitter com Tyr43l will be speaking about PHP 5 4 and I ll be speaking on Zend Framework 2 Oktober blog fest Robert Basic says October 3rd 2011 at 3 00 pm a blog movement back in March thanks to Stuart Herbert we now have a new one for October Oktober blog fest Oktober blog fest Robert Basic says October 3rd 2011 at 3 00 pm a blog movement back in March thanks to Stuart Herbert we now have a new one for October Oktober blog fest John says October 3rd 2011 at 6 02 pm that s a nice idea but please don t flood planet php and such with off topic posts thanks Stuart Herbert says October 3rd 2011 at 6 11 pm john encouraging people to blog more about PHP does not seem to be off topic John says October 3rd 2011 at 6 02 pm that s a nice idea but please don t flood planet php and such with off topic posts thanks Stuart Herbert says October 3rd 2011 at 6 11 pm john encouraging people to blog more about PHP does not seem to be off topic Christian Weiske says October 4th 2011 at 11 00 am We do not need a Oktoberblogfest You and I want more blog posts about topics that are of our interest not blog posts about liking blog posts Stuart Herbert says October 4th 2011 at 2 13 pm christan I m just echoing Chris s original call I didn t see you complain at the time Christian Weiske says October 4th 2011 at 11 00 am We do not need a Oktoberblogfest You and I want more blog posts about topics that are of our interest not blog posts about liking blog posts Stuart Herbert says October 4th 2011 at 2 13 pm christan I m just echoing Chris s original call I didn t see you complain at the time LornaJane says October 16th 2011 at 10 09 am I missed this original article but I second this call I find the blog and comments format a much better way of exchanging technical thoughts than any kind of 140 character or social system I m off to fill up my drafts folder and get back on track with my blog thanks for the nudge LornaJane says October 16th 2011 at 10 09 am

    Original URL path: http://blog.stuartherbert.com/php/2011/10/03/we-need-an-oktoberblogfest/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » Community
    code more self descriptive and that it s much easier for casual contributors to grok So instead of this logger emergency Captain she canna take no more we could instead have had logger logEmergency Captain she canna take no more Like I say a small thing but in my experience it s improving all of the small things that leads to big successes especially in larger code bases Handling The Exception Parameter Properly To paraphrase the PSR 3 standard says this about the context parameter here s a list of key value parameters but one is special That but is a code smell Not being able to treat all of the key value parameters equally slightly increases the complexity of handling context increases the performance cost of logging and forces the Logger implementation to do things that PHP could handle for us A better solution would be to move the exception out of the context and make it a separate parameter like this logEmergency message context array Exception cause null This would allow PHP to make sure that only a genuine Exception was passed into the log method and would allow the implementation to treat all of the key value pairs in context equally This is a cleaner interface to implement Log Level Constants RFC 5424 defines the log levels as an ordered set of integers This is deliberate as it makes it trivial to say only log warnings and above Unfortunately because it was difficult to crowbar this into Monolog the decision was taken to go with strings for the log level constants This regrettably increases the complexity of all other loggers If you look at pull request to add PSR 3 to Monolog you ll notice that Monolog is explicitly relying on the value of the PSR 3 constants to map them directly onto Monolog class constants 375 public function log level message array context array 376 377 if is string level defined CLASS strtoupper level 378 level constant CLASS strtoupper level 379 380 381 return this addRecord level message context 382 This is done because ironically Monolog already uses numerical log levels internally with the debug level having a value of 100 and the emergency level having the value of 600 There was obviously the risk of Monolog log level constants being passed in instead of the PSR 3 constants where it would have been impossible to tell them apart if they were both numeric I m sure other existing loggers probably face similar issues It s a tricky issue but on balance I think the wrong decision was made here for the wrong reason and the community would have been better served longer term if PSR 3 had supported the RFC 5424 values for the log level constants Final Thoughts PSR 3 isn t objectionable it s just that it could have been a bit better than it is I ve added both PSR 3 support and the revised methods from this blog post to my internal LogLib PSR 3 will allow me to inject LogLib into third party components that support it My own code will be using the revised methods I ve proposed here for the reasons mentioned above Comments Off on Personal Thoughts On The PSR 3 Log Proposal PHP NorthWest 2012 Another Great Year Posted by Stuart Herbert on October 8th 2012 in phpnw Conferences Last weekend saw the PHP NorthWest user group run their fifth conference Spread over three days it gave over 400 folks who attended great talks on a wide variety of topics from speakers both established and new Once again Jeremy Rick et al ran an excellent conference and I m already looking forward to next year s event See more of my photos from the PHPNW12 conference on Flickr Be the first to leave a comment Using Git Collaboratively My Tutorial At PHPNW12 Posted by Stuart Herbert on September 13th 2012 in phpnw 2 Intermediate Conferences Training I haven t really talked much about my upcoming tutorial session at phpnw12 next month before now but I hope there s still time to convince you to come along and learn how to use Git as your team grows in size That s what I m teaching a strategy plus supporting tools for Git called HubFlow that will help you stay sane and more importantly help you keep delivering as your team starts to collaborate on your product It isn t my strategy the credit must go to Vincent Driessen who first blogged about GitFlow at the start of 2010 And they aren t my tools again they originally come from Vincent All I ve done is adapt them for working against GitHub hence the name HubFlow but if BitBucket is more to your taste or wallet then rest assured that both tools and strategy work can be adapted for there too Maybe you don t need this strategy If you re working on one off consulting gigs for clients where you can get in quick and get out quick then HubFlow might not be necessary But if you re working on any sort of product or service either commercially or open source then I can strongly recommend HubFlow to you even if you re just at the one man startup stage And the benefits of adopting HubFlow only increase as your team grows in size I ve already put a lot of effort into documenting HubFlow and if you ve previously read the docs you might be feeling confident enough to adopt it by yourself If you do I think that s awesome and you should go for it without delay Please do email me if I can help in any way I m passionate about everyone adopting the fundamentals of software engineering and few things are more fundamental than good source control But if you re still reading at this point I hope that I can convince you to buy one of the remaining tickets for my

    Original URL path: http://blog.stuartherbert.com/php/category/community/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » Where Do You Get Your PHP From For Windows?
    to unify our binaries worked with xampp easyphp and webpi so anyone can report bugs at bugs php net or update from windows php net Only Zend Server did not do it so far why we don t support it Jordi Boggiano says September 28th 2011 at 7 53 am XAMPP is outdated 5 3 1 and therefore unacceptable WAMP has worked well in my experience if you want an out of the box thing that works Nowadays I just build my own setup with an Apache from http www apachelounge com download don t touch the Apache official builds they re still built with VC6 mod fcgid php latest VC9 NTS non thread safe VC6 has weird bugs that won t can t be fixed so don t lose time with that It s not as easy as WAMP but allows me to have complete control over my setup like running specific different PHP versions per VirtualHost Jordi Boggiano says September 28th 2011 at 7 53 am XAMPP is outdated 5 3 1 and therefore unacceptable WAMP has worked well in my experience if you want an out of the box thing that works Nowadays I just build my own setup with an Apache from http www apachelounge com download don t touch the Apache official builds they re still built with VC6 mod fcgid php latest VC9 NTS non thread safe VC6 has weird bugs that won t can t be fixed so don t lose time with that It s not as easy as WAMP but allows me to have complete control over my setup like running specific different PHP versions per VirtualHost Peter O Callaghan says September 28th 2011 at 7 59 am Back when I was using windows I used to use XAMPP if I was to go back to it now I would probably opt for Zend Server CE since that s what I ve been using on my two main development set ups 1 is a Mac Pro the other running Ubuntu I might as well round out the set Peter O Callaghan says September 28th 2011 at 7 59 am Back when I was using windows I used to use XAMPP if I was to go back to it now I would probably opt for Zend Server CE since that s what I ve been using on my two main development set ups 1 is a Mac Pro the other running Ubuntu I might as well round out the set Michael says September 28th 2011 at 8 06 am WAMP Although I highly prefer PHP on a LAMP box Michael says September 28th 2011 at 8 06 am WAMP Although I highly prefer PHP on a LAMP box Pierre says September 28th 2011 at 8 13 am Jordi Boggiano Xampp is not please double check what is happening there Apache 2 2 21 MySQL 5 5 16 PHP 5 3 8 phpMyAdmin 3 4 5 FileZilla FTP Server 0 9 39 Pierre

    Original URL path: http://blog.stuartherbert.com/php/2011/09/27/where-do-you-get-your-php-from-for-windows/ (2016-05-02)
    Open archived version from archive



  •