Converting SVG in many files with a single path

2015-11-15 Thread Alejandro Tejada
Hi All,

After many days with headaches, body aches and fever,
I feel better. I survived... :-)
http://dr1.com/forums/showthread.php/152802-49-Dengue-Deaths-in-2015-Government-Implements-Plan?highlight=dengue

During my forced rest period, I had time to ponder
about how to make faster code development to
update SVGL. Consider this:
What if any SVG file (with multiple paths or figures) 
could be converted in multiple files with just 
a single path or graphic?

This svg file have 80 paths:
https://openclipart.org/detail/3859/italian-coffee-maker
Using LiveCode, How could I create 80 valid SVG files?
Thanks in advance!

Alejandro










--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Converting-SVG-in-many-files-with-a-single-path-tp4698810.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


CWE-20 - Improper Input Validation

2015-11-17 Thread Alejandro Tejada
Hi All,

I found an article with a new example of CWE-20:
Improper Input Validation
https://cwe.mitre.org/data/definitions/20.html

Check this link for your offline archives:
http://arstechnica.com/gadgets/2015/11/qantas-737-tailstrike-was-caused-by-ipad-data-entry-fail/

Brings this story, to my memory:
http://www.wired.com/2010/11/1110mars-climate-observer-report/

Alejandro
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[ANN] SVGL 2015 rev02

2015-11-23 Thread Alejandro Tejada
Hi All,

Attached to this forum message
Board indexhttp://forums.livecode.com/viewtopic.php?f=10&t=25612&p=134878#p134878
you could find a very small update 
of SVGL (Not SVGL + Gradients).

Please test this new updated version of 
SVGL 2015 rev 02, first importing 
all 4 svg files included inside the folder. 
After this, import any other svg that
you download from OpenClipart.org 
or exported from your graphic application.

In this small update for version 02, 
1) scientific notation numbers inside paths 
are converted to floating-points numbers 
using: format("%f",tNumber)

2) A resizestack script was included too, 
for both stacks: Import and SVGL.

3) Original SVG drawing "Tiger.svg" is 
included again inside field "commands" 
of stack SVGL. Just click the button Draw!
to draw this impressive artwork.

Later I will documents these and previous
changes and additions, so anyone
could keep updating SVGL. :-)

Again, many thanks for keeping alive 
your interest in this topic!

Have a nice day!

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-SVGL-2015-rev02-tp4698971.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] SVGL 2015 rev02

2015-11-23 Thread Alejandro Tejada
I forgot to include this really important information:
You could download Original SVGL from
http://livecodeshare.runrev.com/stack/112/SVGL

This stack SVGL 2015 rev02 is just an updated version of 
Ian McPhail's stack SVGL. As explained by Mark Waddingham:

"Actually, the first task I set Ian (one of our engineers) to do when 
he first joined was to first write something which converted a 
simple language I had designed ('SVGL') into vector graphic objects; 
and then write an SVG -> SVGL converter."
http://lists.runrev.com/pipermail/use-livecode/2015-October/220199.html

In another message thread, Mark Waddingham explained really well 
the issues of importing and displaying SVG:
http://lists.runrev.com/pipermail/use-livecode/2015-October/220198.html

Please, notice the following: 
Livecode vector graphics only use integers (1,2,3,4,5...) 
for displaying graphics strokes (borders). This limitation 
could be a barrier to import and display faithfully many 
professional illustrations created or exported to SVG format. 

A better option will be available for LC8 developers 
using the widget architecture that could render an 
exact display of imported SVG but for all LC7 users 
and developers, SVGL is still is our best choice.

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-SVGL-2015-rev02-tp4698971p4698972.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] SVGL 2015 rev02

2015-11-24 Thread Alejandro Tejada
Hi Richmond,

[quote]Unfortunately with your
"SVGL_plus_Gradients_ALPHA1_Inkscape_SVG.livecode"
the only SVG file that could be opened was "Smartphone.svg" and the results
were
"artistic" - see the right-hand thumbnail[/quote]

Yes, this is expected. I stopped working in SVGL plus Gradients
until SVGL is completely updated and could import without error
most svg files, likes those found in openclipart.org

Notice that anyone could format (by hand)
gradients in any svg file, following exactly the 
same structure that SVGL + Gradients expects:


 
 



Notice that in Livecode mail list, I asked help for splitting 
a svg file in multiple files that only have a single path, 
for example:

This svg file have 80 paths:
https://openclipart.org/detail/3859/italian-coffee-maker
Using LiveCode, How could I create 80 valid SVG files?
http://lists.runrev.com/pipermail/use-livecode/2015-November/221246.html

After, SVGL is updated, I will resume working 
in SVGL plus Gradients.

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-SVGL-2015-rev02-tp4698971p4699009.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: learning resources for kids

2015-11-24 Thread Alejandro Tejada
Hi Monte,


Monte Goulding-2 wrote
> Has anyone got any thoughts on LiveCode University for a 9 year old?

Please, check Richmond stacks (created for young learners of his own 
Programming Lessons for Summer School Camp) and Livecode lessons 
by Cyril Pruszko for his classes in Eleanor Roosevelt High School:
https://sites.google.com/a/pgcps.org/livecode/  

Alejandro





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/learning-resources-for-kids-tp4698921p4699014.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Release 8.0 DP 10

2015-11-24 Thread Alejandro Tejada
Richmond Mathewson-2 wrote
> In the short-term, at least, Alejandro's SVG stuff looks 
> far better than the LiveCode 8 SVG widget.
> Not least because it works with earlier versions of Livecode!

I disagree... Ian's stack SVGL is great and is an
excellent alternative but there is no replacement 
for the real thing: A SVG control that renders
faithfully any file that you import.

Remember, again, Livecode vector graphics only use 
integers (1,2,3,4,5...) for displaying graphics strokes (borders). 
This limitation IS an insurmountable barrier to import and 
display faithfully many professional illustrations created 
or exported to SVG format. I have test this again recently.
Vector graphics without different border weights works
better with Ian's stack.


Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Release-8-0-DP-10-tp4698978p4699017.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Release 8.0 DP 10

2015-11-24 Thread Alejandro Tejada
Hi Hermann,

Accurate rendering of strokes with different weights requires
special techniques to get the desired effect:

http://www.smashingmagazine.com/2012/04/a-closer-look-at-font-rendering/

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Release-8-0-DP-10-tp4698978p4699026.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: learning resources for kids

2015-11-25 Thread Alejandro Tejada
Hi Monte,

Monte Goulding-2 wrote
> One day I would love to see LiveCode listed here:
> https://code.org/learn/beyond ;

Understanding computer programming helps a lot to gather all
essential skills for workers in this 21st Century:
http://www.professionalpractice.org/about-us/skills_for_success_2/

For english speakers, learning the very basic concepts of computer
programming 
is almost too easy and relatively straightforward using and english-like 
computer language as Livecode.

Why every english speaking school is not using Livecode
to introduce computer programming to their students?
WHY? :-(
[Insert here your favorite picture or video of Extreme Facepalm]

This unsolved mystery would be answered, after LiveCode developers 
complete the Open Language feature and many Universities around 
the world receive an invitation to translate Livecode's english-like 
API to their own language. 

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/learning-resources-for-kids-tp4698921p4699071.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android SDK on Ubuntu 14.04

2015-12-06 Thread Alejandro Tejada
Hi All,

Today, I am reinstalling again
all my Linux setup.

This time, I am installing Ubuntu 14.04 64bits
(previously Lubuntu 14.04 32bits) and
found with surprise that Android SDK
could not install API 8, API 10, API 15 and
API 18.

Android SDK Manager marks an error and
do not allows me to download these files.
I already marked the option "Obsolete" inside
Android SDK Manager to view all these files,
but this does not resolve this error.

Looking for a solution, from an older backup
I copied the folder android-sdk-linux in two
different places:
1) /opt (the original location in previous Lubuntu setup)
and inside the folder
2) Home

Livecode recognizes Android SDK inside Home folder
but do not recognize it when placed inside /opt

Just as expected, this copied android-sdk folder
produce an error while building android apps:
Could not encode class bundle.

Looks like I don't know what else to do:
How could I setup Android in Ubuntu 14.04?

Thanks in advance!

Alejandro
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Pointlist to Bezier

2015-12-06 Thread Alejandro Tejada
Hi Michael,

> Michael K. wrote:
> Pointlist to Bezier
> Hi there, I wonder if any have code to take a
> point-list and turn it into a smooth-lined bezier.

Look at this stack, that implements two polygon smoothing algorithms:
Chaikin and Shemanarev

http://andregarzia.on-rev.com/alejandro/stacks/Two_smooth_polygon_algorithm.zip

More info about these algorithms:
http://www.idav.ucdavis.edu/education/CAGDNotes/Chaikins-Algorithm/Chaikins-Algorithm.html

http://webcache.googleusercontent.com/search?q=cache:dA1_f2c6vh8J:k9dci.home.comcast.net/~k9dci/Book/Maxim%2520Algorithm%2520Formulas.doc+&cd=1&hl=en&ct=clnk&gl=do&client=ubuntu

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Pointlist to Bezier?

2015-12-08 Thread Alejandro Tejada
Hi Michael,

In the video that you posted, I found really weird
the oscillations of all bezier control points as user
is drawing with the tablet.

Normally, after a bezier line is set there is no way
to change it, except by direct manipulation of their
control points, so... something else is happening
with this line while the user is drawing.
Are they recalculating the whole line, while the user 
is still drawing?

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Pointlist-to-Bezier-tp4699320p4699360.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Very Juvenile animation

2015-12-09 Thread Alejandro Tejada
Really Nice! :D
Thanks for sharing

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Very-Juvenile-animation-tp4699380p4699388.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Android SDK on Ubuntu 14.04

2015-12-09 Thread Alejandro Tejada
Hi All,

I found the solution to this in the website AskUbuntu
about installing Android SDK in Ubuntu 14.04 64bits.

Looks like newer Ubuntu versions does not include
32bits compatibility components, so I installed them.
Actually, all of them, just to be sure.

http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk

After installing all these components, I was able to download 
Android SDK componentens that I only use or need and now
I could compile Androids apks 

I used these command from AskUbuntu message thread

sudo apt-get install -y libc6:i386 libgcc1:i386 libstdc++6:i386 libz1:i386
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
sudo apt-get install lib32z1-dev
sudo apt-get install lib32stdc++6
sudo apt-get install libgl1-mesa-dev:i386

Which exact component(s) was missing?
I will find out for sure, if in a near future
again I had to reinstall Ubuntu,

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Android-SDK-on-Ubuntu-14-04-tp4699328p4699389.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC 8 DP 11

2015-12-13 Thread Alejandro Tejada
Hi All,

Probably a more verbose installer could
help to track slowdowns.

I am reinstalling my whole Ubuntu setup
and now I understand their real purpose.
Installation logs and detailed messages
are a real necessity.

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LC-8-DP-11-tp4699423p4699465.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



LiveCode User Groups and Mail Lists

2015-12-13 Thread Alejandro Tejada
Hi All,

Just for casuality, today I found this LiveCode group
in Google Groups:
https://groups.google.com/forum/#!forum/runrev

Where could I find a complete and updated list of 
all LiveCode User Groups and Mail lists?

Thanks in advance!

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LiveCode-User-Groups-and-Mail-Lists-tp4699467.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Analytical Engine - An Introduction to Computer Science

2015-12-13 Thread Alejandro Tejada
Hi All,

Does anyone have this HyperCard book in his/her bookshelf? and
Could you provide us with a fair review of it's content?

Probably you want to know: How did I found about this book?
Today I was looking for some out of print Books in AbeBooks and 
for curiosity, searched the word "HyperCard" and just found it.
A book that I have not seen before:

Analytical Engine: An Introduction to Computer Science Using HyperCard 2.1 
(Computer Science Series) Paperback – September 27, 1993
by Rick Decker  (Author), Stuart Hirshfield (Author)

THE ANALYTICAL ENGINE is unique in its true survey course approach combined
with the learn by doing method of incorporated laboratories. 

While most introductions to computer science teach only programming, THE
ANALYTICAL ENGINE covers the spectrum of computer science topics from
history and systems design, to programming, hardware and the effect of
computing on society and, each topic has a corresponding lab. 

Unlike any other book on the market, Decker and Hirshfield put the powerful
tool of HyperCard into the hands of beginning computer science students,
resulting in interesting and creative programs.

http://www.abebooks.com/servlet/BookDetailsPL?bi=12845759283
Amazon have this book too:
http://www.amazon.com/Analytical-Engine-Introduction-Computer-HyperCard/dp/0534936962

If we believe this book's introduction then this is exactly the kind of
content that should be updated for this platform.

How many interesting and really useful books about HyperCard published
between 1987 and 1998
are just waiting to be rediscovered and updated?

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Analytical-Engine-An-Introduction-to-Computer-Science-tp4699476.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Happy LC Holidays

2015-12-13 Thread Alejandro Tejada
Hi Scott,

Happy Holidays for you and your family!

Many Thanks for sharing this stack. :D
Excellent Graphics and Code!

I notice that you draw the lamp post
using LC IDE tools.

This lamp post is an ideal candidate
to import it using SVGL or EPSimport.

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Happy-LC-Holidays-tp4699477p4699486.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Teachers choose the programming language

2015-12-24 Thread Alejandro Tejada
Hi All,

There is a new opportunity for learning
LiveCode in the classroom. :D

This is the key phrase:
Instructors can choose a language of their choice

---
Please read:
https://advancesinap.collegeboard.org/stem/computer-science-principles/course-details
http://developers.slashdot.org/story/15/12/23/1711234/college-board-mainstreams-ap-computer-science

In the Fall of 2016, the College Board will begin
a new course titled "AP Computer Science Principles,"
designed to "introduce students to the central ideas
of computer science, instilling the ideas and practices
of computational thinking and inviting students
to understand how computing changes the world."

This course will not replace the existing
"AP Computer Science A" course, but has been
added, "To appeal to a broader audience, including
those often underrepresented in computing."

A short list of differences between the two courses
notes that instructors can choose a language of their choice.

The curriculum framework directs the focus of instruction
away from programming as a skill and towards programming
as an activity, "enabling problem solving, human expression,
and creation of knowledge

---

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Release: 8.0 DP 13

2016-01-13 Thread Alejandro Tejada
How could I uninstall a previous version 
of LC8 under Ubuntu 14.04?

Thanks in advance!

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Release-8-0-DP-13-tp4700155p4700164.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Open source, closed source, and the value of code

2016-02-29 Thread Alejandro Tejada
Hi all,

I have read most of this message thread,
so please pardon me if someone has
proposed this before:

Why not publish your Apps for iOS
using a Publisher Partner?

Maybe an iOS Publisher Partner 
selected among our very own 
LiveCode fellow developers.

if not:
https://www.quora.com/I-have-an-awesome-iOS-game-which-game-publisher-should-I-work-with
https://sensortower.com/blog/the-top-ios-app-publisher-rankings

What advantages and problems
do you foresee with this?

Thanks in advance

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Open-source-closed-source-and-the-value-of-code-tp4701649p4701706.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: The Future of LiveCode in Education

2016-03-01 Thread Alejandro Tejada
Hi Richmond


RM wrote
> [SNIP]
> In 1993 I ended up in a married student "cave" at Southern Illinois 
> University with an LC 475 on the desk in front of me and a screaming 7 
> month year old next to me (my wife had a Fulbright scholarship);
> Hypercard probably prevented me from battering the baby to death!

Wow! HyperCard save lives too. :D

Last line of your message, reads
like an O'Henry short story:
https://en.wikipedia.org/wiki/O._Henry

How many language teachers knows that they could 
use LiveCode to teach hypertext and creative writing?
https://www.researchgate.net/publication/221267074_Hypertext_and_Creative_Writing

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Re-The-Future-of-LiveCode-in-Education-tp4701642p4701810.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LC8 dp15 Cef Browser crash in Ubuntu

2016-03-03 Thread Alejandro Tejada
Hi All,

I just updated this report with screenshots
from the Cef Browser crash report window 
from Ubuntu.

http://quality.livecode.com/show_bug.cgi?id=15931

Please, if you use Ubuntu and LC8 dp15
crash while using Cef browser, check
these screenshots and verify if your
crash report is the similar to this.

Thanks in advance!

Alejandro 



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LC8-dp15-Cef-Browser-crash-in-Ubuntu-tp4701990.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: I need to write an external for LiveCode in C++, but I doubt my ability to do it.

2016-03-09 Thread Alejandro Tejada
Hi Jonathan,

Back in 2005, Alex Tweedly published instructions
to use Dev-C++ (named BloodShed back then)

These are the files from 2005:
http://andregarzia.on-rev.com/alejandro/stacks/Tweedly_dll.zip

http://runtime-revolution.278305.n4.nabble.com/Sucess-compiling-Alex-Tweedly-DLL-td279650.html

I have been looking for Alex Tweedly original post from 2005
but could not find it.

Ask around in this mail list. Maybe someone keeps
a copy from 2005 Alex Tweedly original instruction
to compile Livecode externals using Dev-C++

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/I-need-to-write-an-external-for-LiveCode-in-C-but-I-doubt-my-ability-to-do-it-tp4702071p4702127.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: I need to write an external for LiveCode in C++, but I doubt my ability to do it.

2016-03-09 Thread Alejandro Tejada
I found Alex Tweedly post about compiling
externals using Dev-C++ :D
http://lists.runrev.com/pipermail/use-livecode/2005-June/060943.html



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/I-need-to-write-an-external-for-LiveCode-in-C-but-I-doubt-my-ability-to-do-it-tp4702071p4702128.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Look and Feel in LC8

2016-03-12 Thread Alejandro Tejada
Hi All,

Today, I could barely breathe but don't worry. Asthma was my childhood
problem that is just
menacing to return. Now I have better knowledge and mental resources to
recover faster :)

On 03/12/2016 09:09 AM, Peter TB Brett wrote:
> Sadly, SVG integration has had to be dropped 
> from the LiveCode 8.0 release.

Then,
On 12.03.2016 19:30, Mark Wieder wrote:
> Eh?

Finally, 
On 03/12/2016 09:09 AM, Richmond wrote:
> Here we go again.

LiveCode Developer Team discovered that SVG is not your everyday vector
graphics standard.

SVG was Adobe's idea to replace Macromedia Flash with an open standard.
So, just try to imagine everything that SVG was/is supposed to do.
In theory, you should be able to recreate any Shockwave Flash movie using
SVG (and Javascript). Only in theory.

Some months ago, we had a similar opinions exchange. Back then, I wrote that
LC team would
implement a bitmap image SVG viewer for SVG Basic or SVG Tiny specifications
without implementing interaction, hyperlinking and animation:

https://www.w3.org/TR/SVGTiny12/conform.html
There are two sub-categories of Conforming SVG Viewers:
Conforming Static SVG Viewers and Conforming Dynamic SVG Viewers

Conforming Static SVG Viewers support the static language features of SVG
that correspond to the feature string
"http://www.w3.org/Graphics/SVG/feature/1.2/#SVG-static"; (see Feature
strings). 

This category often corresponds to platforms and environments which only
render static documents, such as printers...

Ok, now you want to learn my opinion: How could RunRev implement SVG Basic
or SVG Tiny in LC 8?

Similar to other media: Images, Sounds and Movies.
Set the SVGdata of Image id 1523 to mySVGfile...

When you import a SVG into LC, the engine renders a bitmap static image of
the vector file.

This image could be resized and the engine reads vector data again and
paints the bitmap
representation of this SVG as an image.

Do you want to create an animation from a series of static SVG files?

Use a repeat structure, just like we use to animate a PNG image.

Please, Runrev do not try, not even try to import editable SVG as single
vector controls. Neither provide an internal visual editor for SVG files.
Remember that LC does not includes either and Editor for movies,
sounds and images.

Just my 2 cents. :)

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Thanks-to-Dr-Richard-E-Hawkins-Esq-tp4702131p4702176.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Look and Feel in LC8

2016-03-12 Thread Alejandro Tejada
Hi Colin,

Colin Holgate-3 wrote
> This part seems wrong. According to Mr Wikipedia, SVG competed with a
> couple of other vector graphic formats, and all three were for still
> images. Recently there has also been animated SVG, which arguably could be
> used to replace either animated GIF or simple Flash animations.
> Amusingly, one of the best tools to make animated SVG is Flash
> Professional (now Adobe Animate).

Yes, my assumption that Adobe created SVG to replace Flash is wrong, but
that is how it was perceived. SVG was perceived as Flash replacement...

"To keep Mozilla competitive, allow SVG to reach its full potential, and
help kill Flash..."

"Maybe it's just me, but I'm wondering when SVG will become Flash. Or am I
comparing apples and oranges here?"

"SVG replaces PDF (Acrobat format). SVG plus SMIL replaces SWF (Flash
format), as replacing SWF for use in animated presentations...

http://tech.slashdot.org/story/04/03/24/1413207/svg-and-the-free-desktops


"Scalable Vector Graphics: It's text based (XML actually), it's an open
standard, it can be created dynamically, it's graphics, it's text, it's
interactive, it's zoomable, it's animated, it's ready to replace Flash. It's
SVG."

http://www.johnandrea.ca/svg/


"Will SVG replace Flash? Not likely. Certainly not any time soon. Will SVG
evolve into a useful tool for creating scriptable vector graphics? We think
it will."

http://alistapart.com/article/smil

and there are a lot more comments like these all around the web.
Specially, after Adobe bought Macromedia and left their own SVG plugin
(Adobe SVG viewer) to die in the hands of their users.

Anyway, the past is long gone.
SVG Tiny 1.1 is what we need in LiveCode
(without interaction, animation and hyperlinking).

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Thanks-to-Dr-Richard-E-Hawkins-Esq-tp4702131p4702179.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Look and Feel in LC8

2016-03-12 Thread Alejandro Tejada
Hi,


BR wrote
>> We would like to make small things in Illustrator and then 
>> bring them into LC  but the SVG widget is super primitive...
>> we need  support for more than one path.  even a simple 
>> thing like this  (see below) cannot be imported.

I just tried and this SVG file could be imported 
using Ian McPhail's SVGL:
http://revonline2.runrev.com/stack/112/SVGL

http://www.w3.org/2000/svg";
viewBox="0 0 117.86 108.73">SivaSivaLogo2-red-white 



-hh wrote
>> Alejandro T. knows a lot about SVG and wrote 
>> several nifty stacks to that. You could think 
>> about supporting his work.

No. Best way is importing SVG illustrations
as bitmaps, not as groups with hundreds or
thousands of vector controls.

SVGL + Gradients still will be really helpful
for importing a few vector graphics used
sparsely to create User Interfaces and other
punctual and very specific uses.

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Thanks-to-Dr-Richard-E-Hawkins-Esq-tp4702131p4702180.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Look and Feel in LC8

2016-03-12 Thread Alejandro Tejada
Please test this SVG code.
Copy and Paste this in a SVG icon in LC8.
I used Inkscape to create this code.

M 0 0 L 0 58.929688 L 117.85938 58.929688 L 117.85938 0 L 0 0 z M 21.695312
10.265625 C 23.213546 10.265625 24.759867 10.417384 26.335938 10.722656 C
27.912007 11.027929 29.525461 11.48711 31.173828 12.097656 L 31.173828
16.84375 C 29.511001 15.960065 27.941652 15.30295 26.466797 14.869141 C
24.991942 14.435333 23.566999 14.216797 22.193359 14.216797 C 19.807565
14.216797 17.965404 14.731478 16.664062 15.759766 C 15.37718 16.788054
14.732422 18.250579 14.732422 20.146484 C 14.732422 21.737117 15.158616
22.942302 16.011719 23.761719 C 16.879279 24.565068 18.513809 25.214813
20.914062 25.712891 L 23.560547 26.316406 C 26.828362 27.007288 29.236052
28.227214 30.783203 29.978516 C 32.344814 31.713752 33.125 34.044557 33.125
36.96875 C 33.125 40.455288 32.070051 43.098931 29.958984 44.898438 C
27.862377 46.697941 24.78183 47.597656 20.71875 47.597656 C 19.186058
47.597656 17.55153 47.403186 15.816406 47.017578 C 14.095742 46.63197
12.311734 46.061789 10.460938 45.306641 L 10.460938 40.294922 C 12.239439
41.403545 13.981295 42.238437 15.6875 42.800781 C 17.393704 43.363127
19.070383 43.644531 20.71875 43.644531 C 23.220219 43.644531 25.150586
43.098415 26.509766 42.005859 C 27.868946 40.913303 28.548828 39.354519
28.548828 37.330078 C 28.548828 35.562708 28.057455 34.1817 27.074219
33.185547 C 26.105442 32.189393 24.507992 31.441436 22.28125 30.943359 L
19.613281 30.365234 C 16.345466 29.64222 13.981879 28.509229 12.521484
26.966797 C 11.061088 25.424365 10.330078 23.278706 10.330078 20.53125 C
10.330078 17.349985 11.333899 14.843356 13.34375 13.011719 C 15.368061
11.180081 18.15277 10.265625 21.695312 10.265625 z M 39.957031 10.916016 L
44.337891 10.916016 L 44.337891 46.898438 L 39.957031 46.898438 L 39.957031
10.916016 z M 49.044922 10.916016 L 53.621094 10.916016 L 63.880859
41.210938 L 74.160156 10.916016 L 78.714844 10.916016 L 66.375 46.898438 L
61.408203 46.898438 L 49.044922 10.916016 z M 88.910156 10.916016 L
93.876953 10.916016 L 106.2168 46.898438 L 101.66211 46.898438 L 98.712891
37.667969 L 84.115234 37.667969 L 81.166016 46.898438 L 76.546875 46.898438
L 88.910156 10.916016 z M 91.382812 15.710938 L 85.439453 33.619141 L
97.345703 33.619141 L 91.382812 15.710938 z M 22.351562 71.138672 C 18.80902
71.138672 16.026264 72.055081 14.001953 73.886719 C 11.992102 75.718356
10.986328 78.224985 10.986328 81.40625 C 10.986328 84.153706 11.717338
86.297412 13.177734 87.839844 C 14.638129 89.382276 17.001716 90.515267
20.269531 91.238281 L 22.9375 91.816406 C 25.164242 92.314483 26.761692
93.06244 27.730469 94.058594 C 28.713705 95.054747 29.205078 96.435755
29.205078 98.203125 C 29.205078 100.22757 28.525196 101.78635 27.166016
102.87891 C 25.806836 103.97147 23.876469 104.51758 21.375 104.51758 C
19.726633 104.51758 18.049954 104.23617 16.34375 103.67383 C 14.637545
103.11148 12.895689 102.27659 11.117188 101.16797 L 11.117188 106.18164 C
12.967985 106.93679 14.753945 107.50697 16.474609 107.89258 C 18.209733
108.27819 19.842308 108.4707 21.375 108.4707 C 25.43808 108.4707 28.518627
107.57099 30.615234 105.77148 C 32.726301 103.97198 33.78125 101.32834
33.78125 97.841797 C 33.78125 94.917604 33.001064 92.588752 31.439453
90.853516 C 29.892302 89.102214 27.484612 87.880334 24.216797 87.189453 L
21.570312 86.587891 C 19.170058 86.089813 17.535529 85.438115 16.667969
84.634766 C 15.814866 83.815349 15.388672 82.610164 15.388672 81.019531 C
15.388672 79.123626 16.033429 77.661101 17.320312 76.632812 C 18.621655
75.604525 20.463815 75.091797 22.849609 75.091797 C 24.223249 75.091797
25.648192 75.30838 27.123047 75.742188 C 28.597902 76.175997 30.167251
76.835065 31.830078 77.71875 L 31.830078 72.970703 C 30.181711 72.360157
28.568258 71.902929 26.992188 71.597656 C 25.416117 71.292384 23.869796
71.138672 22.351562 71.138672 z M 40.613281 71.789062 L 40.613281 107.77148
L 44.994141 107.77148 L 44.994141 71.789062 L 40.613281 71.789062 z M
49.701172 71.789062 L 62.064453 107.77148 L 67.03125 107.77148 L 79.371094
71.789062 L 74.816406 71.789062 L 64.537109 102.08398 L 54.277344 71.789062
L 49.701172 71.789062 z M 89.566406 71.789062 L 77.203125 107.77148 L
81.822266 107.77148 L 84.773438 98.541016 L 99.369141 98.541016 L 102.31836
107.77148 L 106.87305 107.77148 L 94.533203 71.789062 L 89.566406 71.789062
z M 92.039062 76.585938 L 98.001953 94.492188 L 86.095703 94.492188 L
92.039062 76.585938 z

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Thanks-to-Dr-Richard-E-Hawkins-Esq-tp4702131p4702181.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Version 8, DP16 Tutorial Runthrough

2016-03-20 Thread Alejandro Tejada
Hi All,

Using Ubuntu 14.04 for 64-bit, this Tutorial crash 
and close LiveCode v8 DP16 when I reach the
Browser section. Later, today I will test it
on Windows.

Overall, the Tutorial is really well done.
Congratulations! :D

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Version-8-DP16-Tutorial-Runthrough-tp4702321p4702434.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Looking for parser for Email (MIME)

2016-03-20 Thread Alejandro Tejada
Hi,

Check if WordLib could help you
with this particular task:

http://curryk.com/wordlib.html

Does Unicode handles all different encodings?
http://livecode.byu.edu/unicode/unicodeInRev.html

By the way, some years ago, I posted
a Mailbox reader, check this stack just 
in case that you find something useful:
http://andregarzia.on-rev.com/alejandro/stacks/Mailbox_browser.zip

Have a nice weekend!

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Looking-for-parser-for-Email-MIME-tp4702407p4702439.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Interactive Tour

2016-03-20 Thread Alejandro Tejada
Hi,


RM wrote
> [SNIP] unfortunately, if I open a new stack so that 
> I can copy some of the stuff during the tour,
> the tour stack closes and vanishes.
> Xubuntu 64 bit.
> Is this a bug, or is this intentional?

In Ubuntu 14.04 64 bit, the Tour Stack
close and crash LC IDE when the Tutorial 
reach the part to use the Browser.

Overall, this tutorial is really well done. 
Congratulations! :D

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Interactive-Tour-tp4702362p4702443.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Hypercard

2016-03-20 Thread Alejandro Tejada
Just out of curiosity, I downloaded the epub version (1.5 mb) and noticed too
many errors in the text. :(

Hopefully, PDF version (575 MB) does not show all these errors... :o

For the tittle, this book sounds promising too :D
https://archive.org/details/Hyper_Card_Power

Al





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Hypercard-tp4702424p4702444.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Buffer size (was Looking for parser for Email (MIME))

2016-03-22 Thread Alejandro Tejada
Hi All,

Just wondering: Using LiveCode could you split and compress
this 38 gb text file in 10,000 smaller files?

Some years ago, when I was interested in creating 
an Offline Wikipedia Reader (using Livecode), 
I found the same problem to gather all parts
of an article from compressed files.

A Wikipedia article could start in the middle of a 
compressed file and end at the beginning of next.

The script to gather all parts of an article did this:
1) decompress the file where the article starts, 
2) if end tag of this same article is not in 
decompressed data, then
3) decompressed next file, search for end of article
and append to previous decompressed data.

This simple algorithm would fail if there was a
really large Wikipedia article that spans among
3 compressed files, but still today, do not exists 
such really large article in Wikipedia.

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Looking-for-parser-for-Email-MIME-tp4702407p4702517.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-27 Thread Alejandro Tejada
Hi,

Could a bitmap mask (alphadata) work for this?

>From the archives 2008 and 2011, 
http://lists.runrev.com/pipermail/use-livecode/2008-November/117324.html
http://lists.runrev.com/pipermail/use-livecode/2011-December/165123.html

http://www.sanke.org/Software/MoreAboutMasks.zip

Back in the old days, I published this stack:
http://andregarzia.on-rev.com/alejandro/stacks/mask_bitmap02.zip



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702692.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-28 Thread Alejandro Tejada
Hi All,

By trial and error, (the worse kind of error)
I finally find a script that mask an image using 
a vector graphic. Follow these steps to make
it work.

1)  create a new stack and import an image

2) over this image, draw a closed vector graphic
using any drawing tool (including freehand
or freehand polygon)

3) in this same stack, (that only have two objects:
an image and a single vector graphic)
create a button and set the script of this button
to this:

on mouseUp

set the locklocation of img 1 to true
   import snapshot from img 1
   set the loc of img 2 to the loc of img 1
   delete img 1
   -- after deleting img 1, img 2 becomes img 1 
  
   crop img 1 to the rect of grc 1
   
   set the opaque of grc 1 to true
   set the foregroundColor of grc 1 to black
   set the linesize of grc 1 to 0
   set the ink of grc 1 to srcCopy
   set the width of grc 1 to the width of img 1
   set the height of grc 1 to the height of img 1
   
   import snapshot from grc 1 -- this snapshot created image 2

   set the alphadata of image 1 to the alphadata of image 2
   
   delete grc 1 -- vector graphic 
   delete img 2 -- image 
end mouseUp

Works fine here, but could be enhanced
in many ways, for example:

Who wants to extend this script to mask
images using the alphadata from
transparent png and static transparent 
gif images?

Thanks in advance!

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702723.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-29 Thread Alejandro Tejada
Hi, 

Glad you liked. :-D

The following step by step recipe works fine
to mask an image with another transparent png image,
unlike the previous script that works only with
an image and a vector graphic.

1) create a new stack and import an image 

2) import a PNG image with transparency,
to mask the first image.
You could use PNGs similar to these:
http://photoshop-kopona.com/9-free-set-of-spring-masks-png-for-photo-design-29-png-frame-masks-free-download.html

Remember: import a png with transparency, 
not a black and white png.

3) in this same stack, (that only have two images: 
an image and a transparent png image) 
create a button and set the script of this button 
to this: 


on mouseUp

   set the locklocation of img 1 to true
   import snapshot from img 1
   set the loc of last img to the loc of img 1
   delete img 1
   -- after deleting img 1, img 2 becomes img 1 
  
   crop img 2 to the rect of img 1

   set the width of img 1 to the width of img 2
   set the height of img 1 to the height of img 2
   
   set the alphadata of image 2 to the alphadata of image 1

end mouseUp

Have a nice day! :-)

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702767.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-30 Thread Alejandro Tejada
Hi Bernd,

Your script to restore the original alphadata
is very useful. Many Thanks for sharing! :D

Just noticed that you used: export snapshot
instead of import snapshot
Why? Is import snapshot buggy in some
LiveCode versions?

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702801.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-30 Thread Alejandro Tejada
Hi Bernd,


BNig wrote
> I guess it is a habit from times when the paintcompression default was
> "RLE" in the IDE and you can define the export format using export... e.g.
> as "png".
> 
> And somehow I like to export to a container. I feel I have more control
> over where the image goes instead of an image just landing smack in the
> middle of the card. But that is just a matter of preferences.
> 
> Now the default paintcompression is "PNG" and it does not matter so much
> anymore. Before you would have to change the paintCompression to get a
> "png" using import.
> 
> It also used to be that using "RLE" as paintcompression sped up some image
> manipulations quite a lot for setting imageData and such. As far as I am
> aware the speed advantage is not as large as it used to be.

This information is very useful. Many Thanks! :D

Did you have a reliable recipe to export (or import)
a snapshot of an image with a blend mode
(or ink effect) applied?

Try this:

1) Import two images:

a) transparent black and white png (ubuntu logo)
http://design.ubuntu.com/wp-content/uploads/logo-ubuntu_cof-white_black-hex.png

b) color jpg image (ubuntu glass logo)
https://roboticsclub.org/redmine/projects/scoutmech/repository/revisions/126146b75ea50ed09523a8c2cc85c83ee7d6f93b/entry/docs/DocumentationImages/WebsiteMarketing/WebsiteSlider/ubuntu_glass_logo.jpg

2) Apply a blend mode (or ink effect) 
like blendPlus or blendMultiply or 
notSrcOr, etc, etc, etc. to these
images.

3) Import or export a snapshot
of these images and place the result
in the same card. The result is exactly
like original images, without the
blend (or ink applied)

How could we import an image
that shows the ink effect?

Thanks in advance!

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702823.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-30 Thread Alejandro Tejada
Hi Bernd,


BNig wrote
> for inks you have to make a screenshot from the system-view
> 
> --
> on mouseUp
>put the rect of image "sourceImg" into tSourceRect
>put item 1 to 2 of tSourceRect into tTopLeft
>put item 3 to 4 of tSourceRect into tBotRight
>put globalLoc(tTopLeft) into tTopLeft
>put globalLoc(tBotRight) into tBotRight
>export snapshot from rect (tTopLeft & "," & tBotRight) to image "myImg"
> as png
> end mouseUp
> -
> 
> But I think transparency is lost, but you get the ink-mode
> Tried with notSrcCopy and blendExclusion. 
> Worked all right.

Great! I hadn't thought of that possibility
of using a card screenshot. :-D

Certainly, transparency is lost (alphadata)
but could be restored (copied) from 
the original image:

> set the width of img 1 to the width of img 2
> set the height of img 1 to the height of img 2
> set the alphadata of image 2 to the alphadata of image 1

Many thanks again! :-)

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702838.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-30 Thread Alejandro Tejada
By the way, while looking for a script to convert a color in a mask,
(for example: convert bright green color of an image to alphadata)
I just found that Bernd already answer this Design Challenge, 
back in 2011:

http://forums.livecode.com/viewtopic.php?f=10&t=6525

>From this 5 years old thread, download his stack:
alphaData.livecode.zip

Thankfully, working in these scripts unveiled
a recent bug that was just confirmed:
http://quality.livecode.com/show_bug.cgi?id=17257

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702842.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-31 Thread Alejandro Tejada
Hi Richmond,


RM wrote
> Am I being stupid?

No, this same topic (masking images) have been discussed many times before. 
An this same topic will arise again in a near future. Do you know why?

Because LC IDE does not have an integrated menu or an external palette or a
stack plug-in to create mask for images.

2011 in the forums:
http://forums.livecode.com/viewtopic.php?f=10&t=6525
2013 in the mail list:
http://lists.runrev.com/pipermail/use-livecode/2013-October/subject.html#193880

By the way, just to complete in this same thread all masking options
available, here is a recipe for using Scott Rossi's Hidden Point technique
to mask an image:
http://runtime-revolution.278305.n4.nabble.com/Hidden-point-technique-to-mask-an-image-td2270248.html

A graphic with discontiguous points is just another way to create a vector
mask.

1) Create a new stack
2) Create a polygon graphic
and set the points of it to:

0,0

34,268
224,268
127,365
34,268

3) import an image into this stack,
put the image in a corner, where it does not
hide the graphic and:

set the backpattern of grc 1 to the id of img 1

(now, the imported image is cropped within
the graphic)

4) set the script of the graphic to this variation
of Scott Rossi script to move the first point of
the graphic and (at the same time) move the
image within the graphic:

local lpoints,tClick,tFirstPoint
-- based on Scott Rossi script for masking images

on mouseDown
   put mouseH(),mouseV() into tClick
   put the points of me into lpoints
   put line 1 of lpoints into tFirstPoint
   put "mouseDown" & cr & lpoints & cr & cr into fld 1 
end mouseDown

on mouseMove X,Y
   if tClick = "" then exit mouseMove
   put  (X - item 1 of tClick,Y - item 2 of tClick)
   put  (X - item 1 of tClick) + item 1 of tFirstPoint,(Y - item 2 of
tClick) + item 2 of tFirstPoint into line 1 of lpoints
   set the points of me to lpoints
end mouseMove

on mouseUp
   put "" into tClick
end mouseUp

on mouseRelease
   put "" into tClick
end mouseRelease

When you click inside the graphic and move the mouse
the image will move within the graphic.

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702879.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Using LC for Interactive Tutorial

2016-03-31 Thread Alejandro Tejada
This is Amazing! :D

Just a few questions:

Does this new feature offers a method to display custom stacks
that execute messages and display animations?

Could we use this new feature in our own stacks and applications?

When are we going to see an interactive tutorial that
explains how to create interactive tutorials? :-)

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Using-LC-for-Interactive-Tutorial-tp4702865p4702902.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-03-31 Thread Alejandro Tejada
Great! :D

Now the big question :D

Who volunteer to build (and maintain) a plug-in 
(palette or modeless stack) that explains and 
create the many ways of masking an image:

1) Group with an image and graphic
(using inks effects)

2) Image and graphic or
Image and Transparent Image
(using snapshot)

3) Image and grahic
(using backpattern and script)

Just one more thing: 
In the "About" card of this
plug-in, post links to each
one of these threads from
the mail list and forum.

Thanks in advance!

Alejandro





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702904.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] World Backup Day

2016-03-31 Thread Alejandro Tejada
Good question...

I have only backups of Documents,
not System Images.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/OT-World-Backup-Day-tp4702892p4702908.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: PDF text extraction?

2016-03-31 Thread Alejandro Tejada
Hi Richard,

Could you use command line tools like pdftk or qpdf?

Check this:
http://stackoverflow.com/questions/15058207/pdftk-will-not-decompress-data-streams

and this:

https://books.google.com.do/books?id=ozWeSBkPQW4C&pg=PA205&lpg=PA205&dq=uncompress+and+save+pdf+streams&source=bl&ots=9LyTX9eHMe&sig=nmvt8iXLCF5NTNpBEQQJadGbR34&hl=en&sa=X&ved=0ahUKEwjQpPuFpezLAhUHlh4KHffsBSUQ6AEITzAI#v=onepage&q=uncompress%20and%20save%20pdf%20streams&f=false



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/PDF-text-extraction-tp4702906p4702911.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


All Your Stacks Backups Are Belong to us

2016-04-01 Thread Alejandro Tejada
Did anyone still remember the origin of the subject of this message?
How often do you backup your personal memories? :)

Yesterday, Richard Gaskin posted a reminder about World Backup Day:
http://www.worldbackupday.com

Just for curiosity, How many of you keep an organized backup of your
personal collection of LC, REV, MC, HC stacks? Do you mind to share a text
list of your collection that includes a MD5 digest of each title?

Recently, a missing floppy disk in a book that I bought, make me thinks
about the real value of storing our knowledge for future generations.

Book authors have given authorization to request this floppy disk from
anyone who still keeps a functioning copy. Stuart Hirshfield wrote: "Given
that the text and associated materials are long since out of print, you have
our permission to request them in whatever form you wish..."

Now, we are looking in Libraries around the world and asking CS Teacher for
a working copy of this 22 years old floppy disk included with the book:
The Analytical Engine: An Introduction to Computer Science Using Hypercard
2.1

https://books.google.com.do/books/about/The_Analytical_Engine.html?id=6O9ZHuxJWskC&redir_esc=y

Please, check your own Stacks collection. Maybe you have these files stored
in a really old Macintosh backup from the 90's. 

Searching online catalogs, I found that many Public and University Libraries
have a copy of this book. If you are near one of these libraries, please
verify if their copy of this book still includes a floppy disk or call your
Librarian asking about it.

Could you help us in this search?
Many, many thanks in advance!

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/All-Your-Stacks-Backups-Are-Belong-to-us-tp4702931.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-04-02 Thread Alejandro Tejada
Hi Richmond,


RM wrote
> Why bother? Frankly the process is no more difficult using
> GIMP:  https://www.gimp.org/downloads/ or
> Photoshop: http://www.adobe.com/products/photoshop.html
> and there are quite a few other image editing software packages
> available that can do that job as well.

True. I will update my stack palette 
"mask bitmap 02"... when I find time. :-D

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4702982.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Design Challenge -- Round Corner mask on images

2016-04-03 Thread Alejandro Tejada
In this mail list, Richmond self-assigned duty is, 
in his own words: "stir the pot" 
And he is very successful at this. :D

There is a name, a greek name, in classical theater
for the character that fills that role in a play.
In a play, this character helps to develop and
advance the plot until it reach author's purpose or
logical conclusion.





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Design-Challenge-Round-Corner-mask-on-images-tp4702659p4703039.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: with effects

2016-04-03 Thread Alejandro Tejada
Hi Scott,

Scott Rossi wrote
> "With effects" refers to graphic effects, not inks.  
> It would be nice if inks were included but you probably 
> need to do a snapshot of a card region to include inks 
> (and I believe Alejandro may have already posted 
> the suggestion for this).

Bernd answer this same question in 
a previous thread about Rounded
Corners:

Bernd wrote:
--
"for inks you have to make a screenshot 
from the system-view 
 
on mouseUp 
   put the rect of image "sourceImg" into tSourceRect 
   put item 1 to 2 of tSourceRect into tTopLeft 
   put item 3 to 4 of tSourceRect into tBotRight 
   put globalLoc(tTopLeft) into tTopLeft 
   put globalLoc(tBotRight) into tBotRight 
   export snapshot from rect (tTopLeft & "," & tBotRight) to image "myImg"
as png 
end mouseUp 

But I think transparency is lost. But you get the ink-mode 
tried with notSrcCopy and blendExclusion. worked all right."
-

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/with-effects-tp4703059p4703067.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LiveCode Images Pixel Size Limit

2016-04-03 Thread Alejandro Tejada
Hi All,

Recently, Richmond ask:
> Is the 4000 x 4000 pixel limit on image sizes still there in Livecode 7? 

In Ubuntu 14.04 x64, using LC 7.1.3 
this 4MB compressed/ 580MB uncompressed
Jpeg image:
http://www.satsignal.eu/wxsat/msg-1-fc-40.jpg
imported and displayed fine.

According to this page:
http://www.satsignal.eu/wxsat/msg-1.htm
the image size is 5568 x 11136 pixels x 24-bit colour
and will therefore take about 180 MB of memory to display.

What is your larger image that LC 7 and 8 imports and
display without problems?

Thanks in advance!

Al




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LiveCode-Images-Pixel-Size-Limit-tp4703069.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: snapshot from rect XXX without card?

2016-04-04 Thread Alejandro Tejada
This works. Just copy the alphadata from
an imported snapshot of the graphic
into the snapshot of the graphic with
ink effects applied:

put the windowID of this stack into CHOP 
put the rect of graphic 1 into REKT 
import snapshot from grc 1
set the name of last img to "grc_snapshot_with_alpha"
import snapshot from rect REKT of window CHOP
set the name of last img to "grc_snapshot_with_inks"
set the alphadata of img "grc_snapshot_with_inks" to the alphadata of img
"grc_snapshot_with_alpha"
delete img "grc_snapshot_with_alpha"

Alejandro




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/snapshot-from-rect-XXX-without-card-tp4703100p4703106.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: The TSA Android app

2016-04-09 Thread Alejandro Tejada
In a brighter note, now every CS Teacher have a new
Real World Case to entice their students:
"Look how easy you can earn 
your first million dollars..." :D

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/The-TSA-Android-app-tp4703144p4703276.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: A brief message about my book

2016-04-17 Thread Alejandro Tejada
Hi Mark,

Congratulations for reaching the Fourth Edition
of your wonderful book!
Do you have plans to create Interactive Tutorials
for your next edition about LC8?
https://livecode.com/livecode-interactive-tutorials/

Have a nice week! 

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-brief-message-about-my-book-tp4703583p4703603.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Beeing a developer after 40

2016-04-29 Thread Alejandro Tejada
Interesting enough, I am trying to fill the gaps in my programming knowledge.

For this, I bought a not too old desktop computer and have set up this
computer only for learning programming.

Hopefully, finally I will learn how to make DLLs for my older versions of MC
and RR.
After that, using the most recent features of LC 8 should be easier to
understand... hopefully.

Wish me good luck! :)

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Beeing-a-developer-after-40-tp4703956p4703975.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Nelly the Elephant

2016-04-29 Thread Alejandro Tejada
Hi Richmond,

If you do not have a font installed
that displays these gliphs,
What error message display LiveCode?

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Nelly-the-Elephant-tp4703972p4703979.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC7 Community - Documentation window does not appear

2016-04-29 Thread Alejandro Tejada
Hi All,

Does exist a LiveCode Plugin that alerts if an open stack window
is not visible or out of the screen rectangle?

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/solved-LC7-Community-Documentation-window-does-not-appear-tp4703919p4703989.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [blog] Quicktime Dependency Solved

2016-05-27 Thread Alejandro Tejada
Hi All,

How difficult could be to leverage 
audio (.ogg) and video (webM) 
playback from Chromium Embedded 
Framework (CEF) within LiveCode 8?

Using current LC8, How could we do this: 

1) play a webM video from script
and LC8 just create an instance of 
RevBrowserCEF and put in the card 
a browser of webM movie size 
(without any extra borders).

2) play an .ogg sound file from script
and LC8 create a new instance of
RevBrowserCEF and put in the card
a browser with an audio player control.

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/blog-Quicktime-Dependency-Solved-tp4705232p4705263.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Chromium Embedded Framework as audio and video player

2016-05-28 Thread Alejandro Tejada
Hi All, 

How difficult could be to leverage 
audio (.ogg) and video (webM) 
playback from Chromium Embedded 
Framework (CEF) within LiveCode 8? 

How could we do this? 

1) play a webM video from script 
and LC8 just create an instance of 
RevBrowserCEF and put in the card 
a browser of webM movie size 
(without any extra borders). 

2) play an .ogg sound file from script 
and LC8 create a new instance of 
RevBrowserCEF and put in the card 
a browser with an audio player control. 

Thanks in advance!

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Chromium-Embedded-Framework-as-audio-and-video-player-tp4705276.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: SVG Editors, anyone?

2016-08-08 Thread Alejandro Tejada
Hi Graham,

Could you use the browser widget to
render a svg as png?

Take a look at this javascript code
that shows 3 different methods
to create a transparent png
from svg files:
http://techslides.com/save-svg-as-an-image

This works really fine:
http://techslides.com/demos/d3/convert-svg-png.html

Alejandro

On Mon, 08 Aug 2016,
Graham Samuel wrote:

> Yes, I?m assuming that the SVG capabilities of widgets
> will develop until pretty much any SVG graphic can be rendered:
> this could of course be wrong.

> But I would be very sad if we have to stick to monochrome
> for any serious work. After all, complex controls, which is
> what widgets are, are certain to demand colour sooner
> rather than later, and since scalability is the most attractive
> thing about widgets that I?ve seen so far, I very much hope
> this can be achieved via SVG.

> OTOH at the conference I don?t think I heard anyone
> from the mother ship talking about plans to enrich
> SVG rendering.

> If anyone knows anything more definite, please tell us!

> Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: The Joy of Removing Features - Part 2: Finding / removing duplicate files / photos.

2016-08-19 Thread Alejandro Tejada
Hi Alex,

How are you going to remove uninteresting photos?
Using an Artificial Inteligence online API?

https://www.quora.com/Which-company-has-the-best-image-recognition-APIs-in-the-market-place-today

https://cloud.google.com/vision/

In the LC Forum there is a very useful stack that employs
OpenClipArt.org API to display PNG and download
SVG files from this clipart website.

http://forums.livecode.com/viewtopic.php?f=9&t=27245

Al

On Fri, 19 Aug 2016 00:20:40 +0100
Alex Tweedly wrote:
[snip]
> Part 4 will (probably) describe an app for removing uninteresting photos.
[snip]
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android Stack Player

2016-09-04 Thread Alejandro Tejada
Hi All,

Does exist an Android LiveCode Stack Player that we could
download from Google Play?

I am talking about an Android APK that works like Ken Ray's Stack Runner:
http://www.sonsothunder.com/devres/livecode/downloads/StackRunner.htm

Thanks in advance!

Alejandro
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Set the fillGradient

2016-09-05 Thread Alejandro Tejada
Hi All,

Years ago, Scott Rossi published this stack:
http://www.tactilemedia.com/site_files/downloads/gradient_explorer.rev.zip

Does Scott Rossi still sells a Palette to
work with gradients?

By the way, there a few different ways to paste
a gradient in another graphic.

For example:
1) paste a gradient of exact size
on the location of a new graphic.

2) paste a gradient of exact size
at a new angle on the location
of a new graphic.

3) paste a gradient proportionally
on the rectangle of a new graphic.

4) paste a gradient proportionally
at a new angle on the rectangle
of a new graphic.

Creating these handlers just require
basic math and the most scarce resource
of all: Time, quality time to devote to
this task. :)

Have a nice week!

Alejandro


Randy Hengst wrote,
On Thursday, Sep 1 2016:

> To make this work via script, I’ve done two things…
> the easiest is to set the grc that I want to change
> to the size and position of the a grc master with
> the fill gradient I want to match… in this example,
> the script is in the grc to be changed:

on mouseDown
   local tStartLoc
   put the loc of target into tStartLoc
   set the loc of target to the loc of grc "Blue MasterChip"
   set the fillGradient of target to the fillGradient of grc "Blue MasterChip"
   set the loc of target to tStartLoc
end mouseDown

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Strategies to test stacks in different platforms

2016-09-10 Thread Alejandro Tejada
Hi All,

In this moment, I am testing an application
(saved as an stack, not an executable)
in Linux and Windows.

As professional developers, many of you
have to do this every day.

Could you share some true and tried strategies
to test stacks as users (not as developers)
in different platforms?

Thanks in advance!

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Strategies to test stacks in different platforms

2016-09-10 Thread Alejandro Tejada
Hi Jacque,

Many Thanks for publishing a link
to your webpage!

After posting my first message, I found this
webpage written by Devin Asay:
http://revolution.byu.edu/design/InterfaceDes.php

Among many useful references cited by Devin,
I found this webpage:
https://www.nngroup.com/articles/ten-usability-heuristics/

In Devin's webpage, there are a few dead links like:
1) http://homepage.mac.com/bradster/iarchitect/
2) 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/uidesign.asp

Does exists (for stacks) a checklist that I could print
and fill? A checklist similar to this, but created just
for stacks:
https://www.ncsu.edu/mmania/mm_docs/mm_judge_rubric2.html

Many Thanks in advance!

Alejandro

On Sat, Sep 10, 2016,
Jacqueline Landman Gay wrote:

> I wrote this almost 20 years ago for the AOL HC forum,
> but it still applies:



> Really the only way to test thoroughly is to find
> someone else to do it, someone who has never seen
> your stack before. As a developer, you know
> too much to test in an unbiased way. Also, watching
> a new user try to figure out what to do will tell you
> a lot about your interface.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


As easy as talking english

2016-09-18 Thread Alejandro Tejada
Hi All,

Could you answer a question from a Slashdot Reader?

Yesterday, Slashdot published news about
Apple's contributions for teaching computer
programming among young learners:

https://news.slashdot.org/story/16/09/17/224204/codeorg-disses-wolfram-language-touts-apples-swift-playgrounds?sbsrc=md

When I wrote this:

"Young english learners have the choice of learning Computer
Programming using a Programing Language that closely resemble their
native language: Livecode. It's Open source, Multi-platform (Linux,
Windows, Mac, etc,) and Free for education and non-commercial uses. I
just hope that, someday, people who speak other languages could have
this choice too."

Johannesg answer the following:

"I found the following example on wikipedia:
repeat ten times
put "Hello world at" && the long time & return after field 1
wait 1 second
end repeat
So what does this magical natural language-based language do? It uses
the same keywords you find in other languages ("repeat", "end
repeat"), it still requires quotes around quoted text, it still uses
weird symbols ("&&" and "&"), and no doubt there are still significant
restrictions on language structure because otherwise it would not be
parseable without ambiguity. In other words, it is like every other
computer language out there, except perhaps slightly more verbose in
places because most other computer languages have done away with
sticking "the" in front of nouns."

Today, I still have a small headache since yesterday night,
so if anyone have time to answer this question from
Johannesg please visit the discussion at:
https://news.slashdot.org/story/16/09/17/224204/codeorg-disses-wolfram-language-touts-apples-swift-playgrounds?sbsrc=md

Thanks in advance!

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Playing Sound question

2016-09-18 Thread Alejandro Tejada
Hi Bill,

Just for curiosity. I tested your stack
on Ubuntu Linux.

In Ubuntu, the first button does not work at all,
(Play MP3 AudioClip) but second button
(Play Audioclip 1) loads mplayer into memory,
and after clicking "Stop Playing" button
the sound starts.

As far as I know, there is no way to stop or
resume mplayer from within LiveCode, except
waiting until sound (or movie) is finished.

Alejandro

William Prothero wrote:

> Folks:
> I have a small sample stack that plays audio on desktop and iOS.
> I haven’t debugged in on Android or Windows, but if anybody would
> like to see it, here is the link.

https://www.dropbox.com/s/aqnlgzph5x5h23l/PlaySound Tests.zip?dl=0

> It’s very simple, but for those who are not familiar with playing sounds
> in version 8, it may save you some time.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Playing Sound question

2016-09-18 Thread Alejandro Tejada
Hi Bill,

After playing a bit more with this Sound Player
Livecode Stack, the IDE crashed.

LC 7.1.4 crashed after setting the playrate
to 2 and changing the volume to 50.

In fact, these features works and you could change
the playrate and the volume of mplayer from
the Properties Palette but after a while LC 7.1.4
simply crashed.

But LC 8.0.2 crashed inmediatly after clicking
the button "Play Audioclip 1". I had no
chance to test if Play Movie feature work in
LC 8.0.2

Before submitting a bug report, I will like
that MORE Linux users test your stack in their
own setup. Maybe the problem is only my own
setup and this computer.

Alejandro

On Sun, Sep 18, 2016 at 9:01 PM, Alejandro Tejada
 wrote:
> Hi Bill,
>
> Just for curiosity. I tested your stack
> on Ubuntu Linux.
>
> In Ubuntu, the first button does not work at all,
> (Play MP3 AudioClip) but second button
> (Play Audioclip 1) loads mplayer into memory,
> and after clicking "Stop Playing" button
> the sound starts.
>
> As far as I know, there is no way to stop or
> resume mplayer from within LiveCode, except
> waiting until sound (or movie) is finished.
>
> Alejandro
>
> William Prothero wrote:
>
>> Folks:
>> I have a small sample stack that plays audio on desktop and iOS.
>> I haven’t debugged in on Android or Windows, but if anybody would
>> like to see it, here is the link.
>
> https://www.dropbox.com/s/aqnlgzph5x5h23l/PlaySound Tests.zip?dl=0
>
>> It’s very simple, but for those who are not familiar with playing sounds
>> in version 8, it may save you some time.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Playing Sound question

2016-09-19 Thread Alejandro Tejada
In this forum thread:
http://forums.livecode.com/viewtopic.php?f=20&t=18429

MaxV posted a video that shows the movie player
working fine in Linux, you can actually play, pause
and resume:
https://www.youtube.com/watch?v=mxPzQaF-Feg

Does anyone knows if (using this movie player on Linux)
we could select a start and ending time for playing media
and if we could play a loop from a selection.

Both options are available in the Player properties inspector
but they do not seems to work, at least in Linux... :(

Alejandro

On Mon, 19 Sep 2016
panagiotis merakos wrote:

> Unfortunately, the LC player on Linux
> has been broken for a long time.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Malte Brill stack

2016-09-20 Thread Alejandro Tejada
Hi All,

Many years ago, Malte Brill posted
a stack (or script) that shows how
to use images within text fields to
simulate a game display board.

In his sample text field, you could
type a word and automatically, each
letter was converted to a bitmap image
of the letter typed.

Probably, Malte created this stack
for one of his games, but I have lose
the reference of the message date and
stack's name.

Does anyone keeps a copy of this stack
or could find the date of publishing,
among your backups?

Many Thanks in advance!

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Malte Brill stack

2016-09-21 Thread Alejandro Tejada
Hi Malte,

Many thanks for answering this request! :D

I searched use-livecode mail list after chatrev contest (until
December 2005), and only found a reference to one stack.

In August 2005, you posted a link to this stack: pngvsgif.rev
http://lists.runrev.com/pipermail/use-livecode/2005-August/065767.html

Looking a 2006 CD backup, I opened your stack but it's a demo about
animating a png.

In your messages, there is a reference to a tutorial and a stack about
using imagesource in text fields.

I will keep looking among my backups but noticed that google is not
indexing correctly anymore the use-livecode archives.

Mike Bonner wrote:
> DId anyone do the "advanced" challenge and
> make a robowars clone?  And if so, is there any
> chance I can have a look at it?

Do you refer to Geoff Canyon's stack: Starbattle?

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Malte Brill stack

2016-09-21 Thread Alejandro Tejada
I found it! :D

The tutorial I was looking for
is a chapter within the MS Windows
executable Program named:
Derbrill Tutorials.

Many thanks again for
pointing this quest in
the correct direction :)

Have a nice weekend!

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


The Achilles heel of Android and iOS

2016-09-22 Thread Alejandro Tejada
The neck-breaking speed of their hardware
obsolescence (planned or not) is
the Achilles heel of Android and iOS...

Take a look of these eye opening charts:
https://priceonomics.com/phones/
http://blog.musicmagpie.co.uk/2016/06/10/how-quickly-does-your-phone-fall-in-value/

Buying a NEW PHONE or Tablet is almost like
BURNING MONEY, just for the fun of it.

Losing (or if you prefer: "paying") 100 or more
dollars monthly, just to hold in your hand
the latest and greatest marvel of modern
electronics is the kind of luxury that grows
tiring real soon... much like social media fatigue:
https://www.foursys.co.uk/pages/article/do-you-suffer-from-social-media-fatigue-you-are-not-alone

Just imagine this (not so far away) scenario:

For any reason, people stop jumping in line
to buy the latest and greatest phone or tablet
and prefer to wait... and wait... just for a few weeks
or even a few months (because time flies
when you are busy), while still using their previous
latest and greatest marvel from just a few months ago.

How many months would Apple or Samsung
or every other phone/tablet maker could last
without selling new hardware to new or repeating
customers?

Maybe Years? Or Months? Or Weeks?

Do you understand how bad is this unhealthy
dependency (dependency on selling new hardware
to repeating and new customers) for the present and
future health of the computer industry?

I foresee easily, (if these trends do not change for better)
a disaster of Titanic's proportions in the computer industry.

Why the computer industry is unable to foresee
the peril and start devising strategies to produce
money from extended support of their older hardware?

Yes, money from supporting their older hardware and
opening a path for their customers to stay and update
within their own line of products.

Recently, I watched up close a Windows XP tablet,
similar to this:
https://www.youtube.com/watch?v=0qvVbPTG5IQ
and surprisingly, the user experience it's not
too far away from today tablets but these
tablet computers are more than 10 years old!

What kind of future is reserved for companies
that treat their customers as disposable?

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Vector path animation

2016-09-23 Thread Alejandro Tejada
Hi All,

I found a tutorial about vector path animation in MaxV website:
http://livecodeitalia.blogspot.it/2016/09/animazione-modificata-in-tempo-reale.html
and just build a variation that shows a pen drawing vector paths.

Download a zipped stack directly from the Livecode forums and play
with it. Every idea to improve usefulness and performance of this
stack is welcome.

"MaxV Interactive Drawing path.livecode.zip" .

http://forums.livecode.com/viewtopic.php?f=7&t=27546&start=15#p146706

Have a nice weekend!

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


The Achilles heel of Android and iOS

2016-09-26 Thread Alejandro Tejada
Hi All,

Thanks for sharing many
interesting points of view.

On Sat Sep 24 2016, Kay C Lan wrote:

> And you wonder why people are so eager to go out
> and buy the latest and greatest when they can't even
> tell the difference with what they've already got.
> It's not about the phone/shoes/handbag/car, it's about
> the perception of 'the haves' vs 'the have nots'.

If computer technology has become just another
fashion item that buys status, then I understand
how this technological era would comes to an end:
A Popular Phone App, with a zero day
vulnerability...

On Sun Sep 25 2016, Matt Maier wrote:

> Of the two skills, engineering and sales,
> it's the sales skill that's more generally useful
> (provided there are other humans around).
> If an engineer does good engineering
> they STILL have to find a salesman.
> If a salesman does good sales they don't
> necessarily even need a real product
> or service at all.

Good point. This brings to my memory a
conversation about Japan where this
visitor remarked surprised that all middleman
(or salesman) that he visited there while doing
business, were extremely wealthy. The words
that he used was "A life of extravagant luxury"

If you think about it, this is expected because
all Industrial Japanese Products (including mass
media phenomenon like games, movies, music,
etc) have been sold by middlemen, not directly
by their creators.

In USA, the pattern is the same and some of
the richest companies are Middlemen too:
Walmart, Amazon, Google and many more
make their fortune selling other people's creations
and products.

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[ANN] This Week in LiveCode 52

2016-09-26 Thread Alejandro Tejada
Hi All,

Richard Gaskin wrote:

> Of particular interest to me was this item:
> Research presented at ICER2016 showed lower overall cognitive
> load for LiveCode developers
> http://dl.acm.org/citation.cfm?doid=2960310.2960321
> Unfortunately that article is behind the ACM's paywall.
> Anyone here know if that article is also available through a
> publicly-accessible source?

When I was suscribed to ISTE and IEEE, one of the most useful services
they offered was access to many paywalled libraries and documents.

Unfortunately, the Special Interest Group (SIG) that I choose in ISTE
was mostly inactive: HyperSIG

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Analytical Engine - An Introduction to Computer Science [FOUND]

2016-10-01 Thread Alejandro Tejada
Hi All,

Finally, many months after searching for Macintosh Stacks from book:
The Analytical Engine - 2nd Edition, Lagi Pittas found the floppy disk
and posted disk's content on LiveCode forums:
http://forums.livecode.com/viewtopic.php?f=5&t=26101

When I opened the compressed zip folder, I noticed that all Macintosh
files are damaged because the Resource Fork split from their Data
Fork.

The only way to avoid this damage is compressing the folder inside a
Macintosh, using any of these compression utilities: Stuffit, Compact
Pro or Zip It.

Fortunately, Stuffit Expander could open and decompress the file named
!SEA (Data Fork only). This decompressed !SEA file produced a folder
that contains all the stacks. All of them as good as when they where
created 14 years ago. :-D

I have uploaded this file AEMacintoshStacks.zip (2 mb) to my Dropbox
account but looks like a free Dropbox account does not allows anymore
to share files with anyone that have file's link... or maybe simply I
don't know how to set "public access for everyone with a download
link".

If anyone in this mail list want this file: AEMacintoshStacks.zip (2
mb), please write me to send it directly to your email or maybe
someone could post this file on another free file download service.

The compressed zip folder includes 4 files:

1) A png image with a screencapture of the Macintosh desktop, showing
AE Stacks folder contents and stack AE Home.

