Successful test

Bringing your stacks to the web

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

bogs
Posts: 2761
Joined: Sat Feb 25, 2017 10:45 pm

Re: Successful test

Post by bogs » Thu Dec 27, 2018 3:21 pm

Huh, I never noticed that before. Why, at that rate, I should catch up to Klaus around the next millenia :twisted:
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1905
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Successful test

Post by [-hh] » Thu Dec 27, 2018 3:46 pm

Klaus has currently 10494 posts and a rate of 2.26 posts per day,
you have currently 2446 posts and a rate of 3.65 posts per day.

So there are in x days approximately
    10494+2.26*x (Klaus) and 2446+3.65*x (bogs).
posts.


Thus x is round((10494-2446)/(3.65-2.26)) = 5790 days when your "post-lines" overcross.

Now

Code: Select all

put the internet date into d
convert d to dateItems
add 5790 to item 3 of d
convert d to internet date
yields Fri, 3 Nov 2034 at current time as the date you and Klaus have approximately the same number of posts (= 23579 posts).
shiftLock happens

bogs
Posts: 2761
Joined: Sat Feb 25, 2017 10:45 pm

Re: Successful test

Post by bogs » Thu Dec 27, 2018 5:47 pm

While the above is true, there is one factor missing from the equation, i.e. Klaus moves up in IDEs as they come out, where as (for now, anyhow) I am unlikely to move past version 7.x for the forseeable future (at least for creating standalones).

The effect this has on decaying my post rate, since most replies I make (aside from friendly ones like these last 4 with people I just enjoy talking to like you) are to assist in problem solving, or are explanatory in nature (linux installs or related, etc), will become greater the farther out from this point we proceed, and has already shown to have had a decaying rate from my previous posting rate some half year ago.

It would be a hard number to quantify (although I suspect you would be able to do it better than I would :wink: ), but it is there nonetheless. Klaus's posting rates after all the time I have looked into (which include the old Mc mailing list, now archived) remain relatively stable, so I could quite possibly require the extra 966 years to catch up (if I make it at all) once that rate of decay becomes a factor and I am reduced to being a 'feeling' on the boards, vaguely felt and barely perceived :mrgreen:

But it should still be a great New Year!
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1905
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Successful test

Post by [-hh] » Fri Dec 28, 2018 5:39 am

JIGSAW PUZZLE 2d-video v_100

JigsawPuzzle2d-video is a HTML5 standalone that demoes what LC is able to do.
I have seen such "live" computed puzzle pieces until now only in specialized
native apps.

Images.
You can choose a built-in image or import a local one into the standalone.
Moreover choose the base width for the pieces and whether to rotate the
pieces. The base width determines the number of pieces. If for example the
image has size 480x360 then a square width of 60 yields 8x6 = 48 pieces.
As a help you can be notified (the image will be inverted) whenever you are
very close to the correct location.

Videos.
As above but without importing, use one of the nine built-in looping videos.
The segmenting of the video frames is done with canvas methods in javascript.
This will stress your CPU/GPU! It runs at about ten times faster in
the IDE with a browser widget, but sadly this is memory-leaking (5 MBytes
per second). The HTML5 standalone runs at about two times faster in Safari
than Firefox or Chrome/Opera. Reduce the number of pieces if you have less
than 2-3 frames per second.

Technique used: The pieces are live in LC computed polygon graphics of linear
and cubic bezier curves.

They are filled with backpattern-images from portions of the whole imagedata.
Only this last imagedata part is for the videos "outsourced" to javascript.

