Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK – Android

Edit 3: Cordova Android 6.2.2 has been released and it’s fully compatible with SDK tools 26.0.x and 25.3.1. Use this version: cordova platform update [email protected] or cordova platform rm android cordova platform add [email protected] Edit 2: There has been another Android SDK tools release (26.0.x) that is not fully compatible with cordova-android 6.2.1. Edit: Cordova … Read more

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory in Ionic 3

For a non-Angular general answer for those who land on this question from Google: Every time you face this error it’s probably because of a memory leak or difference between how Node.js <= 10 and Node.js > 10 manage memory. Usually just increasing the memory allocated to Node.js will allow your program to run but … Read more

Slowness found when base 64 image select and encode from database

As a rule of thumb, don’t save files in the database. What does the mysql manual have to say about it? http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-optimization-tips.html With Web servers, store images and other binary assets as files, with the path name stored in the database rather than the file itself. Most Web servers are better at caching files than … Read more

Can I get today’s date plus one month in moment js? [duplicate]

<ion-datetime displayFormat=”MMMM YY” min=”{{min}}” max=”{{max}}”></ion-datetime> Now you need the min and max value. First, let find out today and next month. const today = moment(new Date()).format(‘YYYY-MM-DD’); const nextMonth = moment(today).add(1, ‘M’); var nextMonthEnd = moment(nextMonth).endOf(‘month’); if(today.date() != nextMonth.date() && nextMonth.isSame(nextMonthEnd.format(‘YYYY-MM-DD’))) { nextMonth = nextMonth.add(1, ‘d’); } console.log(today.format(‘DD-MM-YYYY’)); console.log(nextMonth.format(‘DD-MM-YYYY’)); Now this.min = this.today; this.max = this.nextMonth