ACF Notes 1.0.6 [Program Update]

J

jsimlo

Would be a handy addition. As would be "remove unique lines".
One needs to find unique lines, and remove unique lines, in a number
of situations. File lists, names and address' etc. If one has a list
of URls for example one might want to remove all those that are only
listed once.

maybe i can implement such thing as a filter (anyway, that is exactly
why filters architecture has been started... ;)
You are happy with command line approaches. Many windows users
don't like that. Such people often don't complain. They just look for
something else to use.

i have an idea about implementing grep as a native tool of ted, but it
would still use gnu grep.exe in the background... just it will not be
so obvious... ;) what about that? or, anybody can tell me about some
regexps library free to include in a non-copylefted application?

anyway, thanx for your view, ...jsimlo
 
J

John Fitzsimons

i have an idea about implementing grep as a native tool of ted, but it
would still use gnu grep.exe in the background... just it will not be
so obvious... ;) what about that?

That sounds great. Thank you. :)
or, anybody can tell me about some
regexps library free to include in a non-copylefted application?
anyway, thanx for your view, ...jsimlo

You are welcome. Apart from the install routine, and the file size
limitation, I rather liked what you had done with Ted. :)

Regards, John.

--
****************************************************
,-._|\ (A.C.F FAQ) http://clients.net2000.com.au/~johnf/faq.html
/ Oz \ John Fitzsimons - Melbourne, Australia.
\_,--.x/ http://www.vicnet.net.au/~johnf/welcome.htm
v http://clients.net2000.com.au/~johnf/
 
J

jsimlo

The original files had a long hex string for the dird grepd and cutd
values. On import, tha hex string is just "%" which looks to be as
intended. So here are all three reg files, consolidated together.

that is a unicode hex of those strings. i used them, because regedit
can not handle newlines within string values. i modified those zip
packages at http://jsimlo.sk/notepad/filters.php ...added txt files
with those strings... could you please review them and try to export
them under regedit4? (....i have only the xp's regedit5 available...)
The dir one worked fine. The grep and the cut ones did not work.
Maybe to do with the syntax? I have not used either of those programs

the syntax is alright, and everything is fine when you have those
"cutd" and "grepd" values as they describes, how to use those filters..

thanx for any help, jsimlo

p.s. i have started with the RE version and i would like to ask you
(and anybody reading this :) about some help with testing....
 
J

John Fitzsimons

p.s. i have started with the RE version and i would like to ask you
(and anybody reading this :) about some help with testing....

You might like to consider having a "beta" page with a download link.
Not linked to your current pages. Mention it here and I am sure that a
number of people will be interested in doing some testing and giving
you feedback.

Regards, John.
 
O

omega

John Fitzsimons said:
http://jsimlo.sk/notepad/notepad.php

You might like to consider having a "beta" page with a download link.
Not linked to your current pages. Mention it here and I am sure that a
number of people will be interested in doing some testing and giving
you feedback.

Good idea, John. Agree, that would be the best way to go. I'm not sure
if there is anything on its members-only yahoo groups page. But, in any
case, I do not yahoo. It would be good to have a public beta page/link.
 
O

omega

jsimlo said:
that is a unicode hex of those strings. i used them, because regedit
can not handle newlines within string values. i modified those zip
packages at http://jsimlo.sk/notepad/filters.php ...added txt files
with those strings... could you please review them

Tonight I downloaded them. Converted them to ansi. Removed my
[HKCU\..\Medvedik\] registry key. Imported them. Exported the
combined filters key. Result reg entry: Identical to what I'd
posted before.
and try to export them under regedit4? (....i have only the xp's
regedit5 available...)

I've read about 2000/XP having a commandline parameter (-ae) to export
a regkey to ansi, but do not know about whether you have options to do
that when running the Windows registry editor the normal graphical mode.

Meantime, to supplement my earlier post on the subject of conversion,
I've now noticed that GridinSoft Notepad Lite is not only one that lets
me load a unicode reg file on w98, but that further, has conversion
convenience directly in the Save As.

Save As Type: Unicode | Ansi.

This is not an editor with lots of exciting features; but for this
particular purpose which we run into, I've decided it is the most direct
one for the job. http://www.gridinsoft.com/downloads/gsnote.zip
the syntax is alright, and everything is fine when you have those
"cutd" and "grepd" values as they describes, how to use those filters..

The reg entry is the same as before, and I get the same errors. "Filter
returned with error: -1." Sometimes accompanied by one of the unxutils
telling me to rtfm.

It's a bit beyond me to know what to do here. For example, when I set up
external tools with other editors, part of the command involves giving a
variable for "act on current file." Often in a syntax like "%F% or similar.

In Ted Notepad, I don't really get the basics. Like, how the stdin and
stdout are being directed, when these filter tools are called.

On the other hand, on systems where these Ted filters are working, that's
not something I'd have to think about anyway, correct? You see these work
in 2000/XP? Is the Ted filtering tools situation dependent on limitations
of the operating system's commandline processor (command.com here)? I am
curious about that, if so, but totally unqualified to figure it out.
 
O

omega

omega said:
Tonight I downloaded them. Converted them to ansi.

Snip. Disregard that. Sorry: I'd not succeeded in paying attention. It's
only now that I see what you're referring to. Not the .reg files, but
the .txt files that are in your revised zips.

I've just opened one of the files.

: This is the content of the cut.reg file. Use these values to setup
: Cut filter through TED Notepad instead of running the .reg file.
:
: Name: Cut
: Command: cut -n%2 -%1
:
: Description:
:
: %1 (use 'f' or 'c', but only one of them)
: f fields[,fields,..]
: c characters[,characters,...]
: N N'th, counted from 1
: N- from N'th, to end of line
: N-M from N'th to M'th (included)
: -M from first to M'th (included)
:
: %2
: d "delimiter"
: s - only delimited

I'll have to get back later on this. Once I've taken time (and enlist
from slumber a hopefuly adequate number of neurons) to try to work it
through.
 
O

omega

[Re special reg imports into w98]
that is a unicode hex of those strings. i used them, because regedit
can not handle newlines within string values. i modified those zip
packages at http://jsimlo.sk/notepad/filters.php ...added txt files
with those strings... could you please review them and try to export
them under regedit4? (....i have only the xp's regedit5 available...)

I worked through some quick testings. Not in depth, but enough to provide
a little progress over my previous responses.

The original consolidated reg file that I posted worked fine as a starting
point. Next, to have that multiline syntax description field available in
Ted's interface, I copied into Ted the texts you provided, via Settings >
Filters > Modify. The registry changes stick upon closing. The bad news
is that the export of the resulting key does not come out in a regedit4
compatible .reg file. That newlines problem that you speak of. The file
does not follow the structure that regedit needs. Instead of "valuename=
"value," it has free-floating plain text, ignored by regedit on attempted
import. So, all we can do is enter the description fields for the filters
manually. But that seems ok. If we are adding other various commandline
tools that interest us, we will there too be engaging in the manual steps
of pasting their syntax help into Ted's description field.

As to the filters working, once more fully configured... Yes. That solved
what turned out to be the essential problem I'd had. Not having the syntax
provided in my face for what to enter for the variables.

I tried the grep command. Seemed fine, in essence. Just a couple of minor
issues, such as the linebreaks getting mangled in the output; plus some
non-ascii mystery chars. But I didn't cross-compare with running it straight
from a command window, or do more than a couple of passing tests.

I also tried the Cut command. Instead of rtfm'ing on what that one's about,
I just handed it the simple parameter of --help. The resulting output into
Ted's document windwo was fine.

The one filter that acted strangely was dir. When I'd tried it before,
I'd lift it with "cmd /c dir ..." I have a w2000 command emulator in
my path with that name; this got called up, and all was fine.

Then today, I tried it with setting it to call my w98 default, command.com,
instead. The funky result with command.com is that there is an output window
that says, "Waiting for command to finish .. dir /b" and it hangs there
forever. Forever or until I hit the cancel button.

After hitting the cancel button, then the dir output loads into Ted's
window, acting innocent, as if the whole stuck window incident had never
occurred. I've not the least idea why this behavior.

Btw, I tried it both with /c and /k. The latter launches a second instance
of Ted. But both have that window hanging there until one hits cancel. Odd
bit.
p.s. i have started with the RE version

I hope you will post a link for downloading the RE version. I mean, if
I were to expend my concentrations on configuring my Ted settings to
enable it call various commandline tools for text processing, I'd want the
benefit of being able to do it on real files, not 40k sample-sizers. :)
 
O

omega

Re: TED Notepad (was INFO: etc.)

Dang. Right after hitting send, I realized that I forgot to use the correct
subject header. Any followup, please repair.
 
J

jsimlo

omega said:
Good idea, John. Agree, that would be the best way to go. I'm not sure
if there is anything on its members-only yahoo groups page. But, in any
case, I do not yahoo. It would be good to have a public beta page/link.

i did, started a new thread with subj
"TED Notepad RE clone"... ....jsimlo
 
J

jsimlo

omega said:
import. So, all we can do is enter the description fields for the filters
manually. But that seems ok. If we are adding other various commandline
tools that interest us, we will there too be engaging in the manual steps
of pasting their syntax help into Ted's description field.
i decided to re-release all filters in some other way, the brainwave
about those regfiles was not so good, as i see... (...stupid newlines...)
I tried the grep command. Seemed fine, in essence. Just a couple of minor
issues, such as the linebreaks getting mangled in the output; plus some
non-ascii mystery chars. But I didn't cross-compare with running it
straight from a command window, or do more than a couple of passing tests.
that should have the same result... this gnu grep isn't a native application
of win32, and handles newlines in some strange way... but convert to unix
and back from unix should repair that... until someone repairs gnu grep...
btw: what about grep of borland? pretty similar, win32 compatibile, but not
free as gnu... :(
I also tried the Cut command. Instead of rtfm'ing on what that one's
about, I just handed it the simple parameter of --help. The resulting
output into Ted's document windwo was fine.
nice idea.... ;)
The one filter that acted strangely was dir. When I'd tried it before,
I'd lift it with "cmd /c dir ..." I have a w2000 command emulator in
my path with that name; this got called up, and all was fine.

Then today, I tried it with setting it to call my w98 default,
command.com, instead. The funky result with command.com is that there
is an output window that says, "Waiting for command to finish ..
dir /b" and it hangs there forever. Forever or until I hit the cancel
button.
that is realy strange... please try the "launch.exe dir /b", if the same
problem remains...
After hitting the cancel button, then the dir output loads into Ted's
window, acting innocent, as if the whole stuck window incident had never
occurred. I've not the least idea why this behavior.
me, too, but want to figure out... ;)))))
Btw, I tried it both with /c and /k. The latter launches a second instance
of Ted. But both have that window hanging there until one hits cancel. Odd
bit.
/k is supposed to stay there... /c is supposed to terminate after the dir
terminates...
I hope you will post a link for downloading the RE version. I mean, if
I were to expend my concentrations on configuring my Ted settings to
enable it call various commandline tools for text processing, I'd want the
benefit of being able to do it on real files, not 40k sample-sizers. :)
already did... ;) ...jsimlo
 
D

digitalMOSQUITO

jsimlo said:
i decided to re-release all filters in some other way, the brainwave
about those regfiles was not so good, as i see... (...stupid newlines...)



that should have the same result... this gnu grep isn't a native application
of win32, and handles newlines in some strange way... but convert to unix
and back from unix should repair that... until someone repairs gnu grep...
btw: what about grep of borland? pretty similar, win32 compatibile, but not
free as gnu... :(

There are several ports of the gnu utilities to Windows world.
I don't know what is that you use. Here are some sugestions
http://gnuwin32.sourceforge.net/ ; http://astrogrep.sourceforge.net/ ;
http://www.interlog.com/~tcharron/grep.html ;
http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html ;
http://unxutils.sourceforge.net/

dM
 
O

omega

jsimlo said:
that should have the same result... this gnu grep isn't a native application
of win32, and handles newlines in some strange way... but convert to unix
and back from unix should repair that...

Good news here: it just got easier. The grep output is now fine. When I use
the RE version of TED.

It's only when using the original TED LE (including the newest v 4.1.0 LE)
on w98, where I get the funky Grep output.
nice idea.... ;)

Pretty much its single response in the conversations I'd previously tried
to initiate with it, was its repeatedly telling me to go read --help ...
so that seemed the most peaceful solution. said:
that is realy strange... please try the "launch.exe dir /b", if the same
problem remains...

Same result.
me, too, but want to figure out... ;)))))

I thought to hold it open, before hitting cancel, to at least tell you
something about the window name that hangs there. Yet when launching a
process viewer just now, I discover more complication. I've got some four
stuck DOS processes (even after Ted now closed).

These pairings:

redir32.exe (win32 redir32 core component, microsoft)
winoa386.mod (non-windows application component, microsoft)
redir32.exe
winoa386.mod
redir32.exe
winoa386.mod
redir32.exe
winoa386.mod

As to redir32.exe, that is the first time I've ever caught it in my
proclist, or even been conscious of its existence.

While writing this, I've managed to kill three of four instances of
winoa386 (that stubborn remnant #4 aka command.com, stuck somewhere).
Not luck yet on killing any instance of redir32.

Either I dig out something more muscular than the two procmons I normally
use to end tasks, or I wait until rebooting. At that point, I'm going
to run the filters commands, and watch what goes on in the proclist
while doing that. What I suspect is that the stuck procs are arising
from the command.com /dir filter. Strange...
 
O

omega

digitalMOSQUITO said:
There are several ports of the gnu utilities to Windows world.
I don't know what is that you use. Here are some sugestions
http://gnuwin32.sourceforge.net/ ; http://astrogrep.sourceforge.net/ ;
http://www.interlog.com/~tcharron/grep.html ;
http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html ;
http://unxutils.sourceforge.net/

The one at the TED Notepad filters download page is from that last URL.
Thanks for the links for the other incarnations. I've bookmarked, for at
least my own use.

Tho' I won't finish mastering their documentation before mañana. ;)
 
J

jsimlo

omega said:
Good news here: it just got easier. The grep output is now fine. When I use
the RE version of TED.

that's because the richedit handles newlines in his own way and does not
recognize differences between 'simple NL', 'simple CR' and 'CR/NL sequence'
.... therefore no newlines trouble occured... even the grep troubled it...
I thought to hold it open, before hitting cancel, to at least tell you
something about the window name that hangs there. Yet when launching a
process viewer just now, I discover more complication. I've got some four
stuck DOS processes (even after Ted now closed).

when you hit cancel, TED kills the process it started, so command.com is
killed, but no child processes of command.com are... but why dir is being
runned as a child process, i dont know.. dir is no application, it is
just a shell command of the command.com, aways have been... hm...
redir32.exe (win32 redir32 core component, microsoft)
winoa386.mod (non-windows application component, microsoft)

never heard of redir32.exe (no such file even on my testing systems)
As to redir32.exe, that is the first time I've ever caught it in my
proclist, or even been conscious of its existence.

better look at these:
http://www.sophos.com/virusinfo/analyses/trojhotmovie.html
http://www.stclairc.on.ca/people/pages/kgarber/question.htm

jsimlo
 
O

omega

jsimlo said:
never heard of redir32.exe (no such file even on my testing systems)


better look at these:
http://www.sophos.com/virusinfo/analyses/trojhotmovie.html
http://www.stclairc.on.ca/people/pages/kgarber/question.htm

It might be used to do stealth things by trojans; or maybe some malware
also write there own version. However, redir32.exe is part of the standard
Windows distribution [*] for 95/98/ME.

I did some Filemon (Sysinternal's utility) logging. In the case of all my
tested text editors /IDEs that redirect the command.com output back to
themselves, redir32.exe gets called into play. So to with several other
helper files (winoa386.mod, conagent.exe).

I'm posting this quick note right now. Since sometimes when I start looking
at something in depth (as in doing the Filemon analysis), then time passes
to where I end by failing to reply to the thread at all.

Quick sum. Initially I'd started with a Google groups search, and found that
some programmers were having trouble with terminating redir32. Then I did
the Filemon logs. Two of the eds/IDEs I'd tried seemed to have trouble.
The other six or seven were fine. Then back to TED. Should have started
there. As I then learnt, from logging, that he problem /only/ comes in
when using that command.com /k that I'd experimented with. So there is not
trouble after all, about stuck DOS processes.

Oh and all this passing things around activity with redir32 and that little
network of helper files, it happens strictly when command.com is called.
Not when invoking a commandline tool directly. And also not when I use the
32-bit cmd.exe emulator that is in my path.

As to the original problem. The "Waiting for command to finish" window
that just hangs there. Nothing clear about that has come up yet. Feasibly
I'll finish processing my filemon logs to attempt to assess whether there
is something different when compared side by side with invoking the
command.com DIR within another editor vs TED. Although, even then, I'm
not confident that would offer much enlightenment from the standpoint
of programming.

Mainly it is only a matter for curiosity. At the moment, I cannot think
of what other internal command.com commands one would want to set up with
TED.(?) And when I do use dir, it is my preference to use the cmd emulator
that I have ("win95cmd.exe"), since it gives a larger choice of dir params.


--
Karen S.


______
[*] http://support.microsoft.com/default.aspx?scid=kb;en-us;238767
Windows 98 Second Edition CD-ROM Directory Listing (8 of 14)

Contents of the Win98_46.cab File
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top