Search found 150 matches

by bwmilby
Sun Jul 22, 2018 9:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 35
Views: 1192

Re: How to sort out this

Glad to help out. Of course my solution would not have been possible without the 2 previous suggestions on using arrays. Also, looking at this sample data, item 2 is item 1 + what looks to be a 2 or 4 digit year (for the duplicates). The second pass could be eliminated if you tested for that instead.
by bwmilby
Sun Jul 22, 2018 8:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 35
Views: 1192

Re: How to sort out this

Well, I don't think the lineoffset method is viable for the real file. I let it run for >10 min and it still didn't finish. The below code took between 18 and 23 sec for the actual data (first file - .7z) on mouseUp local tList, tKey, tLines, tCounts, tDupes, tStart set the itemDel to ":" put the mi...
by bwmilby
Sun Jul 22, 2018 7:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 35
Views: 1192

Re: How to sort out this

The goal is to completely remove any key that is repeated (not just the duplicates). Having real data makes a difference. The offset method is terribly slow (still working). The 2 array method took 18497ms. I'm not sure if you caught the 10000 loops and removed them (I did that to compare speed of t...
by bwmilby
Sat Jul 21, 2018 11:21 pm
Forum: Creating Games
Topic: Hexagons and stuff
Replies: 17
Views: 749

Re: Hexagons and stuff

Probably something along the lines of creating a square mask image that only shows the hex tile area and then screen shot that area. Then as you move across the image you will capture the tiles you need and can set the margins as transparent. Just need to do the math to position the captures correct...
by bwmilby
Sat Jul 21, 2018 10:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 35
Views: 1192

Re: How to sort out this

I'm not sure that produces the desired result. This does though: on mouseUp local tList, tKey, tKeys, tStart set the itemDel to "@" put the millisecs into tStart repeat with i=1 to 10000 put the text of field "Source" into tList -- look at each line in the original data repeat for each line tLine in...
by bwmilby
Thu Jul 19, 2018 11:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to sort out this
Replies: 35
Views: 1192

Re: How to sort out this

Okay... I didn't realize there would be more than one key duplicated. Here is revised code. You have to do 2 passes. The first looks for the duplicates, the second removes them. ########CODE to copy and paste with your mouse####### on mouseUp 20 local tList, tKey, tKeys, tDupes 20 set the itemDel to...
by bwmilby
Sun Jul 15, 2018 1:20 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: About LiveCode
Replies: 13
Views: 335

Re: About LiveCode

If your biggest concern is the speed of editing scripts in the IDE, you could use something like ScriptTracker to export the scripts and edit them in something like Atom (which provides Linting).

https://github.com/bwmilby/lc-misc/tree ... iptTracker
by bwmilby
Wed Jul 04, 2018 1:32 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A compile problem
Replies: 10
Views: 341

Re: A compile problem

Or even lock messages when closing the stacks and then unlock when re-opening so that the behaviors get established properly...
by bwmilby
Sat Jun 23, 2018 11:18 pm
Forum: Version Control
Topic: ANN: Script Tracker
Replies: 8
Views: 1457

Re: ANN: Script Tracker

Are you talking about the consolidated diff? That is still in there but only is generated based on differences between successive exports.
by bwmilby
Mon Jun 11, 2018 1:24 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: UrlEncode and ArrayEncode
Replies: 19
Views: 821

Re: UrlEncode and ArrayEncode

I just tested the code in 8.1.9 and 9.0 and always got "true" (all 3 on the first one, 2 on the second one)

Code: Select all

put "Bg0AAAABAAN1bm8GAAVhc2lubw==" into TheData -- first one
put "asino" into TheData["uno"]                 -- second one
I tested on Win10.
by bwmilby
Sun Jun 10, 2018 7:46 pm
Forum: Bug Triage
Topic: Base64decode causing decrypt fault on Android?
Replies: 19
Views: 1115

Re: Base64decode causing decrypt fault on Android?

If you are doing it that way, the use key instead of password. And add the salt to the password before generating the key. Or, just pull my PW demo stack and use the hmac function. https://github.com/bwmilby/lc-misc/blob/master/PasswordDemo/PasswordDemo_Scripts/stack_PasswordDemo_card_id_1002.liveco...
by bwmilby
Sat Jun 09, 2018 6:26 am
Forum: Bug Triage
Topic: Base64decode causing decrypt fault on Android?
Replies: 19
Views: 1115

Re: Base64decode causing decrypt fault on Android?

Been playing around with encryption and "aes256" yields the same encrypted text at "aes-256-cbc" so my guess is that they are synonyms. I was able to encrypt with one and decrypt with the other. The textEncode reference you are looking for is in the messageDigest dictionary entry. When computing has...
by bwmilby
Sat Jun 02, 2018 7:14 pm
Forum: Version Control
Topic: ANN: Script Tracker
Replies: 8
Views: 1457

Re: ANN: Script Tracker

Is there a way to grandfather in an older version so I can compare it to the newer one? There isn't a built in easy way to do a compare like you are asking, but working on copies it would not be very difficult to do. If you just need a one-time diff between the code it two stack versions, it will b...
by bwmilby
Fri Jun 01, 2018 11:52 pm
Forum: Bug Triage
Topic: Base64decode causing decrypt fault on Android?
Replies: 19
Views: 1115

Re: Base64decode causing decrypt fault on Android?

...if i do this and that, that would make it a lot better...damn what did i change, it worked so great... :twisted: Take a look at my Script Tracker... it can help you keep track of the changes made to the scripts of a stack (even without Git). https://forums.livecode.com/viewtopic.php?f=77&t=31079
by bwmilby
Thu May 31, 2018 5:45 am
Forum: Version Control
Topic: ANN: Script Tracker
Replies: 8
Views: 1457

Re: ANN: Script Tracker

Thanks very much @jacque and @bogs!

I just posted an update that uses textEncode/textDecode to ensure scripts are saved in UTF-8.
I also modified the script menu so that the alt key can be used to include IDE stacks (still hides mode 0 stacks which should keep the script only stacks off the list).

Go to advanced search