Latest posts

Docker in Docker

Docker in Docker

Technology 4 months ago (04-24) Views: 13 Comments: 0

Docker technology is currently widely used in DevOps. We need to package the test or build code and automation scripts into Docker images and deploy them in various operating environments.In CI/CD, we use some CI/CD servers, such as Jenkins and GoCD, to build and deploy our applications to automate CI/CD.Now, many CI/CD servers are actually made into a Docker Image running on a real physical machine. At this time, we actually need to build and run our CI/CD server's Docker container. Docker image, which involves the "Docker run Docker" problem. A very natural idea is, do we need to install a Docker Daemon and Docker command in the CI/CD server image? This is a very natural idea, but I always feel that installing Docker in the Docker image is a bit lame. In fact, we do not need to install Docker on the CI/CD server. Instead, we directly borrow from the host machine. So, we need to start "Docker in Docker" like this:Docker adopts the C/S architecture. Docker's successful operation requires the support of Docker Daemon and Docker Client (client). When we run some commands such as docker build, we actually need Docker Client to connect to Docker Daemon to

[5] Real-time image transmission of binocular camera – Smart car under Pcduino platform

[5] Real-time image transmission of binocular camera – Smart car under Pcduino platform

One, Mjpg-streamer open source library Due to the development of a real-time video push system, it may involve the implementation of a streaming media server, but it can be realized quickly and easily through the "MJPG-streamer" open source tool."MJPG-streamer" is a mature, lightweight video server software that can be used to capture camera images and publish them on real-time video servers.MJPG-streamer adopts the modularized design idea, including input module and output module. The input module defines the input source, such as camera, file, etc. MJPG-streamer then outputs the video through the output module, such as http output and other network output. Local output of the file [8]. This article uses a binocular camera supporting UVC protocol as the input source of image data. The http protocol is used to push the video stream. Therefore, the components involved are the output_http output component and the input_uvc input component.With MJPG-streamer, it is easy to push the binocular camera video on the pcDuino to the http protocol. Second, to achieve and test The use of MJPG-streamer library to develop a real-time image transmission system is convenient and efficient. Its installation command is as follows: After the installation is complete, you can use the

[4] Communication instruction design – smart car under Pcduino platform

[4] Communication instruction design – smart car under Pcduino platform

Technical application 5 months ago (03-27) Views: 16 Comments: 0

First, the command packet protocol design In the remote control smart car system, the remote client controls the smart car through command communication.In the design of this paper, only the speed direction control instruction is involved. In order to consider the scalability of the system: because there may be more types of instructions for subsequent requirements, this article has designed the instruction code for the instruction data. The instruction consists of the instruction code and the instruction data area; consider To the client and the server to better handle the instruction, the instruction word length is 32 bits, and the int data type word length is equal to the int data processing when the server and the client socket socket to send and receive data .In studies similar to this design, char characters are often used to control the direction. I think it is inadequate. Because a char type can quantify and access data, it can save network traffic and ensure real-time performance.   Instruction code (4bit) Command data area (28bit)   When the command code is 1, the speed direction control command of the sending vehicle is indicated, and the command data package is a schematic diagram:   0

[3] System architecture and assembly – Smart car under Pcduino platform

[3] System architecture and assembly – Smart car under Pcduino platform

Technology 5 months ago (03-27) Views: 20 Comments: 0

First, system design In this paper, the smart car communication control system is mainly composed of a Freescale car model, a pcDuino development board and its external module, a remote control client (smartphone), and a wireless LAN device. The schematic diagram of the system structure is as follows: In order to use the pcDuino to control the motors and servos of the smart car model, this article uses the L298P expansion module to plug into the Arduino compatible hardware interface on the pcDuino motherboard. Due to the mismatch of the L298P and pcDuino motherboard levels, the middle part is completed through the T board module. Level shifting.The binocular camera accesses the pcDuino through the USB interface. Since the pcDuino is equipped with a wireless WIFI module, it can complete the networking through the wireless LAN and external remote clients to achieve remote communication and control. In order to use the smart phone client to control the smart car system, this design uses a smart phone connected to the local area network to send commands to the smart car system. The system structure is a typical C/S (client-server) structure, which means The smart car pcDuino development board serves as the server,

"2018 China Internet Company Overtime Report Non-Professional Edition"

"2018 China Internet Company Overtime Report Non-Professional Edition"

Algorithm language 5 months ago (03-22) Views: 12 Comments: 0

Inadvertently opening the blog's access data, suddenly found several interesting conclusions, "big data" shows: 1. The periodic troughs are Sundays and Sundays, because everyone is generally on weekends; 2. February 14 to February 22 have a long valley, because the Spring Festival holiday 3. Visits on Saturdays of the same week are almost exceptionally higher than Sundays 4. Chinese New Year is lower than Saturday and Sunday Based on some facts, accessing this blog is mostly domestic programmers. The following conclusions can be drawn: 1. Chinese internet IT companies tend to choose to work overtime on Saturday 2. In the Spring Festival, we should not work overtime. This time the traffic is about the basic flow. We can divide the number of visits over the weekend (E) minus the number of visits during the Spring Festival (S), and divide it by the weekly peak (MAX) minus the Spring Festival. Calculate the overtime rate (E - S) / (MAX - S) for the weekend, import the data and calculate it over the average: Overtime rate for China IT industry: 21.53% on Saturday, 17.22% on Sunday

[1] Overview – smart car under the pcduino platform

[1] Overview – smart car under the pcduino platform

Technical application 5 months ago (03-19) Views: 20 Comments: 0

  This article uses a Freescale automotive model equipped with a DC motor and an analog circuit control servo to simulate a real car.The PcDuino development board on the car model is equipped with the Ubuntu operating system and is compatible with the Arduino extension to implement hardware control. The binocular camera connected to the development board can capture two channels of video and transmit it in real time over the network to provide support for binocular vision ranging. At the same time, it has developed a "Visual Aided Navigation System" Android-side application that can remotely view the live conditions around the smart car and control the car. I. Introduction The emergence of Arduino's open source hardware platform has greatly improved the efficiency of hardware development. Even software programmers without any hardware infrastructure can write simple code to control the hardware by using the open source library provided by Arduino, greatly reducing the use of Arduino platform. The difficulty of this design. Arduino also offers a variety of expansion boards. The Arduino ecosystem is very powerful. Many developers have developed peripheral expansion modules for Arduino, such as motor modules, infrared control modules, and touch modules. These modules greatly enhance the

Women in IT

Women in IT

Geek Viewpoint 12 months ago (08-27) Views: 25 Comments: 0

In ThoughtWorks, there are three pillars: continuous business(P1), software excellence(P2), social and economic justice(P3). Taking P3 as a mission of company makes ThoughtWorks unique in all companies.In this week, The founder of ThoughtWorks ,Roy ,has sold ThoughtWorks to APAX, a private equity investment group in Europe, After that the topic about whether P3 will be reserved in The missions of ThoughtWorks are responsible discussion among ThoughtWorkers. Social and economic justice is a serious topic in ThoughtWorks. In TWU, this topic will be talked about almost every week.   The social respect for information technology affects women's information technology, and the work of IT is considered to be very hard and programers work overtime. In China , girls are expected to find a job with little strength. We have done some research to know about the general situation about women in IT.The first problem is gender imbalance. We have found the proportion of women at entry levels in IT are very low, and it tends to worsen as women become more senior. A study shows that In USA, IT jobs held by women is only 25%. The second situation we have found there is common pay gap between men and women.In

The realm of life we ​​have walked through

The realm of life we ​​have walked through

years 1 years ago (2017-05-11) Views: 14 Comments: 0

When we were children, we felt that the world was innocent, everything was so beautiful, the world was like a garden, the bees were flying and dancing, and the sun was shining. When we grew older, we read some books, met more people, and saw more. The world is full of life and slowly discovers that there are many dark sides in the world. How can people be so bad? Well, this country is too dark and the society is too hopeless. We live in a layer of haze and live under the shadows of time. As time goes by, this haze feels more and more heavy. Later, I traveled many roads, met more things, experienced many chills in my life, convinced many sages of many sages, and understood many of my thoughts of evil people, and found that life was touched by bits and pieces. With warmth, I slowly discovered that the world is not as dark as I imagined. There are many helplessness among the mortal beings. There are many people who do not have superficial ignorance that I do not understand.Did I just be one-sided? No, I believe that understanding requires a process. Breaking into a butterfly,

Software is not only so easy to develop

Software is not only so easy to develop

Geek Viewpoint Software development 1 years ago (2017-03-09) Views: 8 Comments: 0

Many "aspiring" or programmers who love to program may be eager for full-stack engineers.The full stack is a kind of geek spirit. It has a strong interest in every programming language and every development platform of the software and is willing to work hard. Full stack engineers should have extensive contact with all aspects of the software. With deep insights into the software, this broad and deep insight will allow us to develop applications more efficiently. People around us often describe the full stack as "I'm familiar with C/C++, java; swift, Ruby, and can develop IOS, Android, Windows applications, Web front-end back-end.Used these frameworks:..." Full-stack periodic table from xebialabs Yes, before I contacted ThoughtWorks, my definition of the full stack is like this, what languages ​​are "will", at least written, and development experience on each platform.Under this definition, I will be proud to say that I am a full stack engineer.Even haha, in addition to the above, I also developed software on the hardware platform (Arduino), I used PS for their own Android client interface design, icon, drumstick over the icon font.Yeah, I'm proud to think about it. I suddenly found that I would have something like that.(Of course, rationally

Base64 support in React Native

Base64 support in React Native

Algorithm language 1 years ago (2017-03-08) Views: 14 Comments: 0

Most recent guests have used React Native's own blog client. When the client invokes the WordPress Rest API, some operations require HTTP authentication. In HTTP authentication, the "Authorization" field is added to the header of the HTTP request. The contents of the field when the user name: base64 encoding of the password Environmental dependence The Base64 codec algorithm is supported in the Nodejs buffer component. First we need to run the command line to install the buffer dependencies in the root directory of the React Native project: npm install buffer --save After installing, the app.json in the root directory of React Native The dependencies will automatically add the following one: Base64 support in React Native How to use Introduce coding decoding   Buffer project home page: For more ways to use buffers, refer to the Buffer home page: https://github.com/feross/buffer

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW