Search found 25 matches

by Lostgallifreyan
Fri Feb 18, 2005 11:30 am
Forum: General
Topic: File association fails in Win XP; with workaround
Replies: 2
Views: 514

Not sure if it's still around on the TextPad site, but there was a tiny app that launched TextPad from its own directory (probably consulting the app paths registry entry for TextPad). Edit: it is. :) http://www.textpad.com/add-ons/index.html Look for txplink... What I do is call it Notepad.exe, the...
by Lostgallifreyan
Wed Feb 16, 2005 12:59 pm
Forum: General
Topic: Stable Sorting Algorithm Needed.
Replies: 14
Views: 1936

Like I said, there are several cases were both the subject, and the timestamp were identical . (It was a very busy forum.) In cases like that, a stable sort is mandatory.. It takes the guessing out of it. There's a lot to think through already, so a stable sort is a fundamental method to rely on. (I...
by Lostgallifreyan
Wed Feb 16, 2005 11:56 am
Forum: General
Topic: Stable Sorting Algorithm Needed.
Replies: 14
Views: 1936

If you have access to a system running Linux, its sort command should have a --stable parameter. I'm sure that will do the job in an acceptable time! Keith MacDonald Helios Software Solutions I wish :) I never learned beyond Windows (got hardware needs that nothing else supports).. I think there we...
by Lostgallifreyan
Wed Feb 16, 2005 11:49 am
Forum: General
Topic: less intelligent document switching
Replies: 3
Views: 258

I agree it can be irritating at times. Usually I keep the Ctrl key held while cycling the set of open files, and take care to release it only on file pairs I want to swap between. I think if there are less than ten open, it's not too awkward to just touch each one in the selector panel in the order ...
by Lostgallifreyan
Wed Feb 16, 2005 11:37 am
Forum: General
Topic: REGEX Capturing multiple lines
Replies: 13
Views: 1426

Line length is the problem, as you said. I saw that stack overflow warning when working on the problem I posted about in another thread (80555 lines of unindexed forum archive, thread here about stable sorting). The line count wasn't a problem with regexp macro preprocessing, but the largest posts w...
by Lostgallifreyan
Wed Feb 16, 2005 11:27 am
Forum: General
Topic: Stable Sorting Algorithm Needed.
Replies: 14
Views: 1936

If the search algorithm is unstable, that won't cure the problem, because the first sort was by subject (ignoring occurences of 'Re: '), then once each subject chunk was isolated (with a blank line; another reason I chose to script my own fix) I would want the timestamps in right order. If the searc...
by Lostgallifreyan
Wed Feb 16, 2005 6:01 am
Forum: General
Topic: Stable Sorting Algorithm Needed.
Replies: 14
Views: 1936

Fine by me. I agree, and already asked here for a switch... My LuaScript swap sort took 4 hours! (The lines that had to be swapped were huge, a forum with many very large posts, so the moving probably took more time than the testing). Still, I was asleep when it did it, and it only had to be done on...
by Lostgallifreyan
Mon Feb 14, 2005 1:53 pm
Forum: General
Topic: Stable Sorting Algorithm Needed.
Replies: 14
Views: 1936

Thanks for the answer. :) Got to say though, that with over 16 it wasn't stable either.. I'd been sorting a forum archive of 80555 posts, reformatted as single lines, sorting by timestamp. Those few posts that arrived in the same second, would often be transposed. I'd tested this purely because I ha...
by Lostgallifreyan
Mon Feb 14, 2005 11:19 am
Forum: General
Topic: REGEX Capturing multiple lines
Replies: 13
Views: 1426

At the risk of being facetious, you could always paste that block into a file called X.htm, them pass it through Proxomitron to a browser... :twisted: This would let you use the $ char in a bounds check, and do exactly what you asked. Seriously, Prox has an awesome RexExp set, with choice of greedy ...
by Lostgallifreyan
Mon Feb 14, 2005 11:10 am
Forum: General
Topic: Stable Sorting Algorithm Needed.
Replies: 14
Views: 1936

Stable Sorting Algorithm Needed.

Please could some certainty be added to this sorting, so it is unconditionally stable? I'm new here, but I have searched.. :) Used terms: sorting, stable, unstable, algorithm... in combination and singly, with few results that help beyond some confirmation in one post that someone else has seen what...