Swift Lane Stack implementation

Today in practice design patterns when there is no sudden discovery Swift stack - Stack class is。Since I was shining Java version of the design patterns to learn,So I had no choice but to implement a look at the。

But speaking,In Apple's official manual, "generic" chapter really have a stack of chestnuts,It is the structure implemented。This is actually in line with the Swift's style - after all,, Stack did not need to achieve with the class - in the structure of the Swift is。

Here we briefly review[……]

Click link to continue reading...

Xcode one of those plug-ins

Update:In the blink of an eye 5 Years passed,This article is also invalid... Now Xcode no longer allows random installation of plugins,The only one recommended at the moment Swift Format for Xcode,You,mutual encouragement。

Development on OSX,Then you necessarily involves dealing with this famous IDE。after all,We use IDE is to improve productivity,So natural for us to carry out some of its individual customization。At this time, you will find that Xcode's preferences are really nothing to customize[……]

Click link to continue reading...

OS x hide desktop card reader icon

Retina MacBook Pro No longer with the CD-ROM drive,So we naturally can not add more hard drives to a computer。and,Because Apple uses PCIE SSD,So the hard disk capacity is also limited by the cost of,From the previous mass,Into a high-speed。

Fortunately,Apple reserves the SD card reader。Such,We can buy an SD card for your Mac expansion - after all,,Now the SD card capacity can reach rmbp The low with the --128GB

I plan to use does not create[……]

Click link to continue reading...

Encryption and decryption - make your information more secure

I remember someone saying:

We, as an ordinary person,Money is not state apparatus more,No country strong force machine - but on cryptography,It may be the first individual to an equal footing with such huge machine。

Internet all the time filled with a variety of information,Every word we uttered,Like every point,They are the equivalent of saying to everyone listening,it's here,Every word we can spread very far,Our every move,Potentially seen by anyone。This is different in our daily life。Our lives are visible and tangible,We can perceive and control[……]

Click link to continue reading...

A programming algorithms Huawei interview questions

Friend sent today a very special topic:

Topics:There are two array a,b,Size n,Any of the values of the array elements,Disorder;
Requirements:Through the exchange of a,Elements in the b,Elements of array a and b elements in the array, and the difference between the minimum。

I feel familiar at first glance the problem ... ... And domestic c exams almost,But a closer look seems to be a bit more difficult,Do not look like that has a clue what the problem。Ok,I asked to know,This is Huawei's interview questions。

Is, after all, interviews,So it is a little difficult。- But after all, is the ah ...[……]

Click link to continue reading...

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