André Bargull | 1 May 01:24 2010

[Laszlo-reviews] For Review: Change 20100501-bargull-k2W Summary: fix for flex array literal vs. meta data bug

Change 20100501-bargull-k2W by bargull <at> Bargull02 on 2010-05-01 00:42:11
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix for flex array literal vs. meta data bug

New Features:

Bugs Fixed: LPP-8891 (SWF9: don't remove parenthesis around brackets or 
add them automatically)

Technical Reviewer: ptw
QA Reviewer: henry
Doc Reviewer: (pending)

Documentation:

Release Notes:

Overview:

Details:
The ActionScript3 grammar does not follow the ECMAScript grammar for 
MemberExpressions, namely the MemberExpression for property access must 
not be an ArrayLiteral, cf. section 11.2 "Left-Hand-Side Expressions" 
ECMAScript 3rd/5th edition. This restriction was added to ActionScript3 
due to their MetaData support, e.g. [Embed(source="...")].
This change adds the required parenthesis around array literals for 
property access.

(Continue reading)

André Bargull | 1 May 03:03 2010

[Laszlo-reviews] For Review: Change 20100501-bargull-n8L Summary: update browser integration chapter

Change 20100501-bargull-n8L by bargull <at> Bargull02 on 2010-05-01 02:29:55
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: update browser integration chapter

New Features:

Bugs Fixed: LPP-7959 (DGuide: "Chapter 35. Browser Integration" has 
stale bits)

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: max

Documentation:

Release Notes:

Overview:
Update for browser integration chapter so it's up-to-date again

Details:
- changed swfEmbed/dhtmlEmbed to lz.embed.swf/lz.embed.dhtml
- changed {set,get}CanvasAttribute to 
lz.embed['lzapp'].{get,set}CanvasAttribute
- "lz Class" updated to "lz.embed"
- all examples were aligned to the left and re-indented for better 
readability
- removed programlisting in flash player detection section from output 
(Continue reading)

Max Carlson | 1 May 06:10 2010

[Laszlo-reviews] For Review: Change 20100430-maxcarlson-O Summary: Add support for touch devices

Change 20100430-maxcarlson-O by maxcarlson <at> Friendly.local on 2010-04-30 18:15:26 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add support for touch devices

Bugs Fixed: LPP-8904 - Support touch and gesture events

Technical Reviewer: ptw
QA Reviewer: hminsky

Details: LzSprite - Add touchevents capability, set to true for iphone/android.  Reorganize
__setClickable() to register/unregister for touchstart/move/end events when
capabilities.touchevents is true, clean up IE-specific event registration.  __mouseEvent() sends
onmousedown/over/up/out/click events for touchevents.

LzMouseKernel - When touchevents is true, listen for global touchend events, and look at the position of
the first finger to find the global mouse position.

embednew - Add iPad and Android browser detection, set appropriate default flags.  Shorten lookups,
simplify getAbsolutePosition() for Safari.

Tests: LzPix dhtml now allows dragging on iPad, iPhone, Android and runs as before in Safari and other browsers.

Files:
M       WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M       WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js
M       lps/includes/source/embednew.js

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100430-maxcarlson-O.tar
(Continue reading)

Max Carlson | 1 May 06:12 2010

Re: [Laszlo-reviews] For Review: Change 20100501-bargull-kOZ Summary: reference clean up task - part 1 of n

Approved!

Regards,
Max Carlson
OpenLaszlo.org

On 4/30/10 3:11 PM, André Bargull wrote:
> Change 20100501-bargull-kOZ by bargull <at> Bargull02 on 2010-05-01 00:04:55
> in /home/anba/src/svn/openlaszlo/trunk
> for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: reference clean up task - part 1 of n
>
> Bugs Fixed: LPP-8956 (Reference: Clean up task for various reference pages)
>
> Doc Reviewer: max
>
> Details:
> import.html (langref.xml):
> - superclass is LzNode, not LzView
>
> lz.splash+as2.html (langref.xml):
> - javascript example needs to be updated to use lz.embed
> - example doesn't work for height=100, but works for height=120 (splash
> limitation on canvas height?)
> - change <lzxtype> from xml-schema to proper lzxtype (that means
> "xsd:boolean" => "boolean")
>
> lz.splash_view.html (langref.xml):
> - change <lzxtype> from xml-schema to proper lzxtype
(Continue reading)

Henry Minsky | 2 May 00:42 2010
Picon

hey, you can generate a PNG/JPEG from the canvas object in DHTML

I was just reading through the HTML5 spec <canvas>, and found out that you can ask a canvas object to return it's
content as a PNG or JPEG file. I see that it returns it in Firefox as a base64 encoded string.

There might be some use for this, though I can't think of what right now. Maybe this allows
you to write a simple photoshop-like bitmap editor app and then capture the bitmap and send it back to the server, for example.




--
Henry Minsky
Software Architect
hminsky <at> laszlosystems.com


Max Carlson | 2 May 04:22 2010

Re: hey, you can generate a PNG/JPEG from the canvas object in DHTML

It would be nice to expose the pixel manipulation APIs as well:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#pixel-manipulation

Regards,
Max Carlson
OpenLaszlo.org

On 5/1/10 3:42 PM, Henry Minsky wrote:
> I was just reading through the HTML5 spec <canvas>, and found out that
> you can ask a canvas object to return it's
> content as a PNG or JPEG file. I see that it returns it in Firefox as a
> base64 encoded string.
>
> There might be some use for this, though I can't think of what right
> now. Maybe this allows
> you to write a simple photoshop-like bitmap editor app and then capture
> the bitmap and send it back to the server, for example.
>
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky <at> laszlosystems.com <mailto:hminsky <at> laszlosystems.com>
>
>

André Bargull | 3 May 12:04 2010

[Laszlo-reviews] For Review: Change 20100503-bargull-hMw Summary: make cookie example static

Change 20100503-bargull-hMw by bargull <at> Bargull02 on 2010-05-03 11:58:07
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: make cookie example static

Bugs Fixed: LPP-7205 (Cookies example doesn't appear to set any kind of 
cookie.)

Doc Reviewer: hqm

Details:
The cookie example relies on a jsp which sets and retrieves cookies, but 
this jsp was removed in r3351 by Jim due to security concerns.
That means the example won't work as a live-example, therefore the 
role="live-example" attribute should be removed.
Also removed the other role="live-example" attributes in cookies.dbk, 
because they don't make any sense.

Tests:
ant developers
verify example is no longer 'live'

Files:
M docs/src/developers/cookies.dbk

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20100503-bargull-hMw.tar

Henry Minsky | 3 May 16:57 2010
Picon

Re: [Laszlo-reviews] For Review: Change 20100501-bargull-k2W Summary: fix for flex array literal vs. meta data bug

approved

note: this code runs properly

      [1,2].forEach(function(a:*) {Debug.write(a)});

But if I add a 'void' return type declaration for the anon function, it gets an error
at runtime

      [1,2].forEach(function(a:*) : void {Debug.write(a)});


ERROR <at> hello.lzx≈4: ArgumentError: Error #1063: Argument count mismatch on <anonymous>(). Expected 1, got 3.



On Fri, Apr 30, 2010 at 7:24 PM, André Bargull <andre.bargull <at> udo.edu> wrote:
Change 20100501-bargull-k2W by bargull <at> Bargull02 on 2010-05-01 00:42:11
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix for flex array literal vs. meta data bug

New Features:

Bugs Fixed: LPP-8891 (SWF9: don't remove parenthesis around brackets or add them automatically)

Technical Reviewer: ptw
QA Reviewer: henry
Doc Reviewer: (pending)

Documentation:

Release Notes:

Overview:


Details:
The ActionScript3 grammar does not follow the ECMAScript grammar for MemberExpressions, namely the MemberExpression for property access must not be an ArrayLiteral, cf. section 11.2 "Left-Hand-Side Expressions" ECMAScript 3rd/5th edition. This restriction was added to ActionScript3 due to their MetaData support, e.g. [Embed(source="...")].
This change adds the required parenthesis around array literals for property access.


Tests:
[].forEach(function(...rest){}) works in swf9+

Files:
M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9ParseTreePrinter.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100501-bargull-k2W.tar




--
Henry Minsky
Software Architect
hminsky <at> laszlosystems.com


André Bargull | 3 May 18:35 2010

Re: [Laszlo-reviews] For Review: Change 20100501-bargull-k2W Summary: fix for flex array literal vs. meta data bug


On 5/3/2010 4:57 PM, Henry Minsky wrote:
> approved
>
> note: this code runs properly
>
>        [1,2].forEach(function(a:*) {Debug.write(a)});
>
> But if I add a 'void' return type declaration for the anon function, it
> gets an error
> at runtime
>
>        [1,2].forEach(function(a:*) : void {Debug.write(a)});
>
>
> ERROR  <at> hello.lzx≈4: ArgumentError: Error #1063: Argument count mismatch
> on <anonymous>(). Expected 1, got 3.

Yeah, I've also hit this issue from time to time. Somehow adding the 
return-type changes Flex to be more strict, that means you need to 
define all parameters:

[1,2].forEach(function(item:*, index:int, array:Array) :void 
{Debug.write(item)});

>
>
>
> On Fri, Apr 30, 2010 at 7:24 PM, André Bargull <andre.bargull <at> udo.edu
> <mailto:andre.bargull <at> udo.edu>> wrote:
>
>     Change 20100501-bargull-k2W by bargull <at> Bargull02 on 2010-05-01 00:42:11
>     in /home/anba/src/svn/openlaszlo/trunk
>     for http://svn.openlaszlo.org/openlaszlo/trunk
>
>     Summary: fix for flex array literal vs. meta data bug
>
>     New Features:
>
>     Bugs Fixed: LPP-8891 (SWF9: don't remove parenthesis around brackets
>     or add them automatically)
>
>     Technical Reviewer: ptw
>     QA Reviewer: henry
>     Doc Reviewer: (pending)
>
>     Documentation:
>
>     Release Notes:
>
>     Overview:
>
>
>     Details:
>     The ActionScript3 grammar does not follow the ECMAScript grammar for
>     MemberExpressions, namely the MemberExpression for property access
>     must not be an ArrayLiteral, cf. section 11.2 "Left-Hand-Side
>     Expressions" ECMAScript 3rd/5th edition. This restriction was added
>     to ActionScript3 due to their MetaData support, e.g.
>     [Embed(source="...")].
>     This change adds the required parenthesis around array literals for
>     property access.
>
>
>     Tests:
>     [].forEach(function(...rest){}) works in swf9+
>
>     Files:
>     M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9ParseTreePrinter.java
>
>     Changeset:
>     http://svn.openlaszlo.org/openlaszlo/patches/20100501-bargull-k2W.tar
>
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky <at> laszlosystems.com <mailto:hminsky <at> laszlosystems.com>
>
>

Brian Hartman | 3 May 21:53 2010
Picon

Problem running lzc in Ubuntu 9.10

Hi, Everyone.

I have 4.7.2 running.  I've confirmed that Tomcat is running on my system, but when I try to compile a project with lzc, I get the following error:

./lzc: line 24: /home/bhartman/lps-4.7.2/bin/./../Server/tomcat-5.0.24/work/LPS/localhost/lps-4.7.2/WEB-INF/lps/server/bin/lzenv: No such file or directory
Exception in thread "main" java.lang.NoClassDefFoundError: org/openlaszlo/compiler/Main
Caused by: java.lang.ClassNotFoundException: org.openlaszlo.compiler.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.openlaszlo.compiler.Main.  Program will exit.

I've set my variables as follows:

JAVA_HOME = /usr/lib/jvm/java-6-sun
LPS_HOME = /home/bhartman/lps-4.7.2/

Starting up Tomcat works fine, and I can view the example applications without a problem.  I just can't compile an application.

Any help would be greatly appreciated!

Thanks

--
Brian Hartman
http://brianswebpagehome.com
http://24hourforums.com
http://www.texttospeechnow.com
http://www.doggie-shirts.com


Gmane