Uncategorized

14. Add Album Art to mp3 files in iOS

Prerequisite: Download ID3 C Library from here – http://sourceforge.net/projects/id3lib/files/id3lib/3.8.3/id3lib-3.8.3.zip/download

And use below method to add album art in the given mp3 file:

-#import <id3/tag.h>//update the Header Search path with the location of this library under your project

-(void)addMetaDataToMP3File:(NSString*)songFilePath withAlbumArtFile:(NSString*)artworkImgPath

{

    

    ID3_Tag tag;

    tag.Link([songFilePath UTF8String]);

    tag.Strip(ID3TT_ALL);

    tag.Clear();

    ID3_Frame frame;

    frame.SetID(ID3FID_PICTURE);

    frame.GetField(ID3FN_MIMETYPE)->Set((constchar *)[@"image/jpeg"cStringUsingEncoding:NSUTF8StringEncoding]);

    frame.GetField(ID3FN_PICTURETYPE)->Set(ID3PT_COVERFRONT);

    frame.GetField(ID3FN_DATA)->FromFile((constchar *)[artworkImgPath cStringUsingEncoding:NSUTF8StringEncoding]);

    tag.AddFrame(frame);

    tag.SetPadding(false);

    tag.SetUnsync(false);

    tag.Update(ID3TT_ID3V2);

}

 

11. When Xcode fails to open Organizer after successful Archive

Try adding “/Application” in “Installation Directory” under build setting of target app for the same configuration used in Archiving.

 

 

8. Its Official : GoDaddy server not connecting to external SMTPs

I have been trying to write a php script which can email using smtp may be Google account or any other account, but after spending lot of time, I found that Godaddy (where I have my hosting account) doesn’t even allow scripts to make socket connection. Embarrassing, isn’t it !

Have a look into this link : http://community.godaddy.com/groups/web-hosting/forum/topic/godaddy-server-not-connecting-to-external-smtps/