following path.
Description: Router ----------- ---- current user and current host $ Home \ [My] Documents \ WindowsPowerShell \ Profile. currently, ps1 users and all hosts $ Home \ [My] Documents \ Profile. all ps1 users, current host $ PsHome \ Microsoft. powerShell_profile.ps1 all users, all hosts $ PsHome \ Profile. the ps1 preset route entry contains the fo
@ubuntu:~/lssc/chpt1$ var1 =valuevar1: command not foundbuxizhizhou@ubuntu:~/lssc/chpt1$ var1 = valuevar1: command not found3. Set environment variables for export. This variable is inherited from any application executed by the current shell script.
Standard environment variables, such as PATH. After the command to be executed is given, shell will automatically find the corresponding executable file in the directory contained in the path environment variable. (Directory paths are separated by c
,Ten]my_list=[]#---I want ' n*n ' for each ' n ' in Nums# Traditional Way# for N in Nums:# my_list.append (n)# built- inMy_list=[n*N forNinchNumsPrintMy_list# Result: [1, 4, 9, +, +,----#---I want ' n ' for each ' n ' in Nums if ' n ' is even# Traditional Way#for N in nums:# if n%2 = = 0:# my_list.append (n)# built- inMy_list=[n forNinchNumsifN%2==0]PrintMy_list# Result: [2, 4, 6, 8, ten]#---I want a (letter, num) pair for each of the "ABC" and each num in "012"#传统方式#for letter in ' abc ':# for
How to change the Ubuntu terminal user name color to red
Linux: Ubuntu 14.04
If you enter a specific symbol, Garbled text will be displayed in the Garbled text !!!!!!!!
Picture of the entire operation code process and final display result
Input> echo $ PS1
Display: as shown in Figure
Enter in the personal user folder
Enter gedit ~ /. Bashrc
Modify these lines of code
If ["$ color_prompt" = yes]; then
PS1 =
Font color settings on the Linux terminal interface
Directory
DescriptionPS1Color syntaxSave settings
DescriptionI found a lot of information on the Internet, which is not very detailed, or there is a syntax error.So it took a long time to understand it. It was easy to write it down for later people to learn.Other Linux Virtual Machine versions of CentOS 6.5 may be slightly different.
PS1PS1 is an environment variable for Linux end users. It is used to describe the settings of command line promp
The default PS1 quot; [\ u @ \ h \ W] \1 quot; parameter settings of PS1 in fc, where \ W is the path setting option, W in upper case is the description mode, and w in lower case is the full path mode. if you change it, the PS1 quot; [\ u @ \ h \ W] \ $ quot; is OK; you can also: exportPS1 quot; [\ u @ \ h \ 'pwd \ '] $ quot; alia.
I believe many people are tired of reading the color of Linux Command Prompt which has become unchanged. Most people either use the default green or set it to green when using PUTTY, I don't know if someone thinks that the prompt can be set to another color. This article describes how to set the command prompt variable ps1.1. Introduction to PS1 Variables
PS1 is an environment variable for Linux end users.
The cue color in the shell terminal is determined by the PS1 in the environment variable, so change the PS1.1> Temporary changes[[Email protected]~]# echo $PS 1 [\[email protected]\h\w]\$ [email protected]~]# ps1= ' \[\033[31m\][\[email prote cted]\h\w]\[\e[0m\]\\$ "[[Email protected]~]#Use echo $PS 1 to view the value of the PS1 at this time, and then give
money=money+100 where name= ' B ';(2) Set up a transaction rollback pointSavePoint sp = Conn.setsavepoint ();Conn.rollback (SP);Conn.commit (); Must be submitted after rollbackPackage com.itheima.transaction;Import java.sql.Connection;Import Java.sql.DriverManager;Import java.sql.PreparedStatement;Import java.sql.SQLException;Import Java.sql.Savepoint;Import Org.junit.Test;Import Com.itheima.util.DaoUtil;public class Demo1 {@Testpublic void Test1 () {Connection conn = null;PreparedStatement
Modify the Linux terminal command line Color
This article turns from: http://www.cnblogs.com/menlsh/archive/2012/08/27/2659101.html
The Linux operating system (Cent5.0) has been used recently because of work needs. I hate the way Linux terminals command the same style, and not easy to distinguish with the output content, it is easy to see eye. So on the Internet to find a way to modify the Linux terminal command line color, the way they have validated, and finally found an effective way to mo
effect until next login.
5-bash-3.00 # cat/etc/passwd
6 root: x: 0: 0: Super-User: // bin/bash
7...
8...
9 user: x: 100: 1:/home/user:/bin/bash
Next login, we can find that bash is used by default.
By default, the bash shell prompt is:
1. bash-3.00 $
2 bash-3.00 #
It can be "gorgeous" to express the current version of bash and whether it is out of the root, there is no other information, you can refer to this Article "Tips: Magic Tips", it is very detailed.
In the initial stage, first define th
[Cake] 0.C# Make automated building-Overview,0. What is Cake?
Cake, short for C # Make, is an automated building system based on C # DSL. It can be used to compile code, copy files and folders, run unit tests, compress files, and build Nuget packages.
Familiar with the famous Make friends, you should already know what kind of tools Cake is. Cake has the following features:1. A simple DEMO
The author created a simple DEMO (cake. demo) on Github. The following is a brief introduction. The project
Recently, we have been using the Linux operating system (cent5.0) because of our work needs ). I hate Linux terminal command line unchanged style, and it is not easy to distinguish from the output content, it is easy to see. So I went online and found a method to modify the command line color of the Linux terminal. I verified those methods and finally found a valid method to modify the command line color of the Linux terminal. (Take the root user as an example)
1.
tool class is needed to get the same connection link//Get the same connection, referring to the implementation of Hibernate's Getcurrentsessionimport Java.sql.connection;import java.sql.sqlexception;import javax.sql.DataSource; Public classconnectionutil{ Public StaticFinal threadlocalNewThreadlocal(); Public StaticConnection getconnection (DataSource DataSource) throws sqlexception{Connection C= Connections.Get();if(NULL==c) {C=datasource.getconnection (); Connections.set (c);}returnC; }}Sprin
Recently, when the company wants to develop a new system, it basically decides to use the ORM (the senior management is still hesitating and worried about efficiency ). Since the ORM is used, it is natural to think of designing a database with the object-oriented approach.
This article aims to discuss how to abstract (using users as abstract examples) and propose some decoupling ideas.
For the first time, I used the object-oriented idea to design databases in actual projects. I wrote this blog a
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.