Problems with Instant Run (Android Studio 2.0 beta 4) and Retrofit

This morning I was playing with a toy app I have which uses Retrofit, and I’ve found the following problem with it (and Instant Run): 02-16 07:41:55.550 2976-2976/com.test.android A/art: art/runtime/thread.cc:1329] Throwing new exception ‘length=227; index=1017’ with unexpected pending exception: java.lang.ArrayIndexOutOfBoundsException: length=227; index=1017 The exception was in the call itself, so it was either Retrofit doing […]

Four things you probably didn’t know about C++ (and C)

I’ve recently stumbled upon this interesting post of curious features of C++ I didn’t know of (being a C/C++ programmer for so many years!). One of the techniques I find really amazing (even when sometimes this kind of cleverness comes to bite you in the ass afterwards!) is Duff’s device. I’ve done my fair share of […]