Android and androidsdk
Log on to the custom view. There are three types of view display: visible, invisible, and gone. Let's take a look at the log:
Gone
onVisibilityChangedconstruct 2 parametersonFinishInflateonVisibilityChangedonVisibilityChangedonRtlPropertiesChangedonRtlPropertiesChangedonAttachedToWindowonWindowVisibilityChangedonWindowFocusChanged
Invisible
onVisibilityChangedconstruct 2 parameters .onFinishInflateonVisibilityChangedonVisibilityChangedonRtlPropertiesChangedonRtlPropertiesC
argument is not added, only the local host is allowed to establish a connection. Note: This parameter I do not always seem to work in practice, see III
Iptables the process of implementing port forwarding
We have a computer, there are two network cards, eth0 network, IP for 1.2.3.4;eth1 even intranet, IP for 192.168.0.1. It is now necessary to forward the IP packets destined for the 81 port of address 1.2.3.4 to the 8180 port of IP address 192.168.0.2, The settings are as follows:
1. Iptable
Read a lot about using iptables to implement the port forwarding article, but I do not feel that the problem is very clear, now engage my own settings and use of the experience, to talk about its implementation process.
We have a computer, there are two network cards, eth0 network, IP for 1.2.3.4;eth1 even intranet, IP for 192.168.0.1. It is now necessary to forward the IP packets destined for the 81 port of address 1.2.3.4 to the 8180 port of IP address 192.168.0.2, The settings are as follows:
with the two files. 1, using the rear-facing camera in the portrait (vertical screen, home key in the bottom) mode recording video, its rotation value is 90. (Figure A: Rotation value is 90) 2, using the rear camera in landscaperigth (horizontal screen, home key on the right) mode when the video recorded, there is no rotation metadata, or the rotation value is 0. (Fig. II: No rotation value or rotation value of 0) the four angle values of the 0, 90, 180, and 270 of the rotation can be interpret
1080*1920 instead of 1920*1080. But don't be fooled by this illusion. The actual video size is 1920*1080. Finally, the IMG_1428.MOV video file with no Rotation value or 0 Rotation value shows that its size is 1920*1080, and everything is normal. You can use QuickTime to correctly identify the two video directions. (Fi
After the dm8168 custom board successfully starts the system, you need to test the 8168 codec function and run the examples in the development package. After the startup is complete, connect to the HDMI display. After the starting matrix GUI application, the HDMI has been output. In this case, the decode_display function is preferentially selected for testing.
[Email protected]:/usr/share/Ti-OMX #. /decode_display_a8host_debug.xv5t-I .. /data/videos/dm816x_1080p_demo.264-W 1920-H
horizontal coordinates, we know that their values are the same.
Then we will focus on the three vertical coordinates.
PageY: Get the vertical coordinates relative to the page origin (if my display resolution is 1920*1080, if I can drag the scroll bar, the pageY value may be much more than 1080)
ScreenY: Obtain the vertical coordinates of the display screen position (if my display resolution is 1920*
0 adaptation According to density : 120dpi(240px) ldpi, 160dpi (320px) mdpi, 240dpi (480px) hdpi, 320dpi (640px) xhdpi, 480dpi ( 960px) xxdpi, 640dpi (1280px) xxxhdpi ... Ps: Except ldpi, mdpi,hdpi know, xhdpi itself in front dip increment 80; 1 can not be adapted according to the resolution, according to the density (DPI) corresponding to the folder to fit, put in the corresponding directory, or it will appear small figure high resolution is not clear(High-resolution adaptation on the picture t
red part is indicated by me, Virtual1 device name, will use later, maximum 8192 x 8192 maximum support resolution;
1, in the terminal input: CVT 1920 1080, displayed as follows:
root@xxx:/home/xxx/desktop# CVT 1920 1080# 1920x1080 59.96 Hz (CVT 2.07m9) hsync:67.16 kHz; pclk:173.00 MHzModeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120-hsync
The performance of Nvidia's new flagship graphics GeForce GTX 1080 can be described by Super monsters, but the price of up to 599 dollars (about 4000 yuan) is not easy to accept even for professional gamers. Nvidia seems to have taken this into account and has also launched the GTX 1070 series midrange video card. GTX 1070 and GTX 1080 have the same structure, performance is comparable, and the price is red
TV system display formats. It can be divided into the following five types:
D1: 480i format (525i): 720 × 480 (horizontal 480 line, interlace scan), the same as NTSC analog TV definition, line frequency is 15.25 kHz, equivalent to what we call 4cif (720x576)
D2: 525 P format (720 p): 480 × 480 (horizontal 31.5 lines, row-by-row scan), which is much clearer than D1 line-by-row scan and has the same specifications as line-by-row scan for DVD. The line frequency is kHz.
D3: 1080i format (1125i): 1
= 0.75px
160
Mdpi (medium density)
320*480
1
1dp = 1px
240
Hdpi (high density)
480*800
1.5
1dp = 1.5px
320
Xhdpi (ultra-high density)
720*1280
2
1dp = 2px
480
480 (UHD)
1080*1800
3
1dp = 3px
Ii. What resolution is used for design?
In principle, different resolutions need to be designed separately. However, due to the various requirements of actual development c
desire for more Apple games. I haven't seen much information on how to develop games on the Mac, but I'm sure it does, so it's a reasonable choice.
Home Consoles: Game consoles (such as Playstation, N64, Dreamcast, etc.) the market is very large, the prospect is considerable. However, for a variety of reasons, it is not possible to develop non-commercial game consoles at present. Most of the games you develop for game consoles are bought by commercia
iPhone screen size and resolution of some small posture 20160303
IPhone devices now have multiple resolutions , as listed in the following table,
Equipment
Screen Size
Resolution (PT)
Reader
Resolution (PX)
after rendering
PPI (DPI)
IPhone 3GS
3.5 inch
480 x
@1x
480 x
Empty
163
IPhone 4/4s
3.5 inch
480 x
@2x
640 x 960
Empty
326
IPhone 5/5s/5c
4.0 inch
568 x
Linux iptables port ing settings
The iptables port ing settings are as follows:
We have a computer with two NICs. eth0 is connected to the Internet, and the ip address is 1.2.3.4. eth1 is connected to the Intranet, and the ip address is 192.168.0.1. now, you need to forward the IP packet sent to port 81 of the address 1.2.3.4 to port 8180 of the IP address 192.168.0.2. The settings are as follows:
1. iptables-t nat-a prerouting-d 1.2.3.4-p tcp-m tcp -- dport 81-j DNAT -- to-destination192.168.0.
CURL? Well, it's a long story.This thing is now one of the built-in command-line tools on the Apple machine, and it shows its charm.1)Apart, let's start from here!Java code
Curl http: //www.yahoo.com
After the carriage return, the www.yahoo.com HTML is splinters on the screen ~~~~~2)Well, if you want to save the reading page, do you want to do this?Java code
Curl http: //www.yahoo.com > Page.html
Sure, but don't be so troublesome!With Curl's built-in option, save the
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.