Re: [ADMIN] Hex representation

2008-09-30 Thread Michelle Konzack
Am 2008-09-24 15:20:03, schrieb Carol Walter: > Hello, > > Does anyone know what the format of hex characters for postgres are? > I'm trying to create files that contain a 0x55. It looks to me like > it should require a delimiter of some sort between the characters. I > don't know how pos

Re: [ADMIN] Hex representation

2008-09-29 Thread Reece Hart
I can't resist one-liner games. $ perl -e 'print "U"x(256*1024)' >Us or, if you specifically want to specify hex: $ perl -e 'print chr(hex(55))x(256*1024)' >Us -Reece -- Reece Hart, http://harts.net/reece/, GPG:0x25EC91A0

Re: [ADMIN] Hex representation

2008-09-25 Thread Steve Martin
: Steve Crawford Cc: Scott Marlowe; pgsql-admin@postgresql.org Subject: Re: [ADMIN] Hex representation Well, it was a bit convoluted, but I created the file with Excel, filling the right number of cells with \x55. This worked too. The script wouldn't run for me. I got an error about a

Re: [ADMIN] Hex representation

2008-09-25 Thread Plugge, Joe R.
-admin@postgresql.org Subject: Re: [ADMIN] Hex representation Well, it was a bit convoluted, but I created the file with Excel, filling the right number of cells with \x55. This worked too. The script wouldn't run for me. I got an error about a "bad interpreter". Carol On Sep

Re: [ADMIN] Hex representation

2008-09-25 Thread Tena Sakai
ent: 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 > for ($i=0;$i<2

Re: [ADMIN] Hex representation

2008-09-25 Thread Carol Walter
Well, it was a bit convoluted, but I created the file with Excel, filling the right number of cells with \x55. This worked too. The script wouldn't run for me. I got an error about a "bad interpreter". Carol On Sep 25, 2008, at 1:40 PM, Steve Crawford wrote: Scott Marlowe wrote: I used

Re: [ADMIN] Hex representation

2008-09-25 Thread Steve Crawford
Scott Marlowe wrote: I used this very simple little php script to make this filename: mk55: #!/usr/bin/php -q 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-admi

Re: [ADMIN] Hex representation

2008-09-24 Thread Scott Marlowe
I used this very simple little php script to make this filename: mk55: #!/usr/bin/php -q and ran it: ./mk55 > 55 ls -l 55 -rw-r--r-- 1 smarlowe smarlowe 262144 2008-09-24 13:41 55 i.e. it's 256k. And it's attached. On Wed, Sep 24, 2008 at 1:20 PM, Carol Walter <[EMAIL PROTECTED]> wrote: > H

Re: [ADMIN] Hex representation

2008-09-24 Thread Milen A. Radev
Carol Walter написа: > Hello, > > Does anyone know what the format of hex characters for postgres are? > I'm trying to create files that contain a 0x55. It looks to me like it > should require a delimiter of some sort between the characters. I don't > know how postgres would know that the strin