Enhance user experience and select the right mouse cursor.

User experience can be said to be the top priority of the front-end, product comfort is an important measure of user experience, it can be said that the quality of user experience directly affects the site or application development prospects, (state-owned app added). This article refers to the use of mouse cursor status indication in user experience. Actual experience case please move.Here PCWe usually use different mouse cursors to represent the corresponding operation instructions in different scenarios. For example, where we can click, we make the mouse into a small hand, where we can dra...

Remove FBX from default resource reference

Sometimes when you import fbx, you don’t need to create material, you set importMaterials to false, and if you hit AssetBundle on fbx, you’ll get Default-Material and Stander 1Getting into the bag, resulting in resource redundancy. Solution: add the following code to AssetPostprocessor: public Material OnAssignMaterialModel(Material m,Renderer r) { var importer = assetImporter as ModelImporter; if(importer != null && importer.importMaterials == false) { return CommonMaterial; //A material resource stored locally}return null; ...

Slice and array of go

This time we will mainly discuss the array (array) type and slice (slice) type of Go language. They sometimes confuse beginners. They all belong to the type of collection class, and their values can also be used to store values (or elements) of a certain type.   The most important difference, however, is that the values of the array type (hereinafter referred to as arrays) are fixed in length, and the values of the slice type (hereinafter referred to as slices) are variable in length.   The length of an array must be given when it is declared, and it will not change after that. It can be sa...

SVN – simple user manual

background Two new programmers were added to support the development of a branch because of the project’s need, so you need to create a branch in the original SVN and assign users and permissions to the new commer.         0. Get ready To use SVN on the Window system, we’d better install the 2 software of SVN separately: ServerEnd: VisualSVN Manager   ClientEnd: TortoiseSVN     1. Create new users Here, we operate on SVN’s server machine mountain with the tool Visual SVN Manager. The operation is very simple, as shown in the following figure: After entering the basi...

C# FileDialog file selection

1、SaveFileDialog OpenFileDialog openfile = new OpenFileDialog(); //Initial display file directory//openfile.InitialDirectory = @""; openfile.Title = "Please select the file to send."; //Filter file type openfile.Filter = "Text file |*.txt| executable file |*.exe|STOCK|STOCK.txt| all file types * * *."; if (DialogResult.OK == openfile.ShowDialog()) { //Assign the full path of the selected file to the text box. textBox1.Text = openfile.FileName; } 2、SaveF...

14, Linux shared memory shm_open opens shared memory file.

shm_openBrief introduction of function shm_open:To create a memory file, the path requires something like / filename, starting with / and then the filename, with no /. shm_openThe prototype and header files of the function are as follows: 1 NAME 2 shm_open, shm_unlink - create/open or unlink POSIX shared memory objects 3 4 SYNOPSIS 5 #include <sys/mman.h> 6 #include <sys/stat.h> /* For mode constants */ 7 #include <fcntl.h> /* For O_* constants */ 8 9 int shm_open(const char *name, int oflag, mode_t mode); 10 ...

Snowflake algorithm ID generation

Snowflake algorithm ID generation”. http://blog.csdn.net/w200221626/article/details/52064976 There are no rules for ID generated by UUID or GUID. SnowflakeThe algorithm is implemented by Twitter engineers in order to achieve incremental but not repeated ID. The top 41 are said to be able to support 1023 machines by 2088, the top 10 can support 1023 machines, and the last 12-bit serial number can generate 4095 self-increasing IDs in a millisecond. There are many ways of primary keys in data: database increment and program generation. Snowflake algorithm is commonly used in program gene...