Posts

Showing posts from March, 2020

ionic page scroll to bottom example

import { Content } from 'ionic-angular'; //ionic3 @ViewChild(Content) content: Content; // ionic3  import { Content } from '@angular/compiler/src/render3/r3_ast'; //ionic5 @ViewChild(Content, {static: true}) content: Content;  //ionic5 scrollToBottom() {     setTimeout(() => {       this.content.scrollToBottom();     }, 100);   }

nativescripts issue (app not working above 10 version)

https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#platform

Android sdk download links

https://www.sonarlearning.co.uk/questions.php?question-topic=141

Free html template themes

http://amadertheme.com/

Generating distance matrix using java

long[][] intArray = new long[waypoints.size()][waypoints.size()]; for(int i=0;i<intArray.length;i++) { for(int j=0;j<=i;j++) { intArray[j][i]=distance(waypoints.get(i),waypoints.get(j)); } for(int j=0;j<=i;j++) { intArray[i][j]=intArray[j][i]; } }

Mongo db (Restore/Backup)

Mongo DB Backup and restore commands. mongodump -d <database_name> -o <directory_backup> mongorestore -d <database_name> <directory_backup>

firebase links ionic

https://github.com/dpa99c/cordova-plugin-firebasex

Ionic 4: Autoplay videos on scroll

Image
Often, achieving Instagram or Facebook type experience is more difficult than it sounds in Ionic. To bridge that gap, I’m going to show you how to automatically play and pause videos in your app as your user scrolls. This article will be a bit longer, despite the topic being pretty simple. The reason being, is I like to explain WHY we’re doing things, instead of just having you blindly copy and paste, without understanding what’s actually going on in your application. Let’s get started First and foremost, we need to edit our  config.xml  file to include the following preference. <preference name=”AllowInlineMediaPlayback” value=”true” /> This tells our app that we want to be able to choose which videos are played inline, without opening the native video player — which can be annoying in an app with a lot of user-generated videos. Edit Config.xml Your  config.xml  file should end up looking something like this: ... <pr...