Search found 77 matches

by bhall2001
Sun Feb 21, 2016 2:40 pm
Forum: Talking LiveCode
Topic: Data Grid Form Scroll for Drag Drop
Replies: 0
Views: 1436

Data Grid Form Scroll for Drag Drop

What do I need to do to get a Data Grid form to scroll when dragging a row that you'd like to drop in a row that is not in view? Data Grid tables just work as far as I can tell. When the mouse hits the top/bottom of the data grid while dragging, the DG will scroll. Data Grid forms do not. The quick ...
by bhall2001
Tue Feb 16, 2016 5:54 pm
Forum: Talking LiveCode
Topic: Sockets "Freeze" until mouse move on Macbook
Replies: 1
Views: 1679

Sockets "Freeze" until mouse move on Macbook

I'm wrestling with a strange behavior on my first App using sockets. In a nut shell, I'm writing what I think is a simple client/server app for a round-robin Tournament. I a nut shell, there is a Head judge system (server) receiving results and scoring information from up to 6 arenas (clients). Each...
by bhall2001
Wed Dec 16, 2015 2:19 pm
Forum: Talking LiveCode
Topic: Weighted Random Selection Optimizing
Replies: 1
Views: 1661

Weighted Random Selection Optimizing

I have an LC project where I need to select a random number from a weighted array of numbers. The weighting is essentially a bias on randomly selected the element. I've written a routine that I think is an efficient solution to this problem. I'd love feedback/advice on how to make it faster as I am ...
by bhall2001
Tue Dec 15, 2015 5:46 pm
Forum: IDE Contributors
Topic: Project: Performance Benchmarking Toolkit
Replies: 52
Views: 73182

Re: Project: Performance Benchmarking Toolkit

WOW! Looks like I will be moving to 8.0 ASAP for a couple of my projects that are in development. That's really impressive!

Bob Hall
by bhall2001
Mon Nov 23, 2015 9:45 pm
Forum: Internet
Topic: ".." in Folder List
Replies: 2
Views: 3408

Re: ".." in Folder List

Ah, thanks for clearing that up. Now it makes sense. I was having a senior moment I guess...

Bob
by bhall2001
Mon Nov 23, 2015 4:33 pm
Forum: Internet
Topic: ".." in Folder List
Replies: 2
Views: 3408

".." in Folder List

Today's issue of This Week In Livecode (TWILC) pointed to an interesting bug report that got my attention. I've started a project to bring HMVC to revIgniter which relies on ".." to walk directories. My project is based on 2 Codeigniter HMVC projects that use ".." to walk the servers directories to ...
by bhall2001
Mon Oct 19, 2015 3:27 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

I'll start creating versions to make it easier. Thanks for the tip. The solution is really easy to the performance issue. I simply made a case in the parsing switch statement looking for "" and simply returning it. I have no idea what's happening but I don't think it's a bug in Livecode. I'm suspect...
by bhall2001
Sun Oct 18, 2015 8:34 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

Just created branch 4.0.1. Includes fix to pText, declaration of local vars for strict compilation, and most importantly, THE FIX TO "RUNS FAST ONCE THEN NOT" :D Here's what caused the issue. If the JSON data contained a data pair of "name":"", Livecode would forever run the library slow. I added in...
by bhall2001
Sat Oct 17, 2015 11:42 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

I've noticed in my testing a strange behavior and am wondering if someone might be able to steer me in a direction to track down the issue. When I use my test stack on the dictionary here's what I've noticed. Launch LC 7. Launch test stack open Livecode Dictionary json file and run tests. Speed is V...
by bhall2001
Sat Oct 17, 2015 4:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

Pete, user error. I did a copy/paste in ATOM and must of double pasted the dictionary file. Thank goodness! I've attached a screen capture of my test stack's results of parsing the dictionary (old and tired 2007 iMac). 405707 tokens got parsed in 18.5 seconds and 12.9 seconds to go back to an array....
by bhall2001
Sat Oct 17, 2015 4:27 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

HMM... let me look into it. I have no idea what's up with that. I am on Mac OS 10.10.5 and I'm using LC 7.1 Indy but did get the Dictionary JSON from LC8 DP6 Community. I have a bouncy icon yelling at me to upgrade my LC which I will do momentarily and see what's in there for a dictionary. Pete, THA...
by bhall2001
Fri Oct 16, 2015 10:28 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

Been working on this today. The issue is that the data is not valid JSON. a) I need better error handling in the code. isJson() determines that the JSON is not valid. b) confirmed the json is not valid by running it through a known json linter. fastJson isJson() determines that the {[]} are off by 1...
by bhall2001
Fri Oct 16, 2015 1:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

Well, hold on... while it looks like the library did parse the file and my initial look at the data I thought was fine but I think there's an issue. I'm going need to do some more detailed analysis before I make my final conclusion that we have a valid array in LC.

Bob
by bhall2001
Fri Oct 16, 2015 1:14 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

I was able to find the LC Dictionary file in LC8. I'm also happy to report that the 0.3.1 branch of fastJson was able to convert the JSON to an array and back again! Converting the 9.8MB JSON file to an array took about 24 seconds on my 2007 iMac. This is by far the largest JSON file I've run throug...
by bhall2001
Fri Oct 16, 2015 12:10 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 38468

Re: "new" JSON library fastJson

I'm committing changes to the 0.3.1 branch in Git. If you right click the fastJson.lc link and download to a file, this is the most recent version of the development branch. These changes are not in the "master" as of yet. You can also click the link then copy/paste the code into your Library stack ...

Go to advanced search