Apache log file settings under Linux system (generate a separate log file per day)Introduction:Apache default installation, log record only one file, after a long time, this file will become very large, the administrator to view the analysis log, the light to open the log will take a long time, and even affect the server running.
Here to teach you to set up Apache, let the server generate a separate log file every day, so the management, analysis log will be more convenient.
Vi/etc/httpd/conf/
the logo_linux_clut224.c logo_linux_clut224.o file.The Android system boot animation consists of two parts:Startup display of ANDROID text;Android light-emitting Animation.This article said that the boot animation is the first, the following start the text!1. Make the current screen pixel picture (emulator defaults to 320*480)Use PS to make a picture of 320*480, save the "Save as Web format", and then on t
Phpdoc this module under the Pear directory. If you don't find it, you can get a copy of the latest source code from Phpdoc CVs.
5.2 Running Phpdoc
Run Phpdoc need to do some preparation work, first of all to adjust your php.ini parameters,
Because Phpdoc runs longer than normal PHP applications, it is likely to exceed the maximum elapsed time that you define in php.ini (default is 30 seconds), according to the author's recommendation: piii,60 seconds, 120 seconds pii,240 seconds mmx200,480 s
Dip device independent pixels ( device independent pixels). Different device different display effect, this and device hardware, generally we support WVGA, HVGA and QVGA recommend using this, do not rely on pixels. Programs developed on Android will run on phones with different resolutions. The concept of dip is introduced in order to make the program look less different. For example, define a rectangle of ten X 10dip. On a screen with a resolution of 160dpi, such as G1, it is exactly 10 pixels.
size about 4-7 inches of layoutLayout_xlarge storage screen size about 7-10 inches of layout2. Icon Resources5 sets of picture resources need to be prepared according to the DPI value, drawable,drawalbe-ldpi,drawable-mdpi,drawable-hdpi,drawable-xhdpiAndroid has an automatic matching mechanism to select the corresponding layout and picture resourcesIv. about picture Making1. DesignDesign drawings need to design dimensions before, as far as possible to use the current popular screen size, such as
1. Dip:device independent pixels (device independent pixels). Different devices have different display effects, this is related to the device hardware, generally we support WVGA, HVGA and QVGA recommended use this, do not rely on pixels.It is important to note that dip is related to screen density and that the screen density is related to specific hardware and that the hardware settings are incorrect and may cause the dip to not display properly. On the screen density of 160 display, 1dip=1px, s
Android to get the screen longer than the width, referring to the online have a lot of code, but the results and the actual discrepancy, such as my phone is i9000, screen size is 480*800px, the result is 320*533 result is very unreliable, so I wrote a few lines of code, pro-Test Test parameters: Test environment: i9000 (Samsung) physical screen: 480*800pxdensity:1.5//Get Screen Density (Method 1) int Scree
) { var o = $.extend({ delay: 500, // delay between elements speed: 500, // animation speed ease: ‘swing‘ // other require easing plugin }, ops); var $el = this; for (var i=0, d=0, l=$el.length; iHow to use:$(elements).fadeAll({ delay: 300, speed: 300 });6. Limit text CountThe following script allows you to intercept text based on a given character length, and if the text is truncated, it will automatically be followed by an ellipsis.function excerpt(str, nwords) { var words = str.
Android screen adaptation
Android screen adaptation
Adaptation method a picture adaptation
Adaptation mode two Dimensxml file adaptation
Adaptation method three layout file adaptation
Adaptation mode four Java code adaptation
Adaptation Method five weights fit
fit : The current app shows the same effect on the same phone. Before the adaptation needs to first determine the current cell phone pixel density type
Use canvas today. when the drawBitmap method draws an image, it finds a problem. When it is made in version 2.1, It is center-centered. When it is used in version 2.2, it finds the same image, but it cannot be centered. After reading the code, I used the same image and thought about it. It is estimated that it has something to do with the version. So I tested it and found the same test code, in version 2.1, the screen length and width are 533*320, and the width is
initial scale, that is, the scale when the page is loaded for the first time.
Maximum-scale: the maximum scale that users can scale.
Minimum-scale: minimum scale that allows users to scale.
User-scalable: whether the user can manually Scale
Questions about viewport
Viewport is not only unique in ios, but also has viewport on android and winphone. They solve the same problem, that is, directly resetting the resolution between the physical size and the browser through dpi, regardless of the act
After my research during this period, I found that the size of the mobile phone screen does not matter whether the game can be fully displayed, because the resolution is different. For example, cocos2d-x for our developers to provide the resolution is 480*320, we can easily make the game full screen display, but the problem is the big point of the phone resolution?
Here is the resolution of some mobile phones I found online:
We can see that
A new window pops up when a user clicks on a linkJavaScript uses the Window object's open () method to create a new browser window, which has three parameters:window.open (Url,name,features)URL: New window address, if omitted, a blank window pops upName: Names of new windowsFeatures: The properties of the new window.Like what:function Open_url (URL) { window.open (URL, "New-window", "width:320,height:480"); } Use the "javascrip
, 0, 640, 480); }); }, false); Script> Head> Body> Div> Disclaimer: This div should be allowed to use webcam, after the webcam dynamically generated wide: 640 *480, of course, can be dynamically controlled! - Ideally these elements aren ' t created until it ' s confirmed that the client supports Video/camera, but for the sake of Illustrating the elements involved, they is created with markup (not JavaSc
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.