Page 6 of 8 « First<45678>
Topic Options
#105885 - 2003-10-17 01:01 PM Re: KiXgolf: PxMagic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I can handle your new file Lonkero. [Cool]
code:
KiXtart
KiXtart Version = KiXtart 2001 4.22 Release Candidate 1
KiXforms Version = 2.3.0.41
KiXGolf Script = kixgolf_pxmagic.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 848 MHz
Memory = 512 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: PxMagic - Read & Display PxM Images
Processing Start = 2003/10/17 00:30:13.894
Processing End = 2003/10/17 02:36:22.968
Duration = 0000/00/00 02:06:09.074
# Images = 8
KiXGolf Score PxMagic = 51
KiXGolf Score PxMRead = 168
KiXGolf Score PxMDisplay = 310
KiXGolf Score Total = 529

Thank you for participating in KiXtart Golf!

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#105886 - 2003-10-17 01:16 PM Re: KiXgolf: PxMagic
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you basta!
irfanview wasn't anymore able to show it correctly.
otherwise fine but it reversed the colors.
k, if you can display that, I must wonder how the heck you can do that small code, ya basta! [Eek!]
_________________________
!

download KiXnet

Top
#105887 - 2003-10-17 01:19 PM Re: KiXgolf: PxMagic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I can do it because in this case ...I am the Real Basta here. [Big Grin]

[ 17. October 2003, 13:20: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#105888 - 2003-10-17 01:20 PM Re: KiXgolf: PxMagic
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, if you want a fight, fight is what you get:
code:
KiXtart
KiXtart Version = KiXtart 2001 4.22 Release Candidate 1
KiXforms Version = 2.3.0.41
KiXGolf Script = kixgolf_pxmagic.kix

Computer
OS = Windows Server 2003
CPU = Intel(R) Xeon(TM) CPU 3.06GHz
Speed = 3047 MHz
Memory = 1024 MB

KiXGolf Scoring Engine
Scoring Engine = 3.2

KiXtart Golf Score
Tournament = KiXtart Golf: PxMagic - Read & Display PxM Images
Processing Start = 2003/10/17 14:14:35.859
Processing End = 2003/10/17 14:28:31.359
Duration = 0000/00/00 00:13:55.500
# Images = 8
KiXGolf Score PxMagic = 99
KiXGolf Score PxMRead = 171
KiXGolf Score PxMDisplay = 248
KiXGolf Score Total = 518

Thank you for participating in KiXtart Golf!

btw, on xeon the CPU field seems to be screwed.
_________________________
!

download KiXnet

Top
#105889 - 2003-10-17 01:24 PM Re: KiXgolf: PxMagic
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you ist basta?
ok, I'm the BASTMORTA then [Big Grin] [Mad]
_________________________
!

download KiXnet

Top
#105890 - 2003-10-17 02:13 PM Re: KiXgolf: PxMagic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Crap! Is there no stopping you? I will invest another hour or two this evening to see if I can improve my score.

You Bastsa!
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#105891 - 2003-10-17 02:46 PM Re: KiXgolf: PxMagic
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Jens,

Do you need to handle versions P4 to P6 of this format? Your test examples only cover P1->P3 but the write up talks about the P4->P6 formats.

Jooel,

At least one of Jens' test files does contain extra white space (feep.ppm). The extra spaces are systematical placed but they are there.
_________________________
Jack

Top
#105892 - 2003-10-17 02:54 PM Re: KiXgolf: PxMagic
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no p4-p6 are binary and you might already know kixtart does not support binary formats [Wink] [Razz]
_________________________
!

download KiXnet

Top
#105893 - 2003-10-17 03:32 PM Re: KiXgolf: PxMagic
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Anyone who wants to lend a server? [Razz]

nice results hehe [Big Grin]
_________________________
The tart is out there

Top
#105894 - 2003-10-17 03:53 PM Re: KiXgolf: PxMagic
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
I found another reference for the PxM file formats at http://www.daubnet.com/formats/PBM.html

According to that reference the term WHITESPACE encompasses one or more characters from the following set: TAB, LF, CR, SPACE (= ASCII codes: 8, 10, 13, 32).

I have tested this with JASC's Paint Shop Pro 7 and a modified CIRCLE_ASCII.PBM that contains various whitespaces and comment lines in random places of the file. The program did read this modified file correctly and displayed a correct image.

The RAW file formats P4-P6 will not be used, the challenge is limited to the ASCII formats P1-P3.

[ 17. October 2003, 15:59: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#105895 - 2003-10-17 03:55 PM Re: KiXgolf: PxMagic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Jens, do you have an entry?

[ 17. October 2003, 15:55: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#105896 - 2003-10-17 04:00 PM Re: KiXgolf: PxMagic
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Entry as in my own KiXgolf code for PxMagic?

Nope, however, I do have the concept for an alternate image display and could whip something up to demonstrate it. It might not be optimized though.
_________________________
There are two types of vessels, submarines and targets.

Top
#105897 - 2003-10-17 04:03 PM Re: KiXgolf: PxMagic
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Jooel,

I know kixtart did not directly support binary but I thought maybe Jens wanted us to try to convert the binary to decimal inside the UDF. The write up seemed to imply this but now I know better.
_________________________
Jack

Top
#105898 - 2003-10-17 07:05 PM Re: KiXgolf: PxMagic
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Jens,

Another question, I think Jooel might have raised this issue, it concerns error checking.

You state:
quote:
It returns 0 for successful execution or alternatively an appropriate error code.
As far as I tell your test examples are error free so based upon the samples no error checking is necessary yet other possible senerios exist. Below is a list of other potential senerios:

1) Missing or unopenable file
2) Incorrect magic number
3) Length of the raster block conflicts with width & height specification
4) Intensity level in raster block exceeds pre-specified limit
5) Illegal character encountered

Do you wish an extensive error checking UDF or can we just forget error checking?
_________________________
Jack

Top
#105899 - 2003-10-17 07:11 PM Re: KiXgolf: PxMagic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I think we should forget the error checking since the Pxmagic.kix script does not check for return values or errors.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#105900 - 2003-10-17 07:14 PM Re: KiXgolf: PxMagic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
code:
KiXtart
KiXtart Version = KiXtart 2001 4.22 Release Candidate 1
KiXforms Version = 2.3.0.41
KiXGolf Script = kixgolf_pxmagic.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 698 MHz
Memory = 512 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: PxMagic - Read & Display PxM Images
Processing Start = 2003/10/17 13:22:44.689
Processing End = 2003/10/17 13:23:03.016
Duration = 0000/00/00 00:00:18.327
# Images = 1
KiXGolf Score PxMagic = 51
KiXGolf Score PxMRead = 168
KiXGolf Score PxMDisplay = 275
KiXGolf Score Total = 494

Thank you for participating in KiXtart Golf!

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#105901 - 2003-10-17 07:20 PM Re: KiXgolf: PxMagic
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Okay, official call: You can forgo the error checking.

However, your solution still must pass all provided images and adhere to the PxM formats. Thus, if I decide to test with other valid PxM files, the routines must be able to accept these, too.
_________________________
There are two types of vessels, submarines and targets.

Top
#105902 - 2003-10-17 07:46 PM Re: KiXgolf: PxMagic
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hoby you basta.
I already got 3 totally different coding styles all giving with optimization the magic 518.
think you beat me this time.

was already starting my vacation and had one beer opened just before saw your bloody score! [Mad]

[ 17. October 2003, 19:47: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#105903 - 2003-10-17 07:52 PM Re: KiXgolf: PxMagic
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what about the filehandle issue?
do we need to use freefilehandle or can be just use some number?
_________________________
!

download KiXnet

Top
#105904 - 2003-10-17 08:01 PM Re: KiXgolf: PxMagic
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Silly you... [Roll Eyes] FreeFileHandle() for what?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 6 of 8 « First<45678>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 496 anonymous users online.
Newest Members
Raoul, Timothy, Jojo67, MaikSimon, kvn317
17875 Registered Users

Generated in 0.153 seconds in which 0.123 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org