Re: Hex representation - Mailing list pgsql-admin

From Tena Sakai
Subject Re: Hex representation
Date
Msg-id FE44E0D7EAD2ED4BB2165071DB8E328C0378F525@egcrc-ex01.egcrc.org
Whole thread Raw
In response to Hex representation  (Carol Walter <walterc@indiana.edu>)
List pgsql-admin

Hi Steve,

That's a cool way to do it.  I wish I thought of it.
Here's yet another way by java:

public class lotsofhex55 {

        public static void main (String[] argv) {

                char myHex55;
                myHex55 = (char) 0x55;

                        // replace 256 with 262144 after testing
                for (int i = 0; i < 256; i++) {
                   System.out.print (myHex55);
                }
        } // end main()
} // end class

Regards,

Tena Sakai
tsakai@gallo.ucsf.edu


-----Original Message-----
From: pgsql-admin-owner@postgresql.org on behalf of Steve Crawford
Sent: Thu 9/25/2008 10:40 AM
To: Scott Marlowe
Cc: Carol Walter; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Hex representation

Scott Marlowe wrote:
> I used this very simple little php script to make this
>
> filename: mk55:
> #!/usr/bin/php -q
> <?php
> for ($i=0;$i<262144;$i++){
>     print chr(85);
> }
> ?>
>  
Or, using standard *nix tools (Note: 0x55 = ascii U):
dd bs=1k count=256 if=/dev/zero | tr '\000' U  > full_of_0x55

Cheers,
Steve


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

pgsql-admin by date:

Previous
From: Steve Crawford
Date:
Subject: Re: Hex representation
Next
From: Carol Walter
Date:
Subject: Re: Hex representation