One of our largest customers decided to use the Good Friday holiday to handle some server maintenance. While normally a 24/7 shop, this is one of the few days of the year that not only are they on a skeleton crew, it's a skeleton of a skeleton crew and they generally receive no calls on this day. After performing and verifying the backups, upgrading the OS with all the relevant patches, the server was rebooted. A quick check, and the LH service was not running, which seemed a bit odd mostly because it's never failed to start before. Starting the service immediately displayed an error stating that the service did not start in a timely manner. While none of us was completely sure what's considered "a timely manner", we were all in agreement that "a timely manner" was not "immediately". At this point, we thought it's time to examine the Window's event log for some clues. However, this proved to be a problem because the event viewe...
This is going to be one of those blog posts that will either have you saying "Well d'uh everybody knows that" or "Wow what a neat trick". I know that I fell into the latter camp which is why I'm blogging it. Aaron and I are working together on a new tool for network administrators and it has been a fun ride. Recently we had cause to have Aaron TeamViewer into my machine to help debug a specific routine. So I watched as he took over and waited for him to fire up the System Editor, open the program, insert a DEBUG, compile and run. This is how I've traditionally done it and of course you have to be really careful to remember to remove the DEBUG before shipping the code to anybody. (Or run your release through a release checker that warns of the DEBUG opcode in object code). Instead he performed the neat trick documented below. When I expressed admiration he was incredulous. "I've been doing it this way since OI 2.0" quoth he. So allow me...
Of late at Sprezz Towers we've been all about taking apart Linear Hash frame headers to diagnose some, frankly bizarre, issues being experienced by one of our clients. Our utilities were working fine on "old style" Linear Hash files where the maximum frame size was 64K and the maximum file size was 4GB but on the newer UD3+ files (or "type 3" as they're referred to) we just didn't seem to be getting the consistent results we were expecting. As an example consider this section of code for examining the "Alpha Space Usage" - the total bytes of data stored in the Primary frames :- lo_alpha = file [ alphaPtr$ , 4 ] hi_alpha = file [ alphaPtrHi$ , 4 ] If hiBitSet Then lo_alpha : = hi_alpha value = lo_alpha Gosub Convert lo_alpha = value hlo_Alpha = Oconv ( lo_alpha , "MX" ) ...