Let go SSH proxy server connection

Many network operation and maintenance、Or owners need to manage the server via ssh、vps,If you do not happen to,Separated by a wall between you and the server GFW,Then since GFW will analyze ssh packets,Result was slightly slower network will allow the command to card one minute。

GFW is now fully capable of analyzing traffic characteristics ssh,To determine whether you are really using the ssh server configuration,Or use it as a proxy to browse the web。

If there is any good way to get ssh like browsers as specified over the wall like。

Actually,Really have[……]

Click link to continue reading...

Swift uses InputMethodKit to write an input method

How to write an input method on iOS? This question has been answered a lot of people over。You can easily find a detailed tutorial by Google。but,On macOS write an input method is not so simple。

Ok,Strictly speaking,I mean use Swift to write a input method is difficult on macOS。The main reason is that no one has ever done this thing 。

Current data can be acquired,In addition to Apple's official API description (of no use),And the official demo (very detailed but outdated,and[……]

Click link to continue reading...

Swift 3 GCD

Xcode 8 Official version has been released,I want the first time my project to the Swift 3 --After all, this is a trend。

During the migration process, I encountered a lot of problems--such as Xcode provides automated migration tool is not working,I've been waiting for more than two hours,after that I give up,I chose to manually migrate--after all,,Xcode's auto-correction is also very good。

However--in the process of migrating,Xcode has been in the "Indexing",Nor how full function may be due Swi ......[……]

Click link to continue reading...

Swift UIButton cornerRadius + shadow

Most of the time,We all want the button design style more in line with iOS,This will make the application interface does not look so jump,Even if the design does not look good,Nor was incompatible with the system。

"I'm not a designer,I don't know how to design beautiful style-but as close as possible to the system is not a wrong choice。 ” —— by Router

So it is for UIButton,Rounded corners + shadow should be the norm。

Put a picture

Obviously,This is the cheapest way - in fact the most expensive。It requires you to do a series of rounded picture for each button,[……]

Click link to continue reading...

OwnCloud build private clouds with personal

Background account

