中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。
- 安装
| /** | |
| * A string builder with built-in support for ANSI escape sequences. | |
| * | |
| * @author Nathan Fiscaletti | |
| */ | |
| public class AnsiStringBuilder | |
| { | |
| /** | |
| * Reset options. | |
| */ |
I was trying to get the Arduino IDE to work inside a Docker container on OS X. I was able to get the IDE working (see Getting X11 GUI applications to work on OS X with Docker), but I could not figure out how to make the USB port for the Arduino visible.
I first tried to directly map hardware serial port into the Docker container, doing something like this:
| package com.oasisfeng.hack; | |
| import android.support.annotation.CheckResult; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.util.Log; | |
| import java.io.IOException; | |
| import java.lang.reflect.AccessibleObject; | |
| import java.lang.reflect.Constructor; |
| package com.oasisfeng.android.service; | |
| import android.annotation.SuppressLint; | |
| import android.app.Service; | |
| import android.content.Intent; | |
| import android.os.Binder; | |
| import android.os.IBinder; | |
| import android.os.IInterface; | |
| import android.support.annotation.Nullable; | |
| import android.util.Log; |
| ''' | |
| Using Bottleneck Features for Multi-Class Classification in Keras | |
| We use this technique to build powerful (high accuracy without overfitting) Image Classification systems with small | |
| amount of training data. | |
| The full tutorial to get this code working can be found at the "Codes of Interest" Blog at the following link, | |
| https://www.codesofinterest.com/2017/08/bottleneck-features-multi-class-classification-keras.html | |
| Please go through the tutorial before attempting to run this code, as it explains how to setup your training data. |
| var GB2260 = { | |
| "110000": "北京市", | |
| "110100": "北京市市辖区", | |
| "110101": "北京市东城区", | |
| "110102": "北京市西城区", | |
| "110103": "北京市崇文区", | |
| "110104": "北京市宣武区", | |
| "110105": "北京市朝阳区", | |
| "110106": "北京市丰台区", | |
| "110107": "北京市石景山区", |
| #!/bin/sh | |
| # Copyright 2012 The Android Open Source Project | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
| { | |
| "log": { | |
| "loglevel": "none" | |
| }, | |
| "inbound": { | |
| "port": 23456, | |
| "listen": "127.0.0.1", | |
| "protocol": "socks", | |
| "settings": { | |
| "udp": true |
| diff --git a/dexlayout/Android.bp b/dexlayout/Android.bp | |
| index 33ba58f..f3b2a7e 100644 | |
| --- a/dexlayout/Android.bp | |
| +++ b/dexlayout/Android.bp | |
| @@ -74,6 +74,13 @@ cc_defaults { | |
| ], | |
| } | |
| +cc_defaults { | |
| + name: "compact_dex_converter_defaults", |