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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-admin by date

  From Date Subject
Next Message Carol Walter 2008-09-25 18:15:21 Re: Hex representation
Previous Message Steve Crawford 2008-09-25 17:40:59 Re: Hex representation