forcibly close the process that occupies the port:# Netstat-tlnpa | grep 44444tcp6 0 0 10.58.242.18:44444 :::* LISTEN 25049/javaThe port query result is like the above format, then we can write the following script according to this format:pinfo= ' Netstat-tlnpa | grep 44444 ' pid= ' awk ' {split ("' $pinfo '", Array, "/");p rint array[2]} "if [!-Z" $PID "]; Then kill-15 $PID fiIt's done.Digging into awk and grep can be a lot of
[SQL statement] Easy-to-use SQL statements-suitable for unfamiliar databases and familiar with databases
Learn the data flow of the company system over the past few days. It mainly involves the data of several tables. However, there are millions of data records in the Table. Therefore, if SQL statements do not have any conditions, the query will become stuck and memory overflow may occur. The database used
). As an auxiliary debugging tool, if the specified class cannot be found in the current classpath, the program obtains the java. class. path System attribute and displays the current classpath (24-28 rows ).
It is easy to imagine how the above simple code works in a Java Servlet using the Servlet engine classpath or in an EJB component using the EJB server classpath. For example, if the JWhich class is loaded by the Servlet engine's custom class loa
-sourcemonitoringsolutionforyourIT infrastructureurl:http://www.zabbix.com/license :GPLDescription:ZABBIXissoftwarethatmonitors Numerousparametersofanetwork. let ' s Installzabbix package using Epel repo option–enablerepo=epel switch. #yum--enablerepo=epelinstallzabbix note : The Epel configuration file is located under/etc/yum.repos.d/epel.repo . This is the can install as many as high standard open source packages using EPEL repo.This article is from the "Sky Blue Star" blog, please be sure
container is to instruct a container that has been created to a file, and the Docker export command can be used regardless of whether the container is in a running state.[email protected] docker]# Docker export CEC2EEA2F8B6 > Test1.tarDocker export (ID of container ) > file . TarThese files can be transferred to other machines, and the container is migrated through import commands on other machines.Import containerExported files can be imported using the Docker import command and become mirror
iOS Development UI article-recommended two easy-to-use Xcode plugins (download link available)Two useful Xcode plugins are recommended and download links are available.First, the plug-in and use as follows:1. Two pluginsPlugins that provide automatic prompting for pictures in your project: Ksimagenamed-xcode-masterProvides quick creation of automatic annotations:
Easy-to-use open-source Library (II)-uCrop image cropping and open-source ucrop
Recently, I found this uCrop on Github to implement the image cropping function. Many people in star decided to get into the trap. As a result, I spent an hour reading materials and exploring, finally, the image cropping function is implemented in the project. Today we will introduce how to
standard stream to the file specified earlier, save time and effort, like ...Finally, just use fclose to close the input file and output file.fclose (stdin); fclose (stdout); /span> To recover a handle, you can reopen the standard console device file, except that the name of the device file is associated with the operating system.Dos/win:freopen ("CON", "R", stdin); /span> Linux :freopen (/dev/ Console "," R ", stdin); /span>
knockout to load and dynamic presentation of data. Where the data is loaded by GetAll This action, get the address or take advantage of "@Url. Action (" GetAll ")" came, and the actual access is get "/user/api".Similarly, the edit action returns a view (edit.cshtml) that is used to edit the user's information. The user's single data is loaded by GetByID this action, and the actual access is get "/user/api/[userid". When the data needs to be modified, the action is to
Some methods in. NET have never been used before, but after they have been used, they make people shine. Wow, you are so easy to use.
The following describes the methods I have ignored. Of course, everyone's programming experience, experience, and awareness of. NET are different. Therefore, this is just a family statement, and there must be many shortcomings. You are welcome to criticize and correct them.
1
\l listed in the database entry.List of commands:\password: Sets the password for the currently logged on user\h: View an explanation of the SQL command, such as \h Select.\?: View the list of PSQL commands. \l: Lists all databases.\c [database_name]: Connect to a different database.\d: Lists all tables for the current database.\d [table_name]: Lists the structure of a table.\DU: Lists all users.\e: Opens a text editor. \conninfo: Lists the current database and connection information.\password
Baidu map event processing-get the latitude and longitude of the map (Baidu map is easy to use), and map latitude and longitude
Overview of MAP events
JavaScript in the browser is "event-driven", which means that JavaScript responds to interaction by generating events and expects the program to "listen" to activities of interest. For example, in a browser, you can create an event that is propagated in the D
A long time ago, most people want to do web pages will probably use the tools of FrontPage, more advanced will use Dreamweaver and other software. Although the software provides a convenient "WYSIWYG" editing preview mode, the written web code tends to get messed up for a variety of reasons, seven or eight of the way ...If you're familiar with HTML and CSS, and you're accustomed to manually modifying and ed
Extremely easy-to-use Vim configuration and Vim ConfigurationHttps://github.com/ma6174/vim-deprecatedsimple installation tips:
Open the terminal and execute the following command to automatically install it:
wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x
Or manually install: (ubuntu is used as an example)
Install ctags:sudo apt-get install ctags
Install some essential programs:sudo a
Yii2 super easy to use date components and time components-White Wolf stack author: White Wolf Source: http://www.manks.top/yii2_datetimepicker.html this article copyright to the author, welcome to reprint, but without the author's consent must retain this statement, the original article connection is clearly provided on the article page, otherwise the right to pursue legal liability will be reserved. The o
Phpcurl uses PHP's cURL library to Capture webpages in a simple and effective manner. you only need to run a script and analyze the web page you crawled, then you can get the data you want as a program. Whether you want to retrieve part of the data from a link or an XML file and import it to the database, or even simply retrieve the webpage content, cURL is a powerful PHP library. php curl is easy to use.
U
installation path, continue to open in the Info.plist to remove the same UUID as the command side, usually in the first line or the last line, the line you added to delete the save after you restart Xcode, add the previous xcodeuuid. Restart on the plugin prompt again, select the "Load bundle", OK;(b) How to download to an earlier version of Xcode: Download the new version of Xcode people directly in the App store to download the installation can, sometimes you may
: false,stylesheet: null,noPrintSelector: ".no-print",iframe: true,append: null,prepend: null,manuallyCopyFormValues: true,deferred: $.Deferred()});
Parameters
Default value
Receive value
Describe
Globalstyles
true
Boolean
Whether to include the style of the parent document
Mediaprint
false
Boolean
Whether media=‘print‘ to include the link label. will be globalStyles overwritten by the opti
services, location services to obtain the latitude and longitude,4, geocoding and anti-coding5, positioning, labeling these two points to note, generally we are given an address to want to label on the map above, then we have to geocode it, to locate the latitude and longitude, we need to see the address, then we want to map the latitude and longitude into an addressToday, the simple application of the German SDK is here, if you want to implement a custom layer, search the path, please refer to
The Python modifier is easy to use.
The Python decorator can modify the context of a function during code execution, that is, it can define the operations performed before the function is executed and after the function is executed, the function itself has not changed.
This seems complicated. In fact, it has been applied to the closure concept I mentioned earlier. It is not complicated to take a closer look
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.