PING: Dr. Who - FAQ Strip Trailing Whitespace
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Anonymous Servers > PING: Dr. Who - FAQ Strip Trailing Whitespace




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    PING: Dr. Who - FAQ Strip Trailing Whitespace  
George Orwell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-09-07 06:14 PM

Two suggestions for removing trailing whitespace:

MiniTrue is an Open Source filter type search/replace utility.
<http://www.idiotsdelight.net/minitrue>

Similar to "Example 13" in the documentation:
mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)[
 \t]+\Z" = \1 > output.txt

Pipe standard output to PGP if desired:
mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)[
 \t]+\Z" = \1 | pgp -fast -u 0x14A606A7 -o output.txt

Similarly for GPG:
mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)[
 \t]+\Z" = \1 | gpg -sat -u 0x14A606A7 -o output.txt


Metapad is a lightweight Notepad replacement with many
enhancements including the ability to strip trailing whitespace.
<http://liquidninja.com/metapad/>

Select desired text
Edit | Block > Strip Trailing Whitespace
(Ctrl+A, Alt+W)



Il mittente di questo messaggio|The sender address of this
non corrisponde ad un utente   |message is not related to a real
reale ma all'indirizzo fittizio|person but to a fake address of an
di un sistema anonimizzatore   |anonymous system
Per maggiori informazioni      |For more info
https://www.mixmaster.it






[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Anonymous Remailer (austria)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-10-07 12:13 AM


George Orwell wrote:

> MiniTrue is an Open Source filter type search/replace utility.

> Metapad is a lightweight Notepad replacement with many
> enhancements including the ability to strip trailing whitespace.

Sounds like great suggestions. 

Sometimes I feel sorry for Windows users though....

for line in my_text: line.rstrip()

<grin>






[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Non scrivetemi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-10-07 12:13 AM

"Anonymous Remailer (austria)" <mixmas...@remailer.privacy.at>
Message-ID: < 58a6974a892a01d637c0a6c8afad0d6e@remaile
r.privacy.at>

Sometimes I feel sorry for Windows users though....

Vista sucks for remailers. There is on freeware encyption you can
use,JBN and Quicksilver do not work. I have to use web based remailers.
Looking to buy new Dell with Lunix.








[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Anonymous Sender


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-10-07 12:13 AM

In article < 74e8dbadfdf913f2aecd40107f97b446@mixmast
er.it>
George Orwell <nobody@mixmaster.it> wrote:
>
> Two suggestions for removing trailing whitespace:
>
> MiniTrue is an Open Source filter type search/replace utility.
>  <http://www.idiotsdelight.net/minitrue>
>
> Similar to "Example 13" in the documentation:
> mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)	
1; \t]+\Z" = \1 > output.txt
>
> Pipe standard output to PGP if desired:
> mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)	
1; \t]+\Z" = \1 | pgp -fast -u 0x14A606A7 -o output.txt
>
> Similarly for GPG:
> mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)	
1; \t]+\Z" = \1 | gpg -sat -u 0x14A606A7 -o output.txt
>
>
> Metapad is a lightweight Notepad replacement with many
> enhancements including the ability to strip trailing whitespace.
> <http://liquidninja.com/metapad/>

EditPad and QEdit are worth looking at too.




















[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Anonymous Remailer (austria)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-10-07 06:13 AM


Non scrivetemi wrote:

> "Anonymous Remailer (austria)" <mixmas...@remailer.privacy.at>
> Message-ID: < 58a6974a892a01d637c0a6c8afad0d6e@remaile
r.privacy.at>
>
> Sometimes I feel sorry for Windows users though....
>
> Vista sucks for remailers. There is on freeware encyption you can
> use,JBN and Quicksilver do not work. I have to use web based remailers.

Vista sucks period. It's probably the single most screwed up OS release
in the history of mankind, and one of the most embarrassing things a
major retailer has done since Western Digital shipped palates of hard
drives with boot sector viruses preinstalled. JBN/QS aren't the only
things that won't work with Vista, and it's not limited to software
either.

Windows in general sucks for people trying to remain anonymous because
one of its design parameters is to collect information about
everything you do and hand it to a third party who can use it for
"marketing research". Sure, there's a couple decent clients available
to make using remailers easier, and for some people it's the only way
they can sort it out. But "easy" and "doesn't suck" are often not the
same thing.

Mixmaster itself is a fine remailer client if you're not running it
under a crippled OS. On Linux boxes there's no need for any sort of GUI
client software because things work the way they're suppose to. You
have many options, from Mixmaster itself, to clients with more or less
native support, to simple pipes and scripts that glue almost any client
to Mixmaster/GnuPG, to installing Mixmaster as a full blown private
server alongside an MTA that feeds messages to the remailer network
directly.

Not to mention the fact that Linux is just more stable and secure
overall....

I honestly don't understand why anyone whose serious about their
privacy would still be running Windows of any flavor. Haven't we seen
enough carnage cause by huge, gaping holes in that OS? And Linux is
actually easier to install, set up, and maintain than Windows is these
days. The mainstream distrobutions ask fewer questions at install time,
install proper "drivers" by default, include most of the things you
need for typical computing tasks. and have centralized *secure*
repositories from which to get extra software when you do need it. And
updates for vulnerabilities don't take years to appear.

> Looking to buy new Dell with Lunix.

Super! I'm so glad Dell decided to get fully behind a Linux line. It's
a real shot in the arm to the computing population in general, let
alone a good thing for Linux.

Go with Ubuntu if they have an option (last I heard Fedora was also
available). The Ubuntu community is a massive resource to draw on for
support. ;-)






[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Thomas J. Boschloo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-11-07 12:12 AM

George Orwell schreef:
> Two suggestions for removing trailing whitespace:
>
> MiniTrue is an Open Source filter type search/replace utility.
>  <http://www.idiotsdelight.net/minitrue>
>
> Similar to "Example 13" in the documentation:
> mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)	
1; \t]+\Z" = \1 > output.txt
>
> Pipe standard output to PGP if desired:
> mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)	
1; \t]+\Z" = \1 | pgp -fast -u 0x14A606A7 -o output.txt
>
> Similarly for GPG:
> mtr -xo+ input.txt "[ \t]+(\r\n)" = \1 "(\b)[ \t]+\Z" = \1 "(^)[ \t]+\
Z" = \1 | gpg -sat -u 0x14A606A7 -o output.txt

It looks nice but seems a bit hard to use for a novice user like Doctor
Who or me. Too many options. Too powerful for a mere mortal.

> Metapad is a lightweight Notepad replacement with many
> enhancements including the ability to strip trailing whitespace.
> <http://liquidninja.com/metapad/>
>
> Select desired text
> Edit | Block > Strip Trailing Whitespace
> (Ctrl+A, Alt+W)

Have you actually used this program before or did you hit upon it with a
google search like 'strip trailing whitespace notepad'?

If you did, please don't help Doctor Who google the web.

Thomas
--
A society with suicide bombers
is a polite society





[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Anonymous


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-12-07 12:14 PM

Thomas J. Boschloo wrote:

> George Orwell schreef: 
>
> It looks nice but seems a bit hard to use for a novice user like
> Doctor Who or me. Too many options. Too powerful for a mere
> mortal.
>

Yeah... O.K.

Since the command lines given work as advertised
your point is well... pointless.

 
>
> Have you actually used this program before or did you hit upon it
> with a google search like 'strip trailing whitespace notepad'?
>

Does it come up with a Google search as you suggest?
I have no idea. Yes I use the program for many years.
This message is composed using Metapad.






















[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Thomas J. Boschloo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-12-07 12:14 PM

-----BEGIN PGP SIGNED MESSAGE-----

Anonymous schreef:
> Thomas J. Boschloo wrote:
> 
>
> Yeah... O.K.
>
> Since the command lines given work as advertised
> your point is well... pointless.

Doc should at least make a batch file out of it. With %1 and stuff in it
(unless the filename is always the same)
 
>
> Does it come up with a Google search as you suggest?

Yes. See your own subject btw.

> I have no idea. Yes I use the program for many years.
>
> This message is composed using Metapad.

I hope Doctor Who has a use for it in fighting bad signatures. What
bothered me about it is that it is designed to replace Notepad
completely. But now that Doctor Who is using it I am seriously
considering using it myself.

Thomas
- --
A society with suicide bombers
is a polite society
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iQB5AwUBRw9F5QEP2l8iXKAJAQFr0AMdGifv1TdO
1OUtzLs2l4wmxm6w9/rgbo+K
 +N5DwvkqmdmsEVkfv7f39egUhh14UKkHgHTCrKJy
Hyhbv0gJFzXJYdLls+31WI9A
bj8wa3f/vIqNVLBgdKDtH1gsGfYe9MtA//56rw==
=fQzL
-----END PGP SIGNATURE-----





[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Thomas J. Boschloo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-15-07 06:14 PM

-----BEGIN PGP SIGNED MESSAGE-----

George Orwell schreef:
[snip]
> Metapad is a lightweight Notepad replacement with many
> enhancements including the ability to strip trailing whitespace.
> <http://liquidninja.com/metapad/>

Another option might be http://notepad-plus.sourceforge.net
It can:
* remove trailing spaces/tabs
* replace leading spaces/tabs
* replace all non-printable characters by #
* delete surplus blank lines (also in the middle of your document)
* save in UTF-8 as well as ASCII

So far so good.

What it doesn't do is handle tabs that are in the middle of some text.
So I would still prefer the program I wrote:
http://home.hccnet.nl/t.j.boschloo/wordcnt/cleanfaq.zip
On an MS-DOS prompt your FAQ will look just the same before and after I
processed it (except non-printable characters like upper-ASCII). Yet it
will contain nothing more than ASCII 32-126 plus CR LF.

If you need me to remove blank lines I can do that too. It just seems to
me the person in need of this the most is not the one we would want to
entrust with such anonymizing power.

hi,
Thomas
- --
A society with suicide bombers
is a polite society
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iQB5AwUBRxNpvwEP2l8iXKAJAQHrVAMdHJb14lw3
UsfOZoHInND1WC8Co5i8I3eG
d1VlA/ vEtaJRBlEPMUPAB8CDzX9wIU2CXLzjgfPdXPiVsd
2W5sNz8apHyeuw4OnN
hQ4WpfE1LLVsmIQjJOKRIMkMuq31e3+/BrPQew==
=dHUt
-----END PGP SIGNATURE-----





[ Post a follow-up to this message ]



    Re: PING: Dr. Who - FAQ Strip Trailing Whitespace  
Non scrivetemi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-07 12:11 AM

Thomas J. Boschloo wrote:

> What it doesn't do is handle tabs that are in the middle of some text.

One last time dimwit, typing real slow so you can keep up...

Tabs aren't a problem, trailing white space is. Converting other tabs
to spaces accomplishes nothing, except in the case of your cobbled
together junk possibly breaking the formatting of columnar text
because you can't quite manage to figure out that tabs need to be
converted to a set number of spaces within a document.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:13 AM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register