(natural deduplication) and disorderly 2. Definition of a collection a. Define a list, define the collection by casting nums = [1,1,2,3,5,6,77,8]num_set = Set (nums) B. Direct definition num_set1={1,2,3,3,4} The collection cannot access the element by subscript 3. Loop through sets = Set ([' Adam ', ' Lisa ', ' Bart ']) for name in S:print (name) Result: Lisabartadam4. add element s = {1,2,3}s.add (4) Print ( s) #结果 {1, 2, 3, 4}s.update ([333,444,33
psd Download htmlcss downloadCharisma Admin TemplateCharisma is a responsive site management background template based on Twitter Bootstrap, with 9 beautiful themes.Online Demo Free DownloadHTML5 Admin TemplateThe interface is very refreshing a set of Web site management background template, the application of HTML5 and CSS3 technology, I believe you will like.Online Demo Free DownloadJQuery Admin TemplateThe Web site management system template based on JQuery, the login page is beautifully mad
$ (' P '). css ({"fontSize": "30px", "BackgroundColor": "#666"});Attention:1. If the value is a number, it will be automatically converted to a pixel value.2. If the properties of CSS with '-', if you set these properties without double quotation marks must be written in the hump form, plus quotation marks can be written as '-' form, but preferably written in the hump form.Sharp jQuery-3--. CSS () gets and sets the numeric properties of the element
When I write down the following SQL statement, I get the result set I want when I enter the @c parameter.
SELECT * from @tb t where t.id in (select IDs from TB where F = @c)
But if there are @a,@b,@c, and they want to get different result sets from @tb, for example
Copy Code code as follows:
If @a is not null
Begin
--Get what @a want.
End
If @b is not null
Begin
--Get what @b want.
End
If @c is not null
Begin
--Get what @c want.
E
Spring sets a timed task that may have the following configuration:
As you can see from the configuration above, Org.springframework.scheduling.quartz.CronTriggerBean allows you to more accurately control the running time of a task, only to set its cronexpression properties.
A cronexpression expression has at least 6 (or possibly 7) time elements separated by a space. From left to right, these elements are defined as follows:
I. Description of
In. NET, a dataset can automatically receive multiple result sets, forming a DataTable array.
Use Java, but also want to achieve this effect, Baidu a meal to find, finally find a solution.
Core method: CallableStatement ResultSet
Specific implementation code:
Import java.sql.CallableStatement;Import Java.sql.ResultSet;
public void Search () {String re = "";String sql = "Call Pro1 (?,?);";Connection con = dbconnpool.getconnection ();//Establish data
, this is not very convenient in the testing phase. (This is, of course, negligible for developers using integrated development environment tools); second, Tomcat is a server, since it is a server is not the capacity to say it. Although this capacity is your decision, but no matter how big is also a disk capacity limit. If all the projects are deployed to the WebApps directory, when the project is larger and more projects will need to consider the feeling of the letter. Therefore, you can also u
. The following command can view a user's password period:
$ sudo chage-l xmodulo
Last password Change:dec, 2013 password Expires:
Never Password inactive:never account expires:
Never Minimum number of days between password change:
0 Maximum number of days between password change:
99999 number of days of warning before password expires:7
By default, the user's password never expires.
The following command modifies the password age for Xmodulo users:
$ sudo chage-e 6/30/2014-m 5-m 90-i 3
;db.cappedlogcollection.iscapped ()
If you need to convert an existing collection to a fixed collection, you can use the following command:
>db.runcommand ({"converttocapped": "Posts", size:10000})
The above code converts our existing posts collection to a fixed collection.
Fixed collection Query
Fixed collection documents are stored in the order of insertion, by default the query is returned in the order of insertion, or you can adjust the return order by using $natural.
>db.cappedlogcoll
Mode one: Use SqlDataAdapter
SqlDataAdapter SDA = new SqlDataAdapter ();
DataSet ds = new DataSet ();
Sda. Fill (DS);//fill DataSet: If the result set has more than one, correspond to multiple table//In the DataSet
two: Use SqlDataReader
sqldatareader SDR = cmd. ExecuteReader ();
if (SDR). HasRows)
{while
(SDR). Read ())
{
//reads the first result set
@ Lao Zhao's one Weibo "is the code generated by eval really inefficient?" Http://t.cn/zWTUBEo contains personal attacks, not happy to enter. ”
Triggered a recent discussion of the eval, the Archbishop @Franky and Gray @otakustay also gave a wonderful data analysis.
Just before I did a similar test, I also follow the crowd to gather a lively, provide two sets of data for your reference.
Update 1: Thanks to the guidance of the gray @otakustay, add a n
This article describes the way JS gets and sets the textarea or input text box to select the text location. Share to everyone for your reference. The implementation methods are as follows:
function GetPos (EL) {
var range, TextRange, duplicate
el.focus ()
if (El.selectionstart) return El.selectionstart
Else if (document.selection) {//IE
range = Document.selection.createRange ()
if (range = = null) return el.value.length
TextRange = El.c
This example describes the way JavaScript sets the body height to the browser height. Share to everyone for your reference. The implementation methods are as follows:
div node height To achieve a percentage, its parent node must have a determined height. So if a child node under the body node wants to use a percentage to determine the height, it must give the body a height.
Copy Code code as follows:
I hope this article will help you wit
currency format.
Three: Existing Problems and solutions
We have two main problems in the use of character set process.
One is that we display the Chinese portion of the query when the chaos character.
This is generally because the server-side character set settings differ from the client's character set settings. As long as the two changes are consistent, you can solve the problem.
In Windows you need to go to the registry in local MACHINE-SOFTWARE-ORACLE-HOME0 to change Nls_lang,unix
old Apple phone can only focus on iphone5c or iphone4s within the model, these phones in Taobao second-hand prices are almost 1500-2000 yuan, in theory can be replaced. Using the iphone 6 and plus for the Ding version is almost impossible, of course, not excluding the special case.
Zhong Yufei in Micro Bo said, netizens do not fully endorse the iphone he proposed to change millet practice, so he finally decided to take out 3 sets of millet note for
This article describes the PHP MySQL procedure implementation to get multiple result sets of methods. Share to everyone for your reference, specific as follows:
protected function Getrs ($id) {
$db = new Mysqli (c ("Db_host"), C ("Db_user"), C ("Db_pwd"), C ("Db_name"), C ("Db_port") );
if (Mysqli_connect_errno ())
throw_exception (Mysqli_connect_error ());
$sql = "Call ' Room_match '. ' Wskocmatchloadresultheader ' ($id);";
There are two sets of regular expression libraries in PHP that are similar in functionality, but have slightly different execution efficiencies:
A set is provided by the Pcre (Perl compatible Regular Expression) library. A function named after a prefix using "preg_";
A set of (PHP default) extensions provided by POSIX (Portable operating System Interface of Unix). Use a function named "Ereg_" as a prefix;
In PHP, regular expressions have three effects
length limit;
3, can not cache, and get request cache, in IE and other browsers will directly return cached data.
Four, Put method
The Put method is typically used to send a request to the server, and if the URI does not exist, the server is required to create resources based on the request, and if so, the server accepts the request content and modifies the original version of the URI resource. is commonly known as the upload resources.
http/1.1 does not define how a put request affects the s
code, classes, values, message templates, and even configuration data. For now, we can choose from a large number of PHP libraries responsible for the rapid and efficient implementation of web development work. In today's article, I'll list my favorite 15 sets of PHP repositories, which I hope will help developers better complete their project building work. Gossip less, let's get into the problem.
1) Mink
Mink is a set of PHP 5.3 libraries that
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.