archive-com.com » COM » B » BENRAMSEY.COM

Total: 425

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

Or switch to "Titles and links view".
  • PHP Groups Mailing List Moves To PHP.net, by Ben Ramsey
    being created over a year ago for the purpose of networking together the leaders and organizers of PHP user groups around the world I ve been very bad about keeping things moving on this front but I want to pick things back up and get us talking again I also want to get us back on track for the mission of this group PHP Groups networks PHP user groups into a tighter community provides a means to share information and resources among its community members and aids in the formation of new PHP user groups In the near future we ll have more discussion about what we can do to progress toward fulfilling this mission In the meantime if you help with the organization of your local PHP user group in any way feel free to join the ug admins mailing list or subscribe to the ug admin news group at php net ug admins subscribe at lists php net http news php net ug admins Also look to this list for announcements about meet ups of user group leaders and organizers at upcoming conferences And as always I m lurking in phpgroups on Freenode IRC so feel free to

    Original URL path: https://benramsey.com/blog/2008/09/php-groups-mailing-list-moves-to-phpnet/ (2016-04-26)
    Open archived version from archive


  • OSCON 2008: Slides, by Ben Ramsey
    the screen was very poor making it difficult for attendees to read I apologize for this In addition I was completely distracted during my entire talk by loud music coming from the room next door Nevertheless the majority of my audience was still around even after I ran 5 10 minutes over schedule eating into their free beer time so I suppose that says something and that they were learning D Thanks to all who attended Give Your Site a Boost With Memcache Today s high traffic websites must implement performance boosting measures that reduce data processing and reduce load on the database while increasing the speed of content delivery One such method is the use of a cache to temporarily store whole pages database recordsets large objects and sessions While many caching mechanisms exist memcached provides one of the fastest and easiest to use caching servers This talk will cover memcached and the memcache extension for PHP from setting up a memcached server to using it to provide a variety of caching solutions including the use of memcached as a session data store View and download slides By Ben Ramsey Posted on 25 Jul 2008 OSCON 2008 Day One

    Original URL path: https://benramsey.com/blog/2008/07/oscon-2008slides/ (2016-04-26)
    Open archived version from archive

  • OSCON 2008: Day One, by Ben Ramsey
    track This is because I have a lot of friends who are speakers and so I ve attended their talks to learn from and support them This year though I ve decided to focus on some of the other languages represented here particularly Python and Erlang This morning for example I attended Steve Holden s Python In 3 Hours tutorial Tomorrow I ll be attending the Practical Erlang Programming tutorial and later this week I ll get Just Enough C for Open Source Projects So today one of the more interesting features I learned that Python supports is the concept of closures Here s a simple example from the tutorial Closures example def adder n def add m return m n return add add20 adder 20 print add20 2 should print 22 l for i in range 100 l append adder i print l 13 22 should print 35 FYI There s been some discussion surrounding a recent patch proposal to add closures and lambda functions to PHP At any rate it s good to be back at OSCON this year catching up with old friends making new friends and expanding my knowledge of open source languages By the way

    Original URL path: https://benramsey.com/blog/2008/07/oscon-2008-day-one/ (2016-04-26)
    Open archived version from archive

  • HTTP Status: Redirection, by Ben Ramsey
    302 Moved Temporarily However 302 became misused and abused by user agents that didn t follow the spec which stated If the 302 status code is received in response to a request using the POST method the user agent must not automatically redirect the request unless it can be confirmed by the user since this might change the conditions under which the request was issued Instead user agents would often simply use a GET request on the value of the Location header redirecting the user without warning Take a moment now to think about this Why would the user agent send a GET request for the value of the Location header without asking the user if it s okay Because the user agent thinks it s safe to do so Remember my earlier rant Nevertheless the user agents weren t supposed to be behaving this way but developers used 302 Moved Temporarily as the common method for redirecting after POST actions and following the spec would make for a cumbersome user experience especially if I had to approve every single redirect that occurs after I POST something This actually happens on mobile browsers quite frequently since the mobile browser on my phone at least a RAZR properly implements the expected behavior thus making a crappy experience for me So to rectify the situation HTTP 1 1 introduced 303 See Other and then later 307 Temporary Redirect changing the meaning of 302 to Found The 303 See Other status code unambiguously states that the value of the Location header SHOULD be retrieved using a GET method and that the new URI is not a substitute reference for the originally requested resource That is if the user agent originally used POST to send data then the server can tell the user agent

    Original URL path: https://benramsey.com/blog/2008/07/http-status-redirection/ (2016-04-26)
    Open archived version from archive

  • DCPHP 2008 Slides, by Ben Ramsey
    Atom Web Services The Web is transforming into a platform for distributed applications Rich clients connect to web services to retrieve and store data The Atom Publishing Protocol provides a common language for these services Ben Ramsey introduces AtomPub explaining how it can form the foundation of any web service for publication and distribution of data for enterprises down to small businesses View and download the slides Give Your Site a Boost With Memcache Today s high traffic websites must implement performance boosting measures that reduce data processing and reduce load on the database while increasing the speed of content delivery One such method is the use of a cache to temporarily store whole pages database recordsets large objects and sessions While many caching mechanisms exist memcached provides one of the fastest and easiest to use caching servers This talk will cover memcached and the memcache extension for PHP from setting up a memcached server to using it to provide a variety of caching solutions including the use of memcached as a session data store View and download the slides By Ben Ramsey Posted on 4 Jun 2008 php tek 2008 Wrap Up HTTP Status Redirection Tweet Vote on Hacker

    Original URL path: https://benramsey.com/blog/2008/06/dcphp-2008-slides/ (2016-04-26)
    Open archived version from archive

  • php|tek 2008 Wrap Up, by Ben Ramsey
    PHP Community project through the phpc IRC channel on Freenode and it is the members of the Community that I m so proud to see attending conferences taking initiative in organizing impromptu extra curricular events at conferences and even welcoming in new faces and new ideas The Community ranges from end users of PHP to core developers who take part in making decisions regarding the future of our beloved language At this year s php tek I saw the Community come together in an exciting way and really I think they provided a lot of the energy and enthusiasm that took us through the whole week getting even the other attendees excited about the things going on at the conference and in the greater PHP community From Christian Flickinger s homemade buttons to Damien Seguy s new batch of PHP and Oracle elePHPants to the phptek channel on Freenode to tons and tons of Twitter updates to nightly trips to Shoeless Joe s and even the conference meme of changing the name of the bar on each new tweet the Community played a large part in providing the conference with a fun and exciting atmosphere and I commend Marco Sean Paul and Arbi at php architect for allowing and even encouraging the Community to involve themselves in this way You guys truly rock The Community members who attend are really the unsung heroes of the conference in my opinion They aren t necessarily speakers though some are They aren t the PHP thought leaders again some are Their companies don t often pay their way to conferences They make do however they can by organizing road trips sharing rooms etc so that they can attend the conferences I think this creates even more camaraderie and a closer bond between Community

    Original URL path: https://benramsey.com/blog/2008/05/phptek-2008-wrap-up/ (2016-04-26)
    Open archived version from archive

  • HTTP Status: 204 No Content and 205 Reset Content, by Ben Ramsey
    view This means that if I have an HTML form and submit it then if the server returns a 204 status code the browser should not refresh the form or take me to another page The document view does not change and I remain at the form All of the data I entered remains unchanged All browsers I tested support this but in practice it is not very useful since there s no indication to a user that anything happened on the server side However consider the use of 204 No Content in an Ajax application If the Ajax library used simply looks for a success message of 204 in response to the requests it sends then it can present a success message to the user without changing any of the UI elements as this response intends This is also useful because the service doesn t need to send back any data it needs only tell the client that the request was successful On the other hand with a 205 Reset Content response the intent is to tell the client to clear the content from the form or to refresh the UI That is I could fill out a form click the submit button and the form I am currently working on would refresh to its default values if the client receives a 205 response According to the HTTP spec a 205 response means The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent This response is primarily intended to allow input for actions to take place via user input followed by a clearing of the form in which the input is given so that the user can easily initiate another input action The problem is that I

    Original URL path: https://benramsey.com/blog/2008/05/http-status-204-no-content-and-205-reset-content/ (2016-04-26)
    Open archived version from archive

  • HTTP Status: 201 Created vs. 202 Accepted, by Ben Ramsey
    general this is a good practice though most of us find ourselves returning the standard 200 OK code Using 200 OK is still acceptable though I ll have more to say on that in a future post However I ran into a problem when I realized that the resource itself does not yet exist nor might it ever exist it all depends on our business rules which require various processes to occur before we publish the content So the 201 Created response is misleading to the client because nothing has been created yet and the representation of the resource is inaccurate since the resource does not yet exist The resource is really in a pending state Enter the 202 Accepted status code I decided to use the 202 Accepted status code as the more proper response to these types of requests 202 Accepted means that the service successfully accepted the request and there are as of yet no problems with it i e no immediate data validation problems but it can t create the resource until it does further processing This response does not promise that the resource will be created though So it s perfect for pending requests since a pending request could be rejected while it s being processed The HTTP spec says that a 202 Accepted response SHOULD include an indication of the request s current status To this end for our service I have it return an Atom Entry Document with content that describes what s going on i e the request succeeded but requires further processing before it can be published It may also be beneficial to clients to include a Location header with a URI that can be used later to check on the status of the request When the client checks the status

    Original URL path: https://benramsey.com/blog/2008/04/http-status-201-created-vs-202-accepted/ (2016-04-26)
    Open archived version from archive



  •