ytyng.com

Latest Articles

Page 17
Python
2013-11-18 02:41 (13 years ago)
Comparing Logger Implementations Using Generators and Classes

I wanted to write a logger-like class and wondered, "Which would be more readable, using a generator or a class?" So I wrote and compared both.

PC/Etc
2013-11-01 07:22 (13 years ago)
Using Safari's Text-to-Speech to Read Aloud HTML

Basically, you can make it speak with just this code:

iOS
2013-09-30 13:40 (13 years ago)
Using iOS7's Text To Speech to Make iOS Speak

Lo-Fi. Can also play in Japanese. Japanese is slightly distorted. The AVFoundation framework is required

mac
2013-09-26 12:31 (13 years ago)
Commercial Use of macOS Say Command (TTS) Output is Prohibited

On a Mac,

Django
2013-09-21 04:04 (13 years ago)
Add Custom HTML to Django Admin Form Templates

1. Define change_form_template in the admin.py module Specify the location of the custom template

PC/Etc
2013-09-18 06:23 (13 years ago)
MySQL 5.6: ERROR 1265 (01000): Data truncated for column ... prevents SQL execution

Isn't sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES specified in your my.cnf?

PC/Etc
2013-08-30 10:51 (13 years ago)
Converting a Large SVN Repository Segment into a Git Repository

Migrate one subdirectory of a huge SVN repository into Git. `git svn clone` alone pulls in docs/dumps too — this post shows how to exclude those paths.

mac
2013-08-24 09:49 (13 years ago)
Turning Your iPad into a Midi Controller for GarageBand on Mac

What you need is a Midi controller app for iPad. For example, the following app costs 170 yen.

Linux
2013-08-03 01:29 (13 years ago)
Install MediaWiki with Visual Editor Enabled

I was thinking of creating an internal information sharing service using a Wiki. However, considering that non-developers would also be using it, I thought it would be best to have one with a WYSIWYG editor.

Making
2012-03-24 16:33 (14 years ago)
Sony HMZ-T1: Expanded Lens Spacing & Headphone Removal

I had pre-ordered the Sony HMZ-T1 at the end of 2011, but it finally arrived in March 2012.

Python
2011-12-29 03:04 (14 years ago)
Resolving Readline Errors When Running iPython

When I switched to MacOS Lion and was setting up my environment, I encountered the following error when running iPython:

Django
2011-09-10 11:32 (15 years ago)
recreate-migration: BASH Function to Recreate Migration

Rollback the migration, delete all migration scripts, and then redo the schema migrations.

Django
2011-09-10 11:20 (15 years ago)
Template Tags for Time Branching: ifbefore, ifafter, ifafterbefore

```python

Linux
2011-07-18 14:56 (15 years ago)
Ubuntu: Keep Unity UI Launcher (Dock) Always Visible

Ubuntu 11.04

PC/Etc
2011-06-27 03:10 (15 years ago)
When Updated to Eclipse PyDev 2.2.0, Editor Tab Names Became Longer → Fixed

After updating Eclipse to Indigo and installing Pydev 2.2.0, I noticed that the editor tabs defaulted to the long-winded display format like the old Pydev.

Django
2011-06-21 06:24 (15 years ago)
Creating Dummy Text with Lorem Ipsum

```html Using template tags like lorem, you can create dummy data for articles utilizing the django.contrib.webdesign.lorem_ipsum package.

Django
2011-06-20 17:14 (15 years ago)
Django admin sets default form field values based on GET parameters

When you pass a GET query like

PC/Etc
2011-06-19 03:40 (15 years ago)
Retrieve a User's Tweet List without Authentication using the Twitter Search API

<!DOCTYPE html>

Django
2011-06-17 07:09 (15 years ago)
Management Command to Visualize Model Relationships

```python