zukatsu.tk => A collection of random notes

created for a reminder of all things that happen in the past

Keras vs. tf.keras

https://www.pyimagesearch.com/2019/10/21/keras-vs-tf-keras-whats-the-difference-in-tensorflow-2-0/ . . . selengkapnya>>

How to install wkhtmltopdf on Ubuntu server 18.04?

1. Download wkhtml wget https://downloads.wkhtmltopdf.org/0.12/ 2. Install sudo dpkg -i wkhtmltox- 3. Install dependency if needed sudo apt -f install   Source : https://askubuntu.com/questions/725369/how-to-install-wkhtmltopdf-0-12-1-on-ubuntu-server-14-04 . . . selengkapnya>>

Install Odoo 8 In Ubuntu 18.04

Update Server sudo apt update sudo apt upgrade -y   Install PostgreSQL Server sudo apt install postgresql -y   Creating the PostgreSQL User sudo su - postgres -c "createuser -s user_name" 2> /dev/null || true   Install tool packages sudo apt install wget subversion git bzr bzrtools python-pip gdebi-core -y   Install python packages sudo apt install git. . . selengkapnya>>

Python Ternary Operator

Python ternary operator introduced in Python 2.5. [on_true] if [expression] else [on_false] x, y = 50, 25 small = x if x < y else y Before this syntax was introduced in Python 2.5, a common idiom was to use logical operators: [expression] and [on_true] or [on_false] However, this idiom is unsafe, as it can give wrong results when on_true has a false boolean. . . selengkapnya>>

Python Get Day Of Week From Date

Use weekday() (docs) >>> import datetime >>> datetime.datetime.today() datetime.datetime(2012, 3, 23, 23, 24, 55, 173504) >>> datetime.datetime.today().weekday() 4 Source : Stackoverflow . . . selengkapnya>>