This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Django > Firebase > flutter using | |
set django fcm url | |
https://github.com/xtrinch/fcm-django |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
first import the tracsaction contrl | |
``` | |
from django.db import transaction | |
``` | |
then code like this | |
``` | |
@api_view(['POST']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
pip install --pre gql[all] | |
or if use zsh | |
pip install --pre gql\[all\] | |
``` | |
from gql import gql, Client | |
from gql.transport.aiohttp import AIOHTTPTransport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file location | |
/etc/postgresql/12/main | |
# add this line to end of the file | |
host all all 0.0.0.0/0 md5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove previously install one | |
sudo rm -rf /opt/Postman/ | |
# extract file and put into opt dir | |
sudo tar xvf Postman-<your version>.tar.gz -C /opt/ | |
# Link the excutable | |
sudo ln -sf /opt/Postman/app/Postman /usr/bin/postman | |
# create file postman.desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo update-alternatives --config java | |
sudo update-alternatives --config javac | |
java and javac both are selected different version so thats the problem | |
choose same version in both | |
then rerun ionic it will works |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/vivek/.config/nvim/coc-settings.json | |
{ | |
"python.pythonPath": "~/Software/virtualenv/pinin/bin/python3", | |
"python.pythonPath": "~/Software/virtualenv/ezeecorp/bin/python3", | |
"python.linting.pylintEnabled": false, | |
"python.linting.enabled": false, | |
"python.jediEnabled": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host aavin aavin 192.168.0.1/30 md5 | |
host all all 0.0.0.0/0 trust # access for all database and user | |
file locaion mac | |
Library/ApplicationSupport/Postgres/var-11/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ionic cordova plugin add cordova-plugin-googlemaps | |
npm install --save @ionic-native/core@latest @ionic-native/google-maps@latest | |
ref url | |
``` | |
https://github.com/ionic-team/ionic-native-google-maps/blob/master/documents/README.md | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cannot add task ':app:processDebugGoogleServices' as a task with that name already exists. | |
### remove android platform | |
ionic cordova platform rm android | |
file plugins/cordova-plugin-fcm/src/android/FCMPlugin.gradle | |
dependencies { | |
compile 'com.google.firebase:firebase-core:10.+' | |
} |
NewerOlder