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 - » Brighton PHP
    Be the first to leave a comment 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 May 2016 M T W T F S S Feb 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 31 Recent Posts How To Do Positive

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

  • Stuart on PHP - » Conferences
    Conference The Other Photos Posted by Stuart Herbert on October 15th 2011 in phpnw Conferences The PHP North West User Group ran it s 4th and largest yet PHP conference PHPNW11 in Manchester last weekend My last set of photos from PHP North West 2011 are the odd ones out the ones that didn t really fit into any of the other sets I hope you ve enjoyed my photos from the conference and maybe just maybe they ve made you think about going to a PHP conference somewhere near you in the near future Be the first to leave a comment PHPNW11 Conference The Organisers And Volunteers Posted by Stuart Herbert on October 14th 2011 in phpnw Conferences The PHP North West User Group ran it s 4th and largest yet PHP conference PHPNW11 in Manchester last weekend No conference especially one as well run as PHP North West can happen without the small army of folks who give up their time to organise and staff the conference I m afraid that I didn t manage to photograph everyone involved on the day sorry but here s to everyone who made PHP North West 2011 possible Be the first to leave a comment PHPNW11 Conference The Sponsors Posted by Stuart Herbert on October 13th 2011 in phpnw Conferences The PHP North West User Group ran it s 4th and largest yet PHP conference PHPNW11 in Manchester last weekend This year many of the sponsors were here not to drum up new business but to hire new talent continuing a trend from PHPUK11 earlier in the year Sponsoring a conference is cheaper than paying traditional recruiters with no shortage of motivated attendees to talk to Community tech conferences like PHP North West simply could not happen without the funds raised from the organisations who sponsor each conference This short set of photos is my way as a conference speaker of saying thank you to every organisation who sponsored this year s PHPNW conference Be the first to leave a comment PHPNW11 Conference The Saturday Audience Posted by Stuart Herbert on October 13th 2011 in phpnw Conferences The PHP North West User Group ran it s 4th and largest yet PHP conference PHPNW11 in Manchester last weekend The audience is a key part of any conference and each year the PHP North West conference manages to attract more and more people back as it establishes its reputation for being one of the very best PHP conferences and indeed one of the very best UK tech conferences around If you ve never been to any PHP conference anywhere before I hope these photos manage to show you just a little bit of the cracking atmosphere you re missing out on If you like these photos please do let me know leave a comment on my blog or click through each photo to Flickr and leave a comment there Thanks Be the first to leave a comment PHPNW11 How To Dig Your Own

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

  • Stuart on PHP - » Opinion
    a colon and then the line number that you re looking for This will take you to that line number in that file all from the keyboard Goto A Defined Symbol Using The Goto Anything Pane Press CTRL R CMD R on the Mac and this brings up the Goto Anything pane ready for you to type in the name of a function or method As you type ST2 narrows down the list of matching functions methods and classes in your file You can do the same by pressing CTRL P and typing an symbol at the start of the search You can combine this with the file search Hit CTRL P and start searching for a file Then at the end of your search term add an sign and then the name of the function or method that you re looking for This will take you to that function or method in that file Coding Quicker With The Additional PHP Snippets The Additional PHP Snippets plugin disclaimer I m the author of this plugin provides a few simple text snippets to speed up everyday chores such as creating getters and setters and add license text to the top of the file It is available via Package Control Pull requests or requests for features are most welcome To use it inside your PHP code simply type php and ST2 will show you a list of all of the matching snippets Select the snippet you want hit TAB and hey presto the snippet is dropped into your code ready for you to adapt as required Creating Doc Blocks Using DocBlockr The DocBlockr plugin makes it very quick and easy to create doc blocks for your classes attributes and methods It is available via Package Control To use it open a new doc block as normal by typing and then pressing ENTER The plugin will create a template doc block for you to fill out to suit Real Time Syntax Checking Using SublimeLinter Real time syntax checking is something you take for granted with an IDE and it s available in ST2 in 2 main flavours I use the SublimeLinter plugin myself and have had no trouble with it at all but I know that some folks have had to use the sublime lint plugin instead Both are available via Package Control Once installed your code is checked in real time for syntax errors Lines that contain syntax errors are highlighted and in the status bar at the bottom of the screen you ll see an explanation of what the error is Sometimes the syntax error will appear to be on the wrong line on the line below where the real problem is SublimeLinter uses the php l command behind the screens PHP s built in linter and is simply reporting back exactly what the PHP runtime thinks is wrong This might puzzle you at first if you re used to IDEs that have their own lint algorithm built in Consulting The PHP Manual Using Goto Documentation The PHP Manual is imho PHP s true killer feature all that detailed documentation and it s all freely available on the web no need to go away and buy books on the language Like many PHP developers I ve always got the PHP Manual open when I m working The Goto Documentation plugin allows me to look up any PHP function from inside ST2 The plugin is available via Package Control and once installed you need to bind it to a key before you can use it This is done by opening the Key Bindings User option on ST2 s Preferences menu and adding a line like the following keys f1 command goto documentation Save the file and you re ready to go To use it just put your text cursor on the PHP function that you want to look up and hit your chosen key combination Goto Documentation will switch to your browser and search the PHP Manual for the function you ve selected Handling Trailing Whitespace Using The TrailingSpaces Plugin I know it s a small thing but trailing whitespace annoys the crap out of me and I ve always been deeply frustrated with how Netbeans never reliably stripped this from files that I created or worked on Thankfully this isn t a problem with ST2 and you can add the TrailingSpaces plugin to strip files in between saving them Testing Using PHPUnit The PHPUnit plugin disclaimer I am the plugin s author allows you to run your unit tests right from inside ST2 You can run the tests for just the file you ve got open or you can run all of your project s unit tests in one go You can also switch back and forwards between your PHP code and your unit test files and you can quickly open your project s phpunit xml file To use the plugin your project needs to have either a phpunit xml file or a phpunit xml dist file This is a simple config file that tells PHPUnit where your tests are which folders to include ignore for code coverage purposes and what reports logs PHPUnit should create once the testing is done If you re using something like Phix you get all of this for free and I believe that Symfony s standard app skeleton also includes a phpunit xml file too The plugin navigates around your project switching from file to file using the following algorithm It takes the full name of your PHP class including the namespace and uses the PSR0 autoloader algorithm to try and find the same class with Test appended on the end If that doesn t work it strips off the namespace and tries again To find the phpunit xml file the plugin finds the test code first and then searches each folder upwards for phpunit xml or phpunit xml dist If that doesn t work it looks in a number of pre determined locations defined in the plugin s settings file and then as a last resort it searches your whole project downwards starting from the top folder When you run your tests the full output from PHPUnit appears in a panel at the bottom of ST2 s window and that includes information on the full command executed and which folder it was executed from To close the panel just hit ESC Alignment Plugin This is a very simple plugin it allows you to select some lines of code and have all of the equals signs line up under each other I find that this can make code and especially array definitions much clearer to read but I know that it isn t for everyone Software Archaeology Using CTags One of the ways that IDEs add a lot of value is that they truly understand the code you re working on and that allows them to offer features like goto source definition et al There s a way you can do this in ST2 by installing the CTags plugin Once you ve installed the CTags plugin before you can use it you need to go to the plugin s website and follow the instructions there to get a suitable ctags command line program installed The plugin is a wrapper around this command s functionality and cannot work without it Then the next step is to build a tags file This is an index of all of your code that the plugin can use to look up classes functions and methods so that you can quickly jump to their definition from anywhere in your project This is done by hitting CTRL T and then CTRL R and then waiting for the finished building message to appear in the status bar After that you can navigate around your code by hitting CTRL T and then CTRL T again This works particularly well for exploring code you haven t seen before something that I demo in the video below One last word of advice CTags understands the syntax of your code but not the strategy It doesn t understand the difference between trunk and branches folders for example or vendor folders If there s code in there CTags by default will index it This might be what you want but if you find that it s picking up duplicates that you re not interested in you ll need to create a CTags sublime settings file in your User package folder to override the ctags command setting and add in some exclusions What Else There s one notable exception that I haven t covered here and that s SublimeCodeIntel This is a plugin that aims to bring Komodo s autocompletion over to ST2 It s a great idea but my own experience with the plugin isn t good I ve seen it installed on two different computers running the same OS and version of ST2 and it work fine on one and not work at all on the other I ve seen it stop working after a new version of the plugin was released I ve learned to live without it But do go try it out because if it works for you you might really like it Are there any other ST2 plugins that you use on a daily basis Mention them in the comments below and I ll check them out 111 comments 10 Reasons Why I ve Switched From Netbeans To Sublime Text 2 For PHP Development Posted by Stuart Herbert on February 20th 2012 in Opinion Toolbox I ve recently switched from using Netbeans as my PHP dev tool of choice to Sublime Text 2 Features wise I think Netbeans is great During the years I used it I never felt that there was a feature I needed that was missing at the time But like all the current crop of Java based desktop IDEs it s so damn ugly 1 and slow 2 that I ve had enough I program because it s something that I love doing and anything that gets in the way of that I ve no time for any more So when a work colleague introduced me to Sublime Text 2 I was in the mood to give it a go and 3 months on I haven t opened Netbeans once I ll be the first to say that Sublime Text 2 isn t for everyone It s a beta product which means there are some rough edges mostly in the plugin API I feel but it s more than stable enough for production use It has crashed a couple of times which might put some people off but I don t recall losing any work as a result File management in the project pane still needs work The regular dev builds occasionally break things It isn t a full blown IDE it s more like the spiritual successor to TextMate an editor that I never personally cared for In particular it doesn t support interactive debuggers which means no Xdebug support and there s currently no obvious way for a plugin to add that functionality in 3 Auto completion isn t anything like what you re used to The built in auto completion is based on a mix of static knowledge of languages and fuzzy matching against what you ve recently typed There s no obvious intelligence about the code you re working on nor the parameters for any method or function These are two things that many people will deeply miss 4 It isn t free but you can evaluate it for free with no time limit If you decide to buy it s substantially cheaper than both PhpStorm and Zend Studio and there s no annual subscription element to the licensing You re buying a license to support and encourage an independent developer and to show your appreciation for a very nice piece of software It s a closed source product You can t fix it yourself if it breaks and no one can pick up the reigns if it gets abandoned There seems to be just one guy behind it and if anything happened to him that d probably be the end of the product That said most of the alternatives are also closed source too Given all of that why have I switched Sublime Text 2 is very very fast Sublime Text 2 itself opens instantly Files open instantly provided they re not 100 megabyte test data files In fact everything happens instantly even inside a virtual machine running on a 3 year old laptop There are no pauses for anything to be indexed and I ve never seen CPU usage spike important for us untethered users and our suffering laptop batteries 5 And if a plugin slows things down at all Sublime Text 2 tells you which one is the culprit so that you can go and disable it I d compare the importance of the speed difference to switching from a hard disk to an SSD You don t realise how much you re waiting for your slow Java based IDE until you use something that s properly fast It renders fonts properly Droid Sans Mono and Ubuntu Mono in particular both look gorgeous and even after a long day of use my eyes don t feel like they ve been scratched on the inside by sharpened kitty claws all day long 6 True story one of my colleagues came over to ask what I was using because he thought it looked so nice from a distance When was the last time anyone ever thought that about a desktop Java app All of the searching is based on an extremely powerful fuzzy matching approach Netbeans supports regexes which can be very handy but most of the time when I m looking for something a regex is overkill but a simple string search isn t powerful enough If I ve got both a class called IpcProcess and IpcProcessID in Sublime Text 2 I can find the IpcProcessID class by searching for ipi I just have to type the shortest set of characters that uniquely matches what I m looking for It s much quicker than writing or running a regex and soon becomes second nature There s a goto anything search panel which is lightning quick Combined with the fuzzy matching approach I find this a godsend for working on multiple large code bases where there may be different classes with the same base filename or duplicate installs of a class in vendor folders or where I ve got both trunk and branches checked out for the same project It s a killer feature and one that has changed my workflow for the better especially combined with my next reason The panel s also like using Google Instant you get results as you type giving you the instant feedback you need to refine your fuzzy search There is also a goto symbol search panel and a command palette which allows you to search through the available editor commands to execute Everything can be done from the keyboard Everything can be done from the mouse too but I found that doing everything from the keyboard is both faster and doesn t break the flow of what I m working on This is something I didn t appreciate until after I d switched but it s a fantastic help to me when I ve got another developer sat next to me and we re looking at or for something together Together with the fuzzy matching it s like doing software archaeology with a JCB digger instead of a trowel It does a great job of auto detecting whether a file uses spaces or tabs for indentation and how big the tab stop is There are days when it seems like no two files I open are consistent in how the code is indented and it s rare for anyone to have tagged on a modeline to give any hints With Netbeans which has a rigid config based approach to indentation I end up playing code formatting table tennis with the original author of the file as we always seem to have different indentation settings Sublime Text 2 works out what the existing indentation approach is and just auto configures itself to match It s a great time saver 7 It strips trailing spaces from the ends of lines when I save my files This has been broken in Netbeans for years It s a small thing I know but it really annoys the crap out of me that Netbeans doesn t get this right As a bonus in Sublime Text 2 trailing spaces actually get their own setting in color schemes so you can see exactly where they are In Netbeans they re bloody invisible There s a healthy ecosystem of plugins for it over 200 plugins and counting thanks to Will Bond s Package Control package manager Will is doing a great job of making sure that each plugin is tightly focused on sorting one problem only to keep Sublime Text 2 as flexible and adaptable as possible something to keep in mind if you start writing plugins yourself Creating new plugins is very easy It took me just one evening to add and release the initial PHPUnit plugin and that included the time it took to learn both Python and the plugin API from scratch To make an update to your plugin simply push your changes to your master branch on GitHub It s as close to frictionless as you can get I can own the tool and set it up to suit my approach to programming Because extending the editor is so effortless I can automate anything that I want to suit exactly how I want it done I can create snippets intelligent macros and full blown plugins to suit and I can make them as and when some new need occurs even

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

  • Stuart on PHP - » PHP In Business
    I m eagerly awaiting the release of the code so that I can play with it and learn in detail what it can do and what it can t For now Marco s post seems to have the most technical information in it so far I m with Sebastian on this one Whether or not you think Facebook s HipHop is relevant to you I think they deserve credit for having shared their particular solution with the wider community They ll get extra credit when they actually release some code After all they ve built on top of open source in the first place giving something back to the community is part and parcel of being a good member of the community How many of you earn your living from open source but have never contributed anything back But that isn t really what I want to blog about today I ve been following the chat on Twitter about HipHop and I think all the nay sayers have been overlooking an important point HipHop has the potential to reduce the amount of power consumed in running a website And surely that can only be a good thing for all of us If you don t run your own servers in a data centre for example you use a virtual server or host on a shared hosting solution then perhaps you might not be aware that the power required by each server in a rack is often a major factor in the overall cost of running the servers Whether or not you believe in climate change energy prices are on the rise Whether or not you believe in peak oil oil and natural gas supply issues are forecast to push energy prices up further Taking steps to get more work done per unit of power consumed has been the focus of hardware manufacturers for several years now Isn t it time it also was the focus of the software community too CPU usage is only one aspect of the total power consumed by a server in a rack but in my experience people tend to add more servers to their solution primarily because they need more CPUs running their web servers to handle more traffic A reduction in the number of CPUs required will translate into a reduction of the number of servers required which means a reduction in the amount of energy being consumed How can that not be a good thing if it can be achieved I know the answer will be that PHP apps are not CPU bound that they spend much of their time waiting for results from the database That might be true if you re measuring a PHP app from the point of view of elapsed time but what if you re measuring the PHP app in terms of CPU cycles consumed Every single PHP script has to run on a CPU and has to get to the point where it s sat waiting for the database If HipHop means that each PHP script uses less CPU to get to the same point that has to be a step in the right direction Until we can play with HipHop ourselves it s impossible to say whether it saves enough CPU cycles to allow us to use less CPUs and therefore less servers Remember you ve still got the overhead of your operating system and web server to factor into the equation And then there s the energy cost of compiling your code in the first place during development for seldom visited websites HipHop may increase overall energy requirements But it sure is nice to hope isn t it Be the first to leave a comment How Do You Keep Trac Posted by Stuart Herbert on September 15th 2009 in 2 Intermediate PHP In Business Toolbox Training Stuart is running a course in Manchester in October immediately before the PHPNW09 conference on how to setup and organise your PHP developers to ensure things run smoothly for you and your customers which will include looking at how to get the most out of Trac Learn more about the course or sign up now When it s just you working on one project at a time it s easy enough to keep track of the work you re doing and the work you still need to do to complete the job Chances are you can keep it all in your head or at least keep the discussions with your customer on something like Basecamp in your head You know that you should be using source control and bug tracking because it is best practice but it just seems like too much of an overhead to bother with when it s just you After all you re working on the customer s server and there s no one else editing the code anyway Some of the folks reading this blog post might be cringing at that but I ve lost count of the number of times I ve come across professional PHP developers who work in exactly this way Is it because they don t know better Maybe Is it because it has worked okay for them up to now For sure But eventually there comes a point where one developer becomes a team of two or more Having a team means that you can go after larger projects but it also means that you have to go after larger projects to pay the team Larger projects mean more complicated requirements multiple phased deliveries and a larger more demanding and probably a more complicated customer holding the pay cheque Running a team of PHP developers like all management activity in all walks of life comes down to three key things direction organisation and supervision Only now it isn t just you and a customer just a list that you can keep in your head Now you need to keep track of a larger list of multiple lists for multiple

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

  • Stuart on PHP - » PSR
    have also liked to have seen trace level logging supported although I can understand why most PHP developers won t be aware of that practice Better Method Names It s perhaps a small thing but I m a big 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

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

  • Stuart on PHP - » Toolbox
    as Internet Explorer Firefox and Chrome and BrowserMob Proxy adds in essential missing capabilities such as checking HTTP status codes and injecting headers for HTTP Basic Auth I ve recently forked BrowserMob Proxy on GitHub and started to make tweaks to it for work Thought I d mention it in case anyone else out there is using BrowserMob Proxy and would find our tweaks useful too We ll be submitting our tweaks upstream in due course Executable JAR Maven POM file updated to build browsermob proxy X XX standalone jar an executable JAR file during the package phase Very handy if you re running and testing it via the remote API Upstream s browsermob proxy X XX bin zip is still available and is now always built during the install phase features endpoint a new REST API endpoint allowing you to GET and POST and DELETE feature flag settings We re using this to enable disable any new features that might break backwards compatibility in case you want to use existing BrowserMob Proxy REST clients with our tweaked version Said REST clients can also use this to see which features are present enabled enhancedReplies by default BrowserMob Proxy isn t the most chatty of REST services Switch this feature on POST enhancedReplies true to config enhancedReplies and now every response includes either a success TRUE or an error TRUE field for your client to easily understand what has happened More logging we 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 1 comment HubFlow GitHub and the GitFlow Model Together Posted by Stuart Herbert on June 12th 2012 in 2 Intermediate 3 Advanced Toolbox At work we ve recently published HubFlow instructions tools for using Vincent Dreissen s GitFlow model with GitHub The full article is over on the DataSift dev blog 2 comments If Node js Is So Hot Then Where Is The Ecosystem Posted by Stuart Herbert on May 21st 2012 in Servers and Hosting Toolbox I ve recently built a product in Node JS and it was a very positive experience more on that in another blog post I m now looking around at what I need to do to package it all up for customers and entrepreneurs hosting developer meetups that sort of thing I m looking for the wider ecosystem that customers can tap into I m a bit surprised at what I found during my research and I thought I d share it in case anyone else can add to it Why Hosting Matters Let s not beat about the bush here As a rule Node JS s target audience probably doesn t know enough to safely and securely run their own Internet connected servers It isn t their skillset A customer using Node JS really needs someone to look after all of that for them That isn t a service I want to have to build myself if I don t have to For the customers I m targeting being able to say go there sign up and deploy to their cloud and they ll look after it all for you is the right solution for everyone Where Is All The Hosting With all the buzz and hype around Node JS it seems reasonable to think that there d be plenty of cloud providers out there offering Node JS hosting services Not the here s how to install it into a VPS type stuff but a Heroku Engine Yard like service targeted at Node JS However a quick Google for nodejs hosting turned up the following results on the front page 1 hosting provider which is public free and unable to provision new services when I tried No de 3 hosting services in private beta Nodester NodeSocket and NodeJitsu and zero paid for ads offering Node JS hosting No de is the hosting service from Joyent who are the current guardians of the Node JS project itself Their Node JS product page directs you to the No de service But unfortunately No de is a limited capacity service and you can only get your app on there if you re lucky enough to catch them when there is spare capacity Joyent do offer a VPS w Node JS pre installed but you d be hard pressed to find the product if you didn t know it existed as it isn t linked to from their Node JS page at all The other three services all look interesting NodeJitsu in particular caught my eye but I can t sit down in a sales meeting today and recommend any of them to a customer because until they are public services I can t

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

  • Stuart on PHP - » Training
    practice doing so My first PHP conference appearance was back in 2004 on Marco s php cruise and since then I ve spoken at the PHP NorthWest and PHP UK conferences several times I co wrote the Zend Certification Study Guide for PHP4 Once a year I teach at the University of Aberystwyth helping their Comp Sci students prepare for applying for jobs for their year in industry Plus I ve done a substantial amount of teaching and mentoring as part of my job and open source work over many years And away from computers I ve been teaching martial arts for over 12 years If you need the benefits that HubFlow brings then I d love to teach you in person You can buy a ticket for my tutorial day on the phpnw12 website I hope to see you there Be the first to leave a comment Sharing My Reading List Looking For Recommendations Posted by Stuart Herbert on July 31st 2011 in Community Toolbox Training I m a great believer in the power of self education especially if you are or want to be in a more senior role in your firm or organisation A regular reading list is a great way to learn more about how others are solving problems that you might be or are about to be struggling with I ve been surprised at how little people I know read though Over the years I ve built up a list of blogs that I read daily to try and keep up with what is happening in the wider digital world It isn t a complete list for sure but it s a good start I m certain that there are many other blogs out there that belong on this list If you know of any please send me a pull request Be the first to leave a comment TechniqueNW 10 Posted by Stuart Herbert on January 31st 2010 in Training Whilst everyone else was over at PHP Benelux 10 which sounded like a great conference according to the Twitter feedback I was up in Morecambe at the Technique NorthWest training event organised by Northwest Vision and Media and run by The White Room A huge thanks to Paul Collins for inviting me up at the last minute to run the PHP workshop on the Saturday and I d love to be involved in further events like this I had a great time at the event and I was delighted to see how the North West of England is trying to build and support a digital economy instead of simply leaving it to chance If only South Wales had such an initiative Perhaps the most interesting thing I took from the weekend was the large disconnect between the people who attended and many of my friends on Twitter If you listen to the Twitterarti you d think that Adobe Flash is a technology that has run its course and is now in terminal decline mostly because

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

  • Stuart on PHP - » Uncategorized
    of registered users A bridge manager will handle the tricky work of creating managing and destroying individual SOAP REST bridges It will also handle administration of who is allowed to use which bridge The bridge itself will handle SOAP REST requests and responses and also provide tools for investigating problems usage stats and also if possible documentation auto generated from the WSDL file Finally users need a way to find the available bridges so I need a bridge browser for that It will also provide the mechanism for users to request permission to use a bridge The generic users need to be clarified into specific actors who participate in specific use cases Working out the specific roles that a user can have makes it a lot easier to get the permissions system right first time The downside is that mistakes made at this stage are the most expensive of all to fix Admin users are the administrators of Give It A REST They can do everything the app allows without restriction Bridge owners are users who own one or more bridges They have control over who can and can t use their bridges Any user can create a bridge and so become a bridge owner but bridges have to be approved by an admin user Bridge users are registered users who are not admin users or bridge owners They have successfully applied for permission to use one or more bridges Registered users are users who have registered to use the app but who do not yet have permission to use any of the bridges Finally we have guest users who need to register to use the site Their registration must be approved by an admin user before they become registered users The actors describe roles not people People s roles can and do change as they successfully complete some of the use cases Here are the use case diagrams You should be able to click on each thumbnail to open the full diagram Use Cases Admin Users Use Cases Bridge Owners Use Cases Bridge Users Use Cases Registered Users Use Cases Guest Users Strictly speaking the remote PHP RESTful client is also an actor with use cases that could be identified and captured but I ve chosen to treat the PHP client as just another way that my existing actors can interact with Give It A REST Problems To Solve In R D Thankfully the majority of the use cases are run of the mill web app functionality that are straightforward to code up But together the product brief and use cases have generated a number of problems that I need to solve by a little bit of R D Given a WSDL file how can I create a SOAP client in NET How do I call that SOAP client from PHP code How do I capture the raw XML sent from the NET client to the SOAP service and how do I capture the raw XML sent back in

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



  •