We can imagine that there are two different resolutions of mobile phones (320*480 and 480*800) to use some image resources, in order to make the image is not distorted, you need to specify different images for different resolutions of the phone, you need to create a different resource directory.3 Image resource directories were created in the Res directory: drawable, drawable-hdpi, and drawable-mdpi. Where drawable is the image resource directory for
When I went to college, I circulated such a super-good C program. I could use only three lines of code to calculate the number of π to 800 digits after the decimal point. I joked that it was written by aliens, it's really amazing. At that time, everyone did not understand this article. I read an article yesterday to explain this code. Today I tried it for a long time and finally understood it. So I wrote it down and communicated with you.This section
I. About layout adaptation1. Do not use absolute layout2, try to use match_parent instead of fill_parent. 3, can use the heavy place as far as possible to use the weight (android:layout_weight)4, if it is a solid color background, try to use the shape of android to Customize. 5. If you need to fit at a specific resolution, you can create a new layout-hxw.xml folder on the res directory . For example, to fit the 1080*1800 screen (Meizu MX3 with this resolution), create a new layout-1800x1080.xml
iclass= 1:num_class o_t_y (:,:, IClass) = Bsxfun (@plus, B_h + u (:, IClass), w_times_x); Neg_free_energ (iClass,:) = b_y (iClass) + SUM (log (1 + exp (o_t_y (:,:, IClass))); end;Note the dimensions of the two variables here:O_t_y dimension size is 800*716*30, representing the number of hidden element neurons, a number of samples, the total number of tags, like the hidden layer of the 30 800*
.
Method (1) declare a temporary final variable and assign the calculation result of some actions in the complex expression to it. (2) Replace the "operation result" part of the expression with the temporary variable. (If this part is repeated in the code, you can replace it one by one.) (3) Compile and test. (4) Repeat the above process to process other similar parts.
In this example, we start with a simple calculation:
// Double price () {// price = basePrice-quantity discount + shippingretu
1. First query free space
select tablespace_name,file_id,block_id,bytes,blocks from dba_free_space;
2. Add Oracle tablespace
First, query the data file name, size, and path information. The statement is as follows:
select tablespace_name,file_id,bytes,file_name from dba_data_files;
3. The statement for modifying the file size is as follows:
Alter database datafile the path of the data file to be added, that is, the path 'resize 800 m;
4. Create a
specific conditions, such as the smallest screen width. The media query in the style sheet appears as shown in the example in Listing 2.Listing 2. Media query Rules@media all and (min-width:800px) {...}According to the markup in Listing 2, all screens with a minimum horizontal screen width of 800 pixels (screen and print, etc.) should use the following CSS rules. The rule in the example where the ellipsis is located. For this media query:
@m
becomes more powerful through expressions, giving you more flexibility to use custom display rules for specific design scenarios.A media query contains a media type followed by one or more expressions that check for specific conditions, such as the smallest screen width. The media query in the style sheet appears as shown in the example in Listing 2.Listing 2. Media query Rules@media all and (min-width:800px) {...}According to the markup in Listing 2, all screens with a minimum horizontal scree
in the style sheet appears as shown in the example in Listing 2.Listing 2. Media query Rules@media all and (min-width:800px) {...}According to the markup in Listing 2, all screens with a minimum horizontal screen width of 800 pixels (screen and print, etc.) should use the following CSS rules. The rule in the example where the ellipsis is located. For this media query:
@media allIs the media type, that is, applies this CSS to all media types.
In Linux we commonly used firewall is iptables, but many friends do not know how to quickly iptables firewall to specify the port range, below I give you introduce.I need a port between 700 and 800 to have TCP access
The code is as follows
Copy Code
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 700-j ACCEPT-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 701-j ACCEPT-A rh-firewall-1-input-
, sending 881 requests to the 10.10.2.200:881 port
Iptables-t nat-a postrouting-s 10.10.0.0/16-d 10.10.2.200-p tcp-m tcp--dport 881-j SNAT--to-source; return A . B.B.D when the data source comes from the same subnet, changes its source address to 10.10.1.1, emits from eth0, and detects a.b.c.d from Ppp0 in the connection tracking table and emits this data from ppp0.
Of course, don't forget to add a statement that allows access to port 881. Iptables–a input–p tcp–dport 881–i ppp0–j ACCEPT
Can not
authentication session deadlock(1) View which session the blocked sid:800 session is blocked bySelect Sid,serial#,sql_id,status,blocking_session from V$sessionwhere sid=800;
Sid
serial#
sql_id
Status
Blocking_session
800
28777
2d0msz9tv9z5c
ACTIVE
347
From above, the ID of the SQL
I. About layout adaptation1. Do not use absolute layout2, try to use match_parent instead of fill_parent.3, can use the heavy place as far as possible to use the weight (android:layout_weight)4, if it is a solid color background, try to use the shape of android to Customize.5. If you need to fit at a specific resolution, you can create a new layout-hxw.xml folder on the res directory . For example, to fit the 1080*1800 screen (Meizu MX3 with this resolution), create a new layout-1800x1080.xml f
expression with the temporary variable. (If this part is repeated in the code, you can replace it one by one.) (3) Compile and test. (4) Repeat the above process to process other similar parts.
In this example, we start with a simple calculation:
// Double price () {// price = basePrice-quantity discount + shippingreturn _ quantity * _ itemPrice-Math. max (0, _ quantity-800) * _ itemPrice * 0.15 + Math. min (_ quantity * _ itemPrice * 0.25, 100 );}T
information is implemented in three ways
(1): implicit type conversion
Select *
From emp
Where hiredate> '01-August 1-81 ';
(2): Convert string to date .. convert display type
Select *
From emp
Where hiredate> to_date ('1970-01-010', 'yyyy-mm-dd hh24: mi: ss ');
(3): converts a date to a string of the date type:
Select *
From emp
Where to_char (hiredate, 'yyyy-mm-ddhh24: mi: ss')> '2017-01-01 02:03:04'
5. convert numbers and strings
A -- query the employee's salary: two decimal local currency c
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.