ytyng.com

Latest Articles

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

Musings
2014-06-07 05:38 (12 years ago)
The "I Won't Press the 500 Million Year Button" Group

A philosophical take on why I won't press the "500-million-year button" — visualizes the 99.999984% solitude ratio with a time-axis graph and a calculation.

Raspberry-Pi
2014-05-31 03:29 (12 years ago)
Turning USB Devices On and Off with a Relay Using Raspberry Pi

Switch a USB device (LED light, fan, etc.) on and off physically with a Raspberry Pi GPIO pin driving a relay module — wiring and sample code.

iOS
2014-04-23 03:52 (12 years ago)
Notes on Integrating tapkulibrary into an iOS App

A note on incorporating https://github.com/devinross/tapkulibrary into my project.

mac
2014-04-22 07:57 (12 years ago)
What to Do When Appledoc Installation (Build) Fails: Changing Project Settings (For Xcode 5)

How to Fix Build Failures of appledoc with Xcode 5

Linux
2014-04-07 09:49 (12 years ago)
When Trying to Install Redmine on CentOS 5.9, RMagick Fails to Install → Use su - Instead of sudo

I tried to install Redmine on Cent OS 5.9.

Python
2014-03-20 23:30 (12 years ago)
Add Environment Variables When You Encounter the Error "pip install pillow → error: command 'cc' failed with exit status 1"

When running `pip install pillow`, you might encounter the following error:

mac
2014-02-15 15:59 (12 years ago)
YClip.app: Converting Clipboard to Plain Text & History

I created a Mac pasteboard (clipboard) application. While it's not yet very versatile, as hotkeys are fixed and cannot be customized, I am releasing it for public use.

Python
2014-01-29 10:41 (12 years ago)
A Script to Batch Rename Multiple Files Using an Editor

When you start the program, a list of files is displayed in the editor. You can modify and save the list.

Musings
2014-01-25 02:48 (12 years ago)
The Significant Barrier Between In-House Development and Outsourcing to Partner Companies

Just as I work with consideration for the families of my company’s employees, partners from collaborating companies work with consideration for the families of their employees.

Ebook
2013-11-26 05:38 (13 years ago)
How to Fix iBooks ERROR ITMS-5107

When trying to upload an EPUB to iBooks via iTunes Producer on the iTunes Store, if you encounter the following error: