Thread View: alt.free.newsservers
2 messages
2 total messages
Started by Sir Gregory Hall, Esq�
Fri, 16 Nov 2012 22:22
Some Base64 anyone, Jeff?
Author: Sir Gregory Hall, Esq�
Date: Fri, 16 Nov 2012 22:22
Date: Fri, 16 Nov 2012 22:22
9 lines
987 bytes
987 bytes
��?h�Iܡםm��?"?Wb�?Z��xI�z�ڱ�~?�y�?x"?�)?����m?����W�}��{���?^[\D
--
Sir Gregory
--
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads