ytyng.com

Latest Articles

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

iOS
2015-06-08 01:21 (11 years ago)
Tips for Making UIWebView Look More Native

Disabling Long Press Menus CSS

Django
2015-05-29 11:31 (11 years ago)
Create a Simple Login URL with Django

url(r'^login/', 'django.contrib.auth.views.login', name='login', kwargs={'template_name': 'admin/login.html', 'extra_context': {'next': '/'}}), Write this link in the template as follows,

Linux
2015-05-13 01:35 (11 years ago)
Remove Trailing Slash from Variable in Bash

Strip a trailing slash from a Bash variable with the parameter expansion `${var%/}`. Useful for normalizing paths from arguments or env vars.

Django
2015-05-10 07:19 (11 years ago)
Using reStructuredText with Mezzanine

There is a system called Mezzanine for building a CMS on Python + Django. By default, blog entries are written using a WYSIWYG HTML editor, but I wanted to write them using reStructured Text (reST, rst), so I did some research.

Python
2015-03-02 10:46 (11 years ago)
Disable Links in docutils' rst Writer (docutils.writers.html4css1)

Couldn't find the configuration item, so I'll use a monkey patch.

mac
2014-06-22 01:47 (12 years ago)
[Pending] How to Search Bookmarks in Firefox Using Keyboard Shortcuts

翻訳する日本語のブログ記事の本文を入力してください。

mac
2014-06-13 03:00 (12 years ago)
Run a JavaScript Script File from the Terminal on Mac

Run a JavaScript file directly from the macOS Terminal — install Node.js and add a shebang line to make the script executable, step by step.

Raspberry-Pi
2014-06-08 01:24 (12 years ago)
Creating a Self-Powered USB Hub for Raspberry Pi Using USB Port Power

Raspberry Pi is typically powered through a dedicated micro USB port, but unofficially, it can also be powered via:

mac
2014-06-07 06:36 (12 years ago)
When Trying to Run Django from PyCharm, "unknown locale: UTF-8" Error Occurs

Patch the JavaScript error that occurs in the Apache-served Twitter integration plugin for Disqus.