ytyng.com

Latest Articles

Page 12
Linux
2018-07-11 02:42 (8 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 (8 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.

Linux
2018-06-29 12:58 (8 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.

Pythonmac
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"

Windows
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.

OAuth & OpenID Connect
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.

Linuxmac
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

Django
2018-02-05 08:02 (8 years ago)
How to Unit Test a Django Model with managed = False

When using Django, setting `Meta: managed = False` in a model can sometimes lead to a `ProgrammingError` during unit tests from other apps when attempting operations such as `create()`. This is a memo on how to address this issue.

Python
2018-01-31 09:27 (8 years ago)
Uploading to the New PyPI pypi.org

Using twine.

mac
2018-01-18 10:40 (8 years ago)
My Mac Freezes When I Connect an HDMI Display

The cause is unknown, but sometimes when I connect a display to my Mac using an HDMI cable, it freezes.

Django
2018-01-11 05:48 (8 years ago)
When Updating Django from 1.6 to 2.0, django.db.utils.InternalError: (1364, "Field 'name' doesn't have a default value") Occurs During Migration

When I tried to migrate a project using Python 2.7 + Django 1.6 to Python 3.5 + Django 2.0 and recreated the migration files, running ./manage.py migrate resulted in the following error:

Linux
2018-01-10 06:40 (8 years ago)
If You Want to Log in Without a Password Using an SSH Key File on a Server, It’s Better Not to Use "Home Directory Encryption"

Depending on the use case, this serves as a personal memo. Ubuntu.

PHP
2017-12-21 09:39 (8 years ago)
Connecting with TLS1.2 using Zend_Http_Client in PHP

$client = new Zend_Http_Client($url);$response = $client->request('GET'); I was doing it like this, but due to an issue with the OS, I couldn't connect using TLS 1.2.