ytyng.com

Latest Articles

Page 13
Javascript
2017-05-21 13:33 (9 years ago)
Specifying Tooltip Position with JQuery ValidationEngine

```html

2017-05-21 07:02 (9 years ago)
Creating Directories in the uWSGI Configuration File

Replace deprecated `from django.utils.translation import ugettext` (broken on Django 4) with `gettext` to fix the import error.

Django
2017-05-09 08:49 (9 years ago)
Base View Class for Downloading CSV in SJIS with Django

Base View Class for Downloading SJIS CSV in Django

PHP
2017-04-28 03:25 (9 years ago)
Remote Debugging via Reverse Port Forwarding with PHP SSH

When remote debugging PHP on a production server or another distant environment:

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.