ytyng.com

Latest Articles

Page 14
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 (10 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.

JavascriptiOS
2016-09-14 09:50 (10 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 (10 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...

Django
2015-12-22 09:57 (10 years ago)
Using Django RedirectView Inline in URLs to Redirect While Preserving URL Path

I want to redirect people who access /url-path-before/feature/hoge/ to /url-path-after/feature/hoge/.

iOS
2015-12-21 06:37 (10 years ago)
When Duplicate Symbol _OBJC_CLASS_ Appears in Large Numbers During iOS App Build

When encountering a large number of duplicate symbol _OBJC_CLASS_ errors during an iOS app build

HTML
2015-12-02 09:32 (11 years ago)
Template for WebFontLoader

When using WebFont, you may encounter a phenomenon called FOUT (Flash of Unstyled Text) where text is not displayed if the font fails to load.

MySQL
2015-12-01 06:42 (11 years ago)
Disable Stopword Filter in MySQL InnoDB Full-Text Index to Allow Searching for Words like "in," "by," "is"

Background I'm creating a full-text index with bigrams in InnoDB on MySQL 5.6. However, when I tried to search for the term "TWIN,"

Python
2015-12-01 02:02 (11 years ago)
Retrieve SSL Certificate Expiration Date Using timedelta

Get the SSL certificate expiration period using timedelta

Django
2015-11-27 00:40 (11 years ago)
Decorator to Prevent Duplicate Execution of Django Management Commands

If your Twitter Developer API account is banned / suspended, how to write an appeal to Twitter support and what to include in the reappeal.