In the writing of adaptive Web pages, we need to have several ways to display the page, we can use CSS to achieve this functionUsing the media query provided by CSS, we can use the corresponding CSS style according to the screen resolution@media screen and (max-width:1000px) {/* This condition represents a maximum width of 1000, that is, if the width is less than 1000 execute the following CSS code */#idming { color: #f00;}. leiming{ color: #f66;}}CSS media query, CSS display
A company customer site needs to WordPress program different page sidebar use different call content, in fact, we can also use widget logic plug-in to define a floating module display range, but not free definition. So I'm going to embed the call with a separate template file.
First, copy the separate sidebar sidebar2.php
We'll define the sidebar as a sidebar2.php file, which we need to use later.
Second
I. Application scenario descriptionTo meet the needs of development colleagues, Nginx in the development environment can use different root paths based on different domain names.For example, if the domain name is linuxidc4.linuxidc.com, the root path is/data/public/linuxidc4.Linuxidc5.linuxidc.com, the root path is/data/public/linuxidc5.Linuxidc6.linuxidc.com, that is, the root path is/data/public/linuxidc6
Help: WordPress In an article at the same time belong to two categories, you can make this article in different categories to call different templates?
If the article belongs to both category A and category B, there is a list of articles in the foreground category A and category B two pages, can be implemented from the Category A list click on the article to call a template, from the B list click the articl
I saw in the book yesterday that the where condition sequence is different for SQL statement optimization, and the performance is different. Is this recommended for Oracle11G? Method 1 is better than method 2?
Method 1:
Copy codeThe Code is as follows: select .*
From students s,
Class c
Where
S. id = c. id
S. id = 'xxxxxxxx'
Method 2:Copy codeThe Code is as follows: select .*From students s,Class cWhereS. i
1.3 Configuration files (more environments can be built multiple):Application.properties (public config file)Application-dev.properties (development environment)Application-prod.properties (production environment)2. Set application.properties, such as using the development environment with the following code, deployment as long as you change the dev to prodSpring.profiles.active=devThe environment public configuration is written in Application.properties.Module-specific configuration is written
Public "-//mybatis.org//dtd Mapper 3.0//en""Http://mybatis.org/dtd/mybatis-3-mapper.dtd" >SELECT * from "standard" WHERE (Std_num like CONCAT ('% ', #{name}, '% ')or zhname like CONCAT ('% ', #{name}, '% '))and bdelete= ' 0 'GROUP by Std_num ASC LIMIT #{pageno},3SELECT Count (*) from "standard" WHERE std_num like CONCAT ('% ', #{name}, '% ')or zhname like CONCAT ('% ', #{name}, '% ')Update ' standard ' set bdelete=1 where ID in#{id}**mapper.xml configuration files (
Tag: Address Web server port Create DDE Environment Multi-site pre profilepache是一款Web服务器软件,有多种产品,可以支持SSL技术,支持多个虚拟主机。它快速、可靠并且可通过简单的API扩充,将Perl/Python等解释器编译到服务器中。实验环境一台linux6.5,ip为192.168.10.20.,DNS服务器ip地址为192.168.10.20;一、创建虚拟目录配置1、进入主配置文件设置2、写入网页内容3、去访问网页4、创建虚拟目录5、使用http://192.168.10.20/test/进行访问二、搭建虚拟主机同端口同Ip不同域名1、创建文件写入内容2、创建网站目录写入内容3、安装DNS并设置主配置文件4、区域数据文件设置5、进入区域数据配置相关目录6、重启服务7、指出DNS服务器地址8、登陆网页进行验证三、搭建同ip同域名不同端口1、复制模板,修改端口号2、修改Apache主配置文件3、重启服务4、验证Apache Service Set up virtual directory and mu
')); if (!empty (Session (' token ')) !empty ($str [' acctdetails '] [' token ']) {//user not to if ($newtoken [' user_id ']!== $
newtoken[' user_id '] {session (' token ', null);Session (' user_id ', null);
Header (' Location:/login/login ');
return false; //token does not $newtoken [' time ']!== $oldtoken [' time ']} {session (' token ', null); session (' user_id ', null); Header ('
Location:/login/login ');
return false;
//timeout cannot be done in this, because the value of the session is u
We may have this kind of wonderful demand ...If the same host, the need for different domain name output different server headers, how to achieve it?
We need to use the Ngx_headers_more module.
Copy Code code as follows:
Location/{
if ($host = ' segmentfault.com ') {
More_set_headers ' Server:nginx ';
}
if ($host = ' 0x01.segmentfault.com ') {
More_set_headers ' server:nginx_improv
JS function, can be placed in a separate JS file can also be placed in the current page
Copy Code code as follows:
function Getcss ()
{
Datetoday = new Date ();
Timenow=datetoday.gettime ();
Datetoday.settime (TimeNow);
Thehour = Datetoday.gethours ();
if (thehourdisplay = "1.css";
else if (thehour>12)
The name of the style sheet, or you can add the path
display = "1.css";
Else
display = "2.css";
(... Want to add more can be ... )
var css = ' css+= ' link rel= ' styl
Before using the logging module is just the internet casually searched a post, looked at the approximate method directly used. The problem now is that when you add a handler to a Logger object, you use Streamhandler in the configuration file, and you specify the output to stdout (the default is stderr). And since only one logger and one handler are used in the program, all log levels (INFO,DEBUG,ERROR, etc.) are redirected to a place that is standard output. But for now, the result is that log i
analysis and examples of different application scenarios
TensorFlow read pre-training model is a common operation in model training, and the typical application scenarios include:
1) A restart is required after the training interruption, the previous checkpoint (including. data. Meta. Index checkpoint these four files) are saved, then the model is reloaded and the training or prediction continues from the last breakpoint. The implementation method is
Note point: vs to set HTTP Profile:none->http
Implementation requirements: The same portal IP is forwarded to different servers based on different port implementations
Implementation principle: Set the rules on VS, use rules to forward packet implementations
Rule example:
When client_accepted {
if {[Tcp::local_port] equals ' 8089 '} {
Pool chicago_pool_8089
} else {
Pool chicago_pool_80
}
}
The a
Resolution | display
Generally we are in the 800*600 resolution to do the page, if the page set the center alignment,That at different resolutions, such as 1024*768,The position of the layer will be very big deviation,This provides an easy way to
Reference Code One:Add the following script in
Code Copy Boxfunction Pageinit () {var xxx= (window.screen.width-800)/2+565; Layer1.style.left=xxx;}[Ctrl + a All select and copy]
Then add in This is through t
SEO optimization, although all the same, but different types of sites, need to carry out different SEO operations to achieve different optimization purposes!in the daily work, SEO optimizer will often face the type of site, do not subdivide the words, can be divided into 3 kinds:1: A human blog2: Corporate-type official website3: Commercialization Forumthese 3
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.