Workers of the World Unite
Today I’m working on building a factory. I’m using the Factory Method design pattern so that as I parse each test from the OVAL definition file, I can create the correct object based on IOvalTest. Once I have the test objects instantiated, I can then parse the definitions and execute the approriate tests. At which [...]
Books
Finished reading the Debugging Book and the started in on Linux Kernel Development. Slow day today.
Namespaces
Working on Sussen again today. Burned some time dealing with an XPath issue with namespaces. All my XPath queries kept failing because of the default namespace defined in the OVAL definitions xml file. After doing some research I think I need to use XmlNamespaceManager. I found a workaround in the mean time so that my [...]
Using XPath
I’m just doing some work on sussen-sensor. So say you have a large and complex XML document (i.e. OVAL definitions) and you need to find various pieces of information. You need to query the XML without having to go through all the nodes to find what you are looking for. Enter XPath. You can make [...]
Implementing an interpreter
The basic steps required to implement an interpreter are: Parsing the language symbols into tokens. Reducing the tokens into actions. Executing the actions. To implement an OVAL interpreter in the sussen-sensor based on the above, I’m currently thinking: Parse OVAL definition file using an XML parser Create objects for each definition and test (implementing the [...]
Wild Kingdom
Called up the Safari people this morning and got my account fixed. I had some difficulties getting a hold of anyone yesterday, but this morning it was all good and they helped me out. Safari is pretty cool. They have a large selection of books and you can search them (just by code examples too!). [...]
Yo Joe!
Picked up a copy of G.I. Joe – Season 2 – Part 1 on DVD at lunch today. I really enjoyed season 1 (part 1 and part 2). Season 2 kicks off with the Arise, Serpentor, Arise mini-series. I haven’t seen that since I was a kid, looking forward to checking it out. I also [...]