A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
import jwt | |
from dash import Dash, Input, Output, html | |
from flask import Flask, redirect, url_for | |
from flask_dance.contrib.azure import azure, make_azure_blueprint | |
from werkzeug.middleware.proxy_fix import ProxyFix | |
def login_required(func): | |
"""Require a login for the given view function.""" |
# Copyright 2024 Gordon D. Thompson, [email protected] | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
# Install GeoServer on cloud server | |
________________ | |
## 1. Install Java JDK | |
apt install openjdk-11-jdk | |
You can check the installation using `$ java -version`. Now you can see something like this: | |
openjdk version "11.0.7" 2020-04-14 |
server { | |
listen 80; | |
listen [::]:80; | |
if ($scheme != "https"){ | |
return 301 https://$host$request_uri; | |
} | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; |
##################### | |
# | |
# Use this with or without the .gitattributes snippet with this Gist | |
# create a fixle.sh file, paste this in and run it. | |
# Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF) | |
# This Gist normalizes handling by forcing everything to use Unix style. | |
##################### | |
# Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
# -*- coding: utf-8 -*- | |
""" | |
Flask-Login example | |
=================== | |
This is a small application that provides a trivial demonstration of | |
Flask-Login, including remember me functionality. | |
:copyright: (C) 2011 by Matthew Frazier. | |
:license: MIT/X11, see LICENSE for more details. | |
""" |