Software is not only so easy to develop

Software is not only so easy to develop

2 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

Emmet gracefully builds the Html skeleton

Emmet gracefully builds the Html skeleton

2 years ago (2016-12-05) Views: 0 Comments: 0

I once saw an academic who entered a strange code on PHP-Storm. When he pressed the Tab key, something magic happened. If HTML is also a programming language, it is privately thought that Html will be the most popular programming language we have come into contact with.Someone may not know what HTML (Hypertext Markup Language) is, but when he first opened the web browser to browse the web in his life, he and the HTML began to humble.... But when he didn't know it was very colorful. Behind the web page is the silent support of the HTML language; HTML+JS+CSS is the front-end three languages.If we compare web pages to humans, HTML gives people skeletons, CSS unknowns give flesh and blood, even clothes and clothing, and JS gives him the soul of sports. This article starts with HTML. The basic knowledge of HTML is beyond the scope of this article. You know, Google.Here, I mainly talk about how to quickly build up the skeleton of HTML. Thinking of HTML as a skeleton is not my whim. I'm just telling myself to write HTML pages with a sense of framework.It goes without saying that my previous HTML code was patchwork.Wherever it

Gradle using configuration files to control the version of build tools

Gradle using configuration files to control the version of build tools

2 years ago (2016-08-12) Views: 5 Comments: 0

Because Android studio and Android related SDKs and build tools have extremely fast update speeds.Modifications to relevant versions are sometimes more sensitive, especially in team projects where individuals modify the version of the relevant tool locally and accidentally submit it to a remote code repository. Others often have problems updating.The version field in the Android studio project file is very scattered. When the SDK environment changes, it is still more troublesome to modify.This article uses configuration files to centrally control build tool versions. The gradle.properties file defines version information and assigns values ​​in the project root directory   Reference gradle variable where version information is used Dependencies Build.gradle(project) Build.gradle(module)

Train Local Service System

Train Local Service System

3 years ago (2016-03-19) Views: 6 Comments: 0

Long trains, long journeys, and often more than 20 hours of train journeys make us tired.We have found that the closed train is like a mini world. We want to build an information-based "ecosystem" on the train.The traditional train ordering requires the crew to pull in the dining car to ask the passengers and often fail to return. When the train enters the tunnel, our mobile phone signal is completely blank, as if it were isolated from the world. Sometimes we and the fellows are not in the neighbors, and it is very troublesome to change seats. . .We can make a local area network information system based on the train environment: Put a router in each train of the train, bridge all the routers, establish a local area network, set up the server, and provide the following services: 1. Ordering meals; crew members order food delivery, delivery The location is passenger seat number two, where passengers can exchange seats and chat; Third, replace the current crew attendant; Fourth, the train arrives at the station; Fifth, the train station to push the local customs, took the opportunity to implant advertising; Six, resource sharing, Passengers visit the train server to watch

Baidu map API position offset calibration algorithm

Baidu map API position offset calibration algorithm

3 years ago (2016-02-17) Views: 32 Comments: 0

When starting to use the Baidu Maps API for development, you may encounter quite a strange thing. Using Baidu's latitude and longitude to locate on the map is quite inaccurate. This problem was encountered during the development of WeChat and Android.The first time using the Baidu map api to get the location and display it on the map is when the WeChat development, it is not knowing the specific reason but can't get an offset in the WeChat acquisition location to calibrate, although it can barely solve, but Not quite accurate.Later on at the beginning of Android also encountered this problem, only to find Baidu map API positioning offset is not an accidental problem. Baidu map API positioning offset reason The following is from the internet: First, the coordinate system First of all, we have to understand what coordinate systems developers can access? The first classification: 1, GPS, WGS-84, the original coordinate system.The coordinates recorded by an international standard GPS recorder are all GPS coordinates.Unfortunately, in China, GPS coordinates are not allowed on any of the map products. It is said to be confidential.The GPS coordinates are shown in the form of latitude and longitude in latitude and longitude: 2,

AndroidStudio code obfuscation and NDK prevention apk decompilation

AndroidStudio code obfuscation and NDK prevention apk decompilation

3 years ago (2016-01-09) Views: 4 Comments: 0

Code obfuscation What is code confusion Java is a cross-platform, interpreted language in which Java source code is compiled into an intermediate "bytecode" stored in a class file.Due to cross-platform requirements, Java bytecode includes a lot of source code information, such as variable names, method names, and access to variables and methods through these names. These symbols carry a lot of semantic information and can be easily decompiled to Java. Source code.To prevent this, we can use the Java obfuscator to confuse Java bytecode. Obfuscation is to reorganize and process the released program, so that the processed code and the pre-processing code accomplish the same function, and the obfuscated code is difficult to be decompiled. Even if the decompilation is successful, it is difficult to obtain the true semantics of the program. .The confusing program code still complies with the original file format and instruction set. The execution result is also the same as before, but the obfuscator changes the names of all the variables, functions, and classes in the code to short English letter codes. With the corresponding function names and program comments, it will be difficult to read even if it is decompiled.At the same time, confusion is

The first android studio+NDK program

The first android studio+NDK program

3 years ago (2016-01-08) Views: 2 Comments: 0

NDK (android native develop kits): android local development kits, you can put c/c++ -> compile into a binary file that can be executed under Linux. The java code can be used to execute binary files through jni. What is JNI: java local development interface, JNI is a protocol This protocol is used to communicate java code and external native code (c/c++). Through this protocol, java code can call external c/c++, code outside c The /c++ code can also call java code. Java can achieve the development of the upper application, but can not write the underlying driver, some android projects must deal with the underlying hardware, such as to accurately and quickly obtain the value of a sensor, then java can not be done, then what to do, through JNI Development, complete the underlying driver or worth it via c/c++, then pass the value back to the java layer.The same java layer can also pass data to the c/c++ layer, so that data interaction is done through the JNI. Why use NDK? In summary, it is mainly divided into the following situations: 1. Code protection, because the java layer code of apk is easily decompiled, and C/C++ library is relatively

Android implementation opens a specified link to call other applications

Android implementation opens a specified link to call other applications

3 years ago (2016-01-01) Views: 1 Comments: 0

Some websites have set a link on the page to jump to their official app, such as JD. Recently, I added this feature to Wang Baiyuan’s blog client to open links on web pages and call my client to open related articles. .The following is the implementation method: Android implementation opens a specified link to call other applications Add an intent-filter tag in the AndroidManifest.xml manifest file of the Activity that needs to jump to the specified link, and set the scheme, HOST, and other attributes as shown in the following example. And made a web page test successfully:  

Wechat Development Get Location and Baidu Maps Longitude and Latitude Analysis

Wechat Development Get Location and Baidu Maps Longitude and Latitude Analysis

3 years ago (2015-12-14) Views: 4 Comments: 0

In WeChat development, we often need to know the location of the user. We provide a way to access geographical locations in WeChat's JS-SDK. This does not require that your public number is an authentication account, and ordinary uncertified subscription numbers also have access to geographic locations. Wechat Development Get Location and Baidu Maps Longitude and Latitude Analysis According to the JSSDK steps in the WeChat public number developer documentation 1.1.1 Step 1: Bind the domain name 1.1.2 Step 2: Importing JS Files 1.1.3 Step 3: Inject privilege verification configuration through config interface 1.1.4 Step 4: Process successful authentication through the ready interface 1.1.5 Step 5: Process Failure Authentication Through the error Interface Wechat development location and Baidu map latitude and longitude analysis, we can get a lot of advanced features according to the official document, not repeat them here.Perhaps tricky is the message signing problem that comes later.Here is the official code:Called in PHP:Add js code in HTML:Call the js code to get latitude and longitude: Baidu map latitude and longitude analysis The WeChat JS-SDK only provides latitude and longitude, rather than a geographic location like “Xi'an, Shaanxi Province”. The following is a PHP function that converts latitude and

Android analog click button

Android analog click button

3 years ago (2015-10-02) Views: 1 Comments: 0

In the Android development process, the same operation is often performed in different environments. Of course, it is easy to think of the method is to extract the same operation in a function, only in the implementation of the same or similar operations Need to run the function then.If the function being executed is in a different class or activity (of course the activity is also a class), we only need to define the access level of the function as public static. The above believe that even the most basic developers know that it seems that the very guests have nothing to say.When calling a public static method b of another class B in a class A, if method b uses other variables of class B, such as c, d, f, etc., when modifying method b is a public static class B The variables c, d, and f are also changed to static variables, because static methods do not allow non-static variables to be called. This change is often triggered by the whole body. Sometimes we happen to encounter this situation. The operation performed in class B is the operation performed by clicking one of the buttons of the activity.For

登录

Forget password?

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

切换登录

注册

TW