Flask and Cookies

HTTP cookies (also called web cookies, Internet cookies, browser cookies, or simply cookies) are small blocks of data created by a web server while a user is browsing a website and placed on the user’s computer or other device by the user’s web browser. Cookies are placed on the device used to access a website, and more than one cookie may be placed on a user’s device during a session.

Here we will learn to use cookies with flask.

Flask with Jinja

A simple headline website that uses RSS feeds to display the news from 7 news outlets. ‘feedparser’ library is used to parse the RSS feeds. ‘jinja’ is used to form html templates dynamically.

Flask Intro..

Flask is a web application framework written in Python. Armin Ronacher, who leads an international group of Python enthusiasts named Pocco, develops it. Flask is based on Werkzeug WSGI toolkit and Jinja2 template engine. Both are Pocco projects.
This tutorial is a first in series of tutorials about building a web application using Flask.

Q-Taxi

Introduction There are four designated locations in the grid world indicated by R(ed), G(reen), Y(ellow), and B(lue). When the episode starts, the taxi starts off at a random square and the passenger is at a random location. The taxi drives to the passenger’s location, picks up the passenger, drives to the passenger’s destination (another one of the four specified locations), […]

Exploration vs Exploitation

A colony of bees knows a garden of roses nearby. This garden is their primary source of nectar and pollen. There might be another garden far from their hive which might contain a variety of flowers. Going to that garden demands a lot of time and energy. Should this colony of bees continue bringing nectar and pollen from nearby rose […]

Frozen Lake meets Value Iteration

The Frozen Lake This lake has a 4×4 grid of total 16 states. # Frozen Lake Gridworld: It is highly stochastic environment (33.33% action success, 66.66% split evenly in right angles) It contains 4×4 grid, 16 states (0-15) The agent gets +1 for landing in state 15 (right bottom corner) 0 otherwise The states 5, 7, 11, and 12 are […]

PyTorch Tensors

This blog post contains following topics related to tensors: Import Version Declarations item() Zero, identity and linspace Random generator Datatypes Operation with constant Element wise operations Matrix multiplication Matrix inversion Transpose of matrix Determinant of matrix Indexing and slicing Broadcasting Reshape Squeeze and unsqueeze Concatenate and stack Reorganize the data element numpy and pytorch tensor Operations on complex numbers Import […]