Lately I’ve been using Rabl in Rails to serve json. I’ve used it a few months ago but clearly I don’t remember so much about. Now that I’ve been using more I’m starting to like it more. As soon as I understood how it worked it was more fun to use than rendering json in Rails via “render :json => {}”
Note to self, when I have some time I’ll create a screencast on how to use it
I recently wrote an app called RailsMailPreview which will capture any emails being sent from your Rails app.
Once they are captured you can preview what they will look like to the end user.
Lately I’ve been working on updating www.skatr.us which is a site built with Rails and the new code will be ridding Rails 3, and I’ve been porting it over to use HAML as it’s way better than writing erb.
I’m also now using the new sass which I can now get rid of the css less plugin which essential did the same.
For Fixtures I started using machinist and it’s just awesome, at a project I used to work on I had to use monkey type fixtures and that was not fun, machinist makes it fun again. Try it see for yourself.
In the past years I’ve always tried to use MacVIM but I just couldn’t keep with it because for one it didn’t look great and I had grown to like Textmate. Recently I decided to get back into learning and use MacVIM for all my development needs except for Cocoa Development where I use XCode because it works awesome with it. I think it has taken me about a week to start getting used to it, the only problems I have at the moment are, I will sometimes type the wrong command but it’s getting better. Practice makes perfect so I will keep trying.
Posted in Mac, Me, Programmingwith Comments Off on I’m now using MacVIM…
When I test my iOS apps on my local network to debug issues I setup a host on my router to point my mac on the network. On my development machine I port forward all requests from port 80 to port 3000 because I’m using Rails and want to view the request log.
This weekend I was playing with some neat Core Animation and was looking into how to get an NSImage of a NSWindow. My first solution was to find out if someone already figured that part out and yes of course they did according to google. But the problem was all the examples never had the shadow of the window and I wanted the shadow. So I poked around the docs for some long hours and I came out with this after looking at SonOfGrab sample code.
Posted in Uncategorizedwith Comments Off on Capture NSWindow screenshot
A while ago I wanted to get GAMV back online and I decided to use Cupcake the PHP Framework I wrote. If you’re looking for it go to: http://gamv.fernyb.net/
I’m going to start posting more code snippets on my blog and each of those posts will be called Cocoa for today and of course the title changes for the specific code I’m writing.
If your working with NSOutlineView and need to deselect all items you can use
Yes that’s me the first blurry one. Photo by Chuck Toporek.
After attending NSConference USA 2010 in Atlanta, GA all I have to say it was awesome! Really it was. The content was great. The folks were cool and the food was ok not bad. One thing that I really did not like and I think everyone would agree, food was not allowed in the auditorium. I’ve managed to record a few of the talks using QuickTime on my Macbook. I think one of the best talks was “Spelunking OSX” it’s just awesome. The lunch talks were also great. The Cocoa Rumble was really great and entertaining. Hopefully next year it will be at a different city, I have nothing against Atlanta but having a conference in different cities will be great.