iOS Concurrency:Getting NSOperation and Dispatch Queues

Recommended by a friend,Encountered such a good article describes concurrent,I translated it for everyone to read。I am not a professional translator,Limited level。Error is inevitable,If readers find the text is wrong,Welcome messages treatise!
R0uter
Article translated appcoda iOS Concurrency: Getting Started with NSOperation and Dispatch Queues

In iOS in development,Concurrent will always be seen as something of a monster level。it[……]

Click link to continue reading...

WordPress Forgot your password message "Sorry,The key appears to be invalid. "

The new registration process has changed Wordpress,It does not require users to enter their own password to apply for registration,But in turn sent to the user's mailbox password recovery link。

This has the advantage of avoiding some of the security risks associated with the mailbox but also the way。but,This has been further requirements for building Wordpress bloggers these technologies,such as:

Need to configure their own mailbox - if your space is not provided, then the mailbox,Typically the server on behalf of,Such mail is very easy to get into the junk mail list - and some even directly receive the。If you are self[……]

Click link to continue reading...

PAC with multi-proxy load balancing is similar COW

Some time ago I found using COW this projectAgents do have a very nice feature is that two agents can achieve load balancing and more lines! It is a major default do other backup,By configuring,The proxy mode to hash, you can achieve load balancing multiple lines!

Of course, COW is flawed,It is strange for the first site will be directly connected at least once,This will cause DNS leak,I wrote about this before the specialan articleTalked about,Not repeat them here;The second with a long time do not know my habits problem or algorithm problems,You can often still encounter[……]

Click link to continue reading...

Chapter VI with the stack view(Stack Views)UI design

 

iOS9 brings many new features to make our life easier development,Stack Views profile is a good example. Before you give a brief introduction of the auto layout. Let us work together in this example is simple, but,With your app UI becomes more complex,You will find all the iOS devices to provide the perfect interface constraints become more difficult. This is Apple introduced Stack views in the latest version of Xcode and Ios a reason.

This chapter,We will continue to discuss the interface[……]

Click link to continue reading...

Using the open source version of Swift

Swift is already open source version 2.2 Got it,However, with respect to 2.1 No particular improvement。Swift now supports OS X and Ubuntu,Supported on Ubuntu 14.04 and 15.10 Two versions,You canThis pageDownload the latest version compile(There is no official stable version)Now I will talk about how to use it on both platforms。

OS X

Code Signing

On the right side downloaded pkg installation package name should have a small lock,Click on the little lock see detailed content[……]

Click link to continue reading...

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...