Monday, March 28, 2016

How to open/view/share embedded documents in Microsoft Word for Mac (2011/2016)

You would be surprised to know that Microsoft doesn't support a viable option to view embedded documents. Embedded PDF's are the worst, even the .docx files doesn't allow you to save even in latest version of Microsoft word for OS X.

What is even more surprising is that why can't they provide a "save as" option when I do right click on the embedded object?

After a lot of digging I've figured out the way to view all the embedded files, though it is not easy it is better than booting your VM for this task alone.

Basically rename your .docx or .xlsx file to .zip and unzip using your favorite application. If you digg deeper, in my case I was unzipping .docx file, you can find all the embedded document in "/word/embeddings" path. In my case all the pdf's are embedded as oleObject.bin which can be unzipped to view the original pdf file "CONTENT" after renaming it to ".pdf"

Sunday, January 31, 2016

Dev Diary

This is something I've started in Jan '15. This is to practice a habit of keeping a log of stuff I do which took me a lot of time to figure out myself (may be I'm not efficient?).

I'm getting old and everything seems to be a Dejavu. At times, I keep spending more time figuring out the same solution as I'm switching between projects & technologies often.

Well, today I was re-working on my iPad app with a new in-app purchase and my own document helped me to quickly close the task.

Irony is I started this DevDiary to log my learning of AngularJS, Ionic framework & Flexbox in Dec 2014. Which is not updated yet, may be someday. I wish to update the project in a weekly basis or at-least once a month.

I built the DevDiary with nifty npm tool called gitbook, which I've documented for my own benefit.

So if I may suggest, kindly keep your own log and it is very easy with Github & Gitbook.

DevDiary - Github

Friday, January 1, 2016

Integrating Chromecast with Kaltura SDK (iOS)

Their documentation says it is built in, but I couldn't find a sample anywhere, so here it is for everyone on how to integrate Chromecast with your Kaltura Player.

- (KPViewController *)player {
    if (!_player) {
        KPPlayerConfig *config = [[KPPlayerConfig alloc] initWithDomain:@"http://cdnapi.kaltura.com"
                                                               uiConfID:@"PlayerConfigId"
                                                              partnerId:@"YourPartnerId"];
        config.entryId = @"YourContentId";
        
        [config addConfigKey:@"chromecast" withDictionary:@{@"plugin":@"true"}];
        
        config.cacheSize = 0.8;
        _player = [[KPViewController alloc] initWithConfiguration:config];
    }
    return _player;
}

I'll cherish the moment where I had to demo this to a customer in order to gain the confidence and to prove my report was correct.