Programming

Programming

Powermock with JUnit 4 to Test Spring+Hibernate Architecture

I've been working on developing this webapp project. Basically, we break the logical parts of the code into entity layer, service layer and UI layer. The data structure is not that complex, so we thought that we use Hibernate ORM to do its magic. All the plumbing works between these layers were managed via Spring dependency injection.

Read
Programming

For-loop, to ++i or i++ or not?

I just recalled an interesting theory mentioned by my C lecturer back in uni days, use ++i instead of i++ in a for-loop.

Read
Programming

Printing A5 size on A4 papers using iText

Automating bulk printing A4-sized papers into A5 size

Read
Programming

Funny "__OBJC_CLASS_$_" during compile/linking

I've been following the CoreData tutorial and I receive errors ... Turns out, CoreData.framework wasn't in my project

Read