[Root @ localhost tsmis3003-sp1-base-20120924] # vi update. SQL use test; drop procedure if exists 3003_base1_20120924_update_table_file; delimiter; Create procedure '000000' base1_20120924_update_table_file '() beginif not exists (select 1 from region where table_schema = 'test' and table_name = 'systemconfig' and column_name = 'trafficlightfrequency ') thenalter table systemconfig add column trafficlightfrequency tinyint (3) default 2; end if; if not exists (select 1 from information_schema.co
If we know the location of the corresponding file (such as usercontrol, JS, CSS, etc.) in SharePoint project, we can directly modify the file path in Sharepoint Server, then we will immediately see the modified effect, so that we do not have to repair and modify each time in Vs and then deploy to the Sharepoint Server. This greatly improves the efficiency.
Of course, for sharepoint2010, the 14 directory is a very important directory. Most of the source files are stored in this directory. Of co
such as subtraction.If the double parenthesis Band: $, the expression value is obtained and assigned to the left variable. 3.2 Extended logical OperationsThe code is as follows:#!/bin/sha=1;b= "AB";echo $ ((a>1?8:9));((b!= "a")) echo "ERR2";((aOperation Result:9ERR2OK3.3 Extended Condition test operation (IF)The code is as follows:a=1b=2if ((a Thenecho "true";fiif ((a>b)); Thenecho "false"fiOperation Result:true3.4 Extending Flow control statements (logical relationships)The code is as follows
Write the installation configuration httpd service domain-based virtual host script
Requirements:
1, automatic installation, basic configuration
2, through the prompt input domain name, website root directory, and so on to complete the virtual host add work
#!/bin/bash
Service httpd Stop >/dev/null
conf= "/usr/local/apache/conf/httpd.conf"
vhostconf= "/usr/local/apache/conf/extra/httpd-vhosts.conf"
Python in the Linux cluster operation needs a unified version of Python, simple to write a Python installation script for unified installation, requires the machine has the installation package source environment (network source/local source) Python source package (download to local or online), source package domestic recommended Sohu Python source package.This script
The process of testing often requires intercepting the screen, the usual approach is to use the phone's own screen-cutting function, and then the screen file copied out, the advantage of this method is not required to connect the data line can be screenshots, the disadvantage is that the resulting screenshot file name is randomly named, copy out also more trouble. Another way is to use the PC-side phone helper software.
Here use Python to write a scr
Security | Script Original: Kevin Yank from: www.linuxforum.net (Congratulations again this open)
For a long time, one of the biggest selling points of PHP as a server-side scripting language is the automatic creation of a global variable for the value submitted from the form. In PHP 4.1, the producers of PHP recommend an alternative way to access the submitted data. In PHP 4.2, they canceled the old practice! As I will explain in this article, the p
Tags: delete file sync Create folder bin error you/tmp should delete a fileThe RM command on a Linux system is too dangerous to accidentally delete system files. Write a shell script to replace the system's RM command, requiring a backup to be made when deleting a file or directory, and then deleting it.Suppose you have a large partition/data/, each time you delete a file or directory, you need to create a
build information, Groovy, Ant, Ivy, current JVM, and current system version information. compiling projects using Gradle
# Build the entire project first, need to download lib dependencies etc
gradle build-x Test
# In the war package, compile the project default under the Web module under the build/libs under
gradle war-x test
Ability to write Gradle scripts to automatically package and then copy and delete files
) main (type)If you perform the following error in the test times:[email protected] python]# python check_mysql_custom.py slave_statusTraceback (most recent):File "test.py", line +, in con = mysql.connect (user= ' Zabbix ', passwd= ', port=3306)File "/usr/local/lib/python2.7/site-packages/mysqldb/__init__.py", line Bayi, in ConnectReturn Connection (*args, **kwargs)File "/usr/local/lib/python2.7/site-packages/mysqldb/connections.py", line 193, in __init__Super (Connection, self). __init__ (*args
This article mainly introduced the writing Python script to convert the SQLAlchemy object to the Dict tutorial, mainly based on the Python model class constructs a transformation method, needs the friend to be possible to refer to under
When using SQLAlchemy to write Web applications, often use JSON to communicate, with JSON the closest object is dict, sometimes operation Dict will be more convenient than
Write a shell script under Windows, upload to Linux run the Times wrong:
Copy Code code as follows:
[Root@localhost test]#./test.sh
-bash:./test.sh:/bin/sh^m:bad interpreter:no such file or directory
Test.sh Source:
Copy Code code as follows:
#!/bin/sh
echo "Test Shell"
Because I am not familiar with the shell, to find colleagues to understand the cause of commun
Why do I have to write this script, because recently bought the house is Vanke's hardcover room, there are owners to take some photos, for everyone to enjoy the following:
Therefore, the local BBS, brush reading volume, so that the relevant departments to attract attention, the code is as follows
Import WebBrowser
Import time
import OS
print (' Start ' + time.ctime ())
count = 1 while
(1)
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.