Skip site navigation (1) Skip section navigation (2)

Re: Hex representation

From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: "Steve Crawford" <scrawford(at)pinpointresearch(dot)com>,"Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: "Carol Walter" <walterc(at)indiana(dot)edu>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: Hex representation
Date: 2008-09-25 18:12:17
Message-ID: FE44E0D7EAD2ED4BB2165071DB8E328C0378F525@egcrc-ex01.egcrc.org (view raw or flat)
Thread:
Lists: 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(at)gallo(dot)ucsf(dot)edu


-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org on behalf of Steve Crawford
Sent: Thu 9/25/2008 10:40 AM
To: Scott Marlowe
Cc: Carol Walter; pgsql-admin(at)postgresql(dot)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


In response to

pgsql-admin by date

Next:From: Carol WalterDate: 2008-09-25 18:15:21
Subject: Re: Hex representation
Previous:From: Steve CrawfordDate: 2008-09-25 17:40:59
Subject: Re: Hex representation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group