Archive for 2008

Supplying alternate credentials for a network printer

Another crazy little Windows tip — I can’t remember if this was a Windows XP problem or whether I’d also seen it in Vista, but I’m cleaning out my blog drafts and wanted to flesh this out.

Basically I had a network printer set up that would work until I rebooted my machine, then it would fail. I couldn’t figure out for the life of me what was going on (I think it said something about me not having permission, though — I should have written down the error message). If I removed and readded the printer it’d work again.

Anyway, the problem turned out to be that my user account name was different on my other machine, and the printer wasn’t shared for just anyone to print on. Because of that, I’d had to present alternate credentials when I added the printer, and each time the computer reset, the credentials would get lost and it’d get confused. I don’t know why it didn’t just ask again, but it didn’t.

The solution is convoluted. I browsed to a shared folder on the other machine, and added it as a mapped drive. There’s an option in there to connect with alternate credentials. Since Windows shares the saved credentials between all shares and printers on a remote machine, and it’ll reconnect the mapped drive at startup using the alternate credentials, the printer will start working again.

PNGGauntlet 2.0.1

Just a quick update, I just uploaded a new version of PNGGauntlet that fixes a couple of annoying bugs, as well as making it so you can use the “Open With” menu to open files in PNGGauntlet. Just right click, select “Open With”, select “Choose Default Program”, and browse for PNGGauntlet.exe in its install folder. Be sure to uncheck “Always use the selected program to open this kind of file” if you want PNGGauntlet to just show up in the menu instead of always opening for that type of file.

Grab the updated file from the PNGGauntlet homepage and enjoy your smaller PNGs.

Announcing PNGGauntlet 2.0

It’s been about three years since I last released an update to PNGGauntlet. This PNG image optimizing tool has been very popular, but has been sorely in need of a refresh. Today I’m excited to announce a major update, PNGGauntlet 2.0.

The most important new feature of PNGGauntlet 2.0 is that it runs on .NET 2.0 (and 3.0, and 3.5). This means that Windows Vista users can just install it without having to download anything else. This has also allowed me to use some more modern .NET features in order to smooth out the program’s internals. I’ve also done a few more things to make PNGGauntlet explicitly compatible with Vista, including the new, high resolution gauntlet icon.

PNGGauntlet Screenshot

The UI is pretty different, making better use of space and finally making every single PNGOUT option accessible. Check out the old 1.1 interface to compare. You’ll see that most of the controls have been moved over to an “Advanced Options” window where you can tweak PNGOUT to your heart’s content. The main window has been greatly simplified and gives much better feedback on the compression job, with individual progress bars for each file, highlighting of the currently compressing file, and a status bar that keeps track of the total kilobytes you’ve saved.

The program itself has had a lot of bugs fixes and inefficiencies stomped out, and some less obvious features have been added. One of those is that dropping a directory onto PNGGauntlet will recursively add all the files in the directory (and its subdirectories) to the current optimization job. Also, you can copy (Ctrl-C) files in Windows Explorer and paste (Ctrl-V) them into PNGGauntlet. This should make it much easier to get the files you want into the app. If you want to see everything that’s changed, take a look at the full changelog.

I wrote PNGGauntlet nearly 5 years ago as my very first C# program (and my first Windows app!). At the time, I wanted to be able to run PNGOUT (a commandline tool for optimizing PNGs) and pngrewrite (another commandline tool that could mess with PNG palettes to make PNGOUT more effective) together on large sets of PNG images easily. Then PNGOUT added the features of pngrewrite and I no longer needed that, so I modified PNGGauntlet to run PNGOUT multiple times in order to search for the smallest file size. Since then, PNGOUT has added that feature too. So now PNGGauntlet is really just a fancy GUI for running PNGOUT.

I never really intended for PNGGauntlet to be anything more than a learning exercise for me, but it’s become moderately popular, so I felt obliged to update it (and make it easy for me to install on my own Vista systems). However, in the intervening time Ken Silverman (creator of PNGOUT) has released his own commercial PNGOUT GUI, called PNGOUTWin. I haven’t looked at it too closely, but the program runs PNGOUT in a much more elegant way, and can even compress multiple files at once to take advantage of modern multicore processors. It’s only $15, so I suggest you pick it up if you use PNGOUT or PNGGauntlet a lot. It’s also nice to see that Ken has released Linux and Mac OS X versions of PNGOUT, so I can use it at work too!

Thanks to everyone who’s been emailing me asking about PNGGauntlet and giving me suggestions. I hope this is what you were wanting.

Website work

I’ve been pretty quiet on the blog lately, partly because I went on a long vacation and partly because I’ve been too busy with real work to do anything much on at-home projects (at least, at-home code projects). Another reason is that I’ve been working on a couple websites that hadn’t launched until recently. The first project was a website for Butterfly Haptics, which is my parents’ new company. They’re producing a really cool magnetic levitation haptic interface – a sort of super-high-tech 3D mouse that lets you feel virtual objects as if they were solid. I’m really excited about what they’re building, and I’ll be at SIGGRAPH this year manning their booth in the New Tech Demos area.

Butterfly Haptics Screenshot

The other site, which just launched, is my wife’s new art site. She makes wood-fired ceramic sculptures of bizarre, cute creatures, and the new site was hand-drawn by her to reflect their style. It’s implemented as a WordPress theme, which gives her a much easier way to manage the content of the site, and it also means that she can now blog about her process and other art topics. Check out some of the cool time-lapse videos of her sculpting the critters.

evafunderburgh.com Screenshot

Anyway, that’s what I’ve been up to. Hopefully soon I’ll be able to get back to building more cool things and talking about them, as well as clearing out my backlog of draft blog posts.

XBList 3.2.0 works with the new Xbox.com

I read today that Xbox.com had gotten a redesign. I had hoped it wouldn’t impact the friends list page, which XBList uses to get its friend info, but unfortunately it had. The friends list is now split into 16-friend chunks. That meant I had some work ahead of me to make sure XBList could work with the new format. I’m pleased to announce that after only a few hours of work, XBList 3.2.0 has been released, which works just fine with the new site. I’m glad that all the refactoring work I had put into the software in the past allowed me to make a change like that without breaking anything. There is now the possibility of some slight weirdness if a friend changes status in the split-second between XBList loading one page and another, but I don’t think much can be done about that.

Of course, I couldn’t just make the fix and call it a new release. I’ve neglected XBList in the last year as I’ve been deep into work and other projects, but I’ve been accumulating little fixes, and as long as I had the code open today I added a much-asked-for feature: Halo 3 integration. OK, it’s not the best integration, but there are now menu items that link straight to your friends’ Halo 3 Service Record page, and better yet, Halo 3 emblems are now loaded in preference to the old Halo 2 emblems. If your friend has both, they’ll just get the Halo 3 emblem. I was amazed at how many people on my friends list (who hadn’t had Halo 2 emblems) popped up with Halo 3 insignia once I finished the feature. I hope this is enough to tide people over for a while.

I also improved the detection of Xbox.com outages. They seem to be better now, but around December the site was down all the time, and now XBList will be pretty clear about when it’s Xbox.com’s fault that you can’t log in. Hopefully that’ll reduce some confusion.

Please pick up XBList 3.2.0 and let me know what you think! The full changelog may be of some interest also.