Aug
16
深入理解 Runloop
Published 12:08 Aug 16, 2017 by @ezra.
#Programming# RunLoop 是 iOS 和 OSX 开发中非常基础的一个概念, 这篇文章将从 CFRunLoop 的源码入手, 介绍 RunLoop 的概念以及底层实现原理. 之后会介绍一下在 iOS 中, 苹果...
Aug
12
Encryption: Generate RSA public key with modulus and exponent
Published 12:08 Aug 12, 2017 by @ezra.
#Programming# Was trying to generate a RSA public key with RSA modulus(n) and RSA public exponent(e).
I have tried...
Aug
10
Swift: Generate values collection of Enum types
Published 12:08 Aug 10, 2017 by @ezra.
#Programming# Have you ever done this before:
public enum SomeEnumType: Int {
case a, b, c
public var all...
Jul
05
Linux Distributions Family Tree
Published 11:07 Jul 05, 2017 by @ezra.
#UNIX/Linux# Here is a family tree of Linux Distributions:
...
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...