Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28338

Re: String to Base76

From Wesley <dddudeman9@gmail.comREMOVETHIS>
Newsgroups comp.lang.javascript
Subject Re: String to Base76
Date 2015-07-07 17:10 -0400
Organization A noiseless patient Spider
Message-ID <mnhf4l$i1c$1@dont-email.me> (permalink)
References <mnfd6b$b7u$4@dont-email.me> <mnh46p$tc0$1@news.m-online.net> <s7copa5b7t7p4f4fp5gkap21k9ctms897n@4ax.com> <b6442faf-569e-4298-b856-f8ea650ee454@googlegroups.com>

Show all headers | View raw


On 7/7/2015 16:24, Michael Haufe (TNO) wrote:
> On Tuesday, July 7, 2015 at 3:06:06 PM UTC-5, Gene Wirchenko wrote:
>> On Tue, 07 Jul 2015 20:02:03 +0200, wolfgang zeidler
>   [...]
>
>>> It shout be much easier if you would use a square number like 81 or 100
>>> as base.
>>
>>       Why would that make it easier?  Does 10 (a non-square) cause
>> problems?
>
> I would suspect instead that an encoding not based on a power of two would make it more complicated to map back and forth between representations:
>
> <https://en.wikipedia.org/wiki/Binary-to-text_encoding>
>

I'm not sure if this is exactly right, but I was kind of testing the 
idea just using simple online base converters and I had some trouble.

For example:

I found the ascii character codes of "Testing" which is
084 101 115 116 105 110 103

I then ran that through a base converter from base 10 to base 50, which 
was an arbitrary number.

the website spit out HB9cRHLQei23 as the base 50 representation of
084101115116105110103

Then if you use the same tool to convert back it spits out 
84101115116105110103 since it doesn't read the 0 as part of the string. 
That doesn't code back to the same text unless you put the leading 0 
back.  Maybe I'm going about this all wrong.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

String to Base76 dddudeman <dddudeman9@gmail.com> - 2015-07-06 22:24 -0400
  Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-07 08:15 +0200
    Re: String to Base76 dddudeman <dddudeman9@gmail.com> - 2015-07-07 13:12 -0400
      Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 19:20 +0200
        Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 13:23 -0400
          Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 00:17 +0200
            Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 09:02 +0200
              Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 11:53 +0200
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 12:14 +0200
                Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 12:28 +0200
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 17:27 +0200
                Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 18:19 +0200
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 19:08 +0200
                Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-09 10:48 -0700
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-09 22:06 +0200
                Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-09 14:18 -0700
            Re: String to Base76 John Harris <niam@jghnorth.org.uk.invalid> - 2015-07-08 16:03 +0100
        Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-07 10:48 -0700
          Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 13:58 -0400
          Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 21:04 +0200
            Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-07 13:11 -0700
              Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 23:38 +0200
                Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-09 10:50 -0700
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-09 22:22 +0200
                Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-09 14:24 -0700
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-10 09:16 +0200
      Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 00:14 +0200
        Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 20:38 -0400
          Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 03:27 +0200
  Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 12:30 +0200
    Re: String to Base76 dddudeman <dddudeman9@gmail.com> - 2015-07-07 13:16 -0400
      Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 19:26 +0200
        Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 13:54 -0400
          Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 21:17 +0200
            Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 16:57 -0400
              Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 00:17 +0200
              Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 00:30 +0200
                Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 20:43 -0400
                Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 03:17 +0200
                Re: String to Base76 Wesley Navaille <dddudeman9@gmail.com> - 2015-07-07 22:01 -0400
                Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 12:05 +0200
                Re: String to Base76 Wesley Navaille <dddudeman9@gmail.com> - 2015-07-08 13:50 -0400
                Re: String to Base76 Scott Sauyet <scott.sauyet@gmail.com> - 2015-07-08 19:05 -0700
                Re: String to Base76 Wesley Navaille <dddudeman9@gmail.com> - 2015-07-08 22:17 -0400
          Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 00:22 +0200
  Re: String to Base76 wolfgang zeidler <invalid@invalid.invalid> - 2015-07-07 20:02 +0200
    Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 14:08 -0400
      Re: String to Base76 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-07 12:01 -0700
    Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-07 13:05 -0700
      Re: String to Base76 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-07 13:24 -0700
        Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 17:10 -0400
          Re: String to Base76 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-07 14:53 -0700
      Re: String to Base76 wolfgang zeidler <invalid@invalid.invalid> - 2015-07-07 23:46 +0200
        Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-07 15:21 -0700

csiph-web