netdisk http://u.115.com/file/e6ksrqp7 Data Bank http://dl.dbank.com/c0xoztg42h Unzip, install, register, and open. Click Add video to add a video. For example: Click settings to set the output video and manually change the output resolution to 320*480. For example: Click Edit to cut the video. The key part is that the videos made by many friends are not distorted, but the pictures are faulty, The problem lies here. Follow th
The screen length obtained in android is longer than the width. According to the code on the Internet, the result is inconsistent with the actual value. For example, if my mobile phone is i9000 and the screen size is 480 * 800px, the result is 320*533.The results were unreliable, so I wrote a few lines of code to test it.Test parameters:Test environment: i9000 (Samsung)Physical screen: 480 * PXDensity: 1.5
Test code:
Copy codeThe Code is as follows: /
Php makes good use of regular expressions to process the Value nbsp, in the end, I will change the image resolution to 320*480, and the original image contains pixel information. Nbsp; e. g.: clear cabin (320*480) Wallpaper nbsp; in the end, php makes good use of regular expressions to process the values required in strings.
Today, when collecting images from the Momo website, the resolution of the imag
can get Android to support the concept of percent.3, the introduction of the percentage of 1, introducedIn fact, our solution is to have a folder for each of your resumes in the project for the resolution of the phone screen you need to adapt.Such as:Then we are based on a benchmark, which means:
For example, the resolution of 480*320 is the benchmark
Width is 320, the width of any
.
In actual Layout design, the Unit should be dp, which can avoid the impact caused by different screen dpi. The most typical example is Apple's retina screen.Xlarge: at least 960dp x 720dp large: at least 640dp x 480dp normal: at least 470dp x 320dp small: at least 1_dp x 320dp
Px = dp * (dpi/160)
For example, for a 1.5 DPI screen, 1dp is equivalent to pixels.
Px, dpi, dp, dip, sp
Measurement Unit
Explanation
Px (pixel)
Pixel unit
Dpi (dots per inch pixe
ASP File: code.asp
Data file: Body. Fix, Head.fix
Usage:
Copy Code code as follows:
Response.Buffer = True
Numcode
Function Numcode ()
Response.Expires =-1
Response.AddHeader "Pragma", "No-cache"
Response.AddHeader "Cache-ctrol", "No-cache"
Dim znum,i,j
Dim ados,ados1
Randomize Timer
Generate a random four-digit number:
Znum = CInt (8999*rnd+1000)
Pass to session
Session ("GetCode") = Znum
The For loop is an array of random numbers placed in a subscript 3 to facilitat
Android to get the screen longer than wide, reference to the internet there are a lot of code, but the results are not practical, such as my phone is i9000, screen size is 480*800px, the result is 320*533The result is very unreliable, so I wrote a few lines of code, a close testTest parameters:Test environment: i9000 (Samsung)Physical screen: 480*800pxdensity:1.5Test Code :
Copy Code code as follows:
Get screen density (Method 1)
int scre
Xcode:
Cmd+b ——— Compilation Program
Cmd+r ——— Running the program
cmd+. ——— stop Running the program
cmd+ up ARROW ——— file header
Cmd+ down arrow ——— file tail cmd+ left mouse button ——— point in
cmd+/——— Comment Code
Cmd+a ——— Select All
Cmd+n ——— New File
Cmd+shift+n ——— New Xcode Project
Ctrl+i ——— Code formatting (auto indent)
ctrl+cmd+ ——— Switch header files and implementation files
cmd+[——— Left Indent
Cmd+] ——— Right Indent
Simulator:
Shift+cmd+h ——— back to the desktop
CMD+1/2
8 Yuan seconds computer
From April 2 to 4th, nine Windows 8 computers opened in the Beijing-East network seconds to kill, as long as you click Fast enough, you can 8 yuan to grab a Windows 8 computer.
Beijing East 8 Yuan second computer activity URL: http://sale.jd.com/act/TLCqIgbe1BK.html
8 Yuan SEC computer Activity rules:
The specific time and product model are as follows:
April 2
• 11 points – 14 points: Lenovo Miix 2 8-32GB (32 units
install
After installation, use the following command to start Apache/usr/local/apache2/bin/apachectl start
Installing PHP
Tar zxvf php-5.2.6.tar.gz
CD php-5-2.6
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs--with-mysql=/usr/local/mysql-- With-config-file-path=/usr/local/php/etc--with-jpeg-dir=/usr/local/jpeg6/--with-png-dir=/usr/local/libpng/-- with-gd=/usr/local/gd2/--with-freetype-dir=/usr/local/freetype/--enable-trace-vars--with-zlib-dir=/usr/local/ zlib2/
Make
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 ScreenWidth = Getwindowmanager (). Getdefaultdispl
suitability on generailized size/density.In the design of the actual layout, should be used in the unit is DP, so you can avoid the screen due to different dpi, the most typical example is the retina screen of Apple.
Xlarge:at least 960DP x 720DP
Large:at least 640DP x 480DP
Normal:at least 470DP x 320DP
Small:at least 426DP x 320DP
PX = DP * (dpi/160)
For example, a 240dpi screen, 1DP is equivalent to 1.5 pixels
Px,dpi,dp,dip,sp
Un
: 1x16=16px=1rem; the browser defaults to 16px may cause the REM computation of trouble and many decimal places, so we can also do this way to initialize the root element:html{ font-size=62.5%//This is 10/16x100%=62.5% is the default 10px font size}After this initialization, we are going to have a lot less hassle when it comes to REM computing.2. Setting viewport mates for zoomingUsually in the writing of the mobile page, we will set viewport to ensure that the page scaling is not a problem, t
Php makes good use of regular expressions to process the Value nbsp, in the end, I will change the image resolution to 320*480, and the original image contains pixel information. Nbsp; for example, clear cabin (320 php uses regular expressions to process the values required in strings
Today, when collecting images from the Momo website, the resolution of the images will be changed to
VBR Encoding(Strongly recommended)Alt preset extreme (average 256 kbps) we sometimes see online ". LAME-APX." In this form, we can also include this tag in the file name. This is a parameter recommended by lame developers. The optimal balance between sound quality and file size is recommended.Input value:-- Alt-preset extreme % S % d
Alt preset standard (average 192 Kbps) we sometimes see online ". LAME-APS." In this form, we can also include this tag in the file name.Input value:-- Alt-preset s
. The Nth message is specified as N. In POP3 commands and responses, the message number and length are in decimal format.
The following is a summary of the above three commands:
Command Format
Parameters
Restrictions
Response
Example
User Name
Specifies the mailbox string, which is critical to the server
Only when the user and PASS commands fail or are in the "OK" status
+ OK: valid email address;-Err: invalid email address
C: User mroseS: + OK mrose i
Today I have made a good research on the speech compression encoding in Android, and I have some tips:
First of all on the collection of sound source format is the PCM-16bit format, What Is PCM format, you can see the following article:
Http://blog.csdn.net/tkboy/archive/2009/12/19/5038947.aspx
PCM is a non-compressed sound source. PCM signals are digital signals composed of [1], [0], and other symbols. This format is used by Android devices, we also perform compression encoding for this form
displaying the content on the screen. The Display memory is actually one or several large-scale integrated circuits installed on the display card. Its capacity is 1 m, 2 m, 4 m, 8 m, etc, in dos, the memory that we can access is only 1 MB (this is the limitation of DoS). The address ranges from H to fffffh. The memory is divided into different blocks based on the purpose, the address allocated by the system to the graphic buffer (Display memory) is between a0000h and bffffh, And the size is KB.
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.