+45 70 27 40 08

sales@meeho.net

— Posts from December 2009:

» Meeho!™ Blog launched in English!

Posted by Kasper Tidemann on Tuesday 22nd of December 2009 06:02:10 AM

Hello all you lovely English speaking users. In relation to the forthcoming release of Meeho!™ version 1.4.1, we have launched our blog in English.

The Meeho!™ Blog is a place for us to tell about our development work with Ruby on Rails, Java EE, FreeBSD, and numerous other technologies that comprise the complete Meeho!™ platform. We are happy to have you on board, and you are more than welcome to drop by, comment on our entries and send us requests for topics to write about.

All the best on behalf of the Meeho!™ crew,
Kasper Tidemann

0

Comment on this post

» About vPim and images in vCards

Posted by Kasper Tidemann on Wednesday 16th of December 2009 09:46:16 PM

If you want to export vCards in your Ruby on Rails application, chances are you’ve probably stumbled upon vPim. The documentation claims that you’re able to include an image in a vCard by adding the following to your code:

maker.add_photo do |photo|
photo.image = File.open(path_to_image).read
photo.type = 'jpeg'
end

The only problem is that it does not work in the Address Book app of Mac OS X, on a Nokia phone etc. The picture included in the vCard is simply not shown.

The solution is for you to do a minor manual change of the string that your card object turns into when it is serialized by the encode method. 1) You include image data via PHOTO;BASE64:[...], and 2) you make sure that the base64 data is inserted correctly in the vCard file.

If we presume that you wish to include an image, YOUR_IMAGE.jpg, placed in the /public folder in your rails application, you can make use of the following piece of code:

my_vcard = card.encode.sub("END:VCARD", "PHOTO;BASE64:" + "\n " + [File.open(Rails.public_path + 'YOUR_IMAGE.jpg').read].pack('m').to_s.gsub(/[ \n]/, '').scan(/.{1,76}/).join("\n ") + "\nEND:VCARD")

If you use the above piece of code, you’ll see that the bottom line of the generated vCard, END:VCARD, is replaced by a PHOTO section containing your image data, correctly formatted and inserted in base64 format (and of course, END:VCARD is added in the end).

If you then wish to send the freshly generated vCard to the user’s browser, you type in the following:

send_data(my_vcard, :type => 'text/x-vcard;', :filename => 'my_vcard.vcf', :disposition => 'attachment')

Et voila, now vCard export works with images. In Address Book on Mac OS X, our vCard can look like this:

En kontaktperson i Adressebog i Mac OS X, som er importeret via et vCard, der er eksporteret fra Meeho!™. Bemærk ikonet, som anvendes i Meeho!™.

A contact in Address Book on Mac OS X (don't mind the Danish text). Notice the use of the contact icon that is also used in Meeho!™.

0

Comment on this post

» We’re cooking up some great stuff…

Posted by Kasper Tidemann on Tuesday 15th of December 2009 02:09:40 AM

We’re cooking up some great stuff for all our lovely users, most notably vCard export, mail notifications, clear HTTPS access, new add box for Planning, a new calendar system and other interesting things… Look forward to the coming update!

0

Comment on this post

» New case about Sidekick

Posted by Kasper Tidemann on Wednesday 9th of December 2009 08:23:54 PM

A new case has been added to our Danish web site, this time presenting the creative marketing bureau Sidekick and their use of Meeho!™. You can read the Danish case about Sidekick here.

0

Comment on this post

 
OLDER POSTS
NEWER POSTS

+45 70 27 40 08
Open office hours

info@meeho.net

support@meeho.net

News from the Meeho!™ Blog:

02/14 2011 » Fixing the "NoMethodError: undefined method ‘to_sym' for false:FalseClass" error when working with I18n in Ruby on Rails

02/03 2011 » Soon to come: IMAP integration

01/27 2011 » Meeho!™ App version 1.0.3 is out!

01/26 2011 » Cool new iPad stand

We live at Diplomvej 381, 2800 Kgs. Lyngby, Denmark: