Swift is open source

Swift is now open source。Apple today launched the open source community Swift,New tools and resources include the same stunning:

  • Swift.org - A Swift used to do open source community site;
  • Public code repository github.com/apple
  • A new Swift Package Manager to easily share projects and compile code;
  • Swift comes with the advanced features of the kernel library project with a standards-based library;
  • Platform includes all of the Apple platform and Linux。

Now[……]

Click link to continue reading...

How to learn programming language Swift?

In retrospect,I am now off and on since May begin to learn language Swift are nearly six months,From the program have no feeling at all,To the present"Open practice",Experienced a lot of。Might say for a master who worked for many years,These are too shallow,The phrase "you needProject experience"You can kill me blood slot-1,But for most, like me, "small white",I think I just came past six months can be replicated。

对于 OPEN(Object Oriented Programming)Entry,I started learning from Swift。So far,I can remember all the[……]

Click link to continue reading...

iOS 9 IPhone Configuration Surge use Shadowsocks achieve global science Internet

Since the iPhone update iOS 9,Update SDK also updated a number of new API,That we have such a powerful development tool Surge。

It can intercept all the traffic of your iPhone,Including cellular networks and WiFi! and so,Surge Global http proxy support iPhone,https proxy,sock5 Agent。

As usage,I know,You know。In addition to its support for global proxy,You can also set a separate DNS(No longer rely on using and configuring sniproxy A[……]

Click link to continue reading...

A random number in C #

During the development time,You will inevitably use a random number。And still more when,We need to generate a series of random numbers numeric string spare。Fortunately, however, a variety of programming language provides a simple and easy to use pseudo-random number generator for your use,For example, in the C # Random

but,C # is the default system clock Random seed - this method is simple and crude,Unfortunately, once the case a short time generate a lot of random encounters on the stretched - a bunch of the same random number to jump out,But precisely because the random,It will have the same number appears,but[……]

Click link to continue reading...

Ocserv build server using Cisco Anyconnect

Some time ago the appleID theft uproar,I determined to return to prison upgraded 9.0. This is just great,Shadowsocks can not be used。This concerned me quite envious of Android phones……Use Surge let go Shadowsocks iOSRealize Scientific Internet。

In short,We still have to work hard in the VPN, right up and down iOS。Today's VPN has been certified almost,Because although they cryptographic security,Could not help but feature detection - Well,After all, this thing saysNot to conceal born[……]

Click link to continue reading...

App Store in the Swift 2 App

Swift 2 Ready to launch the。You can now submit with Swift 2 app latest features 。It makes your code more readable and to force,Included guard ,The new error control module and the availability of control。

Be sure to use Xcode7 To compile your application and use OS X El Capitan The GM version,And the final version of the iOS9 and watchOS2

Xcode 7[……]

Click link to continue reading...

Homebrew update 遇到 Error: Failure while executing

In use brew when,Often you will encounter all kinds of weird errors,Such as updating time often encountered:

and this:

Experiencing these problems,Eighty per cent of your brew directory permissions error。

Use the following command to repair:

if not,The following command to install[……]

Click link to continue reading...

How to use the "Encrypted Folder" on OS X

Many people know Windows On a variety of encryption software can be downloaded,Cryptography Let's first large-scale machine and large organizations on an equal footing。

For example, the industryAES encryptionThe current situation is still very safe,exist WindowsOn You may need to use some third-party software to achieve - for example, the easiest rar software can also achieve the basic encryption。But in my big OS X on,You can use the built-in disk management software to achieve encryption。

Disk Manager

Use Spotlight to quickly locate Disk Utility:[……]

Click link to continue reading...