Updating an object with setState in React

There are multiple ways of doing this, since state update is a async operation, so to update the state object, we need to use updater function with setState. 1- Simplest one: First create a copy of jasper then do the changes in that: this.setState(prevState => { let jasper = Object.assign({}, prevState.jasper); // creating copy of … Read more

How to declare global variables in Android?

I wrote this answer back in ’09 when Android was relatively new, and there were many not well established areas in Android development. I have added a long addendum at the bottom of this post, addressing some criticism, and detailing a philosophical disagreement I have with the use of Singletons rather than subclassing Application. Read … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)