ytyng.com

Latest Articles

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

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 (10 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 (10 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 (10 years ago)
Retrieve SSL Certificate Expiration Date Using timedelta

Get the SSL certificate expiration period using timedelta

Django
2015-11-27 00:40 (10 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.

iOS
2015-11-05 11:27 (10 years ago)
When Building with Xcode 7, ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 ..." Appears

Customize the post-reset redirect URL in Django `django-allauth` — via settings and by overriding `ACCOUNT_ADAPTER`.

Django
2015-10-29 08:35 (10 years ago)
Trying Out Django TemplateView with Extensive Use of @cached_property

Sample remote interpreter / SSH setup for developing Rails inside a Vagrant VM using RubyMine.

Bootstrap
2015-10-27 09:35 (10 years ago)
Randomly Selecting the Initial Active Item in a Bootstrap Carousel

This method allows you to randomly change the initial position when displaying a large carousel in the hero area using Bootstrap.

Python
2015-10-19 07:34 (10 years ago)
Write Parallel Processing Easily Using Process Pools

Parallelize CPU-bound Python work with `multiprocessing.Pool` / `ProcessPoolExecutor` — minimal patterns and common pitfalls.

Python
2015-10-16 07:35 (10 years ago)
Python Simple Thread Pool

I should have used multiprocessing.pool.Pool orz

Django
2015-10-15 10:10 (10 years ago)
Paging Django Model Instances Queried with Complex Filters Using Paginator

Page through Django model instances retrieved via a complex query (raw SQL or composed Q objects) using Paginator, with a working implementation pattern.

Linux
2015-09-08 11:56 (10 years ago)
Install MySQL 5.6 on Ubuntu Linux 14.10

Install MySQL 5.6 on Ubuntu Linux 14.10 (which only ships with newer versions) via the `mysql-apt-config` package — step-by-step.

Django
2015-09-03 11:48 (10 years ago)
Create a Full-Text Index in Migration Files with Django 1.7

This is a method to create a full-text index in MySQL using the DB migration feature in Django 1.7 and above.

mac
2015-09-02 12:56 (10 years ago)
Experiencing the US Keyboard Layout on a Mac with a JIS Keyboard

Get a US-layout-like typing experience on a Japanese (JIS) Mac keyboard — sample KeyRemap4MacBook / Karabiner configs for symbol layout and kana/eisuu remaps.