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 - » HubFlow 1.5.1 Released
    The full ChangeLog is available I m starting to get requests for documentation and portability fixes for Windows users I don t run Windows on any of my computers so if there s anyone out there who d be interested in helping out please let me know 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 October 2007 July 2007 April 2007 March 2007 February 2007 January 2007 This Month March 2013 M T W T F S S Dec Apr 1 2 3 4 5 6 7

    Original URL path: http://blog.stuartherbert.com/php/2013/03/25/hubflow-1-5-1-released/ (2016-05-02)
    Open archived version from archive


  • Stuart on PHP - » Personal Thoughts On The PSR-3 Log Proposal
    fan of making code more readable by having all method names start with a verb I find that it makes 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

    Original URL path: http://blog.stuartherbert.com/php/2012/12/29/personal-thoughts-on-the-psr-3-log-proposal/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » Released: HubFlow v1.4 – A Git Extension
    Upgrading From An Older Release To upgrade to this release please run sudo git hf upgrade If that doesn t work because you re on an older version of HubFlow that doesn t have the upgrade command please re install git clone https github com datasift gitflow cd gitflow sudo install sh 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 October 2007 July 2007 April 2007 March 2007 February 2007 January 2007 This Month October 2012 M T W T F S S Sep Nov 1 2

    Original URL path: http://blog.stuartherbert.com/php/2012/10/03/released-hubflow-v1-4-a-git-extension/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » Sublime Text PHPUnit Plugin: Specify Path To phpunit
    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 3 Comments KdgDev says September 8th 2012 at 12 40 am Still busy setting everything up casually so I ll just ask before I get there will this work on Windows Using PEAR as described in another post by you http blog stuartherbert com php 2012 05 10 getting pear working on windows 7 Stuart Herbert says September 9th 2012 at 9 04 pm Yes it should work on Windows Sonny says November 26th 2012 at 10 05 pm When we enter the path to PHPUnit where do we start from C wamp bin php php5 3 9 includes PHPUnit3 7 9 PHPUnit or Path from sublime exe to PHPUnit Here is what I currently have and it will not work I ve tried several variations I m just too new to PHPUnit and Sublime 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

    Original URL path: http://blog.stuartherbert.com/php/2012/08/28/sublime-text-phpunit-plugin-specify-path-to-phpunit/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » Tweaking BrowserMob-Proxy
    ve added some additional log messages throughout the ProxyResource REST API to make it easier to debug browsermob proxy REST API clients This logging is off by default and is switched on by POSTing paramLogs true to config paramLogs and or POSTING actionLogs true to config actionLogs additional header GET DELETE API we ve extended the REST API for additional HTTP request headers to now allow you to GET proxy port header name and to DELETE proxy port header name if you need to You can also delete all additional HTTP request headers in one go by DELETE proxy port headers REST API for HTTP Basic Auth BrowserMob Proxy s existing support for HTTP Basic Auth is now available via PUT proxy port basicAuth domain One of the key features missing from WebDriver This is a convenience feature it could be done by injecting the headers directly into BrowserMob Proxy exception handling by default BrowserMob Proxy lets exceptions bubble up to the servlet container which unfortunately sends back HTML errors rather than a JSON error To make things a little easier for REST clients I ve tweaked the REST API to trap exceptions and return back a hopefully suitable error class This will probably need more tweaking before it provides useful information all the time Bookmark this page I ll be updating it as we complete more tweaks to BrowserMob Proxy 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

    Original URL path: http://blog.stuartherbert.com/php/2012/08/10/tweaking-browsermob-proxy/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » Having Trouble Hiring Engineers? Here’s Why
    2012 at 9 04 am Nice post Stuart i am feeling the pain for a couple of months now You can t forget that if you are in Europe you should count with people fear as well Here s what i am observing here in Portugal the good one s as in Senior developers are employed somewhere already and when we try to get to them and make them hear about your project the answer is 90 the same I am not willing to change jobs between this crisis it s safer stay were i am But we can always say if people is not available to take some risks maybe is better not to hire him It s difficult to hire as hell not sure if it s only on the PHP professionals scope or in other languages there is the same problem Anyway most probably is company fault not marketing themselves among the professionals in conferences user groups Thanks for lifting the problem up one more time maybe someone will find a solution for this some day Andre says August 3rd 2012 at 11 52 am Hello Have you ever considered hiring remote workers telecomute Best regards FR Duane Gran says August 3rd 2012 at 6 52 pm What are we seeing in this picture I don t doubt that hiring good software dev eng talent is hard as ever but the cork board looks like it could have notices of missing pets just as likely as job opportunities I m not getting it Steve says August 17th 2012 at 7 51 am I also don t get it what are we looking at Is that supposed to make us thing Google is a cool place to work It looks like the community noticeboard in an ALDI Not

    Original URL path: http://blog.stuartherbert.com/php/2012/08/03/having-trouble-hiring-engineers-heres-why/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » Aim Higher!
    your gaze look out to the stars and see what can really be done This world is full of people with amazing potential who never realise that potential They re just a waste of space You can be better tomorrow than you are today Aim high You can do it Everyone can do it You just have to choose We don t have a lot of time to achieve things in life and as you get older you become more and more aware of just how quickly the days are passing Every day you spend just trying to get through the day you can t get that day back It s gone forever And you never know when fate is going to cut your days suddenly short Make the most of them Achieve something worth while and aim high when you do 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 7 Comments phpcodemonkey says July 26th 2012 at 7 45 am Love how your thinking in this post is exactly aligned with how I operate I ve had to let a developer go already this year we still have a vacancy because of that move some three months later However I d rather have that than the wrong person in the team My role as the manager in our agency is to raise the bar on everyone around me how can we do that better more quickly more efficiently so that we continue to grow our reputation for the right things There is always a danger that one person can destroy that so if staff aren t aligned to the goal of bettering themselves as you say Aiming Higher then they may be pulling your company either by lack of or deliberate action in the other direction which will certainly not enhance the right kind of reputation Stephen S Musoke says July 26th 2012 at 10 41 am Yes you need to fire them as soon as you can otherwise they will drag you down and you still need to fire them later The question is how do you determine that the developer is failing and not the surrounding processes managers leadership clients technology tools Zilvinas says July 27th 2012 at 11 27 am I liked your post especially measuring against yourself part However saying They re just a waste of space is not cool to say especially since there s no definition of life s purpose but the one you ve made up yourself Andreas says July 27th 2012 at 2

    Original URL path: http://blog.stuartherbert.com/php/2012/07/26/aim-higher/ (2016-05-02)
    Open archived version from archive

  • Stuart on PHP - » PHPUnit Plugin For Sublime Text 2
    out I find this handy mostly so that I don t have to remember which class my test class has to extend phpunit test will create a new test method for you to fill out To use any snippet type its name and then press the TAB key Sublime Text 2 will insert the snippet and then you can use the TAB key to cycle through any placeholders that you need to edit If you find snippets useful please don t forget to check out my Additional PHP Snippets plugin too Feedback Contributions Welcome I d love to hear how you get on with the plugin and any ideas you might have for additional features And pull requests via GitHub are most welcome too 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 Jayanti says February 18th 2012 at 3 24 pm This article help me a lot to understand PHPUnit Jayanti says February 18th 2012 at 3 24 pm This article help me a lot to understand PHPUnit Pablo Nunez says April 25th 2012 at 6 04 pm It worked for me without any extra configuration but the only thing is that when I am on a class and then Right Click to get the contextuals menus Sublime hangs for at least 10 seconds so I had to disable the phpunit plugin for now Good work Pablo Nunez says April 25th 2012 at 6 04 pm It worked for me without any extra configuration but the only thing is that when I am on a class and then Right Click to get the contextuals menus Sublime hangs for at least 10 seconds so I had to disable the phpunit plugin for now Good work Thomas McGregor says June 9th 2012 at 12 25 pm Annoyingly I ve had to do the same as Pablo Nunez and disable it as it hangs when trying to access the contextual menu in a Class Thomas McGregor says June 9th 2012 at 12 25 pm Annoyingly I ve had to do the same as Pablo Nunez and disable it as it hangs when trying to access the contextual menu in a Class rubdottocom says July 4th 2012 at 8 12 am Hi Stuart this is an amazing plugin that improve my productivity when working in TDD context thank you very much Currently I m evaluating the possibility to execute unit tests remotely doing something like this http aaronsaray com blog 2012 01 03 running phpunit on remote system from command line I m a

    Original URL path: http://blog.stuartherbert.com/php/2012/02/04/phpunit-plugin-for-sublime-text-2/ (2016-05-02)
    Open archived version from archive



  •