Nov
23
VMWare Fusion Pro 11: Application cannot run correctly.
Published 12:11 Nov 23, 2018 by @ezra.
#Programming# If you cannot get VMWare Fusion Pro 11 for macOS to launch properly with this error message:
Pleas...
Aug
11
How to Transfer Data Between microSD Cards for Use on Nintendo Switch
Published 12:08 Aug 11, 2018 by @ezra.
#Gaming# Instructions on how to transfer data from one microSD card to another for use on Nintendo Switch.
Ad...
Jul
29
Nintendo Switch 下载加速
Published 12:07 Jul 29, 2018 by @ezra.
#Gaming# 小白方法
方法一
由于任天堂并未在中国设立服务器, 所以中国玩家难免会出现访问困难的情况, 此时我们将无线网络的DNS修改一下, 设置成韩国长安大学的DNS: 168.126.63.1 或 168.1...
Jul
25
Independent Linux Distributions
Published 15:07 Jul 25, 2018 by @ezra.
#UNIX/Linux#
Note
Sorted by popularity.
Debian
The Debian Project is an association of individuals...
Jul
17
RGB vs CMYK
Published 14:07 Jul 17, 2018 by @ezra.
#Desiging# CMYK也称作印刷色彩模式。它和RGB相比最大不同是,RGB模式是发光的色彩模式,你在一间黑暗的房间内仍然可以看见萤幕上的内容。
CMYK是一种依靠反光的色彩模式,我们能阅读报纸的内容是为什么呢?是...
Jun
13
WWDC 2018 Summary for iOS developers
Published 12:06 Jun 13, 2018 by @ezra.
#Programming# WWDC 2018 Summary for iOS developers.
What's new in Xcode 10
An ability to launch XCTest and XCUITe...
Jun
13
What’s new in Swift 4.2?
Published 12:06 Jun 13, 2018 by @ezra.
#Programming# Swift 4.2 is the second minor release of Swift 4, and brings with it another raft of awesome improve...
Jun
11
Swift struct type recursion
Published 12:06 Jun 11, 2018 by @ezra.
#Programming# the enums in Swift support recursive types using the indirect keyword so you can do something like:
...
May
17
Dart Primer 001 : Hello, world!
Published 12:05 May 17, 2018 by @ezra.
#Programming# 今天开始一起来学习一下 Dart 语言。
安装
首先第一步来 安装 Dart, 以 macOS 为例:
homebrew
先来安装 homebrew, 然后执行:
$ brew tap dart-la...
May
17
Dart Primer 002 : 数据类型概述
Published 12:05 May 17, 2018 by @ezra.
#Programming# 在 Dart 中一切实例都是对象, 它们集成自 Object 且默认均为 null。
数据类型
Dart 中主要的数据类型有:
Numbers => 数值
Strings => 字符串
...
May
17
Dart Primer 003 : 函数
Published 12:05 May 17, 2018 by @ezra.
#Programming# 首先, 如前面所讲, Dart 中函数也是对象的一种。当一个函数没有指定返回值时, 返回 null。
函数定义
定义一个函数的格式是:
返回值 函数名(参数类型 参数名1, 参数类型 参数名2, .....
May
17
Dart Primer 004 : 操作符与流程控制
Published 12:05 May 17, 2018 by @ezra.
#Programming# Dart 语言整体上与 C++、Java 类似, 当然也有一些细节需要注意区分。
操作符
取整
操作符 ~/ 应该是很少见的一种写法:
int a = 3;
int b = 2;
print(a ~/...
May
17
Dart Primer 005 : 类
Published 12:05 May 17, 2018 by @ezra.
#Programming# Dart 是一门使用类单继承的语言, 所有对象都是类的实例, 且所有类都是 Object 类的子类。
定义类
类的定义使用 class 关键字。
class Point {
num x;
nu...
May
03
VIM commands cheat sheet
Published 18:05 May 03, 2018 by @ezra.
#UNIX/Linux#
全局
:h[elp] 关键字 - 打开关键字帮助
:sav[eas] 文件名 - 另存为
:clo[se] - 关闭当前窗口
:ter[minal] - 打开一个shell窗口
...
May
03
Bash echo color cheat sheet
Published 17:05 May 03, 2018 by @ezra.
#UNIX/Linux# You can make your BASH script more pretty, by colorizing its output.
Use ANSI escape sequences to s...
Apr
27
安装 Manjaro
Published 12:04 Apr 27, 2018 by @ezra.
#Technology# 前言
本文只适用于启动方式为UEFI+GPT
Manjaro 是一款基于Arch Linux的、用户友好的发行版, 虽然 Manjaro is not Arch, 但它依然能够从 AUR(Arch U...
Apr
24
7 THINGS TO ALWAYS REMEMBER
Published 12:04 Apr 24, 2018 by @ezra.
#Feelings#
the past can’t be changed
you only fail if you quit
sometimes “no” means “not right now”
their opin...
Apr
08
xargs vs exec
Published 10:04 Apr 08, 2018 by @ezra.
#Technology# There is a bit of a debate in some circles about using xargs vs. the -exec {} option that’s bu...
Apr
08
find exec vs find xargs
Published 10:04 Apr 08, 2018 by @ezra.
#Technology# If you want to search files by a pattern and then apply something to the results you have at least t...
Apr
08
Xargs Examples
Published 10:04 Apr 08, 2018 by @ezra.
#Technology# What is the xargs command in UNIX?
The xargs command in UNIX is a command line utility for building...
Apr
08
Sed Examples
Published 10:04 Apr 08, 2018 by @ezra.
#Technology# We use sed to work with text files like log files, configuration files, and other text files.
In th...
Apr
08
Awk Examples
Published 09:04 Apr 08, 2018 by @ezra.
#Technology# Sometimes you need something powerful, giving you more control to process data. This is where awk co...
Mar
05
Whiptail Cheatsheet
Published 15:03 Mar 05, 2018 by @ezra.
#Programming# Whiptail is a program that allows shell scripts to display dialog boxes to the user for informationa...
Mar
05
Swift: Codable not decoding properties with subclasses
Published 12:03 Mar 05, 2018 by @ezra.
#Programming# In this code, the groceries properties is not deserialised from JSON. The name property is, but not ...
Feb
24
Remove all macOS generated invisible files
Published 23:02 Feb 24, 2018 by @ezra.
#macOS# Remove all macOS generated invisible files in current folder: both .DS_Store and ._XXXX files.
find ...
Feb
10
RSYNC Cheatsheet
Published 15:02 Feb 10, 2018 by @ezra.
#macOS#
Commands
Description
rsync /path/to/file.ext /path/to/dest
简单的复制文件 file.ext 到 /path...
Jan
21
Tkinter Cheatsheet
Published 10:01 Jan 21, 2018 by @ezra.
#Programming# Hello World
We always need to follow two steps no matter how big the application is, there is always...
Jan
06
CSS Selectors Cheatsheet
Published 17:01 Jan 06, 2018 by @ezra.
#Programming#
Selector
Example
Example description
.class
.intro
Selects all elements with class="i...
Jan
05
Swift: Return instancetype
Published 12:01 Jan 05, 2018 by @ezra.
#Programming# To return instancetype in Swift, you can define a generic helper method which infers the type of sel...
Jan
03
CocoaPods: Encountered an unknown error (Pod::DSLError) during validation
Published 12:01 Jan 03, 2018 by @ezra.
#Programming# 在发布到 CocoaPods 是如果遇到下面的问题:
Validating podspec
-> UIMessageBar (1.0.0)
- ERROR | [iOS] unknow...