OS X

xrayspx's picture

Converting Visio Stencils to OmniGraffle

Someday, we'll live in The Future, I swear it.

Last year I bought OmniGraffle 4 Pro, I really, really like that app, and it makes using Visio seem like self torture. Now only if the formats were open all the way around...

The thing that has held me back with OmniGraffle is the lack of stencils. Graffletopia does a great job, but I find myself using the Apple or Dell (mixed with the Sun, Netapp, etc) stencils that aren't really representative of my hardware, and I feel that it just doesn't seem that professional when I hand my boss a network or rack diagram that has all this disparate hardware that doesn't match anything we actually own. I have a lot of Visio stencils, some of which DO work in Omnigraffle using their preferred import method: Make a new drawing in Visio, drop your objects on there, save it as an xml drawing, and import that into OmniGraffle. The problem is that for a huge percentage of stencil sets, you get an error that you can't load the EMF data and get a grey rectangle or munged object.

Many people have been recommending blowing the objects way up in Visio and using a screenshot, or exporting the document from Visio as a PNG or some such. This will get you your objects, but they'll be raster images and you will lose both detail and the ability to scale them. What makes Visio and Omnigraffle (and PDFs, and Illustrator) work so well is that your objects are vector images and are scalable in all directions while maintaining quality.

To import those objects which don't convert properly, I've started using the following method, which isn't perfect, but the objects do come across, and you don't have to rasterize them.

I am using:
Visio 2002 in a Windows XP VM
Illustrator CS3
Omnigraffle 5 Pro

Go into Visio, create a document and populate it with some of the objects you want to convert. I've found that if I really load this up, it doesn't work so well. Save this document as .emf or .wmf (enhanced metafile or windows metafile). Oddly I've found that CS3 doesn't like the .ai files saved out from Visio 2002. YMMV. This would obviously be the preferred way to move files around, assuming it works.

Open the saved file in Illustrator on the Mac. You may have to ungroup/regroup your object and sub-objects. When you're ready, cut and paste your object from Illustrator into Omnigraffle using CMD-C and CMD-V. Dragging them from one app to the other didn't seem to work exactly as I would have expected.

Now, in Omnigraffle, click the gear icon in the Stencils panel and select "new stencil". This will open up a canvas that you can copy your new object into after whatever tweaking you want to do. In Omnigraffle 4, this is done with the Stencils menu instead.

There should be simpler ways to do this, but I haven't found any that produce results of the same quality with as few steps. I've found that you can use OpenOffice or NeoOffice to open the emf/wmf files, and then follow the same steps to import the objects, but it seems the NeoOffice rasterizes the files, so while it does work, you lose some detail. I'm also looking for other methods. Inkscape does a great job of opening and editing PDF documents, but doesn't seem to save in any vector format that can be loaded by Omnigraffle (mainly saves in SVG variants). Omnigraffle claims to be able to open PDFs, but I haven't had good luck with that in the Real World.

If I find an easier way to get quality stencils from Visio into Omni, I will update the page. In either case, I'll add screenshots soon enough.

I also wouldn't blindly upload any stencils you create to Graffletopia without running by them or the original stencil distributor, as that would almost certainly put you and Graffletopia both in hot legal water.

Mail.app and IMAP Folders

For some time, I've been annoyed by Mail.app not checking all folders every time it checks mail. My situation is that I have an IMAP server at a colo, a Mac Pro at home usually with Mail.app running and more importantly, running its filters, and a MacBook running Mail.app that I take with me to work or wherever.

The problem is that as mail comes in and gets filtered by the Pro, the laptop continues to check mail every minute. However it does not "see" messages that get filtered off. So if Dave sends me mail and it goes to the Dave folder, the only way I notice it is if I manually click that folder, which isn't happening.

So how do you fix it? I know there is probably a way, but I've not found an official answer to this in the months I've been looking, so here's what I've got that actually works.

Hit the Mailbox menu and select New Smart Folder. Use "Message is not in mailbox" rules if you don't want to check things like your spam folder (I have my spam stored on the server so if something gets filtered, I see it. Also make a rule to specify "Message Type" as "Mail" so it excludes any RSS feeds you have.

This should hit every folder you have, and when it does, it will actually "touch" that folder, and make the unread message count for that folder update. So what I've done was just collapse the "Smart Mailboxes" in Mail, and I'll probably forget that thing exists, since the unread message counts are now correct.

Woo, yay Apple. My life clearly isn't complicated enough. I'll update this with screenshots later, this is kind of a draft so I remember what I did.

xrayspx's picture

OSX vs OpenSuSE

[music | Leaether Strip - What If (Beats on classic mix)]

