Search found 3432 matches

by bn
Wed Oct 21, 2020 11:35 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Setting IT for the caller, not for local use
Replies: 16
Views: 1981

Re: Setting IT for the caller, not for local use

Hi slowmaker, with a little tweaking your pseudocode works. -- in button script on mouseUp get 42 test it answer it & colon && the result -- would present 'cool: 84' if the below special variable really worked end mouseUp -- in card script on test @var put var into tVar2 if var is a number then put ...
by bn
Mon Oct 12, 2020 11:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Convert Decimal to Fraction?
Replies: 10
Views: 1037

Re: Convert Decimal to Fraction?

Hi Jon,

something along these lines?

fraction.livecode.zip
(1.4 KiB) Downloaded 46 times

Kind regards
Bernd
by bn
Fri Oct 09, 2020 11:36 pm
Forum: Talking LiveCode
Topic: How many rocks in Scotland?
Replies: 18
Views: 2683

Re: How many rocks in Scotland?

Outstanding ! Talk about a simple software fix.
The only thing/person that I know in relation to Livecode that is out standing is
Lloyd Rieber
http://lrieber.coe.uga.edu

Lloyd Rieber out standing.jpg
Kind regards
Bernd
by bn
Fri Oct 09, 2020 12:47 pm
Forum: Talking LiveCode
Topic: How many rocks in Scotland?
Replies: 18
Views: 2683

Re: How many rocks in Scotland?

I came across binary reading here http://forums.livecode.com/viewtopic.php?f=9&t=3690 Garrett wanted to index a 23 Gigabytes Wikipedia xml file. It took him 3 days to do it, with some optimization it went down to 30 minutes. While looking into it I found the speed advantage of binary read http://for...
by bn
Fri Oct 09, 2020 12:11 pm
Forum: Talking LiveCode
Topic: How many rocks in Scotland?
Replies: 18
Views: 2683

Re: How many rocks in Scotland?

How about the insertion of Note this translation requires considerable CPU time and slows the processing of large files. For maximum speed use the binary form. preferably in a red type face. You would have to make clear that this is only safe if the file is suitable for binary acces which is then u...
by bn
Fri Oct 09, 2020 8:52 am
Forum: Off-Topic
Topic: Spelling mistakes
Replies: 34
Views: 5560

Re: Spelling mistakes

quod erat demonstrandum est
You might want to show this to your Latin teacher...

Kind regards
Bernd
by bn
Thu Oct 08, 2020 6:23 pm
Forum: Talking LiveCode
Topic: How many rocks in Scotland?
Replies: 18
Views: 2683

Re: How many rocks in Scotland?

Hi Simon, Interesting news: in your version change ## Open the inputfile for reading Open file pFile for text read to ## Open the inputfile for reading Open file pFile for binary read and for me with that change the timing was Started at : 1602175881354ms Ended at : 1602176012382ms Run Time : 2.1838...
by bn
Thu Oct 08, 2020 1:12 pm
Forum: Talking LiveCode
Topic: How many rocks in Scotland?
Replies: 18
Views: 2683

Re: How many rocks in Scotland?

Its interesting that such a significant increase in processing speed can be achieved by modifying the code to read in blocks of data into memory before conducting the search for characters. I suppose it occurs because your code does not require as many read operations - forty versus tens of thousan...
by bn
Wed Oct 07, 2020 11:46 pm
Forum: Talking LiveCode
Topic: How many rocks in Scotland?
Replies: 18
Views: 2683

Re: How many rocks in Scotland?

Got it down to about 40 seconds by playing whith the amount read from the big file for each iteration. This is a bit tricky and probably depends on the hardware, especially Harddisc vs. SolidStateDisk. For SSD 10 MB for each iteration seems to be optimal. Here is the current version on mouseUp pMous...
by bn
Wed Oct 07, 2020 9:14 pm
Forum: Talking LiveCode
Topic: How many rocks in Scotland?
Replies: 18
Views: 2683

Re: How many rocks in Scotland?

Here is my take on this. On my machine 2017 MacBookPro with SSD it takes roughly 60 seconds. That is more than 18 seconds for Thierry's solution but still less than the original solution. It finds 148 occurrences in the 3.55 GB file Simon indicated. That is 1 less than Simon and Thierry find. I coul...
by bn
Mon Sep 28, 2020 7:06 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Best strategy for building complex software?
Replies: 24
Views: 2752

Re: Best strategy for building complex software?

Hi stam, I don't know if you are aware of Andre Garzia's book "LiveCode Advanced Application Architecture" https://andregarzia.com/books.html I find it very instructive. It advocates a Model View Controller (MVC) scheme with examples. Well written. If you are familiar with MVC it might be a bit basi...
by bn
Mon Sep 28, 2020 11:53 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Map widget problem(s)
Replies: 7
Views: 666

Re: Map widget problem(s)

I got it working by adding a button setting up the markers. As you can see in my previous code, it was inside the openCard command because I wanted to markers to be shown on opening the card. I don't know why, but it didn't work for me. After adding the button und putting said script inside the mou...
by bn
Sat Sep 26, 2020 6:25 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: [SOLVED] I need to split up a line into an array. Got all but the last part - any help?
Replies: 15
Views: 2271

Re: I need to split up a line into an array. Got all but the last part - any help?

All works except the last (put anything after trueword 6...)
would this help?

Code: Select all

put trueWord 7 to -1 of newLine into OPSInfo
Kind regards
Bernd
by bn
Thu Sep 24, 2020 6:13 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Map widget problem(s)
Replies: 7
Views: 666

Re: Map widget problem(s)

@Bernd, he said he added the spaces due to forum restrictions on new users. Maybe an inclusion is missing? Oh, I missed that he intentionally added the spaces. I can not think of any inclusion that would be needed since the widget does show on his phone but probably with the default coordinates. I ...
by bn
Thu Sep 24, 2020 8:59 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Skin a control with SVG Widget in Datagrid
Replies: 37
Views: 3862

Re: Skin a control with SVG Widget in Datagrid

Thank you Brian,

a very useful and instructive file

Kind regards
Bernd

Go to advanced search