Hacks
Converting Visio Stencils to OmniGraffle
Submitted by xrayspx on Tue, 06/17/2008 - 12:57amSomeday, 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.
OUCH!
Submitted by xrayspx on Fri, 04/11/2008 - 12:18am[music | The Pixies - Break My Body]
If you'll remember back a few months, I lost a toenail after catching a drunken pit guy at Rev. Horton Heat. In today's installment, it's a fingernail.
Today I was putting some switches in a rack, and was putting in cage nuts the un-safe way. With a screwdriver instead of a cage nut tool. Here's what the aftermath of that can look like unless you're more careful than I am.
This is fantastic
Submitted by xrayspx on Sat, 04/05/2008 - 10:48amThanks boingboing.
Here is video and a couple of scanned articles by James Leatham. He made a great SciFi short in 1981 using an Apple II for special effects. The long and short of it is that since the Apple didn't have the horsepower to produce the actual animations he wanted, he set it up to render still images and control a stop motion video setup.
The short itself rules. I love the Space Buccaneer guy who sounds like he's from from Maine. I love the hair. You have to wait until 15:21 for the best part though.
CSSManager
Submitted by xrayspx on Tue, 03/25/2008 - 10:52pmThe CSSManager is meant to allow access to certain functions of the Cisco CSS series load-balancers to less trusted (non network-engineer) staff without opening the CSS up to too much risk of misconfiguration. Currently it allows web users to suspend and activate Services in bulk quickly and safely. There are also value-added features such as "locking" servers so someone can't accidently activate a server that was suspended for a reason, comments are also useful, especially when used in conjunction with CSSPump to give context to a suspended or down server.
The first public release is right here. It should install and run fairly easily. If the Expect script gets something it doesn't like, it will simply freeze. This is again because of the target audience. If, after initial deployment, this tool doesn't complete its tasks properly, something is likely wrong with either the CSS or your route to it, and a network person should be looking at things, so I don't want it to gloss over failures.
It is very easy to make your CSS (inadvertently) write brand new config with this tool, as with anything that has the possibility of removing your entire load balanced server farm from the internet, it should be thoroughly tested before deployment.
Tools and Hacky Stuff
Submitted by xrayspx on Mon, 12/03/2007 - 2:11amHere 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.
Cisco CSS Toy
Submitted by xrayspx on Tue, 08/07/2007 - 12:35am[music | Bauhaus - Dark Entries (Live)]
This is the first of a few tools I have to release in the coming couple of weeks, mainly involving Cisco's CSS product. The purpose of me writing them is that Cisco's web interface to the CSS is both a terrible user experience and has shown itself to be vulnerable to trivial attacks in the past (in a security sense). I don't want to run the web gui on my CSS's, and most of our admins were terrified of the command line. So I wrote a bunch of tools to help do their jobs, without the possibility of screwing up the load balancers.


