nextwebgen.com

The Next Generation Web Now

JSON Pickle: Serialize your complex Python objects to JSON

Filed under: Uncategorized — Dion Almaer at 7:50 am on Thursday, July 31, 2008

John Paulett wanted to be able to define complex Python model objects, then seamlessly pass them into CouchDB and to client-side Javascript.

To make this happen for objects that are beyond primitive sets he created JSON Pickle which has been used on the Universal Feed Parser, and lets you do the following:

PYTHON:

  1.  
  2. >>> import jsonpickle
  3. >>> from jsonpickle.tests.classes import Thing
  4.  
  5. # Create an object.
  6. >>> obj = Thing(‘A String’)
  7. >>> print obj.name
  8. A String
  9.  
  10. # Use jsonpickle to transform the object into a JSON string.
  11. >>> pickled = jsonpickle.dumps(obj)
  12. >>> print pickled
  13. {“child”: null, “classname__”: “Thing”, “name”: “A String”, “classmodule__”: “jsonpickle.tests.classes”}
  14.  
  15. # Use jsonpickle to recreate a Python object from a JSON string
  16. >>> unpickled = jsonpickle.loads(pickled)
  17. >>> print unpickled.name
  18. A String
  19.  

Adobe AMF Support in Zend Framework

Filed under: Uncategorized — Dion Almaer at 7:43 am on Thursday, July 31, 2008

Andi Gutmans of Zend has posted on a proposal for AMF support in the Zend Framework, which is being lead by the AMFPHP project leader, Wade Arnold.

This ZF component will allow for client-side applications built with Flex and Adobe AIR to communicate easily and efficiently with PHP on the server-side.

We are excited about this proposal as it is consistent with our emphasis to be a heterogeneous “use-at-will” framework and as it substantially strengthens Zend Framework’s RIA story. It is also another industry heavyweight joining as an official ZF contributor and joining the likes of IBM, Google and Microsoft in doing so.

Now that we have the Dojo integration ready for ZF 1.6 as a great Ajax story, AMF will complement that with more of an Enterprise oriented solution. We are currently planning to have AMF support aligned with the ZF 1.7 release but we will know better once the proposal has made it through the proposal process.

The proposal itself is here and its overview is:

Zend_Amf_Server provides Action Message Format (AMF3) support for the Zend Framework that is compatible with the Flash Player 9 and above. The Adobe Integrated Runtime (AIR) and Flash Player uses AMF to communicate between an application and a remote server. AMF encodes remote procedure calls (RPC) into a compact binary representation that can be transferred over HTTP/HTTPS protocol. Objects and data values are serialized into this binary format, which increases performance as the AMF serialization is a highly optimized procedure in the Flash Player. Zend_Amf_Server will act as an AMF gateway to the Zend Framework by exposing through introspection custom class objects and functions that will respond as callbacks through the Zend_Amf_Server gateway.

Go to Ajax clash for £10 – Sunderland Echo

Filed under: Uncategorized — Ajax - Google News at 6:47 am on Thursday, July 31, 2008
Go to Ajax clash for £10
Sunderland Echo, UK - 2 hours ago
Sunderland season ticket holders (including Black Cats Bar members) can get into the Ajax game for £10 if they buy before close of business on Saturday

Ajax in rude health both on and off the field – Independent Online

Filed under: Uncategorized — Ajax - Google News at 6:21 am on Thursday, July 31, 2008
Ajax in rude health both on and off the field
Independent Online, South Africa - 14 hours ago
By Sabelo Skiti After finishing a close second to SuperSport United at the end of last term, Ajax Cape Town are already well prepared for the new season,
Comitis: Ajax will be competitive Football365.co.za
Ajax's goal for 2008/9 Independent Online
all 5 news articles

Ajax in rude health both on and off the field – Independent Online

Filed under: Uncategorized — Ajax - Google News at 6:21 am on Thursday, July 31, 2008
Ajax in rude health both on and off the field
Independent Online, South Africa - 12 hours ago
By Sabelo Skiti After finishing a close second to SuperSport United at the end of last term, Ajax Cape Town are already well prepared for the new season,

No Browser Left Behind… without Canvas

Filed under: Uncategorized — Dion Almaer at 2:00 am on Thursday, July 31, 2008

Vladimir Vuki?evi? normally hacks on Mozilla products, but spent a little time on an experiment with IE. An experiment that looks very exciting indeed.

I love canvas, and wish that it was ubiquitous. We have great wrappers out there such as dojo.gfx, but wouldn’t it be nice if canvas worked everywhere? (and the full API to boot).

Well, Vladimir has an experiment to get it to IE. The approach is very interesting indeed. It isn’t like excanvas which uses VML… and there is a Silverlight bridge being worked on that looks promising. Instead, we have this:

I’ve been working on a native Canvas implementation for IE based on the same rendering core that’s in Firefox.

The same implementation, shoe horned into IE:

With an object tag, a bit of CSS, and (to work around another IE bug) a single line of script, <canvas> elements in HTML just work. I’m excited that this experiment is working out, because lack of Canvas support in IE is one of the reasons people skip Canvas and instead turn to Flash and other plugin technologies.
</canvas>

Congrats on a great hack, and here’s to you making it much much more.

Ajax's goal for 2008/9 – Independent Online

Filed under: Uncategorized — Ajax - Google News at 1:15 am on Thursday, July 31, 2008
Ajax's goal for 2008/9
Independent Online, South Africa - Jul 30, 2008
Last season's Absa Premiership runners-up Ajax Cape Town have been busy in the transfer market as they hope to go one better and claim the title for the
Comitis: Ajax will be competitive Football365.co.za
Overseas drain on Bafana stars News24
Moon joins Panathinaikos iAfrica.com
all 20 news articles

Ajax's goal for 2008/9 – Independent Online

Filed under: Uncategorized — Ajax - Google News at 1:15 am on Thursday, July 31, 2008
Ajax's goal for 2008/9
Independent Online, South Africa - 16 hours ago
Last season's Absa Premiership runners-up Ajax Cape Town have been busy in the transfer market as they hope to go one better and claim the title for the

« Previous PageNext Page »