Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Magic cookie value and database name

 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am just curious, what are your magic cookie values (the first number in the database file that identifies it as a valid file) and the names of the file you are provided with.

My magic cookie value is 0x00000202 and the file was called db-2x2.db. Now I am wondering of the 2's in the file name are related to the two 02 bytes in the cookie value.

May be just coincedence though.

Frans.
 
Dieskun Koper
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frans,

My database file is called db-1x3.db, the cookie is 0x00000103 and I did URLyBird 1.3(.3). I remember reading a message here on Javaranch before they they're correlated.
I think what we can learn from that is that you have been staring too long at your assignment and that it's about time you submit your application
 
Frans Janssen
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dieskun Koper:
Hi Frans,

My database file is called db-1x3.db, the cookie is 0x00000103 and I did URLyBird 1.3(.3). I remember reading a message here on Javaranch before they they're correlated.
I think what we can learn from that is that you have been staring too long at your assignment and that it's about time you submit your application


Hi Dieskun,

Thanks for your reply. My assignment is B&s 2.2(.3), so there is indeed a relation there too. I am glad that this is cleared up for me now.

And maybe it is time for me to submit...

Frans.
 
Cosmo Kramer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My assignment is URLyBird 1.2.1, the database file is called "db-1x1.db" and the magic cookie value is 0x00000101, so I think the magic cookie value is the 1st and the 3rd version number.
 
woo sung hwang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am wondering how you guys get 0x0000201 like that. I am doing B&S 2.1 and spec say that magic cookie value is 4 bytes numeric value. so i use readByte() 4 times and i got 0021.
how i get cookie value like you?
and am i worng?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic