Posts

Showing posts with the label osx

Easy and accurate SVG to DXF conversion using Inkscape and pstoedit

If you've ever worked with a vector tool to design something to be carved with a CNC routing machine, you may have needed to convert the resulting SVG file into a DXF. In my workflow I often use Inkscape to generate my SVG graphic, but my CAD software is CamBam and it requires a DXF file. Many people have tried to make the perfect Inkscape plugin for exporting DXF, there is  Better DXF Export ,  Better Better DXF Export  and  Big Blue Saw's DXF Export . I've had the most luck with the last one, but it was still finicky and often broke when updating Inkscape or OSX. Not only that, but at the end of the Big Blue Saw page, Simon mentions that he doesn't even use the plugin most of the time, instead relying on a command line tool called pstoedit. With that in mind I made a small shell script which will convert an SVG file to DXF, you can save the script and run it directly or add the functions to your startup script. The script is available on github under the proj...

Make a TAP with a MAC in Garage Band

Image
I'm not a very fun person, so using a fun computer like a MAC is hard for me. Using fun software like Garage Band is even harder. I needed a TAP sound for a project I'm working on and this MAC is the only device I have with a microphone, and Garage Band the only program I knew of for doing audio stuff. This is the guide I wish I had earlier today. 1. Create a new Voice project:

Xcode 3.2.1, Interface Builder and Outlets

First day of iPhone development and I've already hit a problem.  Using the Stanford iPhone Application Development course as a crash course the first lecture had a demo application  using a program called "Interface Builder" to hook together a bunch of pieces for a basic UI.  Well the most important part, hooking the pieces together, changed with version 3.2.  Rather than creating the outlets from the interface they must be added explicitly to the header file. For completeness, here is the code which needs to be added (it was difficult to read from the video) MyConenctor.h @interface MyController : NSObject { IBOutlet UILabel *label; IBOutlet UISlider *slider; } -(IBAction)changeLabelText:(id)sender; MyConnector.m -(IBAction)changeLabelText:(id)sender{ int value = slider.value; label.text = [NSString stringWithFormat: @"%d", value]; }