This book promised a plethora of projects I was disappointed when I got hung up early in the book because I couldn’t get sound to come out of my computer. For a bit I thought I had jacked my MIDI settings because I’m always hooking things up to my computer and playing with with various MIDI routing programs but I was wrong.
After taking some time off I came back and found this Stackoverflow question which seemed to solve the problem but Pastie didn’t contain the code.
Following the github link took me to a livecoding environment tool (something to play with later!) with updates for SnowLeopard.
I ported them into my LiveMIDI.rb file and things are working now so thanks to you Zackola for pointing me in the right direction.
I’m guessing other people might be looking for this so I submitted it to the books errata page and am posting it here for reference.
# Figure out if we have SnowLeopard
SnowLeopard = `uname -r` =~ /10\.\d\.\d/
# MIDIPacketListAdd takes different arguments in Snow Leopard so we'll update both the extern and further down when we call it.
if SnowLeopard
extern "void * MIDIPacketListAdd(void *, int, void *, int, int, void*)"
else
extern "void * MIDIPacketListAdd(void *, int, void *, int, int, int, void *)"
end
# And give it what it wants.
if SnowLeopard
packet_ptr = C.mIDIPacketListAdd(packet_list, 256, packet_ptr, 0, args.size, bytes)
else
packet_ptr = C.mIDIPacketListAdd(packet_list, 256, packet_ptr, 0, 0, args.size, bytes)
end
View Comments
The other morning I was greeted to find this in my inbox and was pleasantly surprised. I’m pretty sure most everyone didn’t notice the unsubscribe link missing, perhaps some people went to find it but gave up. That being said I like that they took the time to admit their mistake, more companies should be upfront about their mistakes.
View Comments
When I started out with Ruby on Rails I was using my Bluehost account to host everything but found that it was cumbersome to configure and wasn’t flexible enough. So recently, I opened an account with Linode and after a month I think I’ve settled into the right setup.
And so I’d like to take a minute to share that setup and see if I can get some feedback on it.
Quick overview: I have a Unbuntu 8.04 LTS server running Nginx with Passenger to serve my Ruby on Rails apps and hope to add Asterisk and a PHP web server (for ExpressionEngine) in the future.
To get myself up and running I followed Linode Library’s Getting Started Guide and then the Ruby on Rails with Nginx on Ubuntu 8.04 LTS (Hardy) guide.
I ran into some problems getting Passenger setup, apparently I forgot to run it as Sudo, go figure.
Then I had a hard time setting it up to serve multiple Rails apps. I kept getting a 403 error and I wasn’t sure what was going on, well I found a blog post by Priit Tamboom that explained my problem and I was up and running.
Now all the meanwhile, to edit configuration files I would SSH into the server and then use VI which was terribly painful but fortunately a Node member introduced me to SSHFS for OS X which is making life much easier.
Now all I have left to do is move my two ExpressionEngine blogs over (matthewforr.com and whatsamattyfo.com) and I would like to setup Asterisk for some telephony interactive code games. All in all, I’m happy with Linode, deploying Ubuntu was easy, monitoring is easy and the price while more than I would like it pay is cheaper than Amazon.
Please leave comments about this setup or send me an email to me.
View Comments
Last Tuesday as the deadline for NYCBIGApps competition was coming close I managed to finish and submit my entry, foodinspectr.com. It’s a really simple app that takes the NYC Restaurant Health Inspection dataset and makes it accessible as an iPhone optimized webpage. My end goal was to add a button that would access an iPhones Lat and Long via JavaScript and return the restaurant if the user is there.
Alas, I got an email today saying that we cannot make changes to our apps until the decisions are made so I will leave that be for now.
The app was built on a Linode box running Ubuntu 8.04, Nginx proxy’s the requests to a Mongrel’s server but I think I’ll be switching over to Passenger when I figure that out. The app uses the Tank-Engine plugin and not much else.
All in all, it was a great first project for exploring Ruby and learning how to deploy a Rails app.
View Comments
Dear readers and visitors, welcome to my newly realigned website. Back when I first set out to create matthewforr.com my goal was to create a site that was professionally presentable and would convey the message that I’m available to do freelance web development on a limited basis.
Since then I’ve had a chance to learn even more about designing for the web and this fall I came across an article that talked about realigning websites instead of redesigning websites. I knew I had been unhappy with how this site looked but didn’t want to start from scratch so with that in mind I took a hard look at what I had and decided to go with what was working and discard the rest.
For starters, I had been happy with the calm blue hues and the dark background but wanted to add some grunge textures to the theme and find a ‘highlight’ color to work against the blues and grays. Furthermore, I wanted to find a way to balance elements on the page and make everything snap in together.
After some work and dropping a few elements I was able to find what I was looking for and would like to think I’ve finished for now. In the future I plan on adding a portfolio but for now I feel it’s unnecessary. If you are interested in work I’ve done please contact me and I’ll be able to provide examples of work I’ve done.
If you have any feedback I would appreciate it, please send me an email (matthew.forr at gmail.com) or leave a comment below.
View Comments

Lately my most favorite webapp has been this tool created by Adobe that really helps to build an idea of what colors I want to work with.
Starting with a base color then it will produce analogous, monochromatic, triadic, complementary, compound or custom color palettes. From there I can go ahead and share my creation or download and import it into Photoshop or Illustrator. Pretty handy.
Even more so you can pursue the huge collection from the community which leads to endless inspiration.
Here’s my favorite color scheme yet Mustang 1944 http://kuler.adobe.com/#themeID/143922
View Comments
1 of 3 pages
1 2 3 >