-
Cocoa printing - On the surface it is easy
I had to add printing to an application I'm working on so that users can print out web pages for the built in web browser. Turns out that this only took about 20 minutes to implement. Cocoa is nice that way, but then today I needed to change the title of the printout (used in Preview, in the Job list for the printer and the default name when saving) as the name it picked up was the window name which didn't make a lot of sense. So, after much searching and realizing that I'd need to subclass some need WebKit object which was unfeasible, I took a look at categories. For the most part, I understand categories, but in this case, I added a category to NSView called printJobTitle, shoved in what I wanted if it was a WebHTMLView class, otherwise use the window's title and amazingly this worked. I'm not exactly sure how as I've found at least one other category for NSView that also has printJobTitle in it. I won't look a gift horse in the mouth; it works.
-
Backup scheme
I think that I finally have my backup scheme worked out. My server meltdown had me re-think the strategy. However, my meltdown, while time consuming to get everything working again, really only cost me one day's worth of data that I was able to restore from another machine. My backups sort of worked, except for the monolithic "dump" archive that I created. This archive got corrupted and caused the restore to fail. Luckily I had created tar/gzipped backups and had the files.
-
Fake sale?
Yesterday I went to purchase a new office chair. I was looking at the Herman Miller Aeron chair, but the salesman at The Healthy Back store pointed me to another chair (same price) that was more adjustable and had a more comfortable seat. Since it was their special "pop the balloon" sale, I got to pop a balloon to see what discount I got. I got 15% off which amounted to $130 or so off...not bad. However, when I went home and happened to check their website, I found that the chair I just bought was even cheaper than I paid. They matched the price and refunded the difference. However, the 15% off turned out to be a joke, at least for what I bought.
-
Audio project complete
I finally managed to finish patching and painting the holes created when the wires were pulled. Another project complete and now I can spend my time doing something else, maybe play video games for awhile.