• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Magic cookie value and database name

 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic