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-6725c70ea8[……]

Click link to continue reading...

Solving MySQL suddenly occupy all memory problems

Pocketed a while ago on migrating from virtual host to an independent VPS,Maintenance of this all is my own。For performance,If your environment,Nature does not use the old configuration。

I use Ubuntu Server 16.04 + PHP 7.0 + Nginx + MySQL 5.7 In short,Stepped on a lot of holes。

Now,To record

Why MySQL is suddenly filling up memory

At first I thought it was a VPS under attack,But not only this traffic View Card[……]

Click link to continue reading...

Ubuntu 16.04 Adding memcached and redis extended PHP7

Switch to PHP 7 after that,Site speed boost,But usually just one of extension may not yet support PHP7.

Memcached

For example, I now use the latest Ubuntu 16.04,Although it built in PHP 7 source,But it has not memcached,Fortunately, however,,It has supported PHP 7 ,Not just the source of it,We compile it manually。

To install memcached,You need to install the dependent libraries libmemcached

FromHereturn up[……]

Click link to continue reading...

Swift in the single mode

In the process of writing the code,We will meet when the need to ensure that only one instance of the global,This time use the singleton pattern。

Single mode--this ensures that only one instance of a class,And provide a global point of access to。

What about how to implement the singleton pattern? We take a look at the classic Java code,How to implement the singleton pattern。

Our online search for "Java singleton pattern" will be able to find plenty of readily available code snippets,Here are random excerpts of a report:
[crayon-6725c70ea92964898[……]

Click link to continue reading...