Swift sent through HTTP JSON-RPC command

While our Web development,Would inevitably have to obtain data from the Web server,In many cases also need to submit the data to the server,Which at the moment,We are used to using JSON formatted data,Because it is easy,This time we look,How to use Swift to send JSON-RPC command and get response。

JSON-RPC

JSON-RPC is a free and lightweight remote procedure call(RPC)protocol。 This specification defines the data structure and the associated processing rules。It allows you to run based[……]

Click link to continue reading...

Kali Linux 2016 Rolling update release

You may not know what is Kali,But you must have heard of BackTrack Name,Like classic BT5 。Now,BT's next generation,Kali Linux After 1.0、2.0 The Polish,Launched 2016 Rolling updatesversion。

Kali Linux based on Debian is maintained by Offensive Security Ltd and the financing,Internal integration of numerous specialized for forensics、Permeability and test security software,It can run on a disc、USB memory stick、Hard drives and various other[……]

Click link to continue reading...

A bowl of life's most delicious fried rice with egg compilation tutorial

ReadKnow almost answer yes vote,Really make life the best to eat fried rice,Here I look at the catalog to record tutorials for everyone haha,Designed for those who will write the code does not cook brothers。

ready

...... If you need a bowl of rice bean meal is what's remember to pick out the beans do not ask me why。Rice from the fridge must be agglomerated,Remember to start it will break up,Put the pot too late。

You need two eggs - also want to be more,Early break,Salt also put inside the Beat,After the salt will not need to。

This is enough,But if you have other plug-ins such as[……]

Click link to continue reading...

How OS X crash reports appear in the notification center

For advanced developers or other areas for Mac users,Frequent crashes app pop-up windows crash reports "App quit unexpectedly" tawdry,OS X had interrupted work flow。A long-standing solution is to OS X in fullClose crash report dialog,In addition to,These crash report dialog boxes thrown into the Notification Center might be a good choice。

Let me talk about,This is not to close the crash report dialog,ItCrash RecordsItself without any influence,It is merely a warning[……]

Click link to continue reading...

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:A 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,Everybody,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...