Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

Time:2021-9-2

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

Author Ma Chao
Source Alibaba cloud primary public official account

The charm of coding is so strong that countless programmers are bent over. At the 1024 programmer festival held by CSDN this year, Qiu Bojun, a great master of Chinese early generation programmers, said that he was happy to see someone using WPS because many people used WPS. Then, I will find out who cracked it, so I know Lei Jun so well. At present, although I am retired, I am still writing code and game code, not commercial software… In fact, I am writing plug-ins. I’m sorry to show off, but it can really make the game easier. It can be said that the highest goal of every programmer is to make their own code and projects widely spread.

If a worker wants to do well, he must first get his tools. A handy programming tool is undoubtedly an efficiency artifact for programmers, which can get twice the result with half the effort. After the author personally tried the cloud native development tool, it can be said that the latest development platform represented by the cloud development platform has brought an amazing increase in efficiency.

Ten years ago, there was a popular saying in the industry that “code is swallowing the world”, and later said that “everything in the Internet world comes from open source”. Until recently, people really realized that the original cloud is the big boss behind it. Anyone who does not use the cloud will fall behind, cannot be agile and can not keep up with the times. As a model of cloud native tools, cloud development platform is bound to become a mainstream programming artifact in the future.

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

Next, let’s take stock of the development process of the development platform and understand the general trend formed by the combination of cloud native and Devops with readers. The development platform is like a sword in the hands of programmers, but the sword in the hands of programmers has changed from being portable in the past to a flying fairy in the sky from the cloud.

From localized development to online development

After the emergence of high-level language, programmers only need to care about the core business logic and code implementation, and no longer need to care about the specific assembly language manual or deal with registers. In particular, IDE makes programmers less and less work outside the code, such as configuration and debugging. Localized development platforms, such as VIM + GCC, Borland’s PowerBuilder, and visual stuio and eclipse, the later local ide integrators, were also popular when they were launched.

However, such development tools are actually the product of the software age. In those years, the software company only provided compiled binary executable programs, but did not provide source code. The source code is of more commercial significance, and will not be disclosed even within the company. Under such a background, localized development tools can indeed complete his mission.

However, with the rise of open source foundation GNU and the popularity of Linux, the concept of open source has gradually taken root in the hearts of the people with the Internet age. In his epic work the cathedral the bazaar, Eric Raymond, a legend in the IT industry, said that there are two kinds of buildings in the world: one is the market, which is open every day, from scratch and from small to large; Another is the cathedral, which has been painstakingly built by generations and can only be built and put into use in decades. When you build a new building, you can use the market model or the cathedral model. Generally speaking, the market is characterized by open construction, low cost, short cycle and mediocre quality; The cathedral is characterized by closed construction, high cost, long cycle and excellent quality. Driven by the open source model, online development platforms represented by GitHub’s Web IDE and kaggle have risen. This also makes it possible for thousands of developers to develop open source projects at the same time.

However, although the online development platform is more closely combined with the code warehouse, it can not be completely agile, can not directly realize WYSIWYG testing, and can not release the version efficiently and quickly. It can be said that this is not the final form of the development platform.

Cloud development platform zero distance

Combining cloud services with the development platform, you can call serverless services at any time during development, which is the real WYSIWYG. Next, the author will take you to experience the charm of cloud development platform from zero distance.

At present, face information has become the key field of information security attack and defense. For example, partialconv model can repair images through AI   Paper address, partialconv   GitHub   Portal), even if a large area of pixels are lost in the image, it can repair the loss through AI. Partialconv is also the ancestor of applications such as “one key to” clothing, one key to “code. The effect diagram is as follows:

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

When partialconv was launched, many people exclaimed that it was not safe to code avatars in the future, or even made no sense at all.

AI face changing project based on self coding technology   ALAE   After successfully reaching the top of GitHub, it opened a new era of AI face change. Compared with the previous face image processing projects, alae is the level of a big boss. Just post a few renderings to feel it.

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

Not only does the image distinguish several streets from the face changing model of previous generations, but also the visualization of the learning process is stronger.

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

