ytyng.com

Latest Articles

Page 13
Django
2017-12-19 13:10 (8 years ago)
Creating Test-Specific URL Patterns and View Functions in Django

Until Django 1.9, it seems that the urls attribute was written in SimpleTestCase, but when reading the code:

Python
2017-10-19 08:45 (9 years ago)
"pkg_resources.DistributionNotFound: pip==1.5.6 Error with pip"

If you have an old version of pip, running pip install -U pip can break pip.

AWS
2017-09-26 02:28 (9 years ago)
Change AWS EC2 EBS Volume Size Online

AWS EBS page → Right-click on EBS → Modify Volume

HTMLJavascript
2017-09-25 09:42 (9 years ago)
Retrieve the ACE Editor Instance from an HTML Element

I wanted to use the save shortcut key (Ctrl + S / Command + S) while using ACE in Django-ACE.

DjangoLinux
2017-09-11 08:35 (9 years ago)
Install libgconf2 if Python Selenium ChromeDriver Fails to Start with Error 127

On Ubuntu 14.04, Selenium ChromeDriver exits with status 127 when `libgconf-2.so.4` is missing. Run `sudo apt install libgconf2-4` to fix it.

DjangoPython
2017-09-01 02:10 (9 years ago)
What to Do When You Encounter AuthAlreadyAssociated with Django Social Auth

I'm writing this down because I always get flustered.

nginx
2017-08-14 00:55 (9 years ago)
Add CORS Headers to Font File Responses in Nginx

Here's something often used in Django.

BootstrapJavascript
2017-08-01 10:40 (9 years ago)
Displaying AJAX-Fetched Content in a Bootbox Dialog

Here is a code example demonstrating how to display content retrieved via AJAX in a dialog using Bootbox.

css
2017-06-18 14:07 (9 years ago)
Fixing Aspect Ratio with CSS (LESS)

It's a common one, but I always forget it.

Linux
2017-06-06 10:56 (9 years ago)
Install ChromeDriver on Ubuntu

This is a guide on how to install ChromeDriver on Ubuntu.

Javascript
2017-05-21 13:33 (9 years ago)
Specifying Tooltip Position with JQuery ValidationEngine

```html

2017-05-21 07:02 (9 years ago)
Creating Directories in the uWSGI Configuration File

Replace deprecated `from django.utils.translation import ugettext` (broken on Django 4) with `gettext` to fix the import error.

Django
2017-05-09 08:49 (9 years ago)
Base View Class for Downloading CSV in SJIS with Django

Base View Class for Downloading SJIS CSV in Django

PHP
2017-04-28 03:25 (9 years ago)
Remote Debugging via Reverse Port Forwarding with PHP SSH

When remote debugging PHP on a production server or another distant environment:

AWSLinux
2017-04-12 06:52 (9 years ago)
When "TransportError Signature not yet current ..." appears in ElasticSearch (AWS ESS)

TransportError(403, '{"message":"Signature not yet current: 20170412T064759Z is still later than 20170412T064642Z (20170412T064142Z + 5 min.)"}') If you encounter this issue, it is likely that the server's clock is not synchronized properly.

Django
2017-03-31 10:52 (9 years ago)
Using ACE in Django Admin

1. Add to requirements.txt django-ace

2017-03-28 01:02 (9 years ago)
VULTR Instance Upgrade Notes

System packages needed to fix `pip install Pillow` failing due to missing JPEG / PNG libraries — per Debian / Alpine / macOS.

Railsmac
2017-03-26 02:58 (9 years ago)
Setting Up a Ruby on Rails Environment on macOS

Let's install rbenv using git clone instead of apt or brew.

PC/Etcmac
2017-03-12 05:29 (9 years ago)
Reviewing the Response Time Settings When You Think "It's So Slow" After Connecting a Philips 4K Display

I bought the Philips 4K Display BDM4350UC/11 for work and tried using it by connecting it to a MacBook Pro Retina 2014, but the response speed was so slow that I almost lost my mind.

Rails
2017-03-12 01:00 (9 years ago)
Setting Up Ruby on Rails + Vagrant + Rubymine Environment

At work, I use Python + Virtualenv + Django + PyCharm, but since a project requiring Rails came up, I set up a new environment.