Tracing stacktrace is sometimes very boring. Especially your code is not above certain quality. If you’re an IntelliJ user, there are many many ways to trace your code like Exception Breakpoints, Field Watchpoints, Method Breakpoints and even JS breakpoints :) Anyways, today I needed to trace an exception in one of Eclipse project for work. I was gonna place an Exception Breakpoint, but then I remember that this is not IntelliJ. So a little investigation showed me that it is possible to place an Exception Breakpoint in Eclipse as well. Here is how I do it:
Convert String to Enum
Last month we were coding some Groovy stuff and we needed to use Enum equivalents of couple Strings. We had couple dynamic Strings coming from off-shore developers, which defines the type of the entity. In our system, those types were represented by Enums. Anyways, basically we had to resolve the Enums from given Strings. After a little reading, we came up with following solution:
Connect Internet Through Your iPhone 3G
Couple weeks ago, I was waiting in the hospital line and luckily I had my MBP with me. I turned it on and tried Internet connection, but no luck. There was no free wireless access anywhere close :( Then I tried to connect through my iPhone 3G. This time I was lucky, it just worked. Here is how I did:
