Problems encountered during 2015 work: 1-10

Source: Internet
Author: User

1.gps degree conversion into degrees seconds

Degrees (DDD): E 108.90593 degrees N 34.2163 degrees

How to Degree (DDD):: 108.90593 degrees conversion into degrees seconds (DMS) Longitude e 108 degrees 54 minutes 22.2 seconds?

The conversion method is to take 108.90593 integer digits unchanged 108 (degrees), with 0.90593*60=54.3558, take the integer digit 54 (min), 0.3558*60=21.348 and then take the integer digit 21 (seconds), it is converted to 108 degrees 54 minutes 21 seconds.

The same will be the degree of seconds (DMS): East longitude e 108 degrees 54 minutes 22.2 seconds conversion into degrees (DDD) method is as follows: 108 degrees 54 minutes 22.2 seconds =108+ (54/60) + (22.2/3600) = 108.90616 degrees

Source: http://blog.csdn.net/b_h_l/article/details/8657040

2.c# invoking a C + + encapsulated DLL

http://blog.csdn.net/waldmer/article/details/45844107

3.openfireConnectionSQL ServerDatabasehttp://www.cnblogs.com/jying/p/3644992.html
4. Implement a socket library for Windows/linux calls
http://blog.csdn.net/waldmer/article/details/46426081
5.html Introduction of JS Code

6.CustomAndroidmobile phone with the boot animation

Premise: The phone needs root, the tool used is, a key root master.

First, install the Root Explorer software re335.apk

To operate on the phone:

To set the permissions of/system/meida to writable

Rename or delete the original boot animation bootanimation.zip

Second, cmd command line operation:

Make your own desired boot animation file, packaged as Bootanimation.zip

To operate on a computer:

ADB devices

ADB push Bootanimation.zip/system/media

http://blog.csdn.net/waldmer/article/details/46813015

7. Settings page content cannot be copied

Add the following codeto <body> :<body oncontextmenu= "return false" onselectstart= "return false" >

8.Excel Table formula batch calculation 

Want to use a fixed number, minus a column of numbers, to get the final result.

after entering the formula in the Fx position, enter to calculate the 98 result.

Then stop the mouse in the appropriate location and pull down to complete all the operations.


9.javaimplementation of the summation algorithm

The C-language implementation of the checksum is a very easy thing to do, but in Java the range represented by a byte is ; -128~~127 .

In some calculations, it caused some inconvenience. However, the bits stored in memory should be the same.

public class Checksum{public static int Checksumfunc (byte[] Array, int len) {int sum = 0;for (int i=0; i < array.length; i++) {sum + = Array[i];} Sum &= 0xff;return sum;} public static void Main (string[] args) {byte[] Checkbuf = {0x39, 0x62, 0x38, 0x61, 0x39, 0x62, 0x37, 0x63, 0x39, 0x62};int ret = Checksumfunc (checkbuf, checkbuf.length); SYSTEM.OUT.PRINTLN (ret);}}

construction and use of 10.stm32 project

BSP file, as the most basic driver, is configured according to datasheet . --->usart.c

Because there is no concept of stacks, the functions pass parameters between them, taking the form of global variables.


Copyright NOTICE: Welcome reprint, Hope in your reprint at the same time, add the original address, thank you for your cooperation!

Problems encountered during 2015 work: 1-10

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.