Thursday, January 27, 2022

Alphabets

Level:

Tags: English Lessons,Communication Skills,

Number Tables

Base Number:

X =
Tags: Mathematical Foundations for Data Science,

AngularJS Saying Goodbye



1: AngularJS is now in Long Term Support (LTS) mode: Find out more. Explore End Of Life (EOL) options here. -- https://angularjs.org/ (2022-Jan-27)
2: On July 1, 2018 AngularJS entered a 3 year Long Term Support period. UPDATE (2020-07-27): Due to COVID-19 affecting teams migrating from AngularJS, we are extending the LTS by six months (until December 31, 2021). -- https://docs.angularjs.org/misc/version-support-status (2022-Jan-27)
3: Google's version of AngularJS has reached End of Life. -- https://xlts.dev/angularjs (2022-Jan-27)
4: As of January 1, 2022, Google no longer updates AngularJS to fix security, browser compatibility, or jQuery issues. The Angular team recommends upgrading to Angular (v2+) as the best path forward, but they also provided some other options. -- Wikipedia https://en.wikipedia.org/wiki/AngularJS (2022-Jan-27)
Tags: Technology,Web Development,JavaScript,FOSS,

Wednesday, January 26, 2022

Divide two numbers and show the working


Enter two numbers to show division:

We would divide the larger of the two by the smaller one.



Tags: Mathematical Foundations for Data Science,

Tuesday, January 25, 2022

Exercise Spells 2021



Index of Journals
14/06/21, 06:25 - Ashish Jain: 40 push-ups

14/06/21, 07:42 - Ashish Jain: 15 Abdominal crunches

19/06/21, 00:20 - Ashish Jain: 42 burpees without push-ups in 30 minutes by 9 AM.

20/06/21, 06:07 - Ashish Jain: 55 Burpees with push-ups in an hour. 

20/06/21, 22:58 - Ashish Jain: 71 burpees.

26/06/21, 07:18 - Ashish Jain: 50 burpees done.

26/06/21, 07:22 - Ashish Jain: 25 abdominal crunches done.

26/06/21, 07:29 - Ashish Jain: 2 minutes long high rise plank.

30/06/21, 06:32 - Ashish Jain: 15 minutes of running.

30/06/21, 06:33 - Ashish Jain: 5 sets of:
10 push-ups AND 15 abdominal crunches.

30/06/21, 06:42 - Ashish Jain: 5 sets of 10:
Reverse abdominal crunches

30/06/21, 06:59 - Ashish Jain: 5 sets of High rise plank: 1minute long.

01/07/21, 06:33 - Ashish Jain: Regular Planks
40s : 16
45s : 3
50s : 6

09/07/21, 04:00 - Ashish Jain: 160 jumping jacks in 15 minutes.
09/07/21, 04:03 - Ashish Jain: 1 minute of wall sit.
09/07/21, 04:08 - Ashish Jain: 1 minute of wall sit.
09/07/21, 04:35 - Ashish Jain: 10 push-ups.

12/07/21, 09:27 - Ashish Jain: 10 push-ups
12/07/21, 10:02 - Ashish Jain: 100 push-ups

23/07/21, 21:18 - Ashish Jain: Done with cold shower.

05/08/21, 01:55 - Ashish Jain: 100 PUSH UPS
05/08/21, 02:04 - Ashish Jain: Shower

07/08/21, 00:29 - Ashish Jain: Standing position. Elbows to knees bend :100
07/08/21, 03:59 - Ashish Jain: Engine run: 100 hops

09/08/21, 01:11 - Ashish Jain: 100 push-ups

25/08/21, 01:16 - Ashish Jain: 1 min 10 sec plank
25/08/21, 01:20 - Ashish Jain: 1 min 15 sec plank
25/08/21, 01:33 - Ashish Jain: 1 min 20 sec plank
25/08/21, 01:53 - Ashish Jain: 1 min 30 sec plank
25/08/21, 02:05 - Ashish Jain: 1m 20s plank
25/08/21, 02:16 - Ashish Jain: 1m 30s plank
25/08/21, 02:44 - Ashish Jain: 7. 1m 45 s plank
25/08/21, 02:53 - Ashish Jain: 8. 1m 30s plank
25/08/21, 03:04 - Ashish Jain: 9. 1m 30s plank
25/08/21, 03:07 - Ashish Jain: 10. 1m 50s plank
25/08/21, 03:23 - Ashish Jain: Hot water bath
25/08/21, 04:47 - Ashish Jain: 1. 1m 30s high plank
25/08/21, 04:57 - Ashish Jain: 2. 1m10s
25/08/21, 05:09 - Ashish Jain: 3. 1m5s
25/08/21, 05:16 - Ashish Jain: 4. 1m10s
25/08/21, 05:32 - Ashish Jain: 5. 1m10s
25/08/21, 05:41 - Ashish Jain: 6. 1m40s

28/08/21, 00:44 - Ashish Jain: 1m plank
29/08/21, 03:27 - Ashish Jain: +++

07/09/21, 02:17 - Ashish Jain: 100 push-ups

08/09/21, 02:44 - Ashish Jain: Stairs 15 mins
08/09/21, 02:44 - Ashish Jain: Om chanting 108
08/09/21, 02:49 - Ashish Jain: Abdominal crunches 10 minutes
08/09/21, 02:55 - Ashish Jain: Reverse abdominal crunches 5 minutes
08/09/21, 02:56 - Ashish Jain: +++
10/09/21, 07:05 - Ashish Jain: 60 jumping jacks
10/09/21, 07:07 - Ashish Jain: 40 jumping jacks
10/09/21, 07:13 - Ashish Jain: 25 jumping jacks
10/09/21, 07:14 - Ashish Jain: 25 jumping jacks
10/09/21, 07:16 - Ashish Jain: 25 jumping jacks
10/09/21, 07:18 - Ashish Jain: 25 jumping jacks
10/09/21, 07:22 - Ashish Jain: 25 jumping jacks
10/09/21, 07:23 - Ashish Jain: 25 jumping jacks
10/09/21, 07:26 - Ashish Jain: 2 min wall-sit
10/09/21, 07:29 - Ashish Jain: 2 min wall-sit
10/09/21, 07:32 - Ashish Jain: 2 min wall-sit
10/09/21, 07:35 - Ashish Jain: 1 min wall-sit
10/09/21, 07:41 - Ashish Jain: 3 min wall-sit
10/09/21, 07:41 - Ashish Jain: 40 step ups
10/09/21, 07:43 - Ashish Jain: 10 push-ups
10/09/21, 07:48 - Ashish Jain: 20 squats
10/09/21, 07:50 - Ashish Jain: 20 triceps dips

15/09/21, 03:04 - Ashish Jain: 115 push-ups

26/09/21, 20:37 - Ashish Jain: 100 push-ups

29/09/21, 00:13 - Ashish Jain: 100 push-ups

02/10/21, 07:18 - Ashish Jain: 75 push-ups

02/10/21, 07:34 - Ashish Jain: 105 push-ups

08/10/21, 09:44 - Ashish Jain: 25 push-ups

17/10/21, 21:40 - Ashish Jain: 1 Hour running/jogging/walking

18/10/21, 02:21 - Ashish Jain: 1 min reg plank
18/10/21, 02:23 - Ashish Jain: 1 min knee elbow plank
18/10/21, 02:24 - Ashish Jain: 1 min high plank
18/10/21, 02:26 - Ashish Jain: 1 min high knee plank
18/10/21, 02:29 - Ashish Jain: 10 abdominal crunches
18/10/21, 02:31 - Ashish Jain: 1 min left side plank
18/10/21, 02:33 - Ashish Jain: 1 min right side plank
18/10/21, 02:34 - Ashish Jain: Mopping start.
18/10/21, 02:42 - Ashish Jain: Mopping stop.
18/10/21, 02:45 - Ashish Jain: 25 Squats
18/10/21, 02:49 - Ashish Jain: 30 flutter kicks
18/10/21, 02:50 - Ashish Jain: 30 left flutter kicks
18/10/21, 02:52 - Ashish Jain: 30 right flutter kicks
18/10/21, 03:07 - Ashish Jain: Haircut done.
18/10/21, 03:08 - Ashish Jain: 10 push-ups
18/10/21, 03:10 - Ashish Jain: 1 min reg plank
18/10/21, 03:12 - Ashish Jain: 1 min high plank
18/10/21, 03:16 - Ashish Jain: 25 Squats

20/10/21, 05:31 - Ashish Jain: #90 push-ups

18/11/21, 02:17 - Ashish Jain: 1. Jumping Jack
2. Wall Sit
3. Step Ups

18/11/21, 03:07 - Ashish Jain: 175 PUSHUPS

23/12/21, 21:11 - Ashish Jain: 100 pushups
Tags: Journal,

SaveFrom to exit from USA (Jan 2022)