According to regulations of the country,All network disk must be reviewed! (Probably because too much goddess,You know = _ =),Then have stopped most of the network disk service,Now only some of the big manufacturers still operating in the cloud。but,You keep to a certain degree in the cloud all the information must be subject to review (the goddess of the film becomes 15 seconds educational films,It is light;If you say dang good,Or to save the file to a similar degree in the cloud,Tomorrow someone will come to your courier delivery…)and so,Against this background environment,I need to own a network disk (whatever you need to do not need,I need at least[……]

Click link to continue reading...

iOS custom keyboard around the keyboard to move the cursor implement

Until we are,For example, third-party input method Sogou input method has a classic gesture - paddling around on the keyboard to move the cursor。And this feature I am also very common,so,I want to implement it yourself。

The first thing I think of is UISwipeGestureRecognizer ,However, with predictable results,Paddling can only move the cursor one space,This is not what I want。

It seems the only way is to use UIPanGestureRecognizer[……]

Click link to continue reading...

How do I use double pinyin

Says,Use double or more than a year。Every day now in use,Mobile phone use,Computers also used years earlier-a very strange why does not have such excellent input method。In short,After such a long continuous use – plus I even experience to iOS and Mac double,I also write your own input method (see Home)。

Now Larry is niche,I have according to their own understanding,Write aLarry, come fromThis article,Is to put the IME in FAQ。but,Although the overall Larry gradually being flooded by spelling[……]

Click link to continue reading...

With Santa prevent Mac QQ start of Jietu.app

Update,The name of the new version of qq screenshot changed,To QQ jietu plugin.app ,Directory unchanged。

The following commands have been made corresponding modification。

We all know that QQ this thing and 360 A sample,Do no good,。A Mac version is also thought to function well with,First touches hooligan playing up。After this update,You will find QQ screenshot function independent of the (actually very early independence,I refer to the other),Network connection is not present and QQ[……]

Click link to continue reading...

Swift in regular expressions

At the beginning of a,Swift did not provide regular expression support,So we can only package,For example write a structure,Like this:

In fact, Swift already has support for regular expressions,We just need to:

Direct will be able to get the captured content。

 

Gets to be a[crayon[……]

Click link to continue reading...

Swift set cut scores

in most cases,If we want to get the contents of a section of the array (for example, front-to-middle,Some of the values ​​of the array or the last),This time you need to traverse the array to assign a new array:

Such an array of short, better said it does not matter,However, if the array is relatively large and we need to value and more,It is clear that it is a waste of time to traverse up。

Swift in itself provides an array of features split,This mechanism is called [crayon-6904eb[……]

Click link to continue reading...

Let go pip Agent

When using python,Often you need to download some third-party framework,Fortunately, python has a similar apt package management tool,pip。

but,Although management packs can pip,But no source switching mirror,And we downloaded package,Most of the large foreign code hosting server,This often leads to a few hundred KB of package to download one hour。

 

Here we assume that,As a programmer you,Have been deployed to the computer HTTPS and HTTP proxy,We also said before[……]

Click link to continue reading...

What is Larry?

Pocketed double input method input method is a professional,It worked to make the user experience the pleasure double input, and also both spelled all the advantages--such as mass lexicon。

For double recognition,You should no longer stay in the words between the coincident code rate of spelling and five this concept,Larry is stylish、Line with the instincts of a Chinese pronunciation input method。

Spelling

To introduce double,We are starting from your most familiar spelling。Need to know,Such symbols abcd did not originate in China,natural,China did not start so similar English phonetic spelling。later,In order to develop Mandarin[……]

Click link to continue reading...

"Plugin invalidated" ios Customize Keyboard

Home for iOS system does not seem to be willing to write an input method,Except for a few oligarchs other than large companies do nothing else。Approaching China's unique Apple ecological platform,Find inside are empty shells,Meaningful applications is really very little of。

Pocketed blog recently is working to write in the first paragraph can really support the iOS platform the code table of double input method,First compatible double nature of the programme is open to the "Chick double",It stepped on a lot of holes,Will send some experience。Now,Emergency record a hole:

Using the keyboard,Occasionally[……]

Click link to continue reading...

Use SQLite database in Swift Lane

SQLite

Speaking SQLite,It is well known to you as MySQL,It is a relational database management system,But unlike the latter is that,It does not necessarily correspond completely independent server!

Generally speaking,SQLite is in the form of a file exist,Mostly used in embedded applications in storage。SQLite library is loaded by the application code,You can easily direct access to the data in a SQLite file。

SQLite written by C,So you know,To call it a library,Must also C language[……]

Click link to continue reading...

Xcode meanings in various Sent Event

In Xcode,We give iOS platform App,Will inevitably have to add a button to bind an event,At this time there is a statement,You will find a button touch event already not before a "Touch Up Inside" so simple。

Referring to FIG title,There are at least not so much in some events can be for your choice,In more features at the same time,Novices may be more ignorant of the force?

This time we take a look at these events,What exactly are the kind of gesture:

Did End on Exit

nRF24L01 wireless transceiver module Arduino

nRF24L01 is a work in the world-wide 2.4 ~ 2.5GHz ISM band single-chip wireless transceiver chip。Wireless transceiver comprising:Frequency generator、Enhanced mode controller SchockBurstTM、PA、Crystal Oscillator、Modulator、Demodulator。Set the output power and channel selection protocol can be set via the SPI interface。

Easy setup and low power consumption so that it is widely used in wireless mouse、Keyboard;Wireless Access、A variety of intelligent communications networking equipment, etc.。

Parameters

In macOS 10.11 Use BootCamp to install Windows on 10 Resolve partition error

Then suck everything for two!

Pioneer butt out,To be able to suck on it,I also spent a tremendous effort。- Why did so pit father does not support macOS it!

It is said that the virtual machine to install the watch even though it can enter the game pioneer but there will be a strange black blocks appear,The game can not。

In short,I spent five years macOS,The first reason finally installed dual system。

But had this Bootcamp Raiders no longer applicable,In El Captian in,U disk is no longer required to make Windows installation disk,But since[……]

Click link to continue reading...

Ali cloud management API use dynamic domain name resolution ddns

Dynamic DNS,Acronym ddns,It is different from our usual DNS resolution,But it is intended to deal with the kind of no fixed public IP address resolution server。

Typical usage is:Construction of small home broadband server,There is no fixed IP,Want online,In addition to writing scripts mail outside,The only way this can go ddns。

as far as I can tell,The most famous is probably the notoriously unstable and difficult to use the peanut shells。If there is a foreign dynu also very good。

Ali now open cloud API,So we can use Ali cloud AP[……]

Click link to continue reading...

embedXcode find Arduino system library header files

Arduino play on Mac,In addition to the official use of the simple addition of IDE,You can also choose to use Xcode to develop。

use embedXcode Plug-ins can make Xcode transformed into embedded development IDE,Including native compilation、Uploading full set of features。

but,In the standard library when it is a problem,For example, the figure above,I was testing nRF24L01 The SPI module,Need to use [crayon-6904eb807f[……]

Click link to continue reading...