. NET-based custom generics and. net-based custom generics
In. NET is frequently used in generics. In the console application, System is introduced by default. collection. generics namespace, which provides the generic types that we often use: List
Nop3.9 custom series (1) Chinese and nop3.9 custom series chinese
I. Chinese Resources
Go to the Nop official website and download the 3.9 Chinese package. The Chinese package is not fully translated. You can modify the package slowly during the customization process. The official website is www.nopcommerce.com.
Go to the background Configuration-> ages
Add a simplified Chinese record, save the record
Create windows custom commands and windows custom commands
First, create a folder in any location. The directory I use isD: \ Program Files \ Quick Start \ command \, Desktop my computer/computer icon right-click Properties
Advanced System settings-> advanced-> Environment Variables
Find in System VariablesPathDouble-click Modify to append your directory.D: \ Program Files \ Quick Start \ command \,
UserControl, customize the control.A question has just come to mind here. When should you define a control with UserControl. When should you rewrite the template and style of the control to achieve the new effect.Quote someone's words: http://www.cnblogs.com/denghejun/p/3671061.htmlMy understanding:UserControl should be a function with a control with a behavior. Some simple models, style effects, should be implemented with the template. Most of it is for rendering effect service, of course, it c
Custom verification of mvc and custom verification of mvc
Mvc validation is divided into server-side verification and client-side verification. Although there are many well-defined verifications, such as [Required], each person has its own unique needs, so we can implement our own verification features at this time.
Implement server Verification
Implement client verification (reference)
Ps: You can
according to the user clicking on the letter*/Sidebar.setontouchingletterchangedlistener (NewItouchingletterchangedlistener () {@Override Public voidontouchingletterchanged (String cString) {intPosition =-1; if(Cstring.length () > 0) {Position=myadapter.getpositionforsection (cString. CharAt (0)); } if(Position! =-1) {listview.setselection (position); } Else if(Cstring.contains ("#") {listview.setselection (0); } } });Great length said so much, the effect of the
Stop a service
service httpd stop
systemctl stop Httpd.service
Restart a service
service httpd restart
systemctl restart Httpd.service
Start Nginx ServiceSystemctl Start Nginx.serviceSet up boot fromSystemctl Enable Nginx.serviceStop Boot from bootingSystemctl Disable Nginx.serviceView the current status of the serviceSystemctl Status Nginx.serviceRestart ServiceSystemctl Restart Nginx.serviceView all services that ha
space allocated to the serviceNote: The start, restart, and stop commands for [Service] all require absolute pathsSettings for the [Install] service installation, which can be set to multi-user2. Save the DirectorySave in Directory with 754 permissions:
/lib/systemd/system
3. Set up boot from boot
Systemctl Enable Nginx.service
4. Other commands
Task
Old instructions
New directives
Enable a service to start automatically
httpd Status
Systemctl Status Httpd.service (service details)Systemctl is-active Httpd.service (show only active)
Show all services that have been started
Chkconfig--list
Systemctl list-units--type=service
Start a service
Service httpd Start
Systemctl Start Httpd.service
Stop a service
Service httpd Stop
Systemctl Stop Httpd.service
Restart a service
Service httpd Restart
Systemctl Restart Httpd
$ sudo systemctl start nginx.service #查看日志 $ sudo journalctl-f-u nginx.service-logs begin at 42,015-06-25 17:32:20 Cst. -June 10:28:24 Leco.lan systemd[1]: Starting Nginx–high performance Web server ... June 10:28:24 Leco.lan nginx[7976]: nginx:the configuration file/etc/nginx/nginx.conf syntax is ok6 month 10:28:24 LECO.L An nginx[7976]: nginx:configuration file/etc/nginx/nginx.conf test is successful6 month 10:28:24 Leco.lan systemd[1]: StarTed Nginx–high Performance Web server. #重启 $ sudo sy
* Android App Development If you want to go deeper, you're going to use some advanced controls and a custom view, okay, start customizing view to the Great God Road, this section from the simplest* Start with circle view, how to define attributes, and callback use.Here is the implementation code/** * A circular progress bar control * @author fengy * */public class Customprogressview extends View {paint paint; int mcolor;//circle Color Private O Nclick
13.44 compile a simplified version of the string class in the standard library and name it string. Your class should have at least one default constructor and one constructor that accepts the C-style string pointer parameters. Use allocator to allocate the required memory for your string class.
13.47 Add a copy constructor and a copy value assignment operator, and add a print statement. A message is printed every time the function is executed.
13.48 define a vector
#include
Running result:
Exp
Datazen custom map, datazen customZookeeper
Datazen's map data definition is mainly based on ESRI's Shape file format, which is now widely used as a map data format. In Datazen, the following two map data definition files must be provided for a custom map:
The SHP file provides map location data
The DBF file provides the metadata information of the file.
At the same time, the NAME field in the met
NSArray custom encapsulation and nsarray custom Encapsulation
NSArray-related data processing is often used in the development process, and it feels complicated to use and highly coupled. The following is a simple encapsulation of NSArray according to your needs.
There are better encapsulation methods available. You are welcome to learn more. Thank you.
NSArray + LSCore. h
//// NSArray + LSCore. h // iPhone
Custom Control (4) custom click effect Button and control button
In this section, you can customize the rounded rectangle Button with the click effect.Function:1. click the button to change color.2. The text above is also click to change color3. The button is in the shape of a rounded rectangle.4. The button has a gradient effect.
It consists of five steps.:First, you need to create a drawable directory (d
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.