Subject: Discontinuation of Service in the United States

April 16, 2020

Dear Savefrom User:

As you may have heard, our industry has been under strenuous attacks by certain US copyright holders. Because of these attacks, it has become financially impractical for Savefrom to continue to provide services in the United States.

Accordingly, Savefrom will be terminating its services in the United States as of April 28, 2020.

We thank you for your past loyalty and patronage and wish you health and safety during the present health crisis and beyond.

Very truly yours,

Savefrom

Tags: Technology,Cyber Security,

A house, a home (Poem and Translation)


Translate this page:

A House, A Home

What is the difference between a house and a home? Discuss it with your partner. Then read the poem.

What is a house? 
It's brick and stone 
And wood that's hard.
Some window glass 
And perhaps a yard.
It's eaves and chimneys
And tile floors
And stucco and roof
And lots of doors.

What is a home?
It's loving and family
And doing for others.
It's brothers and sisters
And fathers and mothers.
It's unselfish acts
And kindly sharing
And showing your loved ones
You're always caring.

-- Lorraine M. Halli 

Flask CORS based API hosted on Heroku



(base) C:\Users\Ashish Jain\OneDrive\Desktop\murmuring-ridge-75281>type *

Procfile

web: python TestService.py

requirements.txt

flask flask_restful flask-cors

TestService.py

from flask import Flask, request from flask_restful import Resource, Api from flask_cors import CORS, cross_origin import os app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' api = Api(app) class Test(Resource): def get(self): result = "Hello World" return result api.add_resource(Test, '/test') # URL Route if __name__ == '__main__': port = int(os.environ.get('PORT', 5000)) app.run(host='0.0.0.0', port=port) -----------------------------------

Test.html

<script crossorigin="anonymous" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" src="https://code.jquery.com/jquery-3.2.1.min.js"></script> <script> function myclick() { $.get("https://murmuring-ridge-75281.herokuapp.com/test", function (data, status) { alert("Data: " + data + "\nStatus: " + status); }); } </script> <button class="customBtn" onclick="myclick()">GET</button> -----------------------------------

Error 1

(base) C:\Users\Ashish Jain\OneDrive\Desktop\gentle-garden-53110>git commit -m "#" [master a4dd273] # 1 file changed, 1 insertion(+) create mode 100644 Procfile (base) C:\Users\Ashish Jain\OneDrive\Desktop\gentle-garden-53110>git push Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 4 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (6/6), 722 bytes | 361.00 KiB/s, done. Total 6 (delta 0), reused 0 (delta 0), pack-reused 0 remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-20 stack remote: -----> Determining which buildpack to use for this app remote: ! No default language could be detected for this app. remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically. remote: See https://devcenter.heroku.com/articles/buildpacks remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to gentle-garden-53110. remote: To https://git.heroku.com/gentle-garden-53110.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/gentle-garden-53110.git' (base) C:\Users\Ashish Jain\OneDrive\Desktop\gentle-garden-53110> (base) C:\Users\Ashish Jain\OneDrive\Desktop\gentle-garden-53110>heroku buildpacks:set heroku/python Buildpack set. Next release on gentle-garden-53110 will use heroku/python. Run git push heroku main to create a new release using this buildpack.

Error 2

(base) C:\Users\Ashish Jain\OneDrive\Desktop\gentle-garden-53110>git push Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 4 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (6/6), 722 bytes | 361.00 KiB/s, done. Total 6 (delta 0), reused 0 (delta 0), pack-reused 0 remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-20 stack remote: -----> Using buildpack: heroku/python remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: a4dd27398a25f894326ca01b9651d867ee1a2c5f remote: ! remote: ! We have detected that you have triggered a build from source code with version a4dd27398a25f894326ca01b9651d867ee1a2c5f remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to gentle-garden-53110. remote: To https://git.heroku.com/gentle-garden-53110.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/gentle-garden-53110.git'

Error 3

(base) C:\Users\Ashish Jain\OneDrive\Desktop>heroku create --buildpack heroku/python Creating app... ! ! You've reached the app limit of 5 apps for unverified accounts. Delete some apps or add a credit card to verify your account.

How to set 'buildpack' at the time of creating project:

(base) C:\Users\Ashish Jain\OneDrive\Desktop>heroku create --buildpack heroku/python Creating app... done, ⬢ murmuring-ridge-75281 Setting buildpack to heroku/python... done https://murmuring-ridge-75281.herokuapp.com/ | https://git.heroku.com/murmuring-ridge-75281.git -----------------------------------

