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
01
iOS 10.3: Setup Alternate Icon
Published 12:04 Apr 01, 2017 by @ezra.
#Programming# 最近苹果发布了新的 iOS 正式版本 10.3, 有一个新特性引起了不少人的注意 —— 换图标。
看了看文档, 代码简单到只有一句话:
[[UIApplication sharedApplicati...
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
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:...
Nov
12
最近一些比较好的 jQuery 插件
Published 12:11 Nov 12, 2016 by @ezra.
#Programming#
最近一些比较好的 jQuery 插件。
Gradientify 是一个简单的 jQuery 插件,它提供了 CSS 梯度过渡效果。
PrognRoll 是一个微小的 jQuery 插件,用于在...
Nov
12
OS X: Setting up Spotlight Control in OS X El Capitan to macOS Sierra
Published 12:11 Nov 12, 2016 by @ezra.
#Programming# OS X El Capitan introduced a new Security Feature called System Integrity Protection. With System In...
Nov
01
Why SVG?
Published 12:11 Nov 01, 2016 by @ezra.
#Programming# SVG是什么?
SVG是一种可缩放矢量图形 (英语: Scalable Vector Graphics, SVG) 是基于可扩展标记语言 (XML) , 用于描述二维矢量图形的图形格式。SVG由W3C...