Emmet gracefully builds the Html skeleton

Emmet gracefully builds the Html skeleton

I once saw an academic who entered a strange code on PHP-Storm. When he pressed the Tab key, something magic happened. If HTML is also a programming language, it is privately thought that Html will be the most popular programming language we have come into contact with.Someone may not know what HTML (Hypertext Markup Language) is, but when he first opened the web browser to browse the web in his life, he and the HTML began to humble.... But when he didn't know it was very colorful. Behind the web page is the silent support of the HTML language; HTML+JS+CSS is the front-end three languages.If we compare web pages to humans, HTML gives people skeletons, CSS unknowns give flesh and blood, even clothes and clothing, and JS gives him the soul of sports. This article starts with HTML. The basic knowledge of HTML is beyond the scope of this article. You know, Google.Here, I mainly talk about how to quickly build up the skeleton of HTML. Thinking of HTML as a skeleton is not my whim. I'm just telling myself to write HTML pages with a sense of framework.It goes without saying that my previous HTML code was patchwork.Wherever it

Baidu map API position offset calibration algorithm

Baidu map API position offset calibration algorithm

Algorithm language Software development 3 years ago (2016-02-17) Views: 32 Comments: 0

When starting to use the Baidu Maps API for development, you may encounter quite a strange thing. Using Baidu's latitude and longitude to locate on the map is quite inaccurate. This problem was encountered during the development of WeChat and Android.The first time using the Baidu map api to get the location and display it on the map is when the WeChat development, it is not knowing the specific reason but can't get an offset in the WeChat acquisition location to calibrate, although it can barely solve, but Not quite accurate.Later on at the beginning of Android also encountered this problem, only to find Baidu map API positioning offset is not an accidental problem. Baidu map API positioning offset reason The following is from the internet: First, the coordinate system First of all, we have to understand what coordinate systems developers can access? The first classification: 1, GPS, WGS-84, the original coordinate system.The coordinates recorded by an international standard GPS recorder are all GPS coordinates.Unfortunately, in China, GPS coordinates are not allowed on any of the map products. It is said to be confidential.The GPS coordinates are shown in the form of latitude and longitude in latitude and longitude: 2,

Traffic Keywords Link Pages Boost Baidu Weights

Traffic Keywords Link Pages Boost Baidu Weights

Technical application 3 years ago (2015-12-20) Views: 3 Comments: 0

Baidu search rankings often change according to the size of the traffic that the page search enters. If many people will enter the same page for a keyword, Baidu will think that this page can solve this problem well, so that this page will be searched for in this keyword. It is in front of other pages.In the backstage of Baidu webmaster platform, we can know what keywords are searched by Baidu and whether they have entered our webpage.We can do this by making a page that contains all the URLs for those keywords. After visiting, we can access our website to improve our website ranking. Traffic Keywords Link Pages Boost Baidu Weights The following code is a traffic keyword link page I wrote, which is all my Baidu keywords.We occasionally click to improve the corresponding keyword rankings.The usage method is to export Baidu traffic keywords in a keyword.txt file with one keyword per line. The file path is the same as the following PHP code file.  

A cool HTML5 "Closed Protection" 404 page

A cool HTML5 "Closed Protection" 404 page

Algorithm language 3 years ago (2015-12-18) Views: 0 Comments: 0

Website's overnight keyword dropped to 0 Wang Baiyuan’s blog was suspected to be lost by Baidu’s search K. Since the last month of the 17th, the number of keywords has been decreasing. Until this month, the number of keywords has dropped to 0. Yesterday it even passed the keywords “Wang Baiyuan’s blog” and “Wang Baiyuan”. The website is not in the top 5 or even can't search my website. The reason for the preliminary judgment may be that www.wangbaiyuan.cn that I analyzed last month went to this website. I did not implement 301 redirect to wangbaiyuan.cn because of negligence, leading Baidu to think that My site is mirrored.Before I found the exact reason, I decided to use the Baidu webmaster platform to take a closed-end protection to prevent unknown reasons from further impact on the website SEO.     During the closed protection application period, Baidu requested that the protected website be out of reach: the full station HTTP status code is set to 404, or the server will be shut down.The method of not analyzing the domain name cannot pass the closed-end protection audit.Therefore, if the virtual host user cannot cut off the power of the server, the whole

Phinx Database Query – Phinx Tutorial (3)

Phinx Database Query – Phinx Tutorial (3)

Technical application 3 years ago (2015-08-28) Views: 2 Comments: 0

Execute the query Phinx can perform execute() and query() methods for database queries. The execute() method returns the number of rows affected by the database when executing the database query, and the query() method returns an array of results.   Note: These command runs are based on the use of the PHP Data Objects (PDO) extension, which defines a lightweight, consistent interface to access the database in PHP.Always make sure that your query is in the same execute() command as before using pdo.This is especially important when using delimiters in inserted stored procedures or triggers that do not support delimiters. Get line There are two ways in which phinx can get rows: the fetchRow() method will get a single row, and the fetchAll() method will return multiple rows.Both of these methods accept native SQL statements as their only parameters.   Processing data sheet Table object Table objects are one of the most useful APIs provided by Phinx.It allows you to easily manipulate database tables using PHP code.You can use the table() method to instantiate a table object to implement database migration.Then you can use the table object to provide methods to manipulate this table: Create a table Creating a table using

[Translation] build migration -up,down,change method -Phinx tutorial (2)

[Translation] build migration -up,down,change method -Phinx tutorial (2)

Technical application 3 years ago (2015-08-26) Views: 0 Comments: 0