README

![python](https://cloud.githubusercontent.com/assets/51578/13712821/b68a42ce-e793-11e5-96b0-d8eb978137ba.png) # Heroku Buildpack: Python [![CircleCI](https://circleci.com/gh/heroku/heroku-buildpack-python.svg?style=svg)](https://circleci.com/gh/heroku/heroku-buildpack-python) This is the official [Heroku buildpack](https://devcenter.heroku.com/articles/buildpacks) for Python apps. Recommended web frameworks include **Django** and **Flask**, among others. The recommended webserver is **Gunicorn**. There are no restrictions around what software can be used (as long as it's pip-installable). Web processes must bind to `$PORT`, and only the HTTP protocol is permitted for incoming connections. See it in Action ---------------- ``` $ ls my-application requirements.txt runtime.txt $ git push heroku main Counting objects: 4, done. Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (4/4), 276 bytes | 276.00 KiB/s, done. Total 4 (delta 0), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: -----> Installing python remote: -----> Installing pip remote: -----> Installing SQLite3 remote: -----> Installing requirements with pip remote: Collecting flask (from -r /tmp/build_c2c067ef79ff14c9bf1aed6796f9ed1f/requirements.txt (line 1)) remote: Downloading ... remote: Installing collected packages: Werkzeug, click, MarkupSafe, Jinja2, itsdangerous, flask remote: Successfully installed Jinja2-2.10 MarkupSafe-1.1.0 Werkzeug-0.14.1 click-7.0 flask-1.0.2 itsdangerous-1.1.0 remote: remote: -----> Discovering process types remote: Procfile declares types -> (none) remote: ``` A `requirements.txt` must be present at the root of your application's repository to deploy. To specify your python version, you also need a `runtime.txt` file - unless you are using the default Python runtime version. Current default Python Runtime: Python 3.9.10 Alternatively, you can provide a `setup.py` file, or a `Pipfile`. Using `pipenv` will generate `runtime.txt` at build time if one of the field `python_version` or `python_full_version` is specified in the `requires` section of your `Pipfile`. Specify a Buildpack Version --------------------------- You can specify the latest production release of this buildpack for upcoming builds of an existing application: $ heroku buildpacks:set heroku/python Specify a Python Runtime ------------------------ Supported runtime options include: - `python-3.10.2` - `python-3.9.10` - `python-3.8.12` - `python-3.7.12`

Monday, January 24, 2022

Difficult words from "who did Patrick's homework"



1. 
Nintendo: A video game

2. 
Ignoramus: an ignorant person who lacks education

3.
britches:
breeches, or short trousers. The writer here spells it, for fun, to rhyme with the word "witch's"

4.
dishcloth:
a cloth used for washing dishes

5.
hamper:
a basket with a lid

6. 
grimaced: his face had this expression disgust
scowled: his face had this expression anger
pursed his lips: his face had this expression disapproval

7.
glitch:
an informal word 
a fault in a machine that prevents it from working properly here, hitch or problem.

8.
shrieked:
gave a short, high pitched cry.

9.
nag:
one who troubles someone all the time by complaining or asking them to do something.

10.
drag:
an informal word 
something dull and uninteresting.

11.
slyly:
secretively

12.
kid:
an informal word 
a child 

13.
chores:
work that must be done everyday, often boring 

14.
attitude:
a feeling about someone or something.
    
Q: Fill in the blanks in the sentences below with the words or phrases from the box.

A:
CLUE: out of luck, mystery, true to his words, chores, semester, between you and me, look up

1. Some people find household ___ a bore, but I like to help at home. [chores]

Kuch logo ko ghar ka kaam boring lagta hai, lekin mujhe ghar par madad karna acha lagta hai.

2. Who stole the diamond is still a ____? [mystery]

Jisne diamond churaya tha vah abhi bhi rahasya hai?

3. This ___ we are going to have a class exhibition. [semester]

4. ___ the elf began to help Patrick. [true to his words]

And true to his words, that little elf began to do Patrick's homework.

5. Can you ___ this words in the dictionary? [look up]

6. I started early to be on time, but I was ____. There was a traffic jam! [out of luck] 

7. She says she's got a lot of books, but ___ I think most of them are borrowed. [between you and me]

Tags: Communication Skills,English Lessons,

Saturday, January 22, 2022

Multiply two numbers and show the working

Enter two numbers to multiply:



Tags: Mathematical Foundations for Data Science,