Other 3 files are the complete stack's folder compressed
2) as stuffit (.sit),
3) as compact pro (.cpt) and
4) as zip it (.zip for Macintosh)

A Mac User that needs these files, could use at least one of these 3
files and decompress the stack's folder in a Mac.

Have a nice weekend!

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Analytical Engine - An Introduction to Computer Science [FOUND]

2016-10-01 Thread Alejandro Tejada
Correction:

This sentence:
> All of them as good as when they where
> created 14 years ago. :-D
Should have been:
> All of them as good as when they where
> created 23 years ago. :-D

Al


On Sat, Oct 1, 2016 at 4:11 PM, Alejandro Tejada  wrote:
> Hi All,
>
> Finally, many months after searching for Macintosh Stacks from book:
> The Analytical Engine - 2nd Edition, Lagi Pittas found the floppy disk
> and posted disk's content on LiveCode forums:
> http://forums.livecode.com/viewtopic.php?f=5&t=26101
>
> When I opened the compressed zip folder, I noticed that all Macintosh
> files are damaged because the Resource Fork split from their Data
> Fork.
>
> The only way to avoid this damage is compressing the folder inside a
> Macintosh, using any of these compression utilities: Stuffit, Compact
> Pro or Zip It.
>
> Fortunately, Stuffit Expander could open and decompress the file named
> !SEA (Data Fork only). This decompressed !SEA file produced a folder
> that contains all the stacks. All of them as good as when they where
> created 14 years ago. :-D
>
> I have uploaded this file AEMacintoshStacks.zip (2 mb) to my Dropbox
> account but looks like a free Dropbox account does not allows anymore
> to share files with anyone that have file's link... or maybe simply I
> don't know how to set "public access for everyone with a download
> link".
>
> If anyone in this mail list want this file: AEMacintoshStacks.zip (2
> mb), please write me to send it directly to your email or maybe
> someone could post this file on another free file download service.
>
> The compressed zip folder includes 4 files:
>
> 1) A png image with a screencapture of the Macintosh desktop, showing
> AE Stacks folder contents and stack AE Home.
>
> Other 3 files are the complete stack's folder compressed
> 2) as stuffit (.sit),
> 3) as compact pro (.cpt) and
> 4) as zip it (.zip for Macintosh)
>
> A Mac User that needs these files, could use at least one of these 3
> files and decompress the stack's folder in a Mac.
>
> Have a nice weekend!
>
> Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: 9.0???

2016-10-01 Thread Alejandro Tejada
Hi Peter,


pmbrig wrote
> By LC20 I’ll expect that creating a new app 
> will go something like this:
> 
> “computer, create new app for tracking my B & B rentals.”
> “what input modes will you want?”
> “verbal, database, keyboard”
> “integrate with AirBNB?”
> “yes"
> “name of app?”
> “MyGuests”
> “Done. You may begin using the MyGuests app now.”

Hopefully, this will be a feature of Livecode 10 :-D

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/9-0-tp4709057p4709103.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Distortion resizing group of vector graphics

2016-10-01 Thread Alejandro Tejada
Hi All,

Download the compressed stack "ResizeLivecodeGraphicsv01.livecode"
from this forum thread:
http://forums.livecode.com/viewtopic.php?f=10&t=28042

Some years ago, I made this live resizing script for my stack
PenTool http://www.capellan2000.000space.com/?i=1
and now, I am trying to use this script for more general purposes,
like resizing all controls of an Interface... but after repeated
use, the script just distorts the size and position of all controls.
In the sample stack, these controls are vector graphics, but
could be fields, images, buttons, etc...

Could you share some ideas about how we could make this script
mathematically more robust to resize all controls without distorting
their size and position after repeated use?

Thanks in advance!

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[OT] Fixing Data and Resource Fork of Macintosh files

2016-10-01 Thread Alejandro Tejada
Hi All,

This question is for LiveCode MacOSX developers:

Have you fixed a Macintosh file with a
broken Data Fork and Resource Fork?

According to this webpage, there is a Mac OSX
command line utility named “FixUpResourceForks”
that could fix a broken Macintosh file:
http://macstuff.beachdogs.org/blog/?p=11

Just for curiosity, Could you test this command line utility
“FixUpResourceForks” with files of the zipped file
"the_analytical_engine.zip" (881k) that you could
download from this forum thread:
http://forums.livecode.com/viewtopic.php?f=5&t=26101

Many, many thanks in advance!

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

use-livecode Digest, Vol 157, Issue 1

2016-10-01 Thread Alejandro Tejada
I looked for Sam Sepiol in Wikipedia and...
found nothing :o

Mark Wieder wrote:
> ...and that's what happens when you rely
> on Wikipedia as an authoritative source
> of truth. At any rate, it's in progress.
> http://gmane.org/gmane.comp.ide.revolution.user

On 10/01/2016 09:22 AM, Bruce Humphrey wrote:
> Mark,
> Looked up Gmane and it appears to be back in business in some form. Check 
> Wikipedia. Says it came back online early September.
> Bruce

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Analytical Engine - An Introduction to Computer Science [FOUND]

2016-10-01 Thread Alejandro Tejada
Thanks a lot Mark for
detailed instructions! :D

Here is Dropbox public download link.
Tell me if it works for everyone.

https://www.dropbox.com/s/935gzrqwgxwn6qb/AEMacintoshStacks.zip?dl=0

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Distortion resizing group of vector graphics

2016-10-01 Thread Alejandro Tejada
Hi Scott,

On Sat Oct 1 2016, Scott Rossi wrote:
> The only method I've found to accomplish this
> is to store all original rects before doing any
> scaling and base all size computations on the
> stored dimensions until the next resize event.
> It requires a little effort, but it works.

I understand that your advice is correct
but the script in the stack should (at least
in theory) be exactly equivalent to store all
rects and set controls position and size
after resize is done.

In practice, the script that I posted fails
under some circunstances and I want to
know which these circunstances are.
Maybe, just maybe, there is a workaround
to detect and correct these failures
before setting the new size and position
of all controls in card.

Al

On Sat, Oct 1, 2016 at 8:57 PM, Alejandro Tejada  wrote:
> Hi All,
>
> Download the compressed stack "ResizeLivecodeGraphicsv01.livecode"
> from this forum thread:
> http://forums.livecode.com/viewtopic.php?f=10&t=28042
>
> Some years ago, I made this live resizing script for my stack
> PenTool http://www.capellan2000.000space.com/?i=1
> and now, I am trying to use this script for more general purposes,
> like resizing all controls of an Interface... but after repeated
> use, the script just distorts the size and position of all controls.
> In the sample stack, these controls are vector graphics, but
> could be fields, images, buttons, etc...
>
> Could you share some ideas about how we could make this script
> mathematically more robust to resize all controls without distorting
> their size and position after repeated use?
>
> Thanks in advance!
>
> Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Analytical Engine - An Introduction to Computer Science [FOUND]

2016-10-01 Thread Alejandro Tejada
Hi Stephen,

On Sat, Oct 1, 2016 Stephen Barncard wrote:
> you could assemble a list of email addresses
> and use this: https://mixstream.wetransfer.com
> free to 2 gigs, stays up for a couple of weeks,
> no signup, no hassle.put me on the list if you do this.

Really Nice! Very fast and professional service.
I send the file using this service too.
Thanks a lot for posting this link.

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] Fixing Data and Resource Fork of Macintosh files

2016-10-02 Thread Alejandro Tejada
If you could test this command line MacOSX utility
please try first with this folder (that contains two files)
and post back the result as a compressed file.

https://www.dropbox.com/s/5c4c5ahbuttzx4x/AE_SEA.zip?dl=0

Many, many thanks in advance!

Alejandro

On Sat, Oct 1, 2016 at 9:41 PM, Alejandro Tejada  wrote:
> Hi All,
>
> This question is for LiveCode MacOSX developers:
>
> Have you fixed a Macintosh file with a
> broken Data Fork and Resource Fork?
>
> According to this webpage, there is a Mac OSX
> command line utility named “FixUpResourceForks”
> that could fix a broken Macintosh file:
> http://macstuff.beachdogs.org/blog/?p=11
>
> Just for curiosity, Could you test this command line utility
> “FixUpResourceForks” with files of the zipped file
> "the_analytical_engine.zip" (881k) that you could
> download from this forum thread:
> http://forums.livecode.com/viewtopic.php?f=5&t=26101
>
> Many, many thanks in advance!
>
> Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: [OT] Fixing Data and Resource Fork of Macintosh files

2016-10-02 Thread Alejandro Tejada
Stephen Barncard wrote:
> It's a 15 year old HC stack.


Actually it's 23 years! :D

On Sun, Oct 2, 2016 at 1:48 PM, Alejandro Tejada  wrote:
> If you could test this command line MacOSX utility
> please try first with this folder (that contains two files)
> and post back the result as a compressed file.
>
> https://www.dropbox.com/s/5c4c5ahbuttzx4x/AE_SEA.zip?dl=0
>
> Many, many thanks in advance!
>
> Alejandro
>
> On Sat, Oct 1, 2016 at 9:41 PM, Alejandro Tejada  
> wrote:
>> Hi All,
>>
>> This question is for LiveCode MacOSX developers:
>>
>> Have you fixed a Macintosh file with a
>> broken Data Fork and Resource Fork?
>>
>> According to this webpage, there is a Mac OSX
>> command line utility named “FixUpResourceForks”
>> that could fix a broken Macintosh file:
>> http://macstuff.beachdogs.org/blog/?p=11
>>
>> Just for curiosity, Could you test this command line utility
>> “FixUpResourceForks” with files of the zipped file
>> "the_analytical_engine.zip" (881k) that you could
>> download from this forum thread:
>> http://forums.livecode.com/viewtopic.php?f=5&t=26101
>>
>> Many, many thanks in advance!
>>
>> Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

9.0???

2016-10-02 Thread Alejandro Tejada
Hi Mike

I am not laughing at LC 9.

I am laughing because Artificial Inteligence very soon will become the
latest and greatest addiction for every Current Operating System.

Google, Microsoft and Apple are working 24/7 (with multiple
laboratories around the world) to bring AI first to their own
platform: AI Practical & Ready for everyday use.

Probably, Microsoft wins this race because they have millions of
devoted testers within their gaming platform: XBOX

https://news.microsoft.com/2016/09/29/microsoft-expands-artificial-intelligence-ai-efforts-with-creation-of-new-microsoft-ai-and-research-group/#sm.0001j2xz9oxblerjzjj2gqpl2a9i1

At first, Artificial Inteligence integration within applications would
be a not too common feature like text reading or voice control. My
educated guess is that in their first iteration, AI will start
unobtrusive as a helper for common and repetitive tasks.

The big question is: Which of these three AI API will implement first
LiveCode? Apple? Microsoft? or Google? Or a Third Party?
How many years will pass before these companies agree to create an
interoperable standard among their implementations?

Time will tell. Let's hope and wait.

Al

Mike Kenner wrote:
> Perhaps you should have a look at what's coming in 9
> before you laugh at it. The last three major versions
> brought major changes. 9 is kinda important.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[ANN] This Week in LiveCode 53

2016-10-03 Thread Alejandro Tejada
Hi Peter,

Could you make a change in the newsletter?

Could you change this:
"Alejandro Tejada has dug up some
23-year-old HyperCard stacks"

For this?
"Lagi Pittas, Andrew Ferguson and
Alejandro Tejada has dug up some
23-year-old HyperCard stacks

Thanks in advance!

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Analytical Engine - An Introduction to Computer Science [FOUND]

2016-10-06 Thread Alejandro Tejada
I asked Mr. Stuart Hirshfield if he have plans
to update his book and he answered:

Stuart Hirshfield wrote:
> Thanks again for your interest in our beloved project.
> For a number of reasons we have no plans for
> releasing updated materials. First and foremost,
> I am on the road to retirement.
> Second, there are now other texts (and other
> software packages) that have built upon our
> original ideas, some of which are very well done.
> Check out the following links:

https://www.amazon.com/Balanced-Introduction-Computer-Science-3rd/dp/0132166755/ref=sr_1_4?s=books&ie=UTF8&qid=1475802977&sr=1-4

https://www.amazon.com/Computer-Science-Illuminated-Paperback-International/dp/B014E1NIWM/ref=sr_1_2?s=books&ie=UTF8&qid=147508&sr=1-2&keywords=computer+science+illuminated+6th+edition

https://en.wikipedia.org/wiki/Little_man_computer

http://www.cburch.com/logisim/

http://ais.informatik.uni-freiburg.de/tursi/downloads.html

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: hide with visual effect

2016-10-11 Thread Alejandro Tejada
Hi Mike,

This old stack provides an useful visual reference
for every visual effect:

https://dl.dropboxusercontent.com/u/3834621/demoMC27_no_sounds.livecode

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Pattern Matching in Livecode

2016-11-09 Thread Alejandro Tejada
Hi all,

Recently I made a very long script for searching 3 words among a list
of 1080 lines of words.

Download the zipped stack MatchingPatternsv02
from this forum thread:
http://forums.livecode.com/viewtopic.php?f=7&t=28288

I suspect that LiveCode provides better tools for this task, but I
don't know which are and how to use them. Maybe a simpler solution is
to employ a regex, arrays operation or a really clever handler.

How many different methods (functions and commands) provides Livecode
to make this task of comparing and finding 3 words (taken from a list
of 12 words) among 1080 lines of 4 words?

Thanks in advance!

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Pattern Matching in Livecode

2016-11-09 Thread Alejandro Tejada
Hi Craig,

Your clever idea of reverting search terms works great too.
Many Thanks for answering my request! :D

I have posted a new stack and a screenshot
at the forum thread:
http://forums.livecode.com/viewtopic.php?f=7&t=28288

on mouseUp
   put fld id 1008 into WL -- 12 words
   put fld id 1014 into SC -- 1080 combinations

   repeat for each line Q in SC
  if lineoffset(word 1 of Q,WL) <> 0 and \
lineoffset(word 2 of Q,WL) <> 0 and \
lineoffset(word 3 of Q,WL) <> 0
  then
 put word 1 to 3 of Q & return after tCombinations
  end if
   end repeat

   if the number of words of tCombinations > 2
   then
  -- delete last char of tCombinations -- a CR character
  sort numeric descending tCombinations
  put word 1 to -1 of tCombinations into fld id 1025
   else
  put "No matching set found" into fld id 1025
   end if

end mouseUp

Still, I am curious to learn if regex and arrays operations
could produce the same results but faster.

Have a nice week!

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Pattern Matching in Livecode

2016-11-09 Thread Alejandro Tejada
Just noticed that Peter and Hermann
posted handlers too.

I will update the stack and post a new
version in a few minutes. :D

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Perspective Distortion of an image (was: Type on an angle)

2016-11-21 Thread Alejandro Tejada
Hi Hermann,

On Sun, 20 Nov 2016, Hermann wrote:
> ** Perspective Distortion of an image **
> available (fast) at "Sample stacks" of the IDE toolbar or (slower) at
> http://livecodeshare.runrev.com/stack/812/Perspective-Image-Distortion
> The stack includes is an example for (close to) live-distorting a field's
> image, uses font 'Aclonica' at 48 point.

Amazing work, Hermann! :D
Many Thanks for sharing all these Math Gems.

How about this for a new challenge?
https://www.willmcgugan.com/blog/tech/post/a-texture-mapped-spinning-3d-globe-rendered-with-javascript-and-html/

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Box2D Physics Engine

2016-11-21 Thread Alejandro Tejada
Hi All,

On the forum, ClipArtGuy wrote:
> FWIW, the Box2D Physics Engine goal
> was also met and has also been dropped
> from the roadmap.

http://forums.livecode.com/viewtopic.php?f=10&t=28290&p=148671#p148314

Which LiveCode version includes Box2D?

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Max number of colors on a gradient

2016-11-21 Thread Alejandro Tejada
Hi All,

I was testing the practical limitations
of svg and LiveCode graphics and
noticed that a svg with 1024 gradients
displayed fine in the browser, but shows
a lot of banding, moire and noise
within LiveCode.

Very similar to this image:
http://www.123rf.com/clipart-vector/moire.html?mediapopup=38363779

According to SKIA, How many colors
could we add safely to a gradient?
What are the practical limits
of this feature?

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Max number of colors on a gradient

2016-11-22 Thread Alejandro Tejada
Hi Colin,

Finally I was able to import a svg with 1022 color
in a single gradient.

Download a stack and svg from this forum thread:
http://forums.livecode.com/viewtopic.php?f=10&t=28357

But my questions still remains unanswered:
How many colors could we add safely to a LiveCode gradient?
What are the practical limits of this feature?

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Draw an adjustable Trapezoid in Livecode - How to change x, y of the 4 corner points of a rect

2016-11-24 Thread Alejandro Tejada
Maybe this could be useful:

on mouseUp
   lock screen
   create grc
   set the style of it to polygon
   set the points of it to "3,0,0,10,10,10,7,0,3,0"
   -- a very small figure
   set the rect of it to "0,0,200,100"
   -- enlarge the figure
   set the loc of it to the screenloc
   -- position it in a place easy to find
   unlock screen
end mouseUp

Alejandro

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Convert SVG to PNG using Browser Widget

2016-11-28 Thread Alejandro Tejada
Hi All,

Download the stack SVGToPNG_Draftv01.livecode
(compressed in a small 6k download) attached to
this message in the forum:

http://forums.livecode.com/viewtopic.php?f=11&t=28384#p148944

It's just a first draft that must be improved
in the javascript code and Livecode scripts.

Ideally, the process of copying a svg as a png
from the Browser Widget to a LiveCode stack
should take a single click and offer more options,
like resizing and cropping but these features
will appear, eventually, if this stack is useful.

Have a nice week!

Al

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


  1   2   3   4   5   6   7   8   9   10   >