Friday, March 19, 2010

sudo gem install nokogiri-happymapper

This is it, you can install my fork of happymapper using the above command! It's now available on Rubygems.org.

It's a replacement to happymapper, so you want to use it using:
require 'happymapper'

Thank you to Matt/GoodGets for using the fork and pushing me to publish it as a gem! Enjoy! :)

Thursday, February 4, 2010

Change keyboard appearance of UISearchBar

It's not built-in the API, so this piece of code will do. It makes your search bar display in black, and with transparency... enjoy! :)

Tuesday, February 2, 2010

Mapping UIWebview links to controller/delegate actions

In an iPhone application I'm developing, there are some views that are quite complex to code... and I find them much easier to code in HTML/CSS. Since the Webkit engine available on the iPhone is quite powerful, I find it a much easier way to create complex views...

Now if you want this view to interact with your application it is a bit tricky... but not THAT much. Here is a piece of code I have in my controller... well in my UIWebViewDelegate.

Basically we catch the click on a link, and if the link is of the form file://...#action we then look for the selector action in the controller and trigger it if it exists.

It's THAT simple. :)

Thursday, December 24, 2009

New portfolio iPhone App released!

I've finally released my first iPhone app under the name Melion Design. This is a photographs portfolio for Andrew Hill. What I want with this app is to demonstrate the engine I've developed to manage your portfolio in your own iPhone application.

The application is free, it's called "The Frog Photos" and you can find it in the app store. Andrew can manage the photos available in the application through a web interface I've developed. It makes it easy to upload, and manage photos. The following features are available:

  • Amazon S3 photos storage:  fast download of photos.
  • Offline mode: user can still browse your photos when offline.
  • Customize the description of each photo.
  • Customize the perma-link of each photo.
  • Provide a link to your own website.

Don't hesitate to contact me if you're interested in having your own portfolio available in the appstore for everyone to see! :)

Wednesday, December 2, 2009

Lotto Results for iPhone, version 1.2 released!

Yes, there it is! Version 1.2 has the following additional features:

  • Systems - record up to 18 of your favorite winning numbers assisting System Players
  • How to win - check what you require to win a division prize for each and every game
  • Odds - check the odds of winning each division for each and every game

I'm now working on even more exciting content, but I can't tell you yet what it is!

I just enjoy a lot working on this project. :)

You can find Lotto Result in the app store.

Tuesday, December 1, 2009

Presentation of my Happy Mapper fork at the last RORO Sydney

Last November I did a presentation of the Happy Mapper fork I developed. The video is available on Vimeo. Unlike the description says, it is a fork using Nokogiri to replace XML Object, but watching it will clear everything out! It's a lightning talk, so I'm sure I won't waste too much of your time :)

You can also find all the videos from RORO on Vimeo. Enjoy!

Wednesday, November 25, 2009

Calling an authenticated controller action from a rake task

Just wrote that little rake file:

I thought that would be useful for some people. It just calls an action from a Rails controller. This action is supposed to be accessed only by the admin user. We also prevent checking for authenticity token. This rake task will be called in a cron job.