A pure LC version of the technique used is available in "Sample stacks".
( Or http://livecodeshare.runrev.com/stack/816/Jigsaw-Puzzle )
This has images only but is even fast enough for the slowest Raspi.

Test (and download the source and the calling HTML page (contains short but
important javascripts) from
(US) http://hh.on-rev.com/html5/jigsawPuzzle ... .2hhX.html
or
(EU) http://hyperhh.de/html5/jigsawPuzzle2d- ... .2hhX.html

[For the stack source replace "hhX.html" by ".zip" (5.4 MByte)]
Attachments
jigsawPuzzle2d-video.png
A video frame ...
shiftLock happens

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1905
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Successful test

Post by [-hh] » Sat Dec 29, 2018 11:43 pm

JIGSAW PUZZLE 2d-video is now updated to v_115
  • v_115: Updated images and a menu script to have the same standard in all jigsaw variants (HTML5, IDE 8/9, IDE 6/7/8/9)
  • v_105/110: Improved speed with videos a little bit.
  • v_105: The width-menu computes now all sizes from 20 up to
    144 that leave either width or height (or both) of the
    image/video unchanged (no cropping).
  • v_105:A video can now be paused while solving the puzzle.
    Then it can be continued with the current piece locations.
    (Of course, when changing piece-size while stopped, any partial solution is lost).
The links are unchanged
(US) http://hh.on-rev.com/html5/jigsawPuzzle ... .2hhX.html
or
(EU) http://hyperhh.de/html5/jigsawPuzzle2d- ... .2hhX.html
shiftLock happens

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1905
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Successful test

Post by [-hh] » Tue Jan 01, 2019 8:03 pm

Video-Fun is now updated to Video-Fun2_v100.

This is a major update of my HTML5 standalone "Video-Fun".
Finally I got all I wanted to work.

The standalone uses only "atomic" canvas2d methods of JavaScript in the browser, no JS-packages. This is made available by the javascriptHandlers of the HTML5 engine.
Moreover the standalone uses, where they are fast enough in the HTML5 engine, all the well known wonderful LC-techniques (set angle of an image, use an image as backpattern of an editable polygon graphic):

(US) http://hh.on-rev.com/html5/video-funHTML5-9.0.2hhX.html
(EU) http://hyperhh.de/html5/video-funHTML5-9.0.2hhX.html

The source code is, as usual, free for non-commercial use.
(Sadly, my idea of a developer fund died last year).

Happy New Year 2019!
shiftLock happens

bogs
Posts: 2761
Joined: Sat Feb 25, 2017 10:45 pm

Re: Successful test

Post by bogs » Tue Jan 01, 2019 10:02 pm

[-hh] wrote:
Tue Jan 01, 2019 8:03 pm
(Sadly, my idea of a developer fund died last year).
What did I miss? Link?

Happy New Year -hh :D
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1905
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Successful test

Post by [-hh] » Tue Jan 01, 2019 11:33 pm

Hi Bogs.
What did I miss? Link?
I explained that here:
http://lists.runrev.com/pipermail/use-l ... 50633.html

I wonder why you are not on the list?
http://lists.runrev.com/mailman/listinfo/use-livecode
shiftLock happens

bogs
Posts: 2761
Joined: Sat Feb 25, 2017 10:45 pm

Re: Successful test

Post by bogs » Wed Jan 02, 2019 12:05 am

[-hh] wrote:
Tue Jan 01, 2019 11:33 pm
I wonder why you are not on the list?
Shear laziness on my part, along with having to supply yet another sign in ( I just realized I am up to 3 different logins for Lc already, a new record for me! :shock: )

Maybe I can reduce the list to an rss type thing. Hmmm...

*Edit - Ah, I remember the topic your idea related to. Nice gesture there.
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1905
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Successful test

Post by [-hh] » Mon Jan 07, 2019 1:53 pm

TestInStandalone v_100

It is meanwhile comfortable to hit simply "Test" when building a standalone from scratch.
But there is nearly no documentation in the dictionary what works (or works not) in HTML5 standalones. That's why I made this tool:

This HTML5 standalone is ready for testing code snippets up to local libraries (script-only stacks).
I use it to isolate critical script parts that run in the IDE but not in the HTML5 engine.

It has a "LC-ScriptEditor" (made in the browser) with a lot of features. Especially it can access the system clipboard for copy and paste and it has code folding, colorising and indenting built-in. And it has undo/redo and find/replace.
  • You can set the script of several buttons (or use these as text containers).
  • You can insert/remove a local LC-library (script only stack) into/from back or front.
  • You can output to two fields and import images in order to work with them.
  • You can insert from a list of all LC commands, constants, functions, messages, operators, others and properties to the current cursor position of the scriptEditor.
  • You can import local images to work with them.
WARNING. Everything is done in RAM only. If you leave the page (not the tab) of the standalone or close the browser window then it's all gone...

Basic usage example.
1. Choose button "TestB" as target.
2. Type (or copy from here and paste) into the scriptEditor:

Code: Select all

on mouseEnter
   put the long time && (the keysDown) && (the shiftKey) into fld "OUT"
end mouseEnter
3. Click "SetScript" (still button "TestB" chosen as target)
4. Enter your mouse to button "TestB"

Then you see ALWAYS in fld "OUT": the time && empty && false,
that is you now know that in HTML5 standalones
= "the time" works,
= "the keysDown" reports always empty, --> missing feature
= "the shiftKey" reports always "up". --> bug

There is large help in the standalone.
The standalone has size 1800x515 and the scriptEditor can (using the escapeKey) toggle fullScreen. And right of 990x515 is only "empty working space", so that you can use the standalone even on a 1024x575 netbook screen.

(US) http://hh.on-rev.com/html5/hhTestInStan ... .2hhX.html
(EU) http://hyperhh.de/html5/hhTestInStandal ... .2hhX.html


Enjoy!
Attachments
testInStandaloneFull.png
Screenshot. Click to enlarge it.
shiftLock happens

Post Reply

Return to “HTML5”