1. Raw MaterialsOpen source jar Package Freemarker, Eclipse, a copy of the template Word document2. First design the template Word documentIn general, the format of the Word document that is output by the program is fixed, for example, to create a table, to write the table's title, the contents of the table are labeled with different marks, and after word is designed, save the Word document as an XML file (Note: Only word2003 versions are available), Open the file using the XML tool, replace the
(Listofsongs[index])Pygame.mixer.music.play ()Updatelabel ()def previoussong (event):Global indexIf index > 0:Index-= 1Elseindex = Len (listofsongs)-1Pygame.mixer.music.load (Listofsongs[index])Pygame.mixer.music.play ()Updatelabel ()def stopsong (event):Pygame.mixer.music.stop ()V.set ("")Update the currently playing song nameDef Updatelabel ():Global indexV.set (Realnames[index]):Small series have their own Python learning Exchange group, if you want to learn, you can add: 588+090+942 Whether
Last_login_time from Scpn_user where user_id= "+user.getuserid ();p rivate jdbctemplate jdbctemplate;date dt= Jdbctemplate.queryforobject (internaltimestring, java.util.Date.class);//Gets the current time of the system date Time=new date (); String s;if (dt==null) {s= "";} else {s = dateformat.getdateinstance (). Format (dt);} String t= dateformat.getdateinstance (). Format (time),//formats the current system time and the user's last logon date to determine if it is the same day if (!s.equals (
At present Spring+netty development way so hot, want to register Netty spring components must be used in a number of ways, I can't help but want to spit groove obviously so common demand online related blog are less very, here give spring use annotation to inject many examples of way:
On classes that require multiple calls, add the@Scope("prototype")
In the injection, can not be used directly @Autowired , otherwise injected or singleton, need to use the factory, the simplest is to use@A
Introducing POM Dependencies: Dependency> groupId>Io.springfoxgroupId> Artifactid>Springfox-swagger2Artifactid> version>2.7.0version> Dependency> Dependency> groupId>Io.springfoxgroupId> Artifactid>Springfox-swagger-uiArtifactid> version>2.7.0version> Dependency>To GitHub https://github.com/swagger-api/swagger-ui to download the project, the Dist directory is copied and placed directly into the resource
#1, total number of statistical characters#统计系统中不允许登录的用户数Grep-c ' Nologin '/etc/passwd#2, case-insensitive lookup of all lines of the specified character;Grep-i ' Good ' 9.txt#3, print the line and line number of the specified character;Grep-n "Good" 9.txt#4, lines that do not print the specified charactersGrep-v "Good" 9.txt#5, printing begins with a character good, followed by a line of numbersgrep "good[0-9]" 9.txt#6, lines that match G or Ggrep "[Gg]ood" 9.txt#7, display the line at the begi
' begin{ofs=fs= ': '} nr==fnr{a[$1]=$2}nr>fnr{$2=a[$1];p rint >> "/tmp/passwd"} '/etc/shadow/etc/passwd#12, awk count Server Status connections:Netstat-an |awk '/tcp/{s[$NF]++} END {for (a in s) {print A,s[a]}} ' Netstat-an |awk '/tcp/{print $NF} ' |Sort | Uniq-c#13, get the IP address of the eth0Ifconfig eth0|grep "Bcast" |awk ' {print $} ' | Awk-f: ' {print $} '#14, add output at the beginning and end of the output#在所有行添加列名name, Shell, add "Blue,/bin/nosh" to the last lineAwk-f ': ' BEGIN {pr
Command name: ChownEnglish: Change file ownershipCommand path:/bin/chownSyntax: chown [user] [file or folder]Description of the function: Change the file or folder of the entire personExample: Chown Shenchao FengjieChange the file Fengjie the whole person is ShenchaoCommand name: CHGRPEnglish: Change file group ownershipCommand path:/BIN/CHGRPSyntax: chgrp [user] [file or folder]Function Description: Change the group to which the file or folder belongsExample: Chown lampbrother FengjieChange fil
" [emailprotected] Add multiple Attachmentsecho "Test" | mutt -s "web backup" -a /mysql.tar.gz -a /web.tar.gz [emailprotected]-S "mysql backup" message parameters and title-a/mysql.tar.gz parameters and paths for sending attachmentsRead Mail.txt content for the message content, content must be UTF8 encoded, otherwise garbled3. Set the senderEditing a configuration filevi/etc/MuttrcAdd the following to prevent it from being used as junk e-mailset from="[emailprotected]"set use_from=yesset envelop
the newly opened tab.Otherwise, this newly opened tab willWill be recorded in history, and will be opened again the next time you come back here.5.ctrl+alt+hIf you want to know how a class's methods are called by those other classes, check this method name. Then press "Ctrl+alt+h". Eclipse will show which methods are called by this method. Finally, a call tree is generated.mnemonic : "H"---> "Hierarchy"---> "Call hierarchy"6. control-q: Go back to the last editing place. This shortcut is also
generally set to bash soft chain, in the general Linux system (such as Redhat), using the SH call execution script is equivalent to open bash POSIX standard mode, that is to say/bin/sh equivalent to/bin/bash--posix.2.echo $1:echo is used to print in streets, which represents the first parameter passed inStep three: Execute the shell scriptSH publish.sh HospitalExtracurricular topics:1. If you want to use the same as the boot tomcal./startup.sh boot then you need to execute the command before ex
consecutivelyDD-delete a whole line ndd-delete the down n rows of the cursorD1G-delete the line from the cursor to the first line DG-delete the line from the cursor to the last rowd$-delete cursor at end of line D0-delete cursor at beginning of rowYY-the line where the copy cursor is NYY-the next n line where the copy cursor is locatedY1G-Copy the current line to the first line YG-Copy the current line to the last rowY0-Copy current cursor to beginning y$-copy current cursor to end of lineP-pas
1 What the pipeline is:Pipes everyone knows that there are two ends, at which end is used to read one end to write, the output of the end as the input of the other end.2 function prototypesint pipe (int pipefd[2]);//The two ends of the argument represented separately3 Example: One end of the pipeline as the writing of the other end as a read-father process implementation1#include 2#include 3#include 4 5 intMain ()6 {7 pid_t pid;8 inttemp;9 intpipedes[2];Ten Chars[ -]="Letgo"; One
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.