examples, after writing a special article to talk about personal experience. )Problem solving:1. First of all, you have installed Python2 or Python3 environment.2. Open Pycharm-->preference-->project-->project Interpreter3. If your Python environment does not have any other problems, then some of the points in the red box will have a corresponding path to choose from, such as I am here (Python 2.7.10).4. Click Apply to make the settings effective.Once this is done, your pycharm will be able to
| | | | ———— the bottom right corner 320,548, note that is 548, because the status bar occupies 20 points 2. A private, global set of subsets, that is, if the global setting does not support landscape, the private setting is useless.Uiviewcontroller-(Nsuinteger) supportedinterfaceorientations{return Uiinterfaceorientationmaskportrait | Uiinterfaceorientationmasklandscapeleft;}Tip: Quick Comment program Fast conmand+/Note that the Uiinterfaceorientationmasklandscapeleft: after rotation, the
Python development-quickly set up the function of auto-Reply to public accounts, and python auto-reply
In a previous article, Python used AIML and Tornado to set up a chatbot subscription number and used aiml to implement a simple English chatbot subscription number. However, only English messages can be processed. Now we use the Turing robot to implement a Chinese chatbot subscription number.
This section
On the code:#!/bin/bash#engine server Install#write by guojr#set Engine server Dirjdk=jdk-6u34-linux-x64-rpm.binchmod o+x $JDK Echo-e "\ n" |/$jdk;(cat Echo-e "\ n" |./$JDK; This is the most critical step. Skip Enter auto-install JDKThis article is from the "david0512" blog, make sure to keep this source http://gjr0512.blog.51cto.com/6518687/1611469Shell Script Auto Install jdk-6u34-linux-x64-rpm.bin skip
First, Eclipse Auto-completeEclipse----and Java----Editor-to-Content AssistAuto activation triggers for JAVA:.ABCDEFGHIJKLMNOPQRSTUVWXYZSecond, automatic completion error resolution methodThe error is as follows, click Content Assist to enter the configuration pageConfiguration page: According to the following configuration can solve this problem, for what reason I did not go to understand.Eclipse Auto-Comp
sign (/), multiplication sign (*), and modulus (%, get the remainder from integer division ). Integer division directly removes decimal places rather than carry places.
(3) Auto increment and decrease
For the ascending and descending values (for example, ++ A or -- A), the operation is performed first and then the value is generated.
For post-incrementing and post-incrementing (such as A ++ or A --), the post-incrementing value is converted into A va
constraint:Alter table [Table name] add constraint name check ([constraint field]
Delete constraints:Alter table [Table name] Drop constraint name
Create Default ValueAlter table [Table name] add constraint default name: '51windows. net' for [field name]
Delete default valueAlter table [Table name] Drop constraint default name
Delete logs in SQL Server to reduce the size of database filesDump transaction database name with no_logBackup log database name with no_logDBCC shrinkdatabase (
".
After understanding the principle, let's look at the expression a ++ B; how should we resolve it:
Also according to the rules:
The next character is the character '+'. According to the principle of containing as many characters as possible, the following one is also the character '+', and the combination is "++ ", inC LanguageIs the auto-incrementing operator, so it is completely valid, so it parses "A ++", and so on, according to the rules,
Write some articles before using the boxy pop-up (see Jquery.boxy Basics) today is mainly in the solution of a need, feel that it is worth recording down, so write another, the main function is, in the pop-up dialog box, after every n seconds automatically hidden, there is automatic jump!
effect as shown:
and the encapsulated code is as follows:
Copy Code code as follows:
Boxy dialog box extension
var boxy_extensions = {
Options: {
Title: ' Art Bar hint ',
Closetext:
Like Baidu auto-complete jquery, like Baidu auto-complete jquery
The newly created index.html file directly copies the following code to the newly created file index.html and accesses it using a browser. It is only used for reference:
Js and auto-scaling images multi-browser-compatible methods to summarize the auto-scaling effect of the original image recently. I found that the JavaScript code that has been used all the time could not work properly in firefox, page deformation. so I wrote a general compatibility code for you to discuss.
I used pjblog
The Code is as follows:
// Search for images with a large width in the webpage for sca
:^{ Self. View. Transform= Cgaffinetransformmaketranslation (0, keyy-screenh); }];}Keyboard HideEnd Edit Event when TableView scrolls (exit keyboard)- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{ [self.view endEditing:YES];}Set the left margin of the input boxInputview is the following input box ...//设置输入框的左边距 self.inputView.leftView = [[UIView alloc]initWithFrame:CGRectMake(0080)]; //设置一直显示 self.inputView.leftViewMode = UITextFieldViewModeAlways; (material source) C
Android learning notes: AutoCompleteTextView auto-filling case, android auto-Filling
(1) There are two methods to implement the AutoCompleteTextView function: one is manually configured, another summary is the data made through the xml file (of course, it can also be obtained through online resources)
Here we only talk about the first two types!
(2) The layout Page code is the same as below:
(2) The f
Should be the JetBrains series IDE Common method, some other methods on the Internet some outdated, and some not allWithout jquery completion by default, add the following method1. Open Settings,languages Frameworks > JavaScript > Libraries Select Add ... (You can also choose Download to let the IDE download it automatically)2 Name yourself, the Framework type drop-down box choose jquery, and then manually select the local jquery.js file below, add the description document below, the URL is api
:
/**
* ${tags}
* ${see_to_target}
*/
Getter Method Tags:
/**
* @return ${bare_field_name}
*/
Setter Method Tags:
/**
* @param ${param} to set the ${bare_field_name}
*/
Eclipse Auto-complete feature settings , the default is type "." There will be code hints, otherwise only press the "alt+/" key combination. The following settings al
setting update time is on update current_timestampALTER TABLE ' table_name 'ADD COLUMN ' updatetime ' timestamp NULL DEFAULT current_timestamp on UPDATE current_timestamp COMMENT ' creation time ';--Modify UpdateTime Set default time current_timestamp set update time is on update current_timestampALTER TABLE ' table_name 'MODIFY COLUMN ' updatetime ' timestamp NULL DEFAULT current_timestamp on UPDATE current_timestamp COMMENT ' creation time ';2. mysql Tool settingsSummarize:1, MySQL automatic
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.