This article has been translated by the ultimate guest since: http://phinx.readthedocs.org, bad place, please correct me; series of articles please visit Wang Baiyuan's blog Phinx tab or use geek search: Phinx Get all article directories To convert databases: To restore or modify data, Phinx is implemented through a series of Migrations files.Each Migrations file is actually a PHP class. The best way to trap a migration is through the API provided by Phinx. Of course, running native SQL statements is also possible. New Phinx Migration Create a new Phinx Migration migration.We want to run Phinx's create command in the project folder:After running the above command, the migration file (this folder is the migrations folder in which you installed phinx) will generate a PHP file named YYYYMMDDHHMMSS_my_new_migration.php with the time stamp of the current 14 characters in the first 14 characters.Phinx automatically creates a framework migration file with two empty and a commented out methods: AbstractMigration class All Phinx Migration migration classes inherit from the AbstractMigration class, which provides the necessary support to create database migrations.Database migration can create new tables, insert rows, add indexes, and modify columns. Up() method When you migrate up the database (that is, make new changes

Introduction and Installation of Phinx – Phinx Tutorial (1)

Introduction and Installation of Phinx – Phinx Tutorial (1)

Technical application 3 years ago (2015-08-24) Views: 2 Comments: 0

This article has been translated by the ultimate guest since: http://phinx.readthedocs.org, bad place, please correct me; series of articles please visit Wang Baiyuan's blog Phinx tab or use geek search: Phinx Get all article directories   Introduce A trained developer is good at using the SCM system (Software configuration management: software configuration management) to version control their program code; then why do they not use the same way to version control the database? Phinx allows developers to A clear, concise way to modify and manipulate the database, relying on Phinx provides a powerful API, you do not need to manually write SQL, but use PHP code to create code migration.Developers can then use their favorite SCM for code migration.This allows Phinx code migration to be ported between different database systems.Phinx keeps track of code migrations that have already been done so that you can worry less about the state of the database and focus on developing better software. aims The purpose of developing Phinx is as follows: Easy porting between common database vendors. Independent of the PHP development framework. The installation process is simple. There is a set of easy-to-use command line operations. Integrate with other PHP tools (Phing, PHPUnit)

[transfer]java to achieve Http-post submit data to the server

[transfer]java to achieve Http-post submit data to the server

Algorithm language 3 years ago (2015-06-08) Views: 8 Comments: 0

In conducting Android learning, the extremely guest needs to implement the function of login authentication, and it is required to implement http to submit data by post.The following is reproduced from the CSDN article content Program components: 1. The client uses the eclipse HttpUtils.java standard java interface to implement HTTP post data submission. (submit username and password in post) Focus point: 1. Public static String sendPostMessage(Map<String,String> params , String encode) Purpose: The client sends the data params to the server, finally gets the input stream returned from the server, and finally converts the input stream into a string.Note how to use the standard java interface to implement the http post request, successfully connect to the server, and get the data returned from the server-side response. 2. Public String String changInputStream(InputStream inputStream , String encode) Purpose: To convert an input stream into a string in the specified encoding.(In this case, the input stream InputStream returned from the server is converted to a string String encoding method encoding method) 3. Instantiation methods and iterative methods of Map<String ,String> Map's instantiation method: The iterative method of Map:   Program ideas: 1. The client establishes the http link httpURLConnection and uses OutputStream to send

Malicious mirroring by .ytlqpo.com

Malicious mirroring by .ytlqpo.com

computer technology Technical application 3 years ago (2015-05-19) Views: 3 Comments: 0

The day before yesterday, when Baidu searched Wang Baiyuan’s blog site keywords, he suddenly found a title, profile, and my exact site on the first page of Baidu’s results. Do not know that this site is not a plagiarism in the traditional sense. The chain of fraud is not only copying all of my website, but also replacing all the links in the website with the mirroring website address. I knew this: My website was maliciously mirrored by others. Unlike ordinary mirrors, this mirroring site is not just a website for me but is automatically mirrored.The main performance is: 1 My website: http://wangbaiyuan.cn; The mirror website is: wangbaiyuan.ytlqpo.com.Another website URL: http://weixin.wangbaiyuan.cn, the mirror website is weixinwangbaiyuan.ytlqpo.com After my test: remove your host website record and top-level domain name, plus .ytlqpo.com, you will know Has it been mirrored! 2 to mirror all the links in the mirror site, for example, my website has a friendly link: http://www.zhiyanblog.com, this friendship link will be replaced by: zhiyanblog.ytlqpo.com. First, the big websites that have been tested by myself are: 360. Ytlqpo.com mirror 360 website sogou. Ytlqpo.com Mirror Sogou search qq. Ytlqpo.com mirror qq official website net. Ytlqpo.com mirror Wanwang official website Haosou. Ytlqpo.com mirror

7 Ways to Implement 301 Redirection Using .htaccess Files

7 Ways to Implement 301 Redirection Using .htaccess Files

Algorithm language 4 years ago (2015-01-06) Views: 5 Comments: 0

 7 Ways to Implement 301 Redirection Using .htaccess Files 301 redirect is no stranger to the majority of webmasters, from website construction to directory optimization, and can't avoid making changes to the website directory. In this case, the user's favorite folder and the search engine may still keep the old address. When you open these links, you will not be able to see 404 errors on the page, resulting in a very bad user experience and losing a lot of traffic. Today, I will share with you the seven ways to implement 301 redirection. From a search engine optimization point of view, the current 301 redirect is the most feasible way to redirect after the site directory is changed.After you use the 301 redirect to change the address, the search engine will only index the new address, and will transfer the original link under the old address to the new address. These operations will not affect the search of the website. The ranking of the engine. The most straightforward way to implement 301 redirects is to edit .htaccess files. For more information on how to use htaccess files, check here.What the garden needs to remind you is that before operating

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW