October 1 meeting, Pasadena
Moderators: FourthWorld, Klaus, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 244
- Joined: Wed May 11, 2011 7:50 pm
- Location: Southern California
October 1 meeting, Pasadena
Are we having any special visitors or demos for this meeting?
Clarence Martin
chipsm@themartinz.com
chipsm@themartinz.com
-
- VIP Livecode Opensource Backer
- Posts: 9856
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: October 1 meeting
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.
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: October 1 meeting
Too far away to come to the meeting unfortunately.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.
What is the "devolution 4.0 toolkit"? Google didn't reveal anything ...
Re: October 1 meeting, Pasadena
I'm looking forward to seeing everyone again.
Bill Vlahos
Bill Vlahos
-
- VIP Livecode Opensource Backer
- Posts: 9856
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: October 1 meeting, Pasadena
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
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 244
- Joined: Wed May 11, 2011 7:50 pm
- Location: Southern California
Re: October 1 meeting, Pasadena
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!
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@themartinz.com
chipsm@themartinz.com
-
- VIP Livecode Opensource Backer
- Posts: 244
- Joined: Wed May 11, 2011 7:50 pm
- Location: Southern California
Re: October 1 meeting, Pasadena
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.
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
chipsm@themartinz.com
chipsm@themartinz.com
Re: October 1 meeting, Pasadena
Hi Clarence,
should append textToAppend to every line in sourceText
So, the idea is to
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
Code: Select all
replace cr with (textToAppend & cr) 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"
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
-
- VIP Livecode Opensource Backer
- Posts: 244
- Joined: Wed May 11, 2011 7:50 pm
- Location: Southern California
Re: October 1 meeting, Pasadena
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!
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
chipsm@themartinz.com
chipsm@themartinz.com