|
| 07-30-09 / 10:33 PM : iPhone hurts Nintendo and Microsoft (cjed) | While Apple's stock is growing at a very high rate, we learn that iPhone's sales hurt Nintendo (66 percent less benefit over a year), with no impact from PSP competition. In the extent Zune sales were so bad that Microsoft Entertainment's division revenues fall by 42 percent (that is globally, after compensation by Xbox sales). The Zune HD is expected in September. | Post a comment | 07-22-09 / 11:01 PM : Apple valued more than Google (cjed) | After having announced record results (with a gross margin of 36 percents), Apple's value now exceeds Google's one (140 billions $ vs 135). We are waiting for next generation of Intel processors that will bring the new AVX vector engine, in order to finally get the audio (and video) processing power that have still been provided by Motorola G4's Altivec for 10 years. I was present at its launch during the 1999 keynote at Paris's Palais des Sports (Apple and Bungie also unveiled during the show the first video of Halo... that was planned for mac only - that was before Microsoft acquired Bungie) ! | Post a comment | 07-22-09 / 12:31 AM : Access Control for Cross-Site Requests (cjed) | On theMozilla site we can find an article about support for Access Control for Cross-Site Requests in Firefox 3.5. This recommandation submitted to W3C allows to circumvent the same orgin policy limitation in a secure way, in order to provide cross-domain access using XMLHttpRequest (then no need for JSONP). The principle is to specify, through new headers, the origin for client requests, and allowed origins in server's responses (requires an additional initial request, managed automatically by Firefox, in the same way as with native browser digest authentication - the unique XMLHttpRequest object is reused automatically by the browser to send the original data once access rights are checked). It also allows to manage cookies (unavailable using JSONP). | Post a comment | 07-18-09 / 06:22 PM : WebKit CSS 3D Transforms & Leopard/Flash demise ? (cjed) | We can discover on the WebKit site a new demo that features CSS 3D Transforms : Poster Circles. We could also see Snow Stack demo at satine.org, and Animated CSS3 Cube at fofronline.com. The CSS 3D Transforms have been available on the iPhone WebKit since iPhone OS 2.0 (hardware accelerated), and more recently on the Snow Leopard WebKit. Now this feature is available also on the latest WebKit nightly builds for Leopard (still not present in Safari 4 - previously only CSS 2D Transforms were provided). Apple submitted this CSS extension to W3C (contrary to Microsoft whose Silverlight features are closed, and Adobe whose container is even more proprietary and opaque).
This year, enhancements in Apple's WebKit (also promoted by Google - used in Chrome) - CSS Effects and recently WebSockets -, HTML5 (audio and video tags, javascript database, application cache, subprocesses), and Mozilla's Canvas (Canvas 3D JS Libary) - and Google's O3D, seem to indicate the upcoming demise of Flash (and of Silverlight probably shortly thereafter). Flash will then never be available on iPhone, even considering Adobe may decide this time (because has no other choice) to bring an optimized Flash version (performances of Flash are really bad on MacOSX, and not that great on Windows). In Snow Leopard we can now see Safari subprocesses (created by plugins) and see how much CPU Flash uses (too much, even on Windows). | Post a comment | 07-14-09 / 11:09 PM : CP2JavaWS 0.8 : Direct2CP Master/Detail View (cjed) | A new version of CP2JavaWS is available. Besides enhancements for CPTableViewDelegate and bug fixes, it brings a Direct2CP mode (Direct2Java like for CP client), that allows to display a Master/Detail view, by simply providing the CP elements class name (and additional selection criteria for the master table if needed) :
- refactored the request management (mode switch, CPURLConnection/CPJSONP creation, delegate and auth. delegate creation, encoding and decoding) in a new class, CP2JavaWSHttpSender, as it is used by both CPRemoteService and CP2JavaWSTableViewDelegate.
- the CP2JavaWSHttpSender allows to specify if call arguments have to be encoded (CP to js conversion before js to JSON), and if result has to be decoded (js to CP after JSON to js).
- For remote service methods that have generic argument types (Object), we can now pass to the CP2JavaWSHttpSender an array of generic parameters indexes (required as on the Java server side we then cannot discover the generic Object type from the passed parameter value).
- reponses with error code didn't trigger anymore the failHandler since CPURConnection doesn't check anymore for error codes (in order to allow to perform action depending on the error code).
- fixed a problem in Decoder, where empty Date on JS object was setted as undefined on the CP object instead of null, and where JS boolean fields with false value where treated as unset.
- CP2JavaWSTableViewDelegate can now be used in two modes : in the first mode the full CP objects are returned for each requested row (slower but we then still have the full object if we select it for editing in the detail view - then no need for additional read request).
In the second mode the return (for a row) is a tab of values (each value is the final attribute corresponding to the specified attribute path - setted as the column's id), that is faster (attributes paths are passed to the select HQL request - faster than a select *, and no decoding occurs on the client side - result encoding to JSON on the server side is also faster) but requires an additional read for editing. In both cases the displayed values correspond to the columns' ids, and can be nested attributes paths.
- a new object, CP2JavaWSMasterDetailView allows to display and manage automatically a Master/Detail view for a specified CP business class (sort of a Direct2CP, that uses CP2JavaWSTableViewDelegate). We can specify specific attributes paths to display in the master view (tableView), as we may want to display only a few of those (and the whole attributes values in the detail view). If not precised, the master view will display a column for each attribute (the elements CP class ivars are introspected recursively - so we get a column for each nested CP object's attributes).
endPoint1 = [CP2JavaWSEndPoint createForURL:"http://host/appName/endpointName"];
var masterDetailView = [CP2JavaWSMasterDetailView createForEndPoint:endPoint1 elementsClassName:"MyCustomClass" idAttName:"customerId" masterAttributes:["customerId", "name", "age"] criterias:nil rect:CGRectMake(x, y, w, h)];
Depending on the attribute type (string/integer, boolean, date) the detail view adds a CPTextField, CPCheckBox, etc. To use combo lists for some attributes values editing, a next update will allow to specify RemoteValuesListDescriptors, that will store the endpoint (if different) and remote services (if many) that return the corresponding combo lists values.
By clicking on a row in the master view (tableView), the detail view fields are automatically filled. The detail view contains a Modify button, that automatically calls the generic RemoteDAOService to update the object.
We can pass a custom detail view if needed (that will have to implement some delegate methods to fill the editing fields, and use the provided DetailViewDelegate for changes submission).
Note : the Objective-J/preprocess.js (or Frameworks/Objective-J/Objective-J.js) has to be modified using the provided file changes in order to manage ivar types (required for the new MasterDetail view). | Post a comment | 07-11-09 / 12:40 AM : Snow Leopard even faster (cjed) | The latest Snow Leopard beta provides an overall more responsive experience, and brings a new looking for dock menus, now closer to the style introduced by the new QuickTime X player. The install only weights 1,3 Gb. We can expect an impressive comparative bench in October between Snow Leopard and next Windows (that finally brings really few and cannot even compare with MacOSX 10.2 enhancements back to 2002 !). | Post a comment | 07-08-09 / 12:28 AM : Cappuccino 0.7.1 available (cjed) | After 4 release candidates, the 0.7.1 version of Cappuccino has been released. We can read details here. Beside the new Segmented control we could find the Circular slider. | Post a comment |
|