ytyng.com

Latest Articles

Page 11
2018-09-04 01:53 (7 years ago)
When Starting AD Domain Controller (samba-ad-dc) on Ubuntu 18 with Samba 4.7, It Fails Due to DNS Errors

When you start samba-ad-dc using the command `$ sudo systemctl start samba-ad-dc`, and check either /var/log/samba/log.smbd or /var/log/samba/%m, it appears that port 53 is unavailable.

2018-09-03 11:11 (7 years ago)
When Apache on Ubuntu 18.04 is Forcefully Terminated

Apache suddenly crashes, and upon checking the logs, I found the following messages: "AH00050: Child 7815 returned a Fatal error... Apache is exiting!" and "AH02818: MPM run failed, exiting."

2018-09-03 08:36 (7 years ago)
What to Do If Your Update to Ubuntu 18.04 Gets Stuck

When `do-release-upgrade` to Ubuntu 18.04 hangs on libnih1 or upstart packages, here is how to unstick and complete the release upgrade.

2018-08-16 06:07 (7 years ago)
Notes on Installing chromedriver

Strip 4-byte characters (emoji, some kanji) from a Python 3 `requests` response — useful when storing into MySQL utf8 (3-byte) columns.

2018-08-14 06:45 (7 years ago)
When python3.6 -m venv Errors Occur on Ubuntu

If `python3.6 -m venv venv` fails on Ubuntu, the `python3.6-venv` package is missing — install it via apt to enable virtual environment creation.

Django
2018-07-12 11:24 (7 years ago)
Issues with Redirect URLs Being HTTP Instead of HTTPS in Python Social Auth Django or AllAuth

One-liner to count upgradable packages with `apt list --upgradable`, plus a shell script to surface the number in the MOTD login banner.

2018-07-11 02:42 (7 years ago)
When a Volume Mounted with Goofys is Not Visible to Other Users

If the volume mounted with Goofys is not visible to other users

Python
2018-07-04 06:08 (7 years ago)
Reading BOM-Included TSV Files with Python

When you download a CSV from Amazon, it might sometimes be a TSV with a BOM.

2018-06-29 12:58 (7 years ago)
Setting Up Site-to-Site VPN with OpenVPN

Notes on installing OpenVPN on an Ubuntu server and setting up a site-to-site VPN.

Python
2018-06-21 02:34 (8 years ago)
Add SSL CA Certificate to Ubuntu and Use It with Python Requests

1. If the certificate is in DER format, convert it to PEM

Django
2018-05-15 03:24 (8 years ago)
Creating a ForeignKey Across Databases in Django 2.0

※ This does not mean creating constraints in an RDB. It simply means creating a ForeignKey field that works for now.

2018-05-11 02:30 (8 years ago)
What to Do When You Can't Update PIP for Python 2.7 in the Default Mac Environment

sudo bash -c "curl -kL https://bootstrap.pypa.io/get-pip.py | python"

2018-05-02 08:16 (8 years ago)
Create a Shared Folder in Windows 10 Accessible Without Login (Authentication)

How to Create a Shared Folder That Can Be Accessed by Anyone Without Authentication.

Django
2018-03-29 06:37 (8 years ago)
NameError: name 'module1' is not defined when running ./manage.py test in Django

Make Django's `request.build_absolute_uri()` return HTTPS behind Apache + ELB — `USE_X_FORWARDED_HOST` and `SECURE_PROXY_SSL_HEADER` settings.

2018-03-07 13:13 (8 years ago)
Please provide valid credentials with Yahoo Store API

<Error><Message>Please provide valid credentials. Bearer realm="yahooapis.jp", error="insufficient_scope", error_description="insufficient scope"</Message></Error> I encountered the above error when using Yahoo's Store API.

Ansible
2018-02-27 01:27 (8 years ago)
Ansible Playbook for Installing Docker CE on Ubuntu 16.04

A complete Ansible playbook to install Docker CE on Ubuntu 16.04 — apt key, repository registration, and the docker-ce package install in one playbook.

MySQL
2018-02-26 13:14 (8 years ago)
MySQL: Lost the WITH GRANT OPTION Privilege from Root

While managing the root user with the mysql_user module in Ansible, I found that I was no longer able to grant privileges to other users.

2018-02-26 06:59 (8 years ago)
Creating an Ubuntu Installation USB Media on Mac

Implement custom MySQL → Python type conversion in Django by overriding `from_db_value()` on a custom model field.

Windows
2018-02-26 04:19 (8 years ago)
When Trying to Install Scoop, "Could Not Create SSL/TLS Secure Channel" Error Occurs

When trying to install scoop

Python
2018-02-08 03:10 (8 years ago)
Installing Python 3.5 on Ubuntu 14.04

Building from source is easy