Monday 9 December 2013

Free e-book: Object-Oriented Programming with ANSI-C

This interesting book written by Axel Schreiner has some answers about the possibility of OOP in plain C. Although we're continuously moving to managed languages mainly based on Java or .Net, it's still worthwhile to take a look at this book to understand OOP concepts better and get fresh new ideas for the future. 

( Image from www.cs.rit.deu/~ats/ )



Sent from Evernote

Wednesday 4 December 2013

How to solve exception on loading of Microsoft.Practices.EnterpriseLibrary.Logging for WPF application development

Today I got an exception from Visual Studio 2010 which complained the unresolvable module of Microsoft.Practices.EnterpriseLibrary.Logging (version 2.0.0.0, Public Key 13aaee2494f61799) when I attempted to open a XAML UI developed by others. To my embarrassment, this .Net DLL is already GAC-ed on my machine. Probably, one or more of its satellite libraries were missing. 


It's turned out that I should install "Enterprise Library for .Net Framework 2.0". The exception is now gone after installing the library package and restarting VS. 

Interestingly, even without the Enterprise Library, I was still able to compile & run the project. It means that the missing part matters on design time only. 

Sent from Evernote

Can't reboot Optimus G Pro into recovery mode after installing CyanogenMod 10.2

Yesterday, I encountered a strange problem to update the CM10.2 RC ROM to the official CM10.2 on my E986 as I couldn't make the phone boot into recovery mode. It just showed this disappointing message. 


Actually it was obvious that I succeeded in doing that - or I wouldn't be able to install CM 10.2 RC. So what happened? As I am not an expert in this area so that I am not 100% sure, but it seems that the last recovery image to apply CM 10.2 RC was not fully compatible with my e986. 

(Warning - Everything is at your own risk!)

Last time, I used 2nd-init recovery to inject CWM and it worked with no issue so I still don't understand why not now. Anyway, I was advised that I should use a loki-compatible recovery tool. e.g. FreeGee. (What is loki??? Don't ask me, please!) Interestingly, I found that several people encountered the same problem of mine and some of them just reverted the ROM back to the stock one and start from scratch with safer tools. I know it could be the best, but I didn't have the stock ROM.

Instead, I installed FreeGee I mentioned above. Unfortunately, the latest version (1.9.5) didn't do anything but displaying "Error 127" so I googled to find an older one and finally found Chinese version of 1.2.4 which worked fine whilst I don't speak Chinese. FreeGee has a few options to take various recoveries and I used CWM. I won't link that Chinese version here as I believe the developer of FreeGee will fix the current problem soon and that unsecured version I used might brick your machine. 

Therefore, if you encounter the same problem, use FreeGee! 
Sent from Evernote

Official CM10.2 for LG Optimus G Pro (e980, e986, e98x)

I found that a new stable ROM for my e986 so updated it in my bed. :)
It is not a Release Candidate any more! What a fast change.



Don't know how to apply the ROM? Please read my previous posts here. 
Sent from Evernote