It can be said that once facial information is lost, the consequences will be very serious, and it is just a need for young people to share social dynamics, that is, explosive photos. So how to balance is a problem.

The answer to this question is to cartoon their own images, such as using ugatit (paper address, GitHub)   Address) model, so that their avatars can be converted between various cartoon styles.

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

However, using such a professional AI model to install and configure is very complicated, which has always been done by professionals. It is difficult for ordinary people to use such AI services before, but with the support of the cloud development platform, such applications become very simple.

However, using such a professional AI model to install and configure is very complicated, which has always been done by professionals. It is difficult for ordinary people to use such AI services before, but with the overtime of the cloud development platform, such applications become very simple.

Just note and delete the cloud development platform services and open relevant services to quickly realize the conversion of a cartoon avatar, which can be completed in only a few minutes.

1. Request parameters

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

2. Return data

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

3. Examples

1) Request example

http(s)://[Endpoint]/?Action=GenerateHumanAnimeStyle
&ImageURL=http://invi-label.oss-cn-shanghai.aliyuncs.com/label/temp/cartoon/test_data/g1.png
&< public request parameters >

2) Normal return example

  • XML format
<RequestId>59697D68-2A6E-4553-89BD-0FADD07881E8</RequestId>
<Data>
    <ImageURL>http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/person-image-cartoonizer/59697D68-2A6E-4553-89BD-0FADD07881E8_7ee5_20201027-070958.jpg?Expires=1603784400&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSR****&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****</ImageURL>
</Data>
  • JSON format
{
    "RequestId": "59697D68-2A6E-4553-89BD-0FADD07881E8",
    "Data": {
        "ImageURL": "http://vibktprfx-prod-prod-aic-gd-cn-shanghai.oss-cn-shanghai.aliyuncs.com/person-image-cartoonizer/59697D68-2A6E-4553-89BD-0FADD07881E8_7ee5_20201027-070958.jpg?Expires=1603784400&OSSAccessKeyId=LTAI4FoLmvQ9urWXgSR****&Signature=ut2kn46Lz%2FRwqJ9jWJ0RBDut12****"
    }
}

The above code is very simple to configure such HTTP requests on the cloud development platform, which can not only be debugged quickly:

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

There are even 100000 free calls to the production environment:

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

Of course, if readers need wechat applet, its implementation is also very simple and fast, just needUpload the portrait and pass it to the back end. The back end calls the algorithm and returns the result

3. Example of applet calling API

wx.chooseImage({
  success({ tempFiles }) {
    var files = tempFiles
    that.fileUpload(files[0].path);
    wx.request({
      url: '/api',
      method: 'GET|POST',
      data: {
        imageUrl: 'url'
      }
    })
  }
})

The test results are as follows:

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?
Original drawing

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?
Cartoon result diagram

Such a rapid development method and function realization can be said to brush your sleeves after a lot of things, and the wind of chivalrous men with deep skills and fame. The cloud original platform is actually the cloud original platform. As long as you have an idea, you can quickly turn into the corresponding function and go online quickly. Xiaobai can also become a great Xia with superb martial arts and realize the dream of the geek era with the support of the cloud development platform. The biggest difference between IT industry and traditional industry is that there is still a shadow of chivalrous Jianghu behind it. I believe that Alibaba’s cloud development platform with great sincerity will also get pertinent opinions and support from the technology community. The cloud development platform provides a way for all Wulin experts to expand quickly. In the process of continuous exchange and competition, it will certainly improve the martial arts level of all sects. Therefore, I sincerely hope that Ali can launch more high-quality cloud native projects in the future to promote the sound development of the industry.

Experience now

Life is short, how to use cloud for development? How to gracefully complete the Xiake dream of programmers?

The cloud development platform launched an experience activity to show your secondary role. You can complete the development of a complete AI applet in 10 minutes and generate your own secondary role image with one click. You can receive Alibaba cloud customized baseball caps, sun your avatar and receive tmall Genie again. Let’s experience the new year.