Thursday, July 3, 2008

webtoolkit

After putting an enormous effort in porting the boost/wt I gave up because I found a better way to reach my rich client interface. There were still undefined errors on some functions even after a new buildroot. I posted two avrfreaks topics but as most of the time they face out and are doomed to die after introducing detailed problems or even things that are "too simple" for certain individuals or once you get off the front forum list page:

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=65818

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=65743

Instead of spending hours of iterating trying to find the buildroot problems JavaScript is the one to go for if you want to redirect and lighten the burden on the server site. I bought two books on the subject:

- JavaScript: The Definitive Guide, 5th Edition (David Flanagan)

Need to learn JavaScript fast? This best-selling reference’s visual format and step-by-step, task-based instructions will have you up and running with JavaScript in no time. In this completely updated edition of our best-selling guide to JavaScript, leading Web and computing experts Tom Negrino and Dori Smith use crystal-clear instructions and friendly prose to introduce you to all of today's JavaScript essentials. Along the way, you'll find extensive coverage of Ajax and XML techniques, current browsers (Opera, Safari, Firefox), and more.

- JavaScript and Ajax for the Web, 6th Edition: Visual QuickStart Guide (Tom Negrino, Dori Smith)

Two brand-new chapters explain the cornerstones of the Ajax application architecture: scripted HTTP and XML processing. Another new chapter shows how to draw client-side graphics using the tag and other cutting-edge technologies. Yet another new chapter explains the use of namespaces in JavaScript: essential when writing complex programs, rather than simple scripts. This edition also includes new material on classes, closures, persistence, Flash, and JavaScript embedded in Java applications.
As always, JavaScript: The Definitive Guide is both a complete programmer's guide and a keep-on-your-desk reference manual. Part I explains the core JavaScript language in intimate detail. If you are new to JavaScript, it will teach you the language. If you are already a JavaScript programmer, Part I will sharpen your skills and deepen your understanding of the language.
Part II explains the scripting environment provided by web browsers, with a focus on DOM scripting with unobtrusive JavaScript. The broad and deep coverage of client-side JavaScript is illustrated with many sophisticated examples that demonstrate how to:Generate a table of contents for an HTML document :
Display DHTML animations Automate form validation Draw dynamic pie charts Make HTML elements draggable Define keyboard shortcuts for web applications Create Ajax-enabled tooltips Use XPath and XSLT on XML documents loaded with Ajax And much more...
Part III is a complete reference for core JavaScript. It documents every class, object, constructor, method, function, property, and constant defined by JavaScript 1.5 and ECMAScript version 3. Part IV is a reference for client-side JavaScript, covering legacy web browser APIs, the standard Level 2 DOM API, and emerging standards such as the XMLHttpRequest object and the tag.
About the AuthorDavid Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology.

These are to ones I'm going to read during the summer period and of course practice a bit the language spec. So in fact the user interface can now be served by PHP as cgi and JavaScript as the client site enrichment. Nice I would say.

I tested yesterday my i2c shared object that will contain all i2c functionality internally divided in following structure:


- general
- board specific
- pca specific
- dac specific


Tests are going well. I saw that one of the leds acted some kind unstable but it's now back ok. And also the fact of missing a one of the inputs. This must have some further investigation. But normally the library itself proceeds very well. I introduced the _fini/_init load and unload functions to trigger those actions. Strange thing was the whenever my test executable starts and load the SO lib I get a unload event first. This is kind strange though because there's no other process that uses this lib. I check on it with strace.

No comments: