Article View: alt.free.newsservers
Article #146014--
From: Jeff-Relf.Me
Date: Mon, 19 Nov 2012 08:21
Date: Mon, 19 Nov 2012 08:21
78 lines
4500 bytes
4500 bytes
<body style='background: black;'><pre style='background: black; font-family: DejaVu Sans Mono, Lucida Console, monospace, MS Mincho; padding: 1em; color: rgb( 128, 64, 0 ); font-size: 25px;'>
"Base64" has 64 digits, lowest ( 0 ) to highest ( 63 ):
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
To save screen space, I use Base350:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
ȴȵȶȷȸȹȺȻȼȽȾȿɀɁɄɅɌɍɐɑɒɓɔɕɖɗɘəɚɛɜɝɞɟɠɡɢɣɤɥɦɧɨɩɪɫɬɭɮɯɰɱɲɳɴɵɶɷɸɹɺɻɼɽɾɿʀʁʂ
ʃʄʅʆʇʈʉʊʋʌʍʎʏʐʑʒʓʔʕʖʗʘʙʚʛʜʝʞʟʠʡʢʣʤʥʦʧʨʩʪʫʬʭʮʯ
ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψω
ϐϑϒϓϕϖϗϘϙϚϛϜϝϞϟϠϡϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿ
АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя
აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵ
Seconds since the start of 1970 is (or was): fθʠɹ.
Greg, I don't know what your <<«ë?hÄIÜ...>> is.
I don't like puzzles. Programming is more interesting/useful.
My diff routines are smoking hot now, nothing else compares.
Unlike WikiPedia's change trackers, my diffs aren't triggered
by changes to IRRELEVANT white space ( in source code ).
This code ( below ) took many days to figure out.
"JoinerLns" ( set to 3 ) is how many unchanged lines (or words, in word mode)
are reported in⋅between "changes" in a block of changes.
#define »Black∫( P, EE‗ ) \
\
if ( *P <= 32 ) LOOP { \
while( *P && *P <= 32 ) P++ ; \
if ( *P || !( P = *++EE‗ ) ) break ; }
LnA BB‗, EE‗, BB₂‗, EE₂‗ ; const int JoinerLns = 3 ;
int =≣( LnA PP, LnA PP₂ ) {
LnP P = *PP, P₂ = *PP₂ ; EE‗ = BB‗ = PP, EE₂‗ = BB₂‗ = PP₂ ;
LOOP { // From <A hRef="http://Jeff-Relf.Me/X.CPP">X.CPP</A>, Visual C++.
if ( !P || !P₂ ) return !P && !P₂ ;
while( *P && *P == *P₂ && *P > 32 ) Sz++, P++, P₂++ ;
if ( *P > 32 || *P₂ > 32 ) return 0 ;
if ( !*P && !*P₂ && EE‗ - BB‗ >= JoinerLns )
return ++EE‗, ++EE₂‗, 1 ;
»Black∫( P, EE‗ ) »Black∫( P₂, EE₂‗ ) } }
Avoiding large blocks of moved lines was another hard one.
I did it this way: [ Note, JoinerLns is used here too ]
int Moved( int Cnt, LnA Top, LnA Top₂ ) {
int szSeg, rv, i, Cnt₀, Rptd ;
LnA PP = Top, PP₂ = Top₂, BB⋅Seg ; Rptd = rv = 0, i = Cnt ;
LOOP {
while( i > 0 && *PP && !**PP ) PP++, i-- ;
if ( i <= JoinerLns || !**PP₂ ) return Rptd ;
while( *PP₂ && !( rv = Eq( *PP, *PP₂ ) ) ) PP₂++ ;
if ( !rv ) return Rptd ; BB⋅Seg = PP₂, Cnt₀ = i ;
while( --i && *++PP && *++PP₂ && Eq( *PP, *PP₂ ) );
if ( szSeg = Cnt₀ - i, szSeg <= JoinerLns ) return Rptd ;
Rptd = 1, PP₂ = BB⋅Seg;
Sh( L"%d Moved Lines @: %s\n\n", szSeg, *PP₂ );
Loop( szSeg ) **PP₂++ = 0 ; } }
Screen⋅shot: <A hRef="http://Jeff-Relf.Me/Diff.PNG">code diffs</A>
Damn, it works well. No money in it, though. For my eyes only.
Technical Details
Message-ID:
<Jeff-Relf.Me@Nov.19{0.21.AM.Seattle.2012}>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.mbox.zip!s9ni24809pbb.0!nntp.google.com!news.glorb.com!news-spur1.glorb.com!newsread.glorb.com!.POSTED!not-for-mailReferences:
<6433rv.pr7.19.1@news.alt.net>Show Full Headers
Complete Article Headers
Message-ID: <Jeff-Relf.Me@Nov.19{0.21.AM.Seattle.2012}>
Subject: --
Date: Mon, 19 Nov 2012 08:21:48 +0000
From: Jeff-Relf.Me <@.>
References: <6433rv.pr7.19.1@news.alt.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.mbox.zip!s9ni24809pbb.0!nntp.google.com!news.glorb.com!news-spur1.glorb.com!newsread.glorb.com!.POSTED!not-for-mail
Received: by 10.66.88.200 with SMTP id bi8mr2626480pab.27.1353313309075;
MIME-Version: 1.0
Newsgroups: alt.free.newsservers,sci.physics,comp.os.linux.advocacy
Organization: Glorb Internet Services, http://www.glorb.com
Lines: 77
NNTP-Posting-Host: XJGH+5GM8EvggnDfgIBqtQ.681.posting.glorb.com
X-Complaints-To: abuse@glorb.com
NNTP-Posting-Date: Mon, 19 Nov 2012 08:21:48 +0000 (UTC)
User-Agent: Jeff-Relf.Me/X.TXT
X-Notice: Scanned by Mr. Bill
Content-Type: Text/HTML; charset=UTF-8
Content-Transfer-Encoding: 8bit