ytyng.com

Latest Articles

Page 13
2017-04-12 06:52 (9 years ago)
When "TransportError Signature not yet current ..." appears in ElasticSearch (AWS ESS)

TransportError(403, '{"message":"Signature not yet current: 20170412T064759Z is still later than 20170412T064642Z (20170412T064142Z + 5 min.)"}') If you encounter this issue, it is likely that the server's clock is not synchronized properly.

2017-03-31 10:52 (9 years ago)
Using ACE in Django Admin

1. Add to requirements.txt django-ace

2017-03-28 01:02 (9 years ago)
VULTR Instance Upgrade Notes

System packages needed to fix `pip install Pillow` failing due to missing JPEG / PNG libraries — per Debian / Alpine / macOS.

2017-03-26 02:58 (9 years ago)
Setting Up a Ruby on Rails Environment on macOS

Let's install rbenv using git clone instead of apt or brew.

2017-03-12 05:29 (9 years ago)
Reviewing the Response Time Settings When You Think "It's So Slow" After Connecting a Philips 4K Display

I bought the Philips 4K Display BDM4350UC/11 for work and tried using it by connecting it to a MacBook Pro Retina 2014, but the response speed was so slow that I almost lost my mind.

Rails
2017-03-12 01:00 (9 years ago)
Setting Up Ruby on Rails + Vagrant + Rubymine Environment

At work, I use Python + Virtualenv + Django + PyCharm, but since a project requiring Rails came up, I set up a new environment.

Javascript
2017-03-02 05:50 (9 years ago)
Parsing URLs and Retrieving Query Parameters in JavaScript

The code `new URL(location.href).searchParams.get('q')` is a JavaScript expression used to retrieve the value of the query parameter `q` from the current page's URL. Here is a step-by-step breakdown of what this code does:

Bootstrapless
2017-02-26 10:26 (9 years ago)
Bootstrap + LESS Version: Preventing Zoom on Form Inputs in iOS

Introduction to CSS Code

Django
2017-02-26 10:25 (9 years ago)
Creating Custom Filters in Django Admin

Using SimpleListFilter for Easy Implementation

Python
2017-02-03 00:59 (9 years ago)
Disable geckodriver.log Output in Selenium Firefox

Impersonate a different user during Django debugging by swapping `request.session['_auth_user_id']` to test session-bound logic.

Linux
2017-02-03 00:40 (9 years ago)
What to Do When 'geckodriver' Executable Needs to Be in PATH in Ubuntu's Selenium

Trying to run Selenium on Ubuntu from Python

Django
2017-01-26 04:11 (9 years ago)
Mistakes When Searching MySQL with datetime in Django Due to Time Zone Mismatch

Since I often make mistakes, here's a note.

AWSMySQL
2017-01-03 12:34 (9 years ago)
Recovery of Stopped AWS RDS MySQL Replication

Restart a halted replication on AWS RDS MySQL. Includes `CHECK TABLE` for MyISAM tables and the skip/resume operations on the replica side.

DjangoLinux
2016-09-16 03:24 (9 years ago)
Failure of Django CSRF Token Authentication: ELB -> Apache2 -> uwsgi

Fix Django CSRF token failure on an AWS ELB → Apache2 → uWSGI stack. The pitfall is the HTTP/HTTPS scheme detection when switching from mod_wsgi to uWSGI.

2016-09-14 09:50 (9 years ago)
If You Use Disqus, There Might Be Issues with External Site Links When Displaying Pages in the iOS Twitter App

If you are using Disqus for your blog's comment system

MySQL
2016-09-14 09:44 (9 years ago)
You should avoid using MySQL collation utf8_unicode_ci as it can be quite slow

This isn't a completely quantitative discussion, but...

DjangoPython
2016-06-20 08:35 (10 years ago)
Outputting Shift-JIS CSV with Django

How to return a Shift-JIS (CP932) CSV download response from Django on Python 3 — write to StringIO as Unicode first, then encode to cp932 in one shot.

mac
2016-01-02 14:35 (10 years ago)
Error Opening the Application "Steam.app"

If you encounter the error "Cannot open application 'Steam.app'" when trying to launch the downloaded Steam on macOS 10.11 El Capitan, follow these steps. Note that the correctness of this method is not guaranteed...