(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // Support routines for automatically reporting user timing for common analytics platforms | |
| // Currently supports Google Analytics, Boomerang and SOASTA mPulse | |
| // In the case of boomerang, you will need to map the event names you want reported | |
| // to timer names (for mPulse these need to be custom0, custom1, etc) using a global variable: | |
| // rumMapping = {'aft': 'custom0'}; | |
| (function() { | |
| var wtt = function(n, t, b) { | |
| t = Math.round(t); | |
| if (t >= 0 && t < 3600000) { | |
| // Google Analytics |
| The po command stands for "print object." | |
| The symbol $eax refers to one of the CPU registers. In the case of an exception, this register will contain a pointer to the NSException object. | |
| Note: $eax only works for the simulator, if you’re debugging on the device you’ll need to use register $r0. | |
| (lldb) po [$eax class] | |
| You will see something like this: | |
| (id) $2 = 0x01446e84 NSException | |
| You can call any method from NSException on this object. For example: |
| package nl.iprofs.blogs.log4j.databaselogging; | |
| import java.sql.Connection; | |
| import java.sql.PreparedStatement; | |
| import java.sql.SQLException; | |
| import java.util.ArrayList; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| import javax.naming.Context; | |
| import javax.naming.InitialContext; |