
May
13
Swift: What is @_silgen_name?
Published 12:05 May 13, 2017 by @ezra.
#Programming# As a general Swift developer, one wouldn't come across this attribute, unless working with, say, por...

May
06
iOS: Get Alphanumeric System Version
Published 12:05 May 06, 2017 by @ezra.
#Programming# This is the way to get the alphanumeric system version like 16E195 in 10.3(16E195).
Objective-C Way
...

Apr
13
Determining UTIs defined by App bundles
Published 12:04 Apr 13, 2017 by @ezra.
#Programming# We know that lsregister -dump is an option; however, I'm left to wonder if there isn't a better solu...

Apr
07
Filesystem Hierarchy Standard
Published 16:04 Apr 07, 2017 by @ezra.
#Technology#
Filesystem Hierarchy Standard
Abbreviation
FHS
...

Apr
01
iOS 10.3: Setup Alternate Icon
Published 12:04 Apr 01, 2017 by @ezra.
#Programming# 最近苹果发布了新的 iOS 正式版本 10.3, 有一个新特性引起了不少人的注意 —— 换图标。
看了看文档, 代码简单到只有一句话:
[[UIApplication sharedApplicati...

Mar
25
hosts
Published 12:03 Mar 25, 2017 by @ezra.
#Technology# Locations
Windows 7/8/8.1/10: C:\Windows\System32\Drivers\etc\hosts
macOS/iOS/Linux/Android: /etc/h...

Feb
12
OS X: Problem with IntelliJ IDEA License Server on Sierra
Published 12:02 Feb 12, 2017 by @ezra.
#Programming# Using sudo ./IntelliJIDEALicenseServer_darwin_amd64 on macOS 10.12+ will be some problems like Permi...

Jan
02
How to hide the Spotlight icon from the Menu Bar
Published 12:01 Jan 02, 2017 by @ezra.
#Programming# If you never use the Spotlight feature on your Mac, or if you only use it from the Finder rather tha...

Dec
29
A Bite of Python
Published 12:12 Dec 29, 2016 by @ezra.
#Programming# 不可不知的Python陷阱
由于易于学习以及快速开发更大更复杂的应用, Python 渐渐在计算环境中无处不在。尽管明显的语言清晰度和友好会麻痹软件工程师和系统管理员的警觉性,诱使他们编码可能会有严重...

Nov
27
OS X: Best practical way to validate NSTouchBar items
Published 12:11 Nov 27, 2016 by @ezra.
#Programming# Protocol and extensions:
@available(macOS 10.12.1, *)
protocol TouchBarItemValidations: class {
...

Nov
23
系统基本配置概要
Published 12:11 Nov 23, 2016 by @ezra.
#Technology# 因为时不时会给自己或者被人的电脑💻重装系统, 装系统很简单, 但之后要配置的内容还是蛮多的, 这里列举一下吧。
重装系统
首先要从重装系统说起, 由于直接运行 .app 安装会保留原来的数据, 而很多...

Nov
18
Xcode: Showing TODO as a warnig in a Swift Xcode project
Published 12:11 Nov 18, 2016 by @ezra.
#Programming# I rarely use comments when I’m coding1. I do make one exception though; using // TODO: and // FIXME:...