Detect DOM changes with Mutation Observers

So with the help of above two tricks and browser breakpoints and stacktrace we can detect exact source of error. References https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver

Continue reading »

Enable AOF on Redis

check *.aof

References https://blog.sensible.io/2013/08/20/setting-up-redis-for-production-environment.html https://www.digitalocean.com/community/tutorials/how-to-back-up-and-restore-your-redis-data-on-ubuntu-14-04

Continue reading »

Configure MongoDB in Spring Data

build.gradle

application.properties

User

References https://spring.io/guides/gs/accessing-data-mongodb/ http://www.baeldung.com/spring-data-mongodb-tutorial https://www.mkyong.com/mongodb/spring-data-mongodb-hello-world-example/ https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-nosql.html

Continue reading »

Configure Spring Session with Redis

build.gradle

application.properties

Continue reading »

Redis PPA

References https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server

Continue reading »

Working with SharedPreferences

References https://www.tutorialspoint.com/android/android_shared_preferences.htm

Continue reading »

Pass custom object in Bundle

MainActivity.java

ReceiverActivity.java

References https://stackoverflow.com/questions/5784231/how-to-pass-custom-object-in-bundle

Continue reading »

Using NumberPicker with Strings

References https://stackoverflow.com/questions/8227073/using-numberpicker-widget-with-strings

Continue reading »

Receive JSON data in Spring Boot MVC Controller

FormsApiController.java

FormBL.java

Continue reading »

Android show DialogFragment title on API level older than 23

In your styles:

If your dialog is a fragment:

References https://stackoverflow.com/questions/32405042/android-dialogfragment-title-not-showing

Continue reading »
1 2 3 4