Natsume Reiko

A curious neko


  • Home

  • Categories

  • Tags

  • Archives

  • Search

断言

Posted on 2017-11-11 | In Programming |
Words count in article: 1.2k | Reading time ≈ 4
断言断言 (assertion) 是指在开发期间使用的, 让程序在运行时进行自检的代码 (通常是一个子程序或宏. 若断言为真, 则表明程序运行正常; 而断言为假, 则意味着它已经在代码中发现了意料之外的错误. 断言对于大型的复杂程序或可靠性要求极高的程序来说尤其有用. 断言使用的指导性建议: 用 ...
Read more »

update CocoaPods (from v1.0.0 to v1.3.1)

Posted on 2017-10-31 | In Tool |
Words count in article: 212 | Reading time ≈ 1
这次更新主要涉及到 ruby 源更新的问题 查看 ruby 源 gem sources -l 移除原有 ruby 源(跟上一步查看的保持一致) gem sources --remove https://ruby.taobao.org/ 添加国内最新 ruby 源 gem sources -a ht ...
Read more »

JSPatch – 动态更新iOS APP

Posted on 2017-09-24 | In Programming |
Words count in article: 1.2k | Reading time ≈ 4
JSPatch 只需在项目中引入极小的引擎,就可以使用 JavaScript 调用任何 Objective-C 的原生接口,获得脚本语言的能力:动态更新APP,替换项目原生代码修复 bug。 用途是否有过这样的经历:新版本上线后发现有个严重的 bug,可能会导致 crash 率激增,可能会使网络请求 ...
Read more »

Objective-C isa 指针 与 runtime 机制

Posted on 2017-09-24 | In Programming |
Words count in article: 1.2k | Reading time ≈ 4
isa指针要认识什么是 isa 指针,我们得先明确一点: 在 Objective-C 中,任何类的定义都是对象。类和类的实例(对象)没有任何本质上的区别。任何对象都有 isa 指针。 那么什么是类呢?在 xcode 中用快捷键 Shift+Cmd+O 打开文件 objc.h 能看到类的定义:1234 ...
Read more »

Swift 3 特性

Posted on 2017-09-23 | In Programming |
Words count in article: 892 | Reading time ≈ 3
Swift 各版本发展历程Swift 1 确立了语言的基线: 安全, 快速, 现代.Swift 2 展现了 Swift 应该是什么, 未来怎么走: 面向协议的编程, 开源.Swift 3 更多的是清扫和规范: 新的 API 设计简洁干净, 减少了歧义, 溢出了很多 C 风格语法使代码风格更加一致, ...
Read more »

透传消息 与 推送消息

Posted on 2017-07-07 | In Programming |
Words count in article: 799 | Reading time ≈ 2
目前市场上的消息推送方式有两种:通知和透传。什么是透传?透传即是透明传送,即传送网络无论传输业务如何,只负责将需要传送的业务传送到目的节点,同时保证传输的质量即可,而不对传输的业务进行处理。透传消息,就是消息体格式及内容,对于传递的通道来说是不去过问的,通道只负责消息的传递,对消息不做任何处理,当客 ...
Read more »

about GIT-LFS

Posted on 2017-04-18 | In Tool |
Words count in article: 1.4k | Reading time ≈ 5
What作为开源的 Git 扩展,Git 大文件存储(Large File Storage,简称 LFS)的目标是更好地把“大型二进制文件,比如音频文件、数据集、图像和视频”集成到 Git 的工作流中。 Why众所周知,Git 在存储二进制文件时效率不高,因为:Git 默认会压缩并存储二进制文件的所 ...
Read more »

Kibibyte

Posted on 2017-03-13 | In Others |
Words count in article: 226 | Reading time ≈ 1
从前,kilobyte 既可以表示 1024bytes,也可以表示 1000bytes,需要依靠语境等附加条件来判断它的用法。 于是,我们就遇到了诸如“100GB(GigaBytes) 硬盘不是 100GB(GibiBytes)”等麻烦,当然 GB/GiB 并不是造成这些问题的唯一原因。 在有了上述 ...
Read more »

A Warning from APPLE

Posted on 2017-03-09 | In Programming |
Words count in article: 219 | Reading time ≈ 1
Dear Developer,Your app, extension, and/or linked framework appears to contain code designed explicitly with the capability to change your app’s beha ...
Read more »

非对称密钥 —— RSA 算法

Posted on 2017-03-08 | In Programming |
Words count in article: 676 | Reading time ≈ 2
简介RSA 算法是最流行的公钥密码算法,使用长度可以变化的密钥。RSA 是第一个既能用于数据加密也能用于数字签名的算法。 原理RSA 算法原理如下:1.随机选择两个大质数 p 和 q,p 不等于 q,计算 N=pq;2.选择一个大于 1 小于 N 的自然数 e,e 必须与 (p-1)(q-1) 互素 ...
Read more »
12345
Kinoko

Kinoko

梦のような时间はいつしか过ぎて!

48 posts
7 categories
46 tags
© 2019 Kinoko
Theme — NexT.Pisces v5.1.4
0%