October 1 meeting, Pasadena

Discussion forum for the Southern California LiveCode Developer Group

Moderators: Klaus, FourthWorld, robinmiller

Post Reply
chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 199
Joined: Wed May 11, 2011 7:50 pm
Location: Southern California

October 1 meeting, Pasadena

Post by chipsm » Wed Sep 30, 2015 3:48 am

Are we having any special visitors or demos for this meeting?
Clarence Martin

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5962
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: October 1 meeting

Post by FourthWorld » Wed Sep 30, 2015 6:21 am

You. :) Or whatever anyone else who wants to share. There's always room for things like code optimization, a popular topic if your code is in a place where we can look at that. And I always bring a few extra goodies to share, but if we have enough stuff from the regulars, or any newcomers, that's all good too.

Time permitting I can walk us through the new devolution 4.0 toolkit I use every day. Like Bobby and Paul and others have noted, it's not the most amazing tech, but it offers some nice conveniences for serious LiveCode work.

For anyone else interested in attending the meeting, here are the details:

Where:
Du-par's, back room
214 S. Lake Avenue
Pasadena CA 91101
http://www.du-pars.com/dupars_locations.html

When:
Thursday, September 3, 7:00PM

Who:
The meetings are open to any and all who have an interest in chatting about LiveCode.

What:
Attendees are encouraged to bring something to share - it can be a brief presentation, a problem you need help solving, or even just any question about LiveCode.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

golive
Posts: 98
Joined: Wed Jul 01, 2015 5:16 am

Re: October 1 meeting

Post by golive » Wed Sep 30, 2015 8:33 am

FourthWorld wrote: Time permitting I can walk us through the new devolution 4.0 toolkit I use every day. Like Bobby and Paul and others have noted, it's not the most amazing tech, but it offers some nice conveniences for serious LiveCode work.
Too far away to come to the meeting unfortunately.

What is the "devolution 4.0 toolkit"? Google didn't reveal anything ...

bvlahos
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Tue May 01, 2012 1:52 am

Re: October 1 meeting, Pasadena

Post by bvlahos » Thu Oct 01, 2015 1:13 am

I'm looking forward to seeing everyone again.

Bill Vlahos

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5962
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: October 1 meeting, Pasadena

Post by FourthWorld » Fri Oct 02, 2015 11:16 am

Clarence, thanks again for helping to set up, and for being so well prepared with bringing your code as a group optimization exploration.

Here's the thread I was talking about at the meeting, not only a good collection of optimization tips but also a fine example of community collaboration:
http://forums.livecode.com/viewtopic.php?f=8&t=24945
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 199
Joined: Wed May 11, 2011 7:50 pm
Location: Southern California

Re: October 1 meeting, Pasadena

Post by chipsm » Fri Oct 02, 2015 2:42 pm

Thanks for the link to the thread, I will be reviewing it.
I would like to thank all of the members for their input to my code. I actually tried one suggestion out using the "filter" command and it worked well. The next try will be the "replace" command.
I will be placing a lot of time capturing routines in to help find the bottle necks.
I am sorry about the glitches in viewing the data files, but I found that using DropBox without an internet connection and my limited disk space was the problem. As soon as I got home and had an internet connection, the database via Navicat was available. I will have that problem solved by next meeting.
I will be reorganizing the application for total optimization but I will keep the existing code with the timing routines for a reference.
I was amazed by the fact that you guys were able to analyze my code as well as you did. This whole process has been a chore for me seeing how this was my first real application with LiveCode. Learning and coding for real can be a real daunting experience.
Again, thanks to all!
Clarence Martin

chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 199
Joined: Wed May 11, 2011 7:50 pm
Location: Southern California

Re: October 1 meeting, Pasadena

Post by chipsm » Fri Oct 02, 2015 2:44 pm

Paul,

Thanks for your work on the document. I do appreciate the work and effort as I am sure many others also appreciate you efforts.
Clarence Martin

jiml
Posts: 150
Joined: Sat Dec 09, 2006 1:27 am
Location: Los Angeles

Re: October 1 meeting, Pasadena

Post by jiml » Sat Oct 03, 2015 9:46 pm

Hi Clarence,

Code: Select all

replace cr with (textToAppend & cr) in sourceText 
should append textToAppend to every line in sourceText

So, the idea is to

Code: Select all

put fld 'trendLog" into sourceText
put "_some device info" into sourceText
replace cr with (textToAppend & cr) in sourceText
put sourceText into fld "trendLog"
where "_some device info" is whatever device data you extract from that list of device information.

So, if...

Apple
Pear
Cherry

... is in fld 'trendLog"
and textToAppend is
", a tasty fruit."

After this runs, fld 'trendLog" should contain:

Apple, a tasty fruit.
Pear, a tasty fruit.
Cherry, a tasty fruit.

Voila! You have appended a string to every line in a container without having to use a repeat loop. The engine does it for you.
Gotta love LiveCode.

BTW, when you first try this you might want to check the contents of sourceText before shoving it into your trendLog field, because the original field contents will be lost once sourceText is put into that field.

As we discussed for you application all these text manipulations will happen much faster in variables than in fields.
I suspect you'll only need three variable for manipulating text in your application:
DeviceInfoList - holds the info from which you'll extract the endings
DeviceLogs - the list you of the logs you fetch from the DB
TrendLog - the log for device that you fetch one after the other.

Hope this helps.

Jim Lambert

chipsm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 199
Joined: Wed May 11, 2011 7:50 pm
Location: Southern California

Re: October 1 meeting, Pasadena

Post by chipsm » Sun Oct 04, 2015 12:03 am

Thanks Jim.
This is a great suggestion.
I will keep everyone posted on how things are going.
I already tried the "filter" suggestion and it was GREAT!
Clarence Martin

Post Reply

Return to “SoCal LiveCode Group”