ytyng.com

Latest Articles

Page 15
iOS
2015-11-05 11:27 (11 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 (11 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 (11 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 (11 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 (11 years ago)
Python Simple Thread Pool

I should have used multiprocessing.pool.Pool orz

Django
2015-10-15 10:10 (11 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 (11 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 (11 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 (11 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.

Raspberry-Pi
2015-08-16 15:19 (11 years ago)
Operating a 128x64 OLED LCD Display with Raspberry Pi

An impulse purchase from Amazon: a 128x64 OLED LCD display

iOS
2015-08-11 07:05 (11 years ago)
When Using CarouFredSel on iOS, the Touch Transition Stopped Working Unexpectedly

```html When using CarouFredSel on iOS, I noticed that transitioning by touch had somehow stopped working.

Python
2015-08-11 02:06 (11 years ago)
Running Firefox with Selenium on Headless Linux for Automated Operations in Python

This is a method to launch Selenium from Python on a headless Linux system.

iOS
2015-08-07 01:49 (11 years ago)
Getting Inconsistent Duplicate Symbol Linker Errors

When building an iOS app in Xcode, you may encounter the following error:

Django
2015-07-07 05:38 (11 years ago)
How to Replace Strings in Django TemplateView

```html Here are two methods to output an HTML template as it is using Django's TemplateView class, but replacing strings in the output result at once.

iOS
2015-06-30 00:30 (11 years ago)
Steps for Verifying iOS In-App Purchase Receipts

Processing on iOS Devices In SKPaymentTransactionObserver's

Python
2015-06-17 11:08 (11 years ago)
What to Do When You Can't Import `requests` (_ssl) in Python 3 on a Mac

Fix an `import requests` failure caused by a missing `_ssl` module in Python 3 on macOS — rebuild Python via pyenv so it links against the system OpenSSL.

Linux
2015-06-11 06:28 (11 years ago)
Avoid using TLS 1.2 for certain websites that freeze during HTTPS connections with Curl, Python, and PHP

As I wrote in this article http://b.ytyng.com/a-61/, when you make an HTTPS connection with OpenSSL 1.0.1f and attempt to connect using TLS1.2 by issuing a hello, certain sites may freeze in response.

Linux
2015-06-11 05:50 (11 years ago)
Cannot Connect to a Specific Web Service Using HTTPS (TLS 1.2) - Freezes

When attempting to communicate using TLS1.2 with a specific web server and OpenSSL versions 1.0.1a to 1.0.1f, OpenSSL may freeze.