Swift 2.0 Introduction

WWDC conference in June this year on, Apple released Swift 2.0 Programming language。This new version has improved performance,The new API error control and detection support class availability。And improved Apple SDK platform API to make it more native to Swift。

Source

For new features for,Also worth noting is that Apple will open later this year Swift 。Over time,Apple will release more news about open source,At present the following information:

Today Scripts modify the code in the EI Capitan

We all know that with the use iStats Today Scripts can easily view the system in OS X's Notification Center in the state of,But after upgrade OSX 10.11,Today Scripts may be less so that the,Author probably have eight months without updates,I waited natural white wood have a way to modify the source code ...... so

Now,SomeoneFixed Today Scripts ,It is now in 10.11 A perfect run it!

In short,I found a[……]

Click link to continue reading...

My millet bracelet:Belated Experience Report

A blink of an eye six months later,Squandered for so long,I finally decided to hand the bracelet to write something millet。😒

Buy millet bracelet,Friends said he was blue millet bracelet with my phone with a very blue。That was my first real contact with millet bracelet。Later, after playing a few times,考虑到它¥79的价格,I own into a,I think after thinking,Or buy a black bracelet。

Speaking wearable device,At first I was rejected,You can not make me wear I wear,I gotta look into,Gotta give it a try - after all,,Google glasses too expensive - this[……]

Click link to continue reading...

htaccess redirect to https redirection also cause subdomain solutions

Recently,So I wrote an article:WordPress Open full stop HTTPS ,This side describes in detail how I turned the whole grid down to the station https of,Now I need to open an experimental subdomain,The result was writing htaccess ,To redirect to443Port the code causes the entire domain name is redirected to the primary domain,It makes very egg pain,Or sub-domain must also have a certificate,Or can only turn off the primary domain redirect。

Final,I found the wording for a domain name,Allow access rules to identify the domain,If it is not the main[……]

Click link to continue reading...

Why UNIX systems, such as the hidden directory to point at the beginning?

we all know,exist Windows Hidden folders are invisible,They some system files,While others arevirus。If you have to display words,After warning system,You can be in the form of semi-transparent folder to see this folder,Systems in order to identify a folder is hidden,It has a "-s"Properties,Protected by the system。

So a lot of people are new to Linux、OSX,I will not get used,Because these operating systems are hidden filesBeginning with pointTo mark the,The names of these directories can not be used even under Windows[……]

Click link to continue reading...

Swift as how to receive the inlet parameters like C language?

 

We all know that in the Swift language which is no longer the main function,You may understand C language or Java language students arrived at this point of deep discomfort。In short,Instead main.swift。

Swift language in which,The compiler does not go looking for main function as a program entry,But this "main.swift" file,According to the official explanation view,This one[……]

Click link to continue reading...

OSX 10.11 EI Capitan running Java SE 8

A few days ago,Latest session of WWDC Conference for us EL Capitan 10.11 latest OSX system,The first time I installed a developer preview。Without him,Netizens have said very little bug is the forums。Looking back to the year,When upgrading from 10.9 and 10.10,Even in beta stage,Is still flying bug!

But this does very little bug,Some do not even find innocuous,Really astonishing!

but,I am afraid that these bug inside[……]

Click link to continue reading...

GoAgentX PAC failure solutions

If you have previously installed a GoagentX ,Then uninstall the,Then reinstall,Maybe you will find that even opened the PAC model,Also ran "global" status。

This,On ip138 can validate。

I try to use my own generated a variety of PAC,Results simply can't even get on the net😅

Then just see a message,They are resolved:

"On the GoagentX configuration page restoring factory configuration"

Turns out,Really good![……]

Click link to continue reading...

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,For example, the terminal comes osx,There iterm etc.。Later, some people think,If you are using IDE programming development time,generation[……]

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,In many cases have to use GUI graphical interface,But also using the CLI Command Line Interface,In addition to,Sometimes even have to cope with the situation both use。[……]

Click link to continue reading...

Swift Int Float Double String type convert

In the C language which,To convert type does not seem to how difficult,The learning Swift when there is confusion。

Which of them seem to remember spoken tutorial,But remember,This has found,On record:

To convert to Double Int or Float ,It is as follows

To convert Int,It is as follows:
[cr[……]

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 to run three or four kind of thing I'm afraid it was only able to give you out。

In fact,Xcode is not did not give us a more convenient option - the story[……]

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,Textbooks do not say that von Neumann computer is the father of it? Ok,I will not tell you they stir the base to the course ......,Well that is hooked up[……]

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,Probably a whole book finished school,You can not write a beautiful beautiful UI interface。

but,anyway,To learn Swift[……]

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 if the newly added code commented out,Original code can not run correctly。You see,There has been such a universal error:
[crayon-6a269[……]

Click link to continue reading...

How to use the gem in the country

If you want to know Ruby,Ruby or want to install several software packages on your computer,You can easily use RubyGems a key to download - just like in the Ubuntu apt-get、Similar redhat in the yum etc.。

so,Want to install Ruby packages,You will need to gem。but,In addition to installing gem (if your computer is Linux or osx,It may have been built,Use the command "gem -v" to verify)

But the version may[……]

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:

Nations on swift Development of documentation and Q is too small,Even the tutorial is ambiguous - it[……]

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 minuteBreakthrough virtual machine restrictionsAnd get to the other servers in the same server access! Then use the information to other servers,And then we can continue in-depth infiltration[……]

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?

wantUse ufw to open nat masquerading and port forwarding,You can refer to this articleUnder Ubuntu more simple firewall Uncompli[……]

Click link to continue reading...