Wednesday, March 24, 2021

Using RAKE for keyphrase extractions

 

Use MULTI-RAKE for Hindi keyphrases.


RAKE-NLTK

RAKE-NLTK is a modified version that uses the natural language processing toolkit NLTK for some of the calculations.

Installation:

Import, Declare a RAKE-NLTK Object and Extract!
We again extract just the top 10 keywords.

Here’s the output for the same text passage using RAKE-NLTK. For the chosen passage, RAKE and RAKE-NLTK give the same output. But this isn’t always the case. Try it out for yourself on other passages!

Sunday, March 21, 2021

crisp: chat with customer

 crisp is customer chat application and they have widget for android apps as well.



Best tool to create icons for Android and iOS

 appicon.co


This site is amazing the way it create app icons.

Some beautiful examples of Kotlin

 1. UI Callbacks

var uirefreshListener: (()->Unit)? = null
this.uirefreshListener={
showPostLoginUI()
}
@JvmStatic
fun addCustomerPremiumInfo(context: Context, customer_id: Int, callbackUI: (() -> Unit)?) {
}

2. Static fields and methods
companion object {
@JvmStatic
fun syncCustomerData(context: Context, name: String, email: String) {
}

3. Async and runonMainUI and co-routines

GlobalScope.async {
val ackPurchaseResult = withContext(Dispatchers.IO) {
billingClient.acknowledgePurchase(acknowledgePurchaseParams.build(),acknowledgePurchaseResponseListener)
}
}


    

Wednesday, March 17, 2021

How to get Debug Key for Android studio

 Go to ~/.android

run below command

keytool -exportcert -list -v -alias androiddebugkey -keystore debug.keystore

Thursday, March 11, 2021

Django Initial Setup for Django REST API

 python3 -m venv env

source env/bin/activate  # On Windows use `env\Scripts\activate`

# Install Django and Django REST framework into the virtual environment
pip install django
pip install djangorestframework

# Set up a new project with a single application
django-admin startproject tutorial .  # Note the trailing '.' character
cd tutorial
django-admin startapp quickstart
cd ..
python manage.py createsuperuser --email admin@example.com --username admin
manage.py makemigration
manage.py migrate
create token: python manage.py drf_create_token bhola
Give MYSQL settings like below: DATABASES = {
    'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'xxx',
'USER': 'root',
'PASSWORD': 'xxxxxx',
'HOST': 'localhost', # Or an IP Address that your DB is hosted on
'PORT': '3306',
}
}
Django filters:pip install django-filter 
filter_backends = [DjangoFilterBackend]
filter_fields = ["email"]

Tutotial on setting up uWSGI with Flask for Python

 Below is amazing tutorial for setting Flask with uWSGI:


Key command is :

uwsgi --socket 0.0.0.0:5000 --protocol=http -w wsgi:app


Key file content is :
wsgi.py
from launch import app

if __name__ == "__main__":
    app.run()

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04



Monday, March 8, 2021

Launch of Namaste English website

 My firm HinKhoj has finally launched dedicated website for English learning for Hindi Medium students. In Namaste English, students will get below:

1. Online Live Video courses

2. Recorded classes from English Teacher

3. Grammar practice and spoken english practice

4. Games for increasing English Knowledge


So why wait, click on https://namaste-english.com to visit it.