#Hello Edgerunners, welcome to the Night-City.

Welcome!

Encryption: Generate RSA public key with modulus and exponent

Was trying to generate a RSA public key with RSA modulus(n) and RSA public exponent(e). I have tried to use SCZ-BasicEncodingRules-iOS, but unfortunately SCZ-BasicEncodingRules-iOS has wrong decoding algorithm for iOS 8 and above. It outputs key with incorrect prefix. If you faced with the same issu...

Swift: Generate values collection of Enum types

Have you ever done this before: public enum SomeEnumType: Int { case a, b, c public var allValues: [SomeEnumType] { return [.a, .b, .c] } } It's very annoying when you have to enter the cases twice, so I stumbled around in the bits and bytes and created an extension usable lik...

Linux Distributions Family Tree

Here is a family tree of Linux Distributions: ...

Ich habe nichts, mich zu beschweren.

Swift: What is @_silgen_name?

As a general Swift developer, one wouldn't come across this attribute, unless working with, say, porting Swift to some other platform. This reflects the fact that the attribute's only for compiler-internal use , and isn't really equivalent to C's asm attribute, since it doesn't change the calling c...

iOS: Get Alphanumeric System Version

This is the way to get the alphanumeric system version like 16E195 in 10.3(16E195). Objective-C Way #import <sys/sysctl.h> - (NSString *)alphanumericSystemVersion { int mib[2] = {CTL_KERN, KERN_OSVERSION}; u_int namelen = sizeof(mib) / sizeof(mib[0]); size_t bufferSize = 0; N...

Determining UTIs defined by App bundles

We know that lsregister -dump is an option; however, I'm left to wonder if there isn't a better solution. In my searching I've come across a private API that could be of use: __UTCopyDeclaredTypeIdentifiers Since there's absolutely no documentation for it, I give you this: import Foundation @_silgen...

Filesystem Hierarchy Standard

Filesystem Hierarchy Standard Abbreviation FHS Status Published Year started 14 February 1994; 28 years ago Latest version...

iOS 10.3: Setup Alternate Icon

最近苹果发布了新的 iOS 正式版本 10.3, 有一个新特性引起了不少人的注意 —— 换图标。 看了看文档, 代码简单到只有一句话: [[UIApplication sharedApplication] setAlternateIconName:@"" completionHandler:^(NSError * _Nullable error) { }]; 当然, 在使用这句代码前, 还是需要改一下 Info.plist 文件, 格式为: <?xml version="1.0" encoding="UTF-8"?>...

hosts

Locations Windows 7/8/8.1/10: C:\Windows\System32\Drivers\etc\hosts macOS/iOS/Linux/Android: /etc/hosts hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## # Localhost (DO NOT REMOVE) 127.0.0.1 localhost :...

What's this?

The Night-City version of CaveOps inspired by Cyberpunk 2077. Not finished yet.

Pinned Message

The Founder and CEO of Infeca Technology.

Developer, Designer, Blogger.

Big fan of Apple, Love of colour.

Feel free to contact me.

反曲点科技创始人和首席执行官。

开发、设计与写作皆为所长。

热爱苹果、钟情色彩。

随时恭候 垂询

Outer Square Inner Square