The Amarok discussion usually comes as a result of a wider discussion/flamewar about the "little things" that bug the shit out of me a year after dropping SuSE for OSX as my home desktop. I used Linux as my desktop for about 8 years, and before that for more "traditional" server type applications. I've had a Linux desktop since Redhat 4.1, but it didn't replace Windows completely until about 1999. That gives me a different perspective on how a computer Should Just Work. My definition of that is skewed by things like uptime and standards compliance. I have no idea what the Standard Uptime is for a Windows desktop machine. My Windows desktops have always stayed up for months and months, because they do nothing except run Outlook and specialty business software that I couldn't get to work under Wine.

So from that perspective, OSX is not particularly stable. The only time I ever rebooted my linux machines was when either the power went out or I was upgrading SuSE. Aside from that, they Just Worked. I don't count things like upgrading KDE as a reboot, because it was just an X11 restart, ctrl-alt-backspace, new DE starts, no reboot. Leopard is more stable for me than Tiger was, especially in terms of returning from standby on the laptop. However in terms of applications "beachballing" and having to force-quit things, well that kind of thing rarely happened to me in SuSE. I'd probably kill Firefox every couple of weeks because something screws up or its footprint was too huge. I have to force-quit Safari every day or two (no SIMBL or other wackiness anymore until I figure out why this is).

Here's a quick list with some detail about what really bugs me, and what I really like in OSX:

xrayspx's picture

Amarok vs iTunes

I get asked a lot why I hate iTunes and what's so much better about Amarok. This is about Amarok 1.4.7, since there is no good way to run Amarok 2 yet. When I can get any copy of Amarok 2 to load a track and play it, either via the KDE4 Live CDs or from RangerRick's KDE on OSX native project, I'll give it a spin.

Here's a quick list of beefs with iTunes:

  • Collection list on one side (full height), playlist on the other.
    --Currently I have a Party Shuffle running in iTunes in one window, and then a collection window next to it, that's not really ideal
  • Lyrics search
  • Built-in Wikipedia search
  • I like the iPod management a lot better, and the ability to copy to AND from my iPod
    -- Like many things, there are tools for this (Floola I guess)
  • Last.fm integration - Amarok has similar artists and other info in the context menu from last.fm, this extends beyond "Submits my tracks".
  • Auto updates your collection, quickly
    -- iTunes doesn't really like it when you just take a bunch of folders with MP3s in them and drop it in the folder your collection's in. Well, it doesn't "not like it", it just doesn't notice them. There are tools you can run, which take ages to rescan your entire collection, but the situation is lame. Amarok does that better.
  • Amazon has a lot more album covers than iTunes Music Store, and Amarok has a way better cover-art management tool. I hate Coverflow. As a mechanism to search for a CD, it is pretty bad, and with so many albums not being in iTMS, it means I have to use Amarok, get the covers from Amazon, then go tell iTunes where they are for each CD. Nah.
  • Amarok uses open DB formats, which enables you to write your own tools a lot easier than you can with iTunes DBs.

    I would put up a similar list of things I think iTunes does better, but I'm not sure what those things are. I don't use ratings, the checkbox thing never seems to work, at least against my iPod, and I don't like the layout of the collection list (finder-like or a huge list of tracks), I prefer a nested list of Artist -> Album -> Track. That makes it way easy to browse, and doesn't make my targets move like the finder interface does.

    So you'll notice, there /are/ solutions for many of the features I like in Amarok, but most of them involve "find another app to run to let you do this", whether that's a browser so I can hunt for lyrics or Wikis, or Floola or iScrobbler to deal with other features that iTunes should have by default. I have huge doubts about the Amarok UI redesign in Amarok 2.0 until I actually see it in action, but being native should help its stability on OSX. For now I either just use iTunes, or run Amarok in a VM.

  • xrayspx's picture

    Tools and Hacky Stuff

    Here are some tools I've written which could be of use to other folks. It's going to be mostly Cisco related, some of which is still being formatted before I upload it, more to come.

    CSSManager is a tool to simplify suspending and activating services in a Cisco CSS load balancer. It adds a couple of features like the ability to "lock out" a server and to add comments to a suspended machine to give context for its suspension. More features to come.

    CSSPump A tool to display at a click the state of all services on a Cisco CSS 11000 series load balancer. It reads the comments set by the CSSManager above and adds them to the display of active/down/suspended servers.

    OpenSWAN to PIX VPN. How to configure FreeS/WAN (Now Openswan) on Linux and a Cisco PIX as endpoints for a 3DES IPSEC VPN.

    xrayspx's picture

    Leopard Love/Hate

    [music | Bauhaus - Exquisite Corpse]

    Mostly hate, but there are some things to like here:

    xrayspx's picture

    Think Different

    [music | Glenn Frey - Smugglers Blues]

    Just as long as your Different doesn't differ from our largest ISV's Different

    Syndicate content