must https, and use face compare to aws or other services ... this is just simple sample inherit login page
Start Camera
Click Photo
var x = document.createElement("video");
x.id = "video";
x.setAttribute("width", "320");
x.setAttribute("height", "240");
x.setAttribute("autoplay", "autoplay");
document.getElementById("dataurl-container").appendChild(x);
// -----
var x = document.createElement("textarea");
x.id...
Feb 1, 2022
Dec 14, 2021
golang OTP just simple play
1. main package : https://github.com/xlzd/gotp
package main
import (
"fmt"
"time"
"github.com/xlzd/gotp"
)
func main() {
totp := gotp.NewDefaultTOTP("4S62BZNFXXSZLCRO") // ini cara create paling simple
// klo mau custom bs pake gotp.NewTOTP(secret, 6, 30, nil) secret=string, 6=digits, 30=interval in second
code := totp.Now()
mytime := int(30 - time.Now().Unix()%30)
unixtime := int(time.Now().Unix())
fmt.Println("pertama...
Aug 14, 2021
[solved] py3o.formats can not installed
well, just simple solution, 1. download source file 2. python3 setup.py install3. sudo vim models/ir_actions_report.py 4. import sysegg_path='/opt/odoo13/odooaddons/report_py3o/models/py3o.formats/dist/py3o.formats-0.3-py3.6.egg'sys.path.append(egg_path)import py3o.formats5. restart odoo then install the modu...
Mar 11, 2021
odoo 13 on ubuntu 20 ssl error, [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1123)
sudo vim /etc/ssl/openssl.cnfat first line addopenssl_conf = default_conf## OpenSSL example configuration file.# This is mostly being used for generation of certificate requests.## Note that you can include other files from the main configuration# file using the .include directive.#.include filenameat the end of line add ...
Oct 1, 2019
RDS backup database with template
problems :
ERROR: source database "targetDB" is being accessed by other users
DETAIL: There are 6 other sessions using the database.
Solutions
postgres=> REVOKE CONNECT ON DATABASE targetDB FROM public;
REVOKE
postgres=> SELECT pg_terminate_backend(pg_stat_activity.pid)
postgres-> FROM pg_stat_activity
postgres-> WHERE pg_stat_activity.datname = 'targetDB';
pg_terminate_backend
----------------------
t
t
t
t
t
t
(6...
Subscribe to:
Posts (Atom)