In the Vnx unify interface, changing the IP place is grayed out, how do I change the SP's public IP?
Solution:
Because in the unify environment, the SP's public IP through proxy ARP service to achieve, so can not directly from the Unisphere interface changes, the change of IP is only public IP is not the real IP SP, the change method is as follows:
Use serial port login CS0, username root password nasadmin rate 19200
First enter the command:
#/na
dip, Font unified use SP
For An example, differentiate between PX and dip:PX is pixel, if using PX, will use the actual pixel painting, than a bar, drawing a length of 240px horizontal line, in the 480-wide simulator is half the screen width, and in the 320-wide simulator to see is 2/3 screen wide.
And dip, is the screen of the high divided into 480 points, wide divided into 320 points. For example, you make a 160dip horizontal line, whether you ar
); }
Here, I'll post the code to get the height of the screen:
The code is as follows
Copy Code
Displaymetrics dm = new Displaymetrics ();
Getwindowmanager (). Getdefaultdisplay (). Getmetrics (DM);
int width = dm.widthpixels;
int height = dm.heightpixels;
We see here that the scale is the global variable defined in this class displaymetrics, in f
, TextView's font size is best to use SP to do units, and view the source of TextView know that Android by default using the SP as the font size units. Usage Recommendations:According to Google's recommendation, pixels uniformly use the dip, the font unified use SPIn order for the user interface to display properly on the current and future display types, we recommend that you always use the
Android the PX , Dip , SP the DifferenceWe often set the length of the container in the layout of the page, but it is annoying to use which unit is the length.There are several types of description size areas that are supported in Android:PX (pixels)--Pixels: Different devices display the same effect, generally we hvga represent 320x480 pixels, this use more.Dip (device independent pixels)--equipment independent pixels: This is related to device hardw
[Dip: device independent pixels (device independent pixel ).
Different devices have different display effects, which are related to the hardware of the device. We recommend that you use this function to support WVGA, HVGA, and QVGA without pixels.
Px: pixels (pixels). Different devices have the same display effect. Generally, we use HVGA to represent 320x480 pixels, which is usually used.
Pt: point, a standard unit of length, 1pt = 1/72 inch, used in the printing industry, very easy to use;
Recently, I've seen a lot of blog posts about conversion between DP-PX,PX-DP,SP-PX,PX-SP, and the way I used to do it was:1//Conversion dip for PX 2 public static int Convertdiporpx (context context, int dip) { 3 float scale = CONTEXT.GETRESOURC Es (). Getdisplaymetrics (). density; 4 return (int) (Dip*scale + 0.5f* (dip>=0?1:-1)); 5} 6 7//convert PX to dip 8 public static int Convertpxordip
²+ width pixels ²)/Screen diagonal inches dp:density-independent pixels, with 160PPI screen as standard, then 1dp=1px, DP and px conversion formula: dp*ppi/160 = px. such as 1DP x 320ppi/160 = 2px. sp:scale-independent pixels, which is the font unit for Android, is the standard 160PPI screen, when the font size is 100%, 1sp=1px. SP and px conversion Formula : sp*ppi/160 = px conclusion: px = dp*ppi/16
Dip: Device Independent pixels (device independent pixel ). different devices have different display effects, which are related to the hardware of the device. We recommend that you use this function to support WVGA, hvga, and qvga without pixels.
Px: pixels (pixels). Different devices have the same display effect. Generally, we use hvga to represent 320x480 pixels, which is usually used.
PT: point, a standard unit of length, 1pt = 1/72 inch, used in the printing industry, very easy to use;
From: http://shixin20051108.blog.163.com/blog/static/324833232010101234342417/
[Dip: Device Independent pixels (device independent pixel ). different devices have different display effects, which are related to the hardware of the device. We recommend that you use this function to support WVGA, hvga, and qvga without pixels.
Px: pixels (pixels). Different devices have the same display effect. Generally, we use hvga to represent 320x480 pixels, which is usually used.
PT: point, a standar
Android is a headache adaptation problem.---------The units in Android probably have these:Dip, SP, often used. Sometimes the PX is used.---------Two classes are introduced:Typedvalue: There are some units that convert related methods.Displaymetrics:Displaymetrics dm = new Displaymetrics (); Getwindowmanager (). Getdefaultdisplay (). Getmetrics (DM);Displaymetrics have these units to convert related fields:---------Their relationship:Dip = displaymetr
Dip:device independent pixels (device independent pixel). Different devices have different display effects, this is related to the device hardware, we generally support WVGA, HVGA and QVGA CWJ recommended Use this, do not rely on pixels.Px:pixels (Pixel). Different devices display the same effect, generally we hvga represent 320x480 pixels, this use more.Pt:point, is a standard length unit, 1pt=1/72 inches, used in the printing industry, is very simple and easy to use;sp:scaled pixels (zoom in p
above parameter is that the dip is equal to the PX value.From the above, the visual designer in the WVGA (480x800) mode design, the recommended optimal spacing is: 12px, 18px, 24px, 30px, 36px, 42px, 48px, because the dip, PX value in the HVGA\WVGA corresponding are even, Each element can be the most stringent alignment.Second, SP and pxVisual measurement results between SP and px under WVGA (800x480):
DP (DIP): device independent pixels (unit independent pixels). Different devices have different display effects, this is related to the device hardware, generally we support WVGA, HVGA and QVGA recommend this, do not rely on pixels.Px:pixels (pixels). Different devices show the same effect, generally we hvga represent 320x480 pixels, this use more.Pt:point, is a standard length unit, 1pt=1/72 inches, for the printing industry, very simple to use;sp:scaled pixels (enlarge pixels). Mainly used for
Debugging when developing a website with vs2008
Code (Select the method attached to the process for debugging), the following error is reported when executing an SQL query:
"/Vm" Application
Program Server error.
The execute permission on the object 'SP _ sdidebug' (Database 'master', owner 'dbo') is denied.
Note:An error occurred while executing the current Web request. Check the stack trace information for details about the error an
Dp (dip): device independent pixels (device independent pixel ). different devices have different display effects, which are related to the hardware of the device. We recommend that you use this function to support WVGA, HVGA, and QVGA without pixels.
Px: pixels (pixels). Different devices have the same display effect. Generally, we use HVGA to represent 320x480 pixels, which is usually used.
Pt: point, a standard unit of length, 1pt = 1/72 inch, used in the printing industry, very easy to use;
Yang is SS/SN is SP (medium)
--- Integrate the concept of social software into SP operation
Step 1: add your own mature IM/Outlook contact list:
By default, SMS chat is only performed for SP operations.Step 2: Apply for adding the SN yourself:
Enter the following information segments:
2. Engaged in industry
2. Educational Level
2. Location
2. Self-Introdu
DP (DIP): device independent pixels (unit independent pixels). Different devices have different display effects, this is related to the device hardware, generally we support WVGA, HVGA and QVGA recommend this, do not rely on pixels.Px:pixels (pixels). Different devices show the same effect, generally we hvga represent 320x480 pixels, this use more.Pt:point, is a standard length unit, 1pt=1/72 inches, for the printing industry, very simple to use;sp:scaled pixels (enlarge pixels). Mainly used for
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.