Month – May 2015

Let Xcode using Solarized Dark color theme

Looks like this topic has been very fire Solarized,This is a terminal text color color scheme,Very nice,There are two kinds of light and shade,but,According to my own guess,Some more than it should be dark ......

Click below to jump to the official website。⬇️

Because the terminal is generally a little good-looking black😜

In short,The color theme for many terminals provides configuration files can be imported directly into,[……]

Click link to continue reading...

Talk about MVC and software development of SoC

No matter what language you are learning,Will probably encounter a called MVC concept,It is a program development model,"Isolation and show" as the core,In the hierarchical framework has a great influence。

MVC Is a shorthand,Three uppercase letters corresponding to Model View and Controller

Now we create a application software,Many cases will bring[……]

Click link to continue reading...

Direct application in Xcode preview UI

Do app using Xcode application development time,UI interface design what application is commonplace,But every time and then run the simulator to view the output of a very troublesome thing,Especially when you need to modify many elements、And the need to fit a variety of screen sizes with the time - after all,,Now iPhone product line is no longer so a single。

so,Breath simulator run three or four such things fear[……]

Click link to continue reading...

What is a programming language?

Since you want to learn programming,Then we should at least know their own learning is what it okay?

Speaking of programming,In fact, the earliest still have to catch up with our big brother Alan Turing God go。At that time Turing invented Turing machine - this thing is very fast hardware,Finish all had easily shortened to two years of World War II where we do not start speaking up,We say that the main,The Turing Machine,Basically it is the first computer!

of course,[……]

Click link to continue reading...

Swift Common Types of data

Now most of the high-level programming language,All evolved from the classic C language,You grammar which in these programming languages,More or less can be found in the shadow of a fraction of the C language,This is why a lot of people still recommend,From the C programming language into the language of the door。

but,C language is indeed a sufficient old,Many people are directed to write a program target learning to play the APP,You to learn C language ...... sorry,[……]

Click link to continue reading...

Watercress FM song list access

Swift recently started learning the,It is like "hello world" as,Each language seems to always have a "write Douban FM" project tutorial😶

In short,I started using this process taught to become familiar with the development process,but,Only yesterday did show playlists and display the song Cover,Today adds playback collapsed flash back!

Ok,Even the newly added[……]

Click link to continue reading...

Could not load the image referenced from a nib in the bundle running on device

In use xcode Make a program when,We generally use some pictures instead of stiff off button text,Make the interface more beautiful。

but,When adding pictures,I met when editing storyboard You can display,But the problem when the program is running, but can not be displayed。

View Record found error:
[crayon-68fe1b368bd0b35[……]

Click link to continue reading...

VM most serious vulnerabilities Venom cloud services is threatened!

This afternoon,I'm knocking Code,Then on the west coast, a vps sent e-mail,Said server to restart Update,And I happen to have a vps is there in his。In addition to hardware and general maintenance accident,Cloud services basically online - after all,“High availability"It is the main subject of cloud services。

but,This time is different,Just today,The new virtual machine loopholes available,Exploit this vulnerability,You can make every minutesudden[……]

Click link to continue reading...

Open nat masquerading and port forwarding on ufw

Possible until now,You have been very skilled how to open nat and port forwarding on Linux - after all, this operation may also require a server at the time of deployment。But its operation is too cumbersome,Especially when we use edit iptables ufw after that,But you can not directly edit the iptables,This time in the end what to do it?

want使用 ufw[……]

Click link to continue reading...

Ali cloud Ubuntu update image source

Update:for some reason,Ali cloud is no longer recommended updates the source,Give youThis page,Click to go can help you generate USTC mirror automatically depending on the version update source。

In order to facilitate their own domestic vps server configuration updates,Usually all you need to change and update the source dns,Do not try to patch ............ otherwise life short,NetEase previously used source but recently always cramp,So nowRecommended Ali cloud

Another[……]

Click link to continue reading...

Under Ubuntu more simple firewall Uncomplicated Firewall

we all know,Among Linux system has a very fast hardware firewall is called iptables,It can do far exceeds the scope of the firewall, but ......,usually,We only used it as a firewall to use。

but,If you just want a port policy,That does not seem to need to face iptables That lengthy configuration commands。Now,I'll introduce you to the other a more[……]

Click link to continue reading...

Goodbye hooligans,Goodbye dnspod

As the once booming domestic DNS resolution service providers,dnspod In the godaddy NS has just been certified during that time to resolve domestic high speed services of good quality and recommended by the majority of Web hosting providers,Our group of mindless small bloggers will have to takeThird-party NS resolution

Actually, I was dnspod It's nice, too,Resolved faster,Creates a new domain name,From a few minutes to start[……]

Click link to continue reading...

SNI Proxy accelerate the deployment of anti-Generation Web access without certificate

We all know that you can use nginx trans-generation capabilities to achieve cross-border access network,but,This approach has a lot of constraints,For example, it is difficult to achieve login authentication,For example, the need for a separate forwarding module compiler to do,For example, you need to have a valid signature ssl certificates, etc.。

this time,We introduce an additional artifact SNI Proxy,With dnsmasq can be achieved with sniproxy[……]

Click link to continue reading...

Compile and install anti-pollution dnscrypt-wrapper build DNS server

All to known,I want to get them abroad towards LAN DNS information,Will certainly suffer keywordPollution。to this end,Some people thinkUse exception port,For example, instead of using 5353 as the current DNS dedicated port 53-- Girl Friend Wall Only 53 pollution;It was also thought of using a TCP connection request,Because DNS response mechanism参考 DHCPI decided itaccept[……]

Click link to continue reading...

Modify .htaccess ban Contents Index privacy

Usually the default Apache will allow directory indexing,This is very vulnerable to malicious use of people with ulterior motives。Many people choose to place the index.html file in the directory for this purpose,Because then it becomes open an empty file can not be indexed directory,But this, after all, a temporary solution - you can not give all of the directories to index a right?

If you can,Or should modify .[……]

Click link to continue reading...

Digital Ocean Singapore room rate in San Francisco SGP1

If you ask most often play VPS owners recommended that service providers? I think in addition to the famous old Linode,The rest of the rookies Digital Ocean 。The rise in recent years, just vps service providers rely on the support of the United States is said to several consortia,Create a global SSD solid disc、Demand charges vps cloud services platform。

Inexpensive

The main,still is[……]

Click link